.page-template-contacts {
    background: #f4f6fa;
}

.contacts-page.container {
    height: auto;
    padding-top: 154px;
}

.contacts-page__inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: #101114;
}

/* =========================================================
   HERO
   ========================================================= */

.contacts-hero {
    max-width: 1472px;
    padding: 0 clamp(10px, 3vw, 50px);
}

.contacts-hero__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
}

.contacts-hero__title {
    max-width: 9ch;
    margin: 0;
    color: #101114;
    font-size: clamp(44px, 5.4vw, 84px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
}

.contacts-hero__lead {
    max-width: 26ch;
    margin: 0;
    color: #101114;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.contacts-hero__text {
    max-width: 52ch;
    margin: 20px 0 0;
    color: #4a4f57;
    font-size: 19px;
    line-height: 1.7;
}

/* =========================================================
   CONTACTS
   ========================================================= */

.contacts-info {
    margin-top: 96px;
}

.contacts-info__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
}

/* =========================================================
   CONTACT CARD
   ========================================================= */

.contacts-card {
    box-sizing: border-box;
    padding: 40px;
    border-radius: 24px;
    background: #ffffff;
}

.contacts-card__inner {
    margin-left: 18px;
}

.contacts-card__eyebrow {
    color: #8a8f97;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contacts-card__phone {
    display: block;
    margin-top: 16px;
    color: #101114;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.contacts-card__phone:hover,
.contacts-card__phone:focus-visible {
    color: #1d7ef2;
}

.contacts-card__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.contacts-card__messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(16, 17, 20, 0.16);
    border-radius: 999px;
    color: #101114;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
            border-color 0.2s ease,
            color 0.2s ease,
            background 0.2s ease;
}

.contacts-card__messenger:hover,
.contacts-card__messenger:focus-visible {
    border-color: #1d7ef2;
    color: #1d7ef2;
}

.contacts-card__emails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(16, 17, 20, 0.1);
}

.contacts-card__email-label {
    margin-bottom: 4px;
    color: #8a8f97;
    font-size: 14px;
    line-height: 1.4;
}

.contacts-card__email a {
    color: #101114;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contacts-card__email a:hover,
.contacts-card__email a:focus-visible {
    color: #1d7ef2;
}

/* =========================================================
   ADDRESSES
   ========================================================= */

.contacts-addresses__title {
    margin: 0;
    color: #101114;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.contacts-addresses__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 32px;
    border-top: 1px solid rgba(16, 17, 20, 0.12);
    border-bottom: 1px solid rgba(16, 17, 20, 0.12);
    background: rgba(16, 17, 20, 0.12);
}

.contacts-address {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    background: #f4f6fa;
}

.contacts-address__label {
    padding-top: 4px;
    color: #8a8f97;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contacts-address__value {
    max-width: 46ch;
    margin: 0;
    color: #101114;
    font-size: 17px;
    line-height: 1.6;
    font-style: normal;
}

/* =========================================================
   MAP
   ========================================================= */

.contacts-map {
    position: relative;
    width: 100%;
    margin-top: 32px;
    aspect-ratio: 42 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #e9edf4;
}

.contacts-map__frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacts-map__expand {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 17, 20, 0.16);
    color: #101114;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.contacts-map__expand:hover,
.contacts-map__expand:focus-visible {
    color: #1d7ef2;
}

.contacts-map__expand:active {
    transform: scale(0.96);
}

/* =========================================================
   REQUISITES
   ========================================================= */

.contacts-requisites {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(75% - 48px);
    margin-top: 32px;
    padding-left: 65px;
}

.contacts-requisites__label {
    color: #8a8f97;
    font-size: 14px;
    line-height: 1.4;
}

.contacts-requisites__value {
    margin-top: 8px;
    color: #101114;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.contacts-requisites__value--mono {
    font-family: "JetBrains Mono", monospace;
    font-weight: 500;
}

/* =========================================================
   FEEDBACK
   ========================================================= */

.contacts-feedback {
    margin-top: 96px;
}

.contacts-feedback__panel {
    box-sizing: border-box;
    padding: 64px clamp(28px, 4vw, 64px);
    border-radius: 28px;
    background: #ffffff;
}

.contacts-feedback__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
}

