/* ========================================
   ТЕКСТОВЫЕ / ЮРИДИЧЕСКИЕ СТРАНИЦЫ
======================================== */

.legal-page {
    width: 100%;

    padding: 55px 24px 70px;

    background:
        linear-gradient(
            180deg,
            #f5f2ef 0%,
            #efebe7 100%
        );

    box-sizing: border-box;

    font-family: "Manrope", Arial, sans-serif;
}


/* ========================================
   КОНТЕЙНЕР
======================================== */

.legal-page__container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}


/* ========================================
   БЕЛЫЙ БЛОК
======================================== */

.legal-page__content {
    width: 100%;

    padding: 48px 55px 55px;

    box-sizing: border-box;

    background:
        rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.95);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(40, 32, 25, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    color: #4f4b47;

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

    overflow-wrap: break-word;
}


/* ========================================
   ПЕРВЫЙ ЗАГОЛОВОК
======================================== */

.legal-page__content > h1:first-child,
.legal-page__content > h2:first-child,
.legal-page__content > h3:first-child {
    margin-top: 0;
}


/* H1 */

.legal-page__content h1 {
    position: relative;

    margin:
        0
        0
        32px;

    padding-bottom: 20px;

    color: #1d1c1b;

    font-size: 34px;
    line-height: 1.25;

    font-weight: 600;

    letter-spacing: -0.8px;
}


/* Золотая линия под H1 */

.legal-page__content h1::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 70px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #a56f45,
            #c39165
        );

    border-radius: 10px;
}


/* ========================================
   H2
======================================== */

.legal-page__content h2 {
    margin:
        42px
        0
        18px;

    color: #252321;

    font-size: 25px;
    line-height: 1.3;

    font-weight: 600;

    letter-spacing: -0.4px;
}


/* ========================================
   H3
======================================== */

.legal-page__content h3 {
    margin:
        32px
        0
        14px;

    color: #312e2b;

    font-size: 19px;
    line-height: 1.35;

    font-weight: 600;
}


/* ========================================
   АБЗАЦЫ
======================================== */

