/* CONTACT */
.contact-page-head {
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.contact-page-head picture {
    display: block;
    /* важно для Safari/iPad */
}

.contact-page-head picture,
.contact-page-head img {
    display: block;
    width: 100%;
    height: calc(100vh - var(--content-top-mobile));
    /* fallback */
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* Мобильные/тач-устройства: стабильная высота без скачков */
/* На мобильных вместо dvh -> svh, чтобы убрать скачки */
@supports (height: 100svh) {
    @media (hover: none) and (pointer: coarse) {

        .contact-page-head picture,
        .contact-page-head img {
            height: calc(100svh - var(--content-top-mobile));
        }
    }
}

/* Десктоп */
@media (min-width: 992px) {

    .contact-page-head picture,
    .contact-page-head img {
        height: calc(100vh - var(--content-top-desktop));
    }

    /* Десктопные тач-устройства / крупные планшеты */
    @supports (height: 100svh) {
        @media (hover: none) and (pointer: coarse) {

            .contact-page-head picture,
            .contact-page-head img {
                height: calc(100svh - var(--content-top-desktop));
            }
        }
    }
}

/* Планшеты в портрете (включая 600px ширину типа Nexus 7) */
@media (min-width: 600px) and (max-width: 1032px) and (orientation: portrait) {

    .contact-page-head picture,
    .contact-page-head img {
        height: min(calc(100svh - var(--content-top-mobile)), 620px);
    }

    /* при необходимости — смещаем фокус кадра */
    .contact-page-head img {
        object-position: 30% center;
    }
}

.contact-page {
    position: absolute;
    /* Абсолютное позиционирование для.overlay-content */
    top: clamp(18%, 32%, 50%);
    left: clamp(1rem, 6vw, 11%);
    transform: translate(0, -60%);
    /* Центрирование блока */
    z-index: 10;
    color: floralwhite;
    text-align: left;
    text-wrap: balance;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    word-wrap: break-word;
    color: floralwhite;
    text-shadow: 2px 2px 6px rgb(0, 0, 0);
}

.contact-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
    word-wrap: break-word;
    text-shadow: 2px 2px 6px rgb(0, 0, 0);
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 3.125rem;
    }

    .contact-text {
        font-size: 1.375rem;
    }
}

@media (max-width: 576px) {
    .contact-page {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -60%);
        text-align: center;
    }
}

@media (max-width: 570px) and (max-height: 320px) {
    .contact-page {
        top: 13%;
    }

    .contact-title {
        font-size: 2.8125rem;
    }

    .contact-text {
        margin-top: 0.5625rem;
        font-size: 1.25rem;
    }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
    .contact-page {
        top: 15%;
    }
}

.right-side-form {
    background: #f7f6f1;
    height: auto;
    position: absolute;
    /* Абсолютное позиционирование для.overlay-content */
    top: calc(100% + 2rem);
    /* Позиционирование по вертикали */
    left: 54%;
    /* Позиционирование по горизонтали */
    width: 48%;
    max-width: 1880px;
    transform: translate(-10%, -40%);
    /* Центрирование блока */
    z-index: 10;
    /* блок находится поверх изображения */
    color: black;
    text-align: left;
    text-wrap: balance;
    padding: 3.75rem 1.875rem 0.9375rem 1.875rem;
    /* 60px 30px 15px 30px */
    border-radius: 16px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .12);
}

.messagefrmcustomer {
    margin-bottom: 1rem;
    padding-left: 0.625rem;
    padding-bottom: 1.25rem;
    font-size: 1.25rem;
    color: #5c5c5e;
}

.contact-checkout-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.contact-form-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #767b80;
}

.contact-privacy-check input[type="checkbox"] {
    margin-top: 0.4rem;
}

.privacy-link {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.button-contact-page {
    background-color: var(--color-accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #fff;
    padding: 0.625rem 1.25rem;
    /* Отступы для кнопки */
    border: none;
    /* Без рамки */
    border-radius: 0.3125rem;
    cursor: pointer;
    /* Курсор в виде руки при наведении */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Плавные переходы для фона и текста */
}

.button-contact-page:hover {
    background-color: #658c0d;
    /* Цвет фона при наведении */
    color: #fff;
    /* Цвет текста при наведении */
}

.custom-button-contact-page:active {
    background-color: var(--color-accent);
    /* Цвет фона при нажатии */
    color: #fff;
    /* Цвет текста при нажатии */
    box-shadow: none;
    /* Убираем эффект тени */
}

.custom-button-contact-page:focus {
    outline: none;
    /* Убираем стандартное выделение при фокусе */
}

@media (max-width: 1133px) {
    .right-side-form {
        top: 0px;
        left: 0%;
        position: relative;
        transform: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 3.125rem 0.5rem 1.25rem 0.5rem;
        /* Убираем отступы для предотвращения выхода за экран */
    }

    .right-side-form .row {
        margin: 0;
        margin-bottom: 1.25rem !important;
    }

    .right-side-form .row .col-md-12 {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .right-side-form-col {
        flex-basis: 100%;
        margin-bottom: 1.5625rem;
        /* на малых экранах поля будут располагаться в один столбик */
    }
}

@media (max-width: 414px) {
    .right-side-form-col {
        margin-bottom: 1.5625rem;
    }

    .button-contact-page {
        width: 100%;
        /* Кнопка занимает всю ширину */
        padding: 0.625rem;
    }
}


.contact-page-middle {
    padding-top: 7.5rem !important;
    padding-bottom: 7.5rem !important;
}

.contact-page-middle h3 {
    font-weight: 600;
}

.our-phones,
.our-email,
.our-adress {
    color: #58585a;
    margin-bottom: 1.5rem;
}

.contact-phone-list {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-phone-list>i {
    flex: 0 0 auto;
    width: 1.1em;
    margin: 0;
    text-align: center;
}

.contact-phone-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1rem;
}

.contact-phone-links a,
.our-email a {
    color: #58585a;
    text-decoration: none;
    transition: color .15s ease;
}

.contact-phone-links a {
    display: inline-block;
    white-space: nowrap;
}

.contact-phone-links a:hover,
.contact-phone-links a:focus-visible,
.our-email a:hover,
.our-email a:focus-visible {
    color: var(--color-brand);
}

.our-adress h5 {
    text-wrap: balance;
}

.our-phones i,
.our-email i,
.our-adress i {
    color: var(--color-brand);
}


@media (max-width: 1199px) {
    .contact-page-middle {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .right-side-text .col {
        flex-basis: 100%;
        text-align: left;
    }
}

@media (max-width: 430px) {
    .contact-page-middle {
        margin-top: 2.5rem;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Колонки в одну строку на узких экранах */
    .right-side-text .col {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 1.25rem;
        /* Отступ между колонками */
    }

    .contact-phone-list {
        align-items: center;
    }

    .contact-phone-links {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
    }

    .contact-phone-links a {
        padding: .1rem .25rem;
    }
}

.yandex-map-shell {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.yandex-map {
    width: 100%;
    height: 400px;
}

.yandex-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 400px;
    padding: 2rem;

    background: #f4f4f4;
    border: 1px solid #d9d9d9;
    border-radius: .75rem;
    text-align: center;
}

.yandex-map-placeholder__content {
    max-width: 620px;
}

.yandex-map-placeholder__content .btn {
    margin: .25rem;
}

.yandex-map-placeholder__status {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-size: .9rem;
}

@media (max-width: 575.98px) {
    .yandex-map-placeholder {
        padding: 1.5rem 1rem;
    }

    .yandex-map-placeholder__content .btn {
        display: block;
        width: 100%;
        margin: .5rem 0;
    }
}