.contacts-feedback__title {
    max-width: 16ch;
    margin: 0;
    color: #101114;
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.contacts-feedback__text {
    max-width: 40ch;
    margin: 24px 0 0;
    color: #6b7079;
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================================
   FORM
   ========================================================= */

.contacts-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contacts-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contacts-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-form__label {
    color: #8a8f97;
    font-size: 14px;
    line-height: 1.4;
}

.contacts-form__control {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    padding: 0 20px;
    border: 1px solid rgba(16, 17, 20, 0.16);
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #101114;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.contacts-form__control::placeholder {
    color: #8a8f97;
    opacity: 0.75;
}

.contacts-form__control:hover {
    border-color: rgba(16, 17, 20, 0.32);
}

.contacts-form__control:focus {
    border-color: #1d7ef2;
    box-shadow: 0 0 0 3px rgba(29, 126, 242, 0.1);
}

.contacts-form__textarea {
    min-height: 152px;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.55;
    resize: vertical;
}

/* =========================================================
   CONSENTS
   ========================================================= */

.contacts-form__consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-form__consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #8a8f97;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.contacts-form__consent input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #1d7ef2;
    cursor: pointer;
}

.contacts-form__consent a {
    color: #6b7079;
    text-decoration: underline;
    text-decoration-color: rgba(107, 112, 121, 0.4);
    text-underline-offset: 2px;
}

.contacts-form__consent a:hover,
.contacts-form__consent a:focus-visible {
    color: #1d7ef2;
    text-decoration-color: #1d7ef2;
}

/* =========================================================
   SUBMIT
   ========================================================= */

.contacts-form__footer {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.contacts-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    height: 56px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: #1d7ef2;
    color: #ffffff;
    font: inherit;
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition:
            background 0.2s ease,
            transform 0.2s ease,
            opacity 0.2s ease;
}

.contacts-form__submit:hover,
.contacts-form__submit:focus-visible {
    background: #328cf5;
}

.contacts-form__submit:active {
    transform: translateY(1px);
}

.contacts-form__submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.feedback__window {
    position: fixed;
    z-index: 10001;
    top: 50%;
    left: 50%;
    display: block;
    box-sizing: border-box;
    width: min(520px, calc(100% - 32px));
    padding: 48px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(16, 17, 20, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 20px));
    transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
}

.feedback__window.feedback__window--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.feedback__window-title {
    margin: 0;
    padding-right: 32px;
    color: #101114;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.feedback__window-text {
    margin: 20px 0 0;
    color: #6b7079;
    font-size: 17px;
    line-height: 1.6;
}

.feedback__window-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    min-height: 52px;
    margin-top: 32px;
    padding: 0 28px;
    border-radius: 999px;
    background: #1d7ef2;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    transition:
            background 0.2s ease,
            transform 0.2s ease;
}

.feedback__window-button:hover,
.feedback__window-button:focus-visible {
    background: #328cf5;
}

.feedback__window-button:active {
    transform: translateY(1px);
}

.feedback__window-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f4f6fa;
    color: #101114;
    cursor: pointer;
    transition:
            background 0.2s ease,
            color 0.2s ease;
}

.feedback__window-close:hover,
.feedback__window-close:focus-visible {
    background: #e9edf4;
    color: #1d7ef2;
}

.window_close {
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 17, 20, 0.42);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
}

