/* =========================================================
   CONTACTS V2
   ========================================================= */

.contacts-v2 {
    --c-blue: #176fe8;
    --c-blue-light: #26a9f4;
    --c-dark: #111b2b;
    --c-text: #6c7b91;
    --c-border: #dfe8f2;
    --c-bg: #f6faff;

    color: var(--c-dark);
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.contacts-v2__breadcrumbs {
    padding-top: 18px;
}


/* =========================================================
   LABEL
   ========================================================= */

.contacts-v2__label {
    display: inline-flex;

    margin-bottom: 13px;
    padding: 7px 12px;

    border-radius: 999px;

    background: #eaf4ff;
    color: #0870ea;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}


/* =========================================================
   HERO
   ========================================================= */

.contacts-v2__hero {
    padding: 58px 0 82px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(43,171,249,.15),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fff,
            #f5faff
        );
}


.contacts-v2__hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(420px,.82fr);

    gap: 75px;

    align-items: center;
}


.contacts-v2__hero-title {
    max-width: 760px;

    margin: 0;

    font-size: clamp(43px,5vw,66px);
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -.035em;
}


.contacts-v2__hero-text {
    max-width: 700px;

    margin: 22px 0 0;

    color: var(--c-text);

    font-size: 17px;
    line-height: 1.65;
}


.contacts-v2__hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 31px;
}


.contacts-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.contacts-v2__btn--primary {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #2495f1
        );

    color: #fff;

    box-shadow:
        0 12px 28px rgba(23,111,232,.22);
}


.contacts-v2__btn--secondary {
    border: 1px solid #d6e2ee;

    background: #fff;
    color: #182337;
}


.contacts-v2__hero-note {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 23px;

    color: #7b8798;

    font-size: 12px;
}


.contacts-v2__hero-note span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #31bd72;

    box-shadow:
        0 0 0 5px rgba(49,189,114,.1);
}


/* =========================================================
   HERO CONTACT CARD
   ========================================================= */

.contacts-v2__hero-card {
    padding: 25px;

    border: 1px solid #dce7f2;
    border-radius: 25px;

    background: rgba(255,255,255,.92);

    box-shadow:
        0 28px 70px rgba(24,67,113,.12);

    backdrop-filter: blur(10px);
}


.contacts-v2__hero-card-head {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 21px;
}


.contacts-v2__online {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #34c779;

    box-shadow:
        0 0 0 5px rgba(52,199,121,.11);
}


.contacts-v2__hero-card-head strong,
.contacts-v2__hero-card-head small {
    display: block;
}


.contacts-v2__hero-card-head strong {
    font-size: 15px;
}


.contacts-v2__hero-card-head small {
    margin-top: 2px;

    color: #8995a5;

    font-size: 10px;
}


.contacts-v2__quick {
    display: grid;

    grid-template-columns:
        45px minmax(0,1fr) auto;

    align-items: center;

    gap: 13px;

    min-height: 75px;

    padding: 13px 14px;

    border-top: 1px solid #edf1f5;

    color: inherit;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}


.contacts-v2__quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 13px;

    background: #eaf4ff;
    color: #1071ea;
}


.contacts-v2__quick-icon svg {
    width: 21px;
    height: 21px;
}


.contacts-v2__quick span,
.contacts-v2__quick strong {
    display: block;
}


.contacts-v2__quick span {
    margin-bottom: 3px;

    color: #8a96a7;

    font-size: 10px;
}


.contacts-v2__quick strong {
    color: #1b2739;

    font-size: 14px;
}


.contacts-v2__quick i {
    color: #1472ec;

    font-style: normal;
}


@media (hover:hover) {

    .contacts-v2__btn:hover {
        transform: translateY(-2px);
    }

    .contacts-v2__quick:hover {
        transform: translateX(3px);

        background: #f8fbff;
    }

}


/* =========================================================
   COMMON HEAD
   ========================================================= */

.contacts-v2__section-head {
    max-width: 790px;

    margin-bottom: 37px;
}


.contacts-v2__section-head h2 {
    margin: 0;

    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
    letter-spacing: -.025em;
}


.contacts-v2__section-head p {
    max-width: 720px;

    margin: 13px 0 0;

    color: var(--c-text);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   DIRECTIONS
   ========================================================= */

.contacts-v2__directions {
    padding: 91px 0;

    background: #fff;
}


.contacts-v2__directions-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 16px;
}


.contacts-v2__direction {
    position: relative;

    display: grid;

    grid-template-columns:
        46px minmax(0,1fr);

    gap: 18px;

    min-height: 170px;

    padding: 27px;

    border: 1px solid var(--c-border);
    border-radius: 21px;

    background: #fff;
    color: inherit;

    text-decoration: none;

    box-shadow:
        0 12px 35px rgba(20,60,105,.035);
}