.legal-page__content p {
    margin:
        0
        0
        18px;

    color: #57534f;

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


/* ========================================
   ЖИРНЫЙ ТЕКСТ
======================================== */

.legal-page__content strong,
.legal-page__content b {
    color: #302d2a;

    font-weight: 600;
}


/* ========================================
   ССЫЛКИ
======================================== */

.legal-page__content a {
    color: #9d6a43;

    text-decoration: underline;

    text-decoration-color: rgba(157, 106, 67, 0.4);
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.legal-page__content a:hover {
    color: #754729;

    text-decoration-color: #754729;
}


/* ========================================
   СПИСКИ
======================================== */

.legal-page__content ul,
.legal-page__content ol {
    margin:
        18px
        0
        24px;

    padding-left: 26px;
}

.legal-page__content li {
    margin-bottom: 10px;

    padding-left: 4px;

    color: #57534f;

    line-height: 1.7;
}


/* Маркеры */

.legal-page__content ul li::marker {
    color: #a9744c;
}

.legal-page__content ol li::marker {
    color: #94613d;

    font-weight: 600;
}


/* ========================================
   ГОРИЗОНТАЛЬНАЯ ЛИНИЯ
======================================== */

.legal-page__content hr {
    height: 1px;

    margin:
        35px
        0;

    border: 0;

    background:
        linear-gradient(
            90deg,
            rgba(167, 117, 78, 0.35),
            rgba(167, 117, 78, 0.08)
        );
}


/* ========================================
   ЦИТАТЫ / ВАЖНЫЕ БЛОКИ
======================================== */

.legal-page__content blockquote {
    margin:
        28px
        0;

    padding:
        20px
        24px;

    background: #f2ece7;

    border-left: 3px solid #aa774f;

    border-radius:
        0
        10px
        10px
        0;

    color: #55504c;
}


/* ========================================
   ТАБЛИЦЫ
======================================== */

.legal-page__content table {
    width: 100%;

    margin:
        28px
        0;

    border-collapse: collapse;

    background: rgba(255,255,255,0.5);

    border-radius: 10px;

    overflow: hidden;
}

.legal-page__content th,
.legal-page__content td {
    padding: 14px 16px;

    border: 1px solid #e3ddd7;

    text-align: left;

    vertical-align: top;
}

.legal-page__content th {
    background: #ede6e0;

    color: #302d2a;

    font-weight: 600;
}

.legal-page__content td {
    color: #5b5753;
}


/* ========================================
   ИЗОБРАЖЕНИЯ
======================================== */

.legal-page__content img {
    max-width: 100%;
    height: auto;

    margin:
        20px
        0;

    border-radius: 10px;
}


/* ========================================
   IFRAME / ВИДЕО
======================================== */

.legal-page__content iframe {
    max-width: 100%;

    border: 0;

    border-radius: 10px;
}


/* ========================================
   ДЛИННЫЕ URL / СТРОКИ
======================================== */

.legal-page__content {
    word-break: normal;
}

.legal-page__content a,
.legal-page__content td {
    overflow-wrap: anywhere;
}


/* ========================================
   ПЛАНШЕТ
======================================== */

@media (max-width: 900px) {

    .legal-page {
        padding:
            40px
            20px
            55px;
    }

    .legal-page__content {
        padding:
            38px
            36px
            44px;

        border-radius: 15px;
    }

    .legal-page__content h1 {
        font-size: 30px;
    }

    .legal-page__content h2 {
        font-size: 23px;
    }

}


/* ========================================
   МОБИЛЬНЫЕ
======================================== */

@media (max-width: 600px) {

    .legal-page {
        padding:
            24px
            12px
            40px;
    }

    .legal-page__content {
        padding:
            27px
            20px
            32px;

        border-radius: 12px;

        font-size: 14px;
        line-height: 1.7;
    }

    .legal-page__content h1 {
        margin-bottom: 25px;

        padding-bottom: 16px;

        font-size: 26px;
        line-height: 1.25;

        letter-spacing: -0.4px;
    }

    .legal-page__content h1::after {
        width: 55px;
    }

    .legal-page__content h2 {
        margin-top: 34px;

        font-size: 21px;
    }

    .legal-page__content h3 {
        margin-top: 27px;

        font-size: 18px;
    }

    .legal-page__content p {
        margin-bottom: 16px;

        font-size: 14px;
        line-height: 1.7;
    }

    .legal-page__content ul,
    .legal-page__content ol {
        padding-left: 21px;
    }

    .legal-page__content li {
        margin-bottom: 9px;

        padding-left: 1px;

        font-size: 14px;
    }


    /* Таблица получает горизонтальный скролл */

    .legal-page__content table {
        display: block;

        width: 100%;

        overflow-x: auto;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

}


/* ========================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
======================================== */

@media (max-width: 380px) {

    .legal-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .legal-page__content {
        padding:
            23px
            16px
            28px;
    }

    .legal-page__content h1 {
        font-size: 23px;
    }

}


/* ========================================
   MODAL
======================================== */

.consultation-modal {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* Открытое окно */

.consultation-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Затемнение */

.consultation-modal__overlay {
    position: absolute;

    inset: 0;

    background: rgba(8, 9, 10, 0.78);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Само окно */

.consultation-modal__dialog {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 760px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 34px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #f7f4f1 0%,
            #efebe7 100%
        );

    border: 1px solid rgba(255,255,255,0.85);

    border-radius: 18px;

    box-shadow:
        0 30px 90px rgba(0,0,0,0.35);

    transform:
        translateY(20px)
        scale(0.98);

    transition: transform 0.25s ease;
}


.consultation-modal.is-open .consultation-modal__dialog {
    transform:
        translateY(0)
        scale(1);
}


/* ========================================
   КРЕСТИК
======================================== */

.consultation-modal__close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid rgba(137,105,79,0.20);
    border-radius: 50%;

    background: rgba(255,255,255,0.65);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.consultation-modal__close:hover {
    background: #ffffff;
    transform: rotate(5deg);
}


.consultation-modal__close span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 16px;
    height: 1.5px;

    background: #594f47;
}


.consultation-modal__close span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.consultation-modal__close span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* ========================================
   ШАПКА MODAL
======================================== */

.consultation-modal__head {
    margin-bottom: 24px;

    padding-right: 45px;
}


.consultation-modal__label {
    margin-bottom: 8px;

    color: #a37450;

    font-size: 10px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 0.05em;
}


.consultation-modal__title {
    margin: 0;

    color: #1c1b1a;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 500;

    letter-spacing: -0.6px;
}


.consultation-modal__description {
    max-width: 520px;

    margin: 12px 0 0;

    color: #67615c;

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


/* ========================================
   ФОРМА В MODAL
======================================== */

.consultation-modal__form .contacts__form-wrap {
    width: 100%;
}


.consultation-modal__form .contacts-form {
    min-height: auto;

    padding: 0;

    background: transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;
}


/* Запрещаем прокрутку страницы */

body.modal-open {
    overflow: hidden;
}


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

@media (max-width: 650px) {

    .consultation-modal {
        padding: 10px;
    }


    .consultation-modal__dialog {
        max-height: calc(100vh - 20px);

        padding:
            28px
            16px
            20px;

        border-radius: 14px;
    }


    .consultation-modal__close {
        top: 12px;
        right: 12px;

        width: 34px;
        height: 34px;
    }


    .consultation-modal__head {
        margin-bottom: 20px;

        padding-right: 35px;
    }


    .consultation-modal__title {
        font-size: 25px;
    }


    .consultation-modal__description {
        font-size: 11px;
    }


    .consultation-modal__form .contacts-form__row {
        grid-template-columns: 1fr;
    }

}


/* ==============================================
   CONTACTS PAGE
============================================== */

.contacts-page {
    background: #f6f2ef;
    color: #171717;
}


/* ==============================================
   CONTAINER
============================================== */

.contacts-page__container {
    width: calc(100% - 48px);
    max-width: 1320px;
    margin: 0 auto;
}


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

.contacts-page__hero {
    padding: 90px 0 70px;
}

.contacts-page__heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.contacts-page__label {
    margin-bottom: 14px;

    color: #a87650;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.contacts-page__title {
    margin: 0 0 22px;

    color: #171717;

    font-size: clamp(46px, 5vw, 68px);
    line-height: 1.04;
    font-weight: 700;

    letter-spacing: -.045em;
}

.contacts-page__lead {
    max-width: 660px;

    margin: 0;

    color: #6b6560;

    font-size: 18px;
    line-height: 1.7;
}


/* ==============================================
   CONTACT CARDS
============================================== */

.contacts-page__cards {
    display: grid;

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

    gap: 20px;
}

.contacts-page__card {
    display: flex;
    align-items: center;

    min-height: 125px;

    padding: 26px 28px;

    border: 1px solid rgba(32, 25, 20, .08);
    border-radius: 20px;

    background: #fff;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 10px 35px rgba(35, 27, 22, .04);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

a.contacts-page__card:hover {
    transform: translateY(-4px);

    border-color: rgba(168, 118, 80, .3);

    box-shadow:
        0 18px 40px rgba(35, 27, 22, .08);
}


/* Icon */

.contacts-page__card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    margin-right: 20px;

    border-radius: 50%;

    background: #f4ece5;
}

.contacts-page__card-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: #a87650;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Content */

.contacts-page__card-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.contacts-page__card-label {
    margin-bottom: 5px;

    color: #a87650;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.contacts-page__card-content strong {
    color: #171717;

    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
}

.contacts-page__card-content small {
    margin-top: 5px;

    color: #77706a;

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


/* Arrow */

.contacts-page__card-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    margin-left: auto;

    border: 1px solid rgba(168, 118, 80, .35);
    border-radius: 50%;

    color: #a87650;

    font-size: 17px;

    transition: .3s ease;
}

a.contacts-page__card:hover
.contacts-page__card-arrow {
    background: #a87650;

    color: #fff;
}


/* ==============================================
   FEEDBACK BLOCK
============================================== */

.contacts-page__feedback {
    padding: 30px 0 80px;
}

.contacts-page__feedback-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);

    overflow: hidden;

    border-radius: 28px;

    background: #fff;

    box-shadow:
        0 18px 55px rgba(35, 27, 22, .06);
}


/* Left */

.contacts-page__feedback-info {
    position: relative;

    overflow: hidden;

    padding: 58px 54px;

    background: #f0e8e2;
}

.contacts-page__feedback-info h2 {
    position: relative;
    z-index: 2;

    max-width: 420px;

    margin: 0 0 20px;

    color: #171717;

    font-size: 40px;
    line-height: 1.12;

    letter-spacing: -.035em;
}

.contacts-page__feedback-info p {
    position: relative;
    z-index: 2;

    max-width: 440px;

    margin: 0;

    color: #625c57;

    font-size: 16px;
    line-height: 1.7;
}

.contacts-page__decor {
    position: absolute;

    right: -60px;
    bottom: -80px;

    width: 350px;

    opacity: .055;

    pointer-events: none;
}


/* Notice */

.contacts-page__notice {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    max-width: 430px;

    margin-top: 35px;
    padding-top: 26px;

    border-top:
        1px solid rgba(25, 20, 16, .1);

    color: #68615b;

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

.contacts-page__notice-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    border-radius: 50%;

    background: #a87650;

    color: #fff;

    font-size: 13px;
}


/* ==============================================
   AJAX FORM
============================================== */

.contacts-page__form {
    padding: 42px;

    background: #fff;
}

/*
 Если твой чанк contact-form уже стилизован,
 нижние правила можно не добавлять.
 */

.contacts-page__form input,
.contacts-page__form textarea {
    box-sizing: border-box;
}


/* ==============================================
   MAP
============================================== */

.contacts-page__map {
    padding: 0 0 100px;
}

.contacts-page__map-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 30px;
}

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

    color: #171717;

    font-size: 38px;
    line-height: 1.15;

    letter-spacing: -.035em;
}