.window_close.window_close--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1270px) {
    .contacts-hero__grid,
    .contacts-info__grid,
    .contacts-feedback__grid {
        gap: 40px;
    }

    .contacts-card {
        padding: 32px;
    }

    .contacts-card__inner {
        margin-left: 0;
    }

    .contacts-card__phone {
        font-size: 21px;
    }

    .contacts-card__emails {
        grid-template-columns: 1fr;
    }

    .contacts-address {
        grid-template-columns: 150px 1fr;
    }

    .contacts-requisites {
        max-width: 100%;
        padding-left: 0;
    }

    .contacts-feedback__panel {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}

/* =========================================================
   MOBILE / TABLET PORTRAIT
   ========================================================= */

@media (max-width: 855px) {
    .contacts-page.container {
        padding-top: 112px;
    }

    .contacts-hero {
        max-width: none;
        padding: 0;
    }

    .contacts-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-hero__title {
        max-width: 10ch;
    }

    .contacts-hero__text {
        font-size: 17px;
    }

    .contacts-info {
        margin-top: 72px;
    }

    .contacts-info__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacts-map {
        height: 360px;
        aspect-ratio: auto;
    }

    .contacts-requisites {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacts-feedback {
        margin-top: 72px;
    }

    .contacts-feedback__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-feedback__title {
        max-width: 18ch;
    }

    .contacts-feedback__text {
        max-width: 48ch;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {
    .contacts-page.container {
        padding-top: 104px;
    }

    .contacts-hero__title {
        font-size: clamp(38px, 11vw, 56px);
    }

    .contacts-info {
        margin-top: 64px;
    }

    .contacts-card {
        padding: 28px;
        border-radius: 22px;
    }

    .contacts-card__phone {
        font-size: 20px;
        white-space: normal;
    }

    .contacts-address {
        grid-template-columns: 130px 1fr;
        gap: 20px;
    }

    .contacts-address__value {
        font-size: 16px;
    }

    .contacts-requisites {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .contacts-requisites__item:first-child {
        grid-column: 1 / -1;
    }

    .contacts-feedback {
        margin-top: 64px;
    }

    .contacts-feedback__panel {
        padding: 40px 28px;
        border-radius: 24px;
    }

    .contacts-form__row {
        grid-template-columns: 1fr;
    }

    .feedback__window {
        width: calc(100% - 30px);
        padding: 36px 28px;
        border-radius: 22px;
    }

    .feedback__window-title {
        font-size: 28px;
    }

    .feedback__window-text {
        font-size: 16px;
    }

    .feedback__window-button {
        width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 479px) {
    .contacts-page.container {
        padding-top: 92px;
    }

    .contacts-hero__title {
        font-size: 36px;
        line-height: 1.04;
    }

    .contacts-hero__lead {
        font-size: 21px;
    }

    .contacts-hero__text {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.6;
    }

    .contacts-info {
        margin-top: 52px;
    }

    .contacts-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .contacts-card__phone {
        font-size: 18px;
    }

    .contacts-card__messenger {
        height: 42px;
        padding: 0 16px;
        font-size: 14px;
    }

    .contacts-card__emails {
        margin-top: 28px;
        padding-top: 28px;
    }

    .contacts-card__email a {
        font-size: 16px;
    }

    .contacts-addresses__title {
        font-size: 28px;
    }

    .contacts-addresses__list {
        margin-top: 24px;
    }

    .contacts-address {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .contacts-address__label {
        padding-top: 0;
    }

    .contacts-map {
        height: 300px;
        margin-top: 24px;
        border-radius: 18px;
    }

    .contacts-map__expand {
        top: 12px;
        right: 12px;
    }

    .contacts-requisites {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 28px;
    }

    .contacts-requisites__item:first-child {
        grid-column: auto;
    }

    .contacts-feedback {
        margin-top: 52px;
    }

    .contacts-feedback__panel {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .contacts-feedback__grid {
        gap: 32px;
    }

    .contacts-feedback__title {
        font-size: 30px;
    }

    .contacts-feedback__text {
        margin-top: 18px;
        font-size: 15px;
    }

    .contacts-form {
        gap: 20px;
    }

    .contacts-form__row {
        gap: 20px;
    }

    .contacts-form__control {
        height: 52px;
        padding-right: 16px;
        padding-left: 16px;
        font-size: 15px;
    }

    .contacts-form__textarea {
        min-height: 140px;
        height: auto;
    }

    .contacts-form__submit {
        width: 100%;
        justify-content: space-between;
        height: 54px;
        padding: 0 24px;
        font-size: 16px;
    }

    .contacts-success__title {
        padding-right: 20px;
        font-size: 27px;
    }

    .contacts-success__button {
        width: 100%;
    }

    .feedback__window {
        padding: 32px 20px 24px;
        border-radius: 20px;
    }

    .feedback__window-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .feedback__window-title {
        padding-right: 36px;
        font-size: 26px;
    }

    .feedback__window-text {
        margin-top: 16px;
        font-size: 15px;
    }

    .feedback__window-button {
        min-height: 50px;
        margin-top: 24px;
    }
}