.contacts-v2__direction--accent {
    background:
        linear-gradient(
            145deg,
            #edf7ff,
            #fbfdff
        );

    border-color: #c4ddfb;
}


.contacts-v2__direction-num {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 12px;

    background: #eaf4ff;
    color: #1071ea;

    font-size: 11px;
    font-weight: 800;
}


.contacts-v2__direction-badge {
    display: inline-flex;

    margin-bottom: 8px;
    padding: 5px 8px;

    border-radius: 999px;

    background: #e4f8ed;
    color: #18985a;

    font-size: 9px;
    font-weight: 700;
}


.contacts-v2__direction h3 {
    margin: 0 0 8px;

    font-size: 20px;
}


.contacts-v2__direction p {
    max-width: 550px;

    margin: 0;

    color: #718096;

    font-size: 13px;
    line-height: 1.6;
}


.contacts-v2__direction-arrow {
    position: absolute;

    right: 23px;
    bottom: 20px;

    color: #1071ea;

    font-size: 20px;
}


/* =========================================================
   FORM + MAP
   ========================================================= */

.contacts-v2__contact {
    padding: 94px 0;

    background:
        linear-gradient(
            180deg,
            #f6faff,
            #f2f8ff
        );
}


.contacts-v2__contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.9fr)
        minmax(450px,1.1fr);

    gap: 24px;

    align-items: stretch;
}


.contacts-v2__form-box,
.contacts-v2__map-box {
    border: 1px solid var(--c-border);
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 18px 48px rgba(22,65,112,.06);
}


.contacts-v2__form-box {
    padding: 35px;
}


.contacts-v2__form-head {
    margin-bottom: 25px;
}


.contacts-v2__form-head h2,
.contacts-v2__map-head h2 {
    margin: 0;

    font-size: 31px;
    line-height: 1.15;
}


.contacts-v2__form-head p {
    margin: 10px 0 0;

    color: #77869a;

    font-size: 13px;
    line-height: 1.55;
}


/* Existing contact form */

.contacts-v2__form-box .form--contact {
    padding: 0;

    border: 0;

    box-shadow: none;
}


.contacts-v2__form-box
.form--contact input[type="text"],
.contacts-v2__form-box
.form--contact input[type="email"],
.contacts-v2__form-box
.form--contact input[type="tel"],
.contacts-v2__form-box
.form--contact input[type="number"],
.contacts-v2__form-box
.form--contact select,
.contacts-v2__form-box
.form--contact textarea {
    width: 100%;

    border: 1px solid #d8e3ef;
    border-radius: 11px;

    background: #fff;

    outline: none;
}


.contacts-v2__form-box
.form--contact textarea {
    min-height: 120px;
}


.contacts-v2__form-box
.form--contact input:focus,
.contacts-v2__form-box
.form--contact textarea:focus {
    border-color: #69adf7;

    box-shadow:
        0 0 0 4px rgba(23,111,232,.08);
}


.contacts-v2__form-box
.form--contact .btn {
    min-height: 49px;

    padding: 0 23px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #249cf2
        );

    color: #fff;

    font-weight: 700;

    box-shadow:
        0 12px 28px rgba(23,111,232,.2);
}


/* map */

.contacts-v2__map-box {
    overflow: hidden;
}


.contacts-v2__map-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    padding: 30px 31px 23px;
}


.contacts-v2__map-address {
    text-align: right;
}


.contacts-v2__map-address strong,
.contacts-v2__map-address span {
    display: block;
}


.contacts-v2__map-address strong {
    color: #28364a;

    font-size: 12px;
}


.contacts-v2__map-address span {
    margin-top: 3px;

    color: #8995a5;

    font-size: 10px;
}


.contacts-v2__map {
    overflow: hidden;

    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}


.contacts-v2__map iframe {
    display: block;

    width: 100%;
}


.contacts-v2__map-footer {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);
}


.contacts-v2__map-footer > div {
    padding: 18px 25px;
}


.contacts-v2__map-footer > div:first-child {
    border-right: 1px solid #edf1f5;
}


.contacts-v2__map-footer span,
.contacts-v2__map-footer strong {
    display: block;
}


.contacts-v2__map-footer span {
    margin-bottom: 3px;

    color: #8a96a5;

    font-size: 9px;
}


.contacts-v2__map-footer strong {
    font-size: 12px;
}


/* =========================================================
   REQUISITES
   ========================================================= */

.contacts-v2__requisites {
    padding: 89px 0;

    background: #fff;
}


.contacts-v2__requisites-grid {
    display: grid;

    grid-template-columns:
        1.25fr .7fr 1.15fr 1fr;

    gap: 14px;
}