.contacts-page__map-address {
    color: #716a65;

    font-size: 14px;
    line-height: 1.6;

    text-align: right;
}

.contacts-page__map-box {
    width: 100%;
    height: 440px;

    overflow: hidden;

    border-radius: 26px;

    background: #e8e3df;

    box-shadow:
        0 16px 45px rgba(30, 24, 20, .06);
}

.contacts-page__map-box iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


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

@media (max-width: 950px) {

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

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

    .contacts-page__feedback-info {
        padding: 45px 40px;
    }

}


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

@media (max-width: 650px) {

    .contacts-page__container {
        width: calc(100% - 28px);
    }

    .contacts-page__hero {
        padding: 55px 0 45px;
    }

    .contacts-page__heading {
        margin-bottom: 32px;
    }

    .contacts-page__title {
        font-size: 40px;
    }

    .contacts-page__lead {
        font-size: 16px;
    }

    .contacts-page__card {
        min-height: auto;

        padding: 20px;
    }

    .contacts-page__card-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        margin-right: 15px;
    }

    .contacts-page__card-content strong {
        font-size: 16px;
    }

    .contacts-page__card-arrow {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }


    /* Feedback */

    .contacts-page__feedback {
        padding-bottom: 60px;
    }

    .contacts-page__feedback-info {
        padding: 36px 24px;
    }

    .contacts-page__feedback-info h2 {
        font-size: 31px;
    }

    .contacts-page__form {
        padding: 24px;
    }


    /* Map */

    .contacts-page__map {
        padding-bottom: 70px;
    }

    .contacts-page__map-head {
        display: block;
    }

    .contacts-page__map-head h2 {
        font-size: 31px;
    }

    .contacts-page__map-address {
        margin-top: 16px;

        text-align: left;
    }

    .contacts-page__map-box {
        height: 360px;

        border-radius: 20px;
    }

}