.contacts-v2__req {
    min-height: 128px;

    padding: 24px;

    border: 1px solid var(--c-border);
    border-radius: 18px;

    background: #fff;
}


.contacts-v2__req span,
.contacts-v2__req strong {
    display: block;
}


.contacts-v2__req span {
    margin-bottom: 13px;

    color: #8793a4;

    font-size: 10px;
}


.contacts-v2__req strong {
    color: #263449;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   SEO CONTENT
   ========================================================= */

.contacts-v2__content {
    padding: 78px 0;

    background: #f6faff;
}


.contacts-v2__content-inner {
    max-width: 1050px;

    color: #68778c;

    font-size: 15px;
    line-height: 1.75;
}


.contacts-v2__content-inner h2 {
    margin: 40px 0 15px;

    color: #172236;

    font-size: 30px;
}


.contacts-v2__content-inner h2:first-child {
    margin-top: 0;
}


.contacts-v2__content-inner p {
    margin: 0 0 17px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .contacts-v2__hero-grid,
    .contacts-v2__contact-grid {
        grid-template-columns: 1fr;
    }


    .contacts-v2__hero-card {
        max-width: 700px;
    }


    .contacts-v2__requisites-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .contacts-v2__hero {
        padding: 38px 0 56px;
    }


    .contacts-v2__hero-title {
        font-size: 40px;
    }


    .contacts-v2__hero-text {
        font-size: 15px;
    }


    .contacts-v2__hero-actions {
        align-items: stretch;
    }


    .contacts-v2__btn {
        width: 100%;
    }


    .contacts-v2__directions,
    .contacts-v2__contact,
    .contacts-v2__requisites,
    .contacts-v2__content {
        padding: 62px 0;
    }


    .contacts-v2__directions-grid,
    .contacts-v2__requisites-grid {
        grid-template-columns: 1fr;
    }


    .contacts-v2__direction {
        grid-template-columns: 42px 1fr;

        min-height: 0;

        padding: 22px;
    }


    .contacts-v2__form-box {
        padding: 25px 20px;
    }


    .contacts-v2__map-head {
        display: block;

        padding: 24px 20px 20px;
    }


    .contacts-v2__map-address {
        margin-top: 15px;

        text-align: left;
    }


    .contacts-v2__map iframe {
        height: 330px;
    }


    .contacts-v2__map-footer {
        grid-template-columns: 1fr;
    }


    .contacts-v2__map-footer > div:first-child {
        border-right: 0;
        border-bottom: 1px solid #edf1f5;
    }

}

/* =========================================================
   CONTACT FORM — FINAL OVERRIDE
   ========================================================= */

.contacts-v2__form-box .form--contact {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* ROWS */

.contacts-v2__form-box .form--contact .form__row {
    display: flex !important;
    flex-direction: column !important;

    gap: 7px !important;

    margin: 0 0 16px !important;
}


/* LABELS */

.contacts-v2__form-box .form--contact label {
    display: block !important;

    margin: 0 !important;

    color: #354258 !important;

    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}


/* =========================================================
   INPUTS
   ========================================================= */

.contacts-v2__form-box .form--contact input[type="text"],
.contacts-v2__form-box .form--contact input[type="tel"],
.contacts-v2__form-box .form--contact input[type="email"],
.contacts-v2__form-box .form--contact input[type="number"],
.contacts-v2__form-box .form--contact select,
.contacts-v2__form-box .form--contact textarea {

    display: block !important;

    width: 100% !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    border: 1px solid #d8e3ef !important;
    border-radius: 12px !important;

    background: #fff !important;
    color: #172236 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;

    outline: none !important;

    box-shadow: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease !important;
}


/* обычные поля */

.contacts-v2__form-box .form--contact input[type="text"],
.contacts-v2__form-box .form--contact input[type="tel"],
.contacts-v2__form-box .form--contact input[type="email"],
.contacts-v2__form-box .form--contact input[type="number"],
.contacts-v2__form-box .form--contact select {

    height: 50px !important;

    padding: 0 14px !important;
}


/* textarea */

.contacts-v2__form-box .form--contact textarea {

    min-height: 130px !important;
    height: 130px !important;

    padding: 13px 14px !important;

    resize: vertical !important;
}


/* placeholder */

.contacts-v2__form-box .form--contact input::placeholder,
.contacts-v2__form-box .form--contact textarea::placeholder {

    color: #a0abba !important;

    opacity: 1 !important;
}


/* focus */

.contacts-v2__form-box .form--contact input:focus,
.contacts-v2__form-box .form--contact select:focus,
.contacts-v2__form-box .form--contact textarea:focus {

    border-color: #69adf7 !important;

    background: #fff !important;

    box-shadow:
        0 0 0 4px rgba(23,111,232,.08) !important;
}


/* =========================================================
   SELECT
   ========================================================= */

.contacts-v2__form-box .form--contact select {

    appearance: none !important;
    -webkit-appearance: none !important;

    padding-right: 40px !important;

    background-image:
        linear-gradient(45deg, transparent 50%, #6f7d90 50%),
        linear-gradient(135deg, #6f7d90 50%, transparent 50%) !important;

    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 13px) 21px !important;

    background-size:
        5px 5px,
        5px 5px !important;

    background-repeat: no-repeat !important;
}


/* =========================================================
   CAPTCHA
   ========================================================= */

.contacts-v2__form-box .form--contact .scx-captcha {

    display: grid !important;

    grid-template-columns:
        minmax(150px, 1fr)
        auto !important;

    gap: 9px !important;

    align-items: center !important;

    margin: 4px 0 9px !important;
}


.contacts-v2__form-box .form--contact .scx-img {

    display: block !important;

    width: 100% !important;
    max-width: 180px !important;

    height: 52px !important;

    border: 1px solid #d8e3ef !important;
    border-radius: 11px !important;

    background: #f7faff !important;

    object-fit: contain !important;
}


.contacts-v2__form-box .form--contact .scx-refresh {

    min-height: 44px !important;

    padding: 0 15px !important;

    border: 1px solid #d8e3ef !important;
    border-radius: 10px !important;

    background: #f1f6ff !important;
    color: #31425a !important;

    font-size: 13px !important;

    cursor: pointer !important;
}


.contacts-v2__form-box .form--contact .scx-input {

    width: 100% !important;

    height: 50px !important;

    padding: 0 14px !important;

    border: 1px solid #d8e3ef !important;
    border-radius: 11px !important;

    background: #fff !important;

    box-sizing: border-box !important;
}


/* =========================================================
   ERRORS
   ========================================================= */

.contacts-v2__form-box .form--contact .form__err {

    min-height: 0 !important;

    margin-top: 3px !important;

    color: #df4545 !important;

    font-size: 11px !important;
    line-height: 1.4 !important;
}


.contacts-v2__form-box .form--contact [aria-invalid="true"],
.contacts-v2__form-box .form--contact .is-error {

    border-color: #e95e5e !important;

    box-shadow:
        0 0 0 4px rgba(233,94,94,.08) !important;
}


/* =========================================================
   AGREEMENT
   ========================================================= */

.contacts-v2__form-box .form--contact .form__row--agree {

    display: flex !important;
    flex-direction: row !important;

    align-items: flex-start !important;

    gap: 9px !important;
}


.contacts-v2__form-box .form--contact
.form__row--agree input[type="checkbox"] {

    flex: 0 0 18px !important;

    width: 18px !important;
    height: 18px !important;

    margin: 1px 0 0 !important;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.contacts-v2__form-box .form--contact button[type="submit"],
.contacts-v2__form-box .form--contact input[type="submit"],
.contacts-v2__form-box .form--contact .btn {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 170px !important;
    min-height: 50px !important;

    padding: 0 23px !important;

    border: 0 !important;
    border-radius: 11px !important;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #249cf2
        ) !important;

    color: #fff !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow:
        0 12px 28px rgba(23,111,232,.20) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}


@media (hover:hover) {

    .contacts-v2__form-box
    .form--contact button[type="submit"]:hover,

    .contacts-v2__form-box
    .form--contact input[type="submit"]:hover,

    .contacts-v2__form-box
    .form--contact .btn:hover {

        transform: translateY(-2px) !important;

        box-shadow:
            0 16px 34px rgba(23,111,232,.27) !important;
    }

}


/* =========================================================
   SUCCESS / ERROR
   ========================================================= */

.contacts-v2__form-box .form__ok {

    margin-top: 15px !important;
    padding: 12px 14px !important;

    border: 1px solid #b9efd1 !important;
    border-radius: 11px !important;

    background: #edf9f2 !important;
    color: #147344 !important;
}


.contacts-v2__form-box .form__fail {

    margin-top: 15px !important;
    padding: 12px 14px !important;

    border: 1px solid #f3c6c6 !important;
    border-radius: 11px !important;

    background: #fff3f3 !important;
    color: #9c3030 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .contacts-v2__form-box
    .form--contact .scx-captcha {

        grid-template-columns:
            1fr auto !important;
    }


    .contacts-v2__form-box
    .form--contact button[type="submit"],

    .contacts-v2__form-box
    .form--contact input[type="submit"],

    .contacts-v2__form-box
    .form--contact .btn {

        width: 100% !important;
    }

}