


/* ---------------------------------------------------------
   Модальное окно сообщения об ошибке
--------------------------------------------------------- */

#error-report-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.6);

    z-index: 99999;

    justify-content: center;
    align-items: center;

    padding: 20px;

    box-sizing: border-box;
}

#error-report-modal.active {
    display: flex;
}


.error-modal-box {
    position: relative;

    width: 100%;
    max-width: 430px;

    padding: 22px 25px;

    box-sizing: border-box;

    background: #fff;

    border-radius: 10px;

    box-shadow:
        0 4px 20px rgba(0,0,0,.3);

    text-align: left;

    font-family: Arial, sans-serif;
}


.error-modal-box h3 {
    margin: 0 0 10px;

    color: #333;

    font-size: 19px;
}


.error-modal-box p {
    margin: 0 0 12px;

    color: #555;

    font-size: 14px;

    line-height: 1.5;
}


.error-selected {
    margin: 10px 0 14px;

    padding: 9px 10px;

    background: #f6f6f6;

    border-left: 3px solid #ff6600;

    color: #444;

    font-size: 14px;

    font-style: italic;

    white-space: pre-line;

    max-height: 150px;

    overflow-y: auto;
}


.error-modal-box label {
    display: block;

    margin-bottom: 5px;

    color: #444;

    font-size: 14px;
}


.error-modal-box textarea {
    width: 100%;

    min-height: 80px;

    margin-top: 3px;

    padding: 9px;

    box-sizing: border-box;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-family: Arial, sans-serif;

    font-size: 14px;

    resize: vertical;
}


.error-modal-box button {
    margin-top: 10px;

    padding: 9px 15px;

    background: #ff6600;

    color: #fff;

    border: 0;

    border-radius: 6px;

    font-weight: bold;

    cursor: pointer;
}


.error-modal-box button:hover {
    background: #e05500;
}


.error-modal-box button:disabled {
    opacity: .7;

    cursor: wait;
}


.error-close {
    position: absolute;

    top: 8px;
    right: 12px;

    margin: 0 !important;
    padding: 2px 6px !important;

    background: none !important;

    border: none !important;

    color: #777 !important;

    font-size: 24px !important;

    cursor: pointer;
}


.error-close:hover {
    color: #222 !important;
}


/* ---------------------------------------------------------
   Подсказка
--------------------------------------------------------- */

.error-report-hint {
    margin: 30px 0;

    color: #777;

    font-size: 14px;

    text-align: center;
}


.error-report-hint strong {
    color: #555;
}


/* ---------------------------------------------------------
   Мобильные
--------------------------------------------------------- */

@media (max-width: 600px) {

    #copyProtect {
        bottom: 20px;

        font-size: 13px;
    }

    #error-report-modal {
        padding: 12px;
    }

    .error-modal-box {
        padding: 20px;
    }

}





body,
body * {
    user-select: text !important;
    -webkit-user-select: text !important;
}






#error-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#error-report-modal.active {
    display: flex;
}

.error-modal-box {
    background: #fff;
    padding: 22px 25px;
    border-radius: 10px;
    max-width: 430px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    text-align: left;
    position: relative;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.error-modal-box h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 19px;
}

.error-modal-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.error-selected {
    background: #f6f6f6;
    padding: 9px 10px;
    border-left: 3px solid #ff6600;
    margin: 10px 0 14px;
    font-style: italic;
    color: #444;
    white-space: pre-line;
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
}

.error-modal-box label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-size: 14px;
}

.error-modal-box textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 3px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 9px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.error-modal-box button {
    margin-top: 10px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 15px;
    font-weight: bold;
    cursor: pointer;
}

.error-modal-box button:hover {
    background-color: #e05500;
}

.error-modal-box button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.error-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #777 !important;
    cursor: pointer;
    padding: 2px 6px !important;
    margin: 0 !important;
}

.error-close:hover {
    color: #222 !important;
}


/* Нижняя подсказка */

.error-report-hint {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin: 30px 0;
}

.error-report-hint strong {
    color: #555;
}


/* Блок информации */

.site-development-notice {
    margin: 35px auto;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-development-notice__inner {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px 22px;
    color: #555;
    line-height: 1.6;
}

.site-development-notice__title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.site-development-notice__inner p {
    margin: 8px 0;
    font-size: 14px;
}

.site-development-notice__small {
    color: #777;
    font-size: 13px !important;
}







/* =========================================================
   DOCUMENT VIEWER
========================================================= */

.legal-viewer {
    margin-top: 32px;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow:
        0 10px 35px rgba(20, 20, 20, 0.05);
}


/* ---------------------------------------------------------
   Верхняя панель просмотрщика
--------------------------------------------------------- */

.legal-viewer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 58px;
    padding: 0 22px;

    border-bottom: 1px solid #ececec;
    background: #fafafa;

    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.legal-viewer-scroll {
    color: #8a8a8a;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Область документа
--------------------------------------------------------- */

.legal-viewer-content {
    position: relative;

    height: 720px;
    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.025),
            transparent 32px,
            transparent calc(100% - 32px),
            rgba(0, 0, 0, 0.025)
        ),
        #f8f8f6;

    scroll-behavior: smooth;

    scrollbar-width: thin;
    scrollbar-color: #c8c8c8 transparent;
}


/* Chrome / Safari / Edge */

.legal-viewer-content::-webkit-scrollbar {
    width: 10px;
}

.legal-viewer-content::-webkit-scrollbar-track {
    background: transparent;
}

.legal-viewer-content::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 20px;
    border: 3px solid #f8f8f6;
}

.legal-viewer-content::-webkit-scrollbar-thumb:hover {
    background: #a9a9a9;
}


/* ---------------------------------------------------------
   Сам текст договора
--------------------------------------------------------- */

.legal-content {
    width: min(820px, calc(100% - 48px));

    margin: 32px auto 60px;
    padding: 58px 68px;

    background: #fff;

    box-shadow:
        0 3px 18px rgba(0, 0, 0, 0.055);

    border: 1px solid #eeeeee;

    color: #262626;

    font-size: 15px;
    line-height: 1.75;
}


/* Заголовки договора */

.legal-content h4 {
    margin: 38px 0 14px;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;

    color: #151515;

    scroll-margin-top: 25px;
}

.legal-content h4:first-child {
    margin-top: 0;
}


/* Абзацы */

.legal-content p {
    margin: 0 0 16px;
}


/* Списки */

.legal-content ul,
.legal-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.legal-content li {
    margin-bottom: 8px;
}


/* Ссылки внутри документа */

.legal-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   Подсказка внизу
--------------------------------------------------------- */

.legal-viewer-content::after {
    content: "";

    display: block;

    position: sticky;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 35px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(248, 248, 246, 0),
            rgba(248, 248, 246, 0.9)
        );
}


/* ---------------------------------------------------------
   Кнопки документа
--------------------------------------------------------- */

.legal-document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 10px;

    padding: 20px 0 0;
}


.document-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    border: 1px solid #dedede;
    border-radius: 12px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.document-action:hover {
    border-color: #c8c8c8;
    background: #f7f7f7;

    transform: translateY(-1px);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.06);
}


.document-action-primary {
    border-color: #191919;
    background: #191919;
    color: #fff;
}


.document-action-primary:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}


/* =========================================================
   FULLSCREEN DOCUMENT MODAL
========================================================= */

.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(12, 12, 12, 0.72);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.offer-modal.is-open {
    opacity: 1;
    visibility: visible;
}


/* ---------------------------------------------------------
   Окно
--------------------------------------------------------- */

.offer-modal-dialog {
    display: flex;
    flex-direction: column;

    width: min(1120px, 100%);
    height: min(92vh, 1100px);

    background: #f7f7f5;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.28);

    transform: translateY(18px) scale(0.985);

    transition:
        transform 0.25s ease;
}


.offer-modal.is-open .offer-modal-dialog {
    transform: translateY(0) scale(1);
}


/* ---------------------------------------------------------
   Шапка полноэкранного документа
--------------------------------------------------------- */

.offer-modal-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 68px;
    padding: 0 24px;

    background: #fff;

    border-bottom: 1px solid #e7e7e7;
}


.offer-modal-title {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}


.offer-modal-title strong {
    font-size: 14px;
    line-height: 1.3;

    color: #151515;
}


.offer-modal-title span {
    font-size: 12px;
    color: #888;
}


.offer-modal-close {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f1f1f1;
    color: #333;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.offer-modal-close:hover {
    background: #e6e6e6;
    transform: rotate(4deg);
}


/* ---------------------------------------------------------
   Область полного документа
--------------------------------------------------------- */

.offer-modal-body {
    flex: 1 1 auto;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 38px 20px 70px;

    scroll-behavior: smooth;

    scrollbar-width: thin;
    scrollbar-color: #bdbdbd transparent;
}


.offer-modal-body::-webkit-scrollbar {
    width: 11px;
}

.offer-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.offer-modal-body::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
    border: 3px solid #f7f7f5;
}


/* Документ внутри модального окна */

.offer-modal-document {
    width: min(850px, 100%);

    margin: 0 auto;

    padding: 65px 75px;

    background: #fff;

    border: 1px solid #e8e8e8;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.05);

    color: #262626;

    font-size: 15px;
    line-height: 1.78;
}


.offer-modal-document h4 {
    margin: 38px 0 14px;

    font-size: 18px;
    line-height: 1.4;

    color: #151515;

    scroll-margin-top: 20px;
}


.offer-modal-document h4:first-child {
    margin-top: 0;
}


.offer-modal-document p {
    margin: 0 0 16px;
}


.offer-modal-document ul,
.offer-modal-document ol {
    margin: 0 0 20px;
    padding-left: 28px;
}


.offer-modal-document li {
    margin-bottom: 8px;
}


/* ---------------------------------------------------------
   Блокировка прокрутки основной страницы
--------------------------------------------------------- */

body.offer-modal-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .legal-viewer-top {
        min-height: 54px;
        padding: 0 16px;

        font-size: 12px;
    }


    .legal-viewer-scroll {
        display: none;
    }


    .legal-viewer-content {
        height: 560px;
    }


    .legal-content {
        width: calc(100% - 24px);

        margin: 16px auto 40px;

        padding: 32px 22px;

        font-size: 14px;
        line-height: 1.7;
    }


    .legal-content h4 {
        font-size: 17px;
    }


    .legal-document-actions {
        justify-content: stretch;
    }


    .document-action {
        flex: 1 1 100%;
        width: 100%;
    }


    .offer-modal {
        padding: 0;
    }


    .offer-modal-dialog {
        width: 100%;
        height: 100vh;

        border-radius: 0;
    }


    .offer-modal-header {
        min-height: 60px;
        padding: 0 16px;
    }


    .offer-modal-body {
        padding: 20px 10px 50px;
    }


    .offer-modal-document {
        width: 100%;

        padding: 38px 22px;

        font-size: 14px;
        line-height: 1.7;

        box-shadow: none;
    }


    .offer-modal-document h4 {
        font-size: 17px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-viewer-content,
    .offer-modal-body {
        scroll-behavior: auto;
    }

    .offer-modal,
    .offer-modal-dialog,
    .document-action,
    .offer-modal-close {
        transition: none;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    @page {
        margin: 20mm 17mm;
    }


    body.printing-offer * {
        visibility: hidden !important;
    }


    body.printing-offer #offer-text,
    body.printing-offer #offer-text * {
        visibility: visible !important;
    }


    body.printing-offer #offer-text {
        position: absolute !important;

        left: 0 !important;
        top: 0 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;

        box-shadow: none !important;
        border: 0 !important;
    }


    body.printing-offer .legal-viewer {
        margin: 0 !important;

        border: 0 !important;
        box-shadow: none !important;

        overflow: visible !important;
    }


    body.printing-offer .legal-viewer-top,
    body.printing-offer .legal-document-header,
    body.printing-offer .legal-document-actions {
        display: none !important;
    }


    body.printing-offer .legal-viewer-content {
        height: auto !important;

        overflow: visible !important;

        background: #fff !important;
    }


    body.printing-offer .legal-content {
        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;

        box-shadow: none !important;

        font-size: 12pt !important;
        line-height: 1.55 !important;
    }


    body.printing-offer .legal-viewer-content::after {
        display: none !important;
    }


    body.printing-offer .legal-content h4 {
        break-after: avoid;
        page-break-after: avoid;
    }


    body.printing-offer .legal-content p,
    body.printing-offer .legal-content li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

}



/* =========================================================
   DOCUMENTS / LEGAL PAGES
   kvartiry-posutochno16.ru
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg: #f6f7f5;
    --surface: #ffffff;
    --surface-soft: #f1f3f0;

    --text: #1c211e;
    --text-soft: #69716c;
    --text-muted: #929a95;

    --border: #e2e6e2;
    --border-strong: #d5dbd6;

    --accent: #1f6b45;
    --accent-dark: #185538;
    --accent-soft: #eaf4ee;

    --warning-bg: #f4f8f5;

    --shadow-sm:
        0 2px 8px rgba(23, 35, 28, 0.04);

    --shadow-md:
        0 12px 40px rgba(23, 35, 28, 0.07);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --container: 1060px;

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;

}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   PAGE
========================================================= */

.document-page {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 28px 0 24px;

}


.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--text-soft);

    font-size: 14px;

    font-weight: 500;

    transition:
        color .2s ease,
        transform .2s ease;

}


.back-link:hover {

    color: var(--text);

    transform: translateX(-2px);

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.brand img {

    width: 46px;
    height: 46px;

    border-radius: 12px;

}


.brand-name {

    font-size: 14px;

    font-weight: 700;

    letter-spacing: -.01em;

}


.brand-city {

    margin-top: 1px;

    color: var(--text-muted);

    font-size: 12px;

}


/* =========================================================
   HERO
========================================================= */

.document-hero {

    padding: 72px 0 52px;

    max-width: 820px;

}


.document-hero-label {

    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 5px 11px;

    margin-bottom: 20px;

    border: 1px solid #d9e7de;

    border-radius: 999px;

    background: var(--accent-soft);

    color: var(--accent-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;

}


.document-hero h1 {

    margin: 0;

    color: var(--text);

    font-size: clamp(
        42px,
        6vw,
        68px
    );

    line-height: 1.04;

    letter-spacing: -.045em;

    font-weight: 750;

}


.document-subtitle {

    max-width: 650px;

    margin: 20px 0 0;

    color: var(--text-soft);

    font-size: 20px;

    line-height: 1.5;

}


.document-status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 26px;

    color: var(--accent-dark);

    font-size: 14px;

    font-weight: 650;

}


.status-dot {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #36a269;

    box-shadow:
        0 0 0 4px rgba(54, 162, 105, .12);

}


/* =========================================================
   DOCUMENT CARD
========================================================= */

.document-card {

    margin-bottom: 18px;

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

}


.document-card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

    padding-bottom: 26px;

    border-bottom: 1px solid var(--border);

}


.section-eyebrow {

    display: block;

    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.document-card h2 {

    margin: 0;

    font-size: 22px;

    line-height: 1.25;

    letter-spacing: -.025em;

}


.document-version {

    flex: 0 0 auto;

    text-align: right;

}


.document-version span {

    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 12px;

}


.document-version strong {

    font-size: 20px;

    letter-spacing: -.02em;

}


/* =========================================================
   DOCUMENT INFO GRID
========================================================= */

.document-info-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

}


.document-info-item {

    min-height: 90px;

    padding: 22px 22px 4px 0;

}


.document-info-item:not(:last-child) {

    margin-right: 22px;

    border-right: 1px solid var(--border);

}


.document-info-item span {

    display: block;

    margin-bottom: 7px;

    color: var(--text-muted);

    font-size: 12px;

}


.document-info-item strong {

    display: block;

    color: var(--text);

    font-size: 14px;

    line-height: 1.4;

}


.active-value {

    color: var(--accent-dark) !important;

}


/* =========================================================
   IMPORTANT NOTICE
========================================================= */

.important-notice {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin: 18px 0;

    padding: 20px 22px;

    border: 1px solid #dfe9e2;

    border-radius: var(--radius-md);

    background: var(--warning-bg);

}


.important-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    font-size: 15px;

    font-weight: 700;

}


.important-notice strong {

    display: block;

    margin-bottom: 2px;

    font-size: 14px;

}


.important-notice p {

    margin: 0;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.55;

}


/* =========================================================
   RELATED DOCUMENT
========================================================= */

.related-document {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin: 18px 0 50px;

    padding: 26px 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.related-document:hover {

    border-color: #cbd8cf;

    box-shadow: var(--shadow-md);

    transform: translateY(-2px);

}


.related-document-content {

    max-width: 760px;

}


.related-label {

    display: block;

    margin-bottom: 7px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.related-document h2 {

    margin: 0 0 5px;

    font-size: 20px;

    line-height: 1.3;

    letter-spacing: -.02em;

}


.related-document p {

    max-width: 690px;

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.6;

}


.related-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 13px;

    color: var(--accent-dark);

    font-size: 14px;

    font-weight: 700;

}


.related-link span {

    transition: transform .2s ease;

}


.related-link:hover span {

    transform: translateX(4px);

}


.related-document-arrow {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: var(--accent-soft);

    color: var(--accent-dark);

    font-size: 20px;

}


/* =========================================================
   TABLE OF CONTENTS
========================================================= */

.document-toc {

    margin-bottom: 70px;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

}


.toc-header {

    display: flex;

    align-items: baseline;

    gap: 15px;

    padding: 18px 0;

}


.toc-header .section-eyebrow {

    margin: 0;

}


.toc-header strong {

    font-size: 14px;

}


.toc-list {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid var(--border);

}


.toc-list a {

    display: grid;

    grid-template-columns: 32px 1fr 20px;

    align-items: center;

    gap: 10px;

    min-height: 64px;

    padding: 10px 18px;

    border-right: 1px solid var(--border);

    transition:
        background .2s ease,
        color .2s ease;

}


.toc-list a:last-child {

    border-right: 0;

}


.toc-list a:hover {

    background: var(--surface);

}


.toc-list a > span:first-child {

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 700;

}


.toc-list strong {

    font-size: 13px;

    line-height: 1.35;

}


.toc-list a > span:last-child {

    color: var(--text-muted);

    text-align: right;

}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {

    margin-bottom: 26px;

}


.section-heading h2 {

    margin: 0;

    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -.035em;

}


.section-heading p {

    max-width: 650px;

    margin: 9px 0 0;

    color: var(--text-soft);

    font-size: 14px;

}


/* =========================================================
   LEGAL DOCUMENT
========================================================= */

.document-text {

    margin-bottom: 80px;

}


.legal-document {

    padding: 48px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

}


.legal-document-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

    padding-bottom: 32px;

    margin-bottom: 34px;

    border-bottom: 1px solid var(--border);

}


.legal-label {

    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .1em;

}


.legal-document h3 {

    max-width: 680px;

    margin: 0;

    font-size: 25px;

    line-height: 1.3;

    letter-spacing: -.025em;

}


.legal-document-number {

    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 8px;

    background: var(--surface-soft);

    color: var(--text-soft);

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   PLACEHOLDER
========================================================= */

.legal-placeholder {

    max-width: 760px;

    padding: 28px;

    border: 1px dashed #cbd5ce;

    border-radius: var(--radius-md);

    background: #fafcfb;

}


.legal-placeholder p {

    margin: 0;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.75;

}


.legal-placeholder p + p {

    margin-top: 13px;

}


/* =========================================================
   REAL LEGAL TEXT
========================================================= */

.legal-document p {

    margin: 0 0 18px;

    color: #3d4540;

    font-size: 15px;

    line-height: 1.8;

}


.legal-document h4 {

    margin: 34px 0 13px;

    color: var(--text);

    font-size: 17px;

    line-height: 1.4;

}


.legal-document ul {

    margin: 10px 0 22px;

    padding-left: 23px;

}


.legal-document li {

    margin-bottom: 8px;

    color: #3d4540;

    font-size: 15px;

    line-height: 1.7;

}


.legal-document strong {

    color: var(--text);

}


/* =========================================================
   DOCUMENT DETAILS
========================================================= */

.document-details {

    margin-bottom: 80px;

}


.details-table {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

}


.details-row {

    display: grid;

    grid-template-columns: 240px 1fr;

    gap: 30px;

    padding: 19px 25px;

    border-bottom: 1px solid var(--border);

}


.details-row:last-child {

    border-bottom: 0;

}


.details-row span {

    color: var(--text-muted);

    font-size: 13px;

}


.details-row strong {

    color: var(--text);

    font-size: 14px;

    font-weight: 650;

}


/* =========================================================
   HISTORY
========================================================= */

.document-history {

    margin-bottom: 80px;

}


.history-list {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

}


.history-item {

    display: grid;

    grid-template-columns: 190px 1fr;

    gap: 30px;

    padding: 26px;

    border-bottom: 1px solid var(--border);

}


.history-item:last-child {

    border-bottom: 0;

}


.history-date {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.history-date span {

    color: var(--text-soft);

    font-size: 13px;

}


.history-date strong {

    color: var(--text);

    font-size: 20px;

    letter-spacing: -.02em;

}


.history-title {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}


.history-title strong {

    font-size: 15px;

}


.history-current {

    display: inline-flex;

    padding: 3px 8px;

    border-radius: 999px;

    background: var(--accent-soft);

    color: var(--accent-dark);

    font-size: 10px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .05em;

}


.history-content p {

    margin: 6px 0 0;

    color: var(--text-soft);

    font-size: 13px;

}


.history-content a {

    display: inline-block;

    margin-top: 8px;

    color: var(--accent-dark);

    font-size: 13px;

    font-weight: 700;

}


/* =========================================================
   RELATED DOCUMENTS
========================================================= */

.document-links {

    margin-bottom: 70px;

}


.document-link-grid {

    display: grid;

    grid-template-columns: 1fr;

}


.document-link-card {

    display: grid;

    grid-template-columns: 50px 1fr 25px;

    align-items: center;

    gap: 18px;

    padding: 20px 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.document-link-card:hover {

    border-color: #cbd8cf;

    box-shadow: var(--shadow-md);

    transform: translateY(-2px);

}


.document-link-number {

    color: var(--text-muted);

    font-size: 12px;

    font-weight: 750;

}


.document-link-card strong {

    display: block;

    margin-bottom: 3px;

    font-size: 14px;

}


.document-link-card div span {

    display: block;

    color: var(--text-soft);

    font-size: 12px;

}


.document-link-arrow {

    color: var(--accent);

    font-size: 18px;

    text-align: right;

}


/* =========================================================
   ACTIONS
========================================================= */

.document-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 25px 0;

    border-top: 1px solid var(--border);

}


.action-secondary,
.action-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 0 17px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 650;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.action-secondary {

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-soft);

}


.action-secondary:hover {

    border-color: var(--border-strong);

    color: var(--text);

    background: var(--surface-soft);

}


.action-primary {

    border: 1px solid var(--accent);

    background: var(--accent);

    color: white;

}


.action-primary:hover {

    background: var(--accent-dark);

    border-color: var(--accent-dark);

    transform: translateY(-1px);

}


/* =========================================================
   FOOTER
========================================================= */

.document-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 28px 0 45px;

    border-top: 1px solid var(--border);

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.footer-brand img {

    width: 38px;
    height: 38px;

    border-radius: 9px;

}


.footer-brand strong {

    display: block;

    font-size: 13px;

}


.footer-brand span {

    display: block;

    color: var(--text-muted);

    font-size: 11px;

}


.footer-meta {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 3px;

    color: var(--text-muted);

    font-size: 11px;

    text-align: right;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {


    .document-page {

        width: min(
            calc(100% - 28px),
            var(--container)
        );

    }


    .site-header {

        padding-top: 18px;

    }


    .document-hero {

        padding: 48px 0 38px;

    }


    .document-hero h1 {

        font-size: 44px;

    }


    .document-subtitle {

        font-size: 17px;

    }


    .document-card {

        padding: 22px;

    }


    .document-card-header {

        padding-bottom: 22px;

    }


    .document-info-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .document-info-item {

        padding: 19px 15px 10px 0;

    }


    .document-info-item:nth-child(2) {

        border-right: 0;

        margin-right: 0;

    }


    .document-info-item:nth-child(3) {

        border-top: 1px solid var(--border);

    }


    .document-info-item:nth-child(4) {

        border-top: 1px solid var(--border);

        border-right: 0;

        margin-right: 0;

    }


    .toc-list {

        grid-template-columns: 1fr;

    }


    .toc-list a {

        border-right: 0;

        border-bottom: 1px solid var(--border);

    }


    .toc-list a:last-child {

        border-bottom: 0;

    }


    .legal-document {

        padding: 30px 24px;

    }


    .legal-document-header {

        flex-direction: column;

        gap: 15px;

    }


    .details-row {

        grid-template-columns: 1fr;

        gap: 5px;

    }


    .history-item {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .document-footer {

        align-items: flex-start;

        flex-direction: column;

    }


    .footer-meta {

        align-items: flex-start;

        text-align: left;

    }

}


@media (max-width: 520px) {


    .document-page {

        width: calc(100% - 22px);

    }


    .site-header {

        align-items: flex-start;

        gap: 15px;

    }


    .back-link {

        font-size: 13px;

    }


    .brand img {

        width: 40px;
        height: 40px;

    }


    .brand-name {

        font-size: 12px;

    }


    .brand-city {

        font-size: 10px;

    }


    .document-hero {

        padding: 38px 0 30px;

    }


    .document-hero h1 {

        font-size: 38px;

        letter-spacing: -.04em;

    }


    .document-subtitle {

        font-size: 16px;

    }


    .document-card {

        padding: 18px;

        border-radius: 16px;

    }


    .document-card-header {

        flex-direction: column;

        gap: 14px;

    }


    .document-version {

        text-align: left;

    }


    .document-info-grid {

        grid-template-columns: 1fr;

    }


    .document-info-item,
    .document-info-item:nth-child(2),
    .document-info-item:nth-child(3),
    .document-info-item:nth-child(4) {

        min-height: auto;

        padding: 16px 0;

        margin: 0;

        border-right: 0;

        border-top: 1px solid var(--border);

    }


    .document-info-item:first-child {

        border-top: 0;

    }


    .important-notice {

        padding: 17px;

    }


    .related-document {

        padding: 21px;

        margin-bottom: 40px;

    }


    .related-document-arrow {

        display: none;

    }


    .document-toc {

        margin-bottom: 50px;

    }


    .section-heading h2 {

        font-size: 26px;

    }


    .legal-document {

        padding: 23px 18px;

        border-radius: 16px;

    }


    .legal-document h3 {

        font-size: 21px;

    }


    .legal-document p,
    .legal-document li {

        font-size: 14px;

        line-height: 1.75;

    }


    .legal-placeholder {

        padding: 20px;

    }


    .history-item {

        padding: 21px;

    }


    .document-link-card {

        grid-template-columns:
            38px 1fr 18px;

        gap: 10px;

        padding: 17px;

    }


    .document-actions {

        align-items: stretch;

        flex-direction: column;

    }


    .action-secondary {

        width: 100%;

    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {


    body {

        background: white;

        color: black;

        font-size: 12pt;

    }


    .document-page {

        width: 100%;

        max-width: none;

    }


    .site-header,
    .important-notice,
    .related-document,
    .document-toc,
    .document-actions,
    .document-links {

        display: none !important;

    }


    .document-hero {

        padding: 0 0 25px;

    }


    .document-hero-label {

        border: 0;

        padding: 0;

        background: none;

        color: #000;

    }


    .document-hero h1 {

        font-size: 32pt;

    }


    .document-card,
    .legal-document,
    .details-table,
    .history-list {

        border: 0;

        box-shadow: none;

        border-radius: 0;

    }


    .document-card {

        padding: 0 0 20px;

    }


    .legal-document {

        padding: 0;

    }


    .document-footer {

        padding-bottom: 0;

    }


    a {

        text-decoration: none;

    }

}


/* =========================================================
   ОСНОВНОЙ ПРОСМОТРЩИК ОФЕРТЫ
   Компактное окно + собственная прокрутка
========================================================= */

.legal-viewer {
    width: min(920px, 100%);

    height: clamp(380px, 58vh, 560px);
    max-height: 560px;

    margin: 24px auto 0;

    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    scrollbar-gutter: stable;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   ВЕРХНЯЯ ПОЛОСА ОКНА
========================================================= */

.legal-viewer-top {
    position: sticky;

    top: 0;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


/* =========================================================
   СКРОЛЛБАР
========================================================= */

.legal-viewer::-webkit-scrollbar {
    width: 8px;
}

.legal-viewer::-webkit-scrollbar-track {
    background: transparent;
}

.legal-viewer::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);

    border-radius: 999px;
}

.legal-viewer::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}


/* =========================================================
   ТЕКСТ ВНУТРИ
========================================================= */

.legal-viewer h4,
.legal-viewer h5 {
    scroll-margin-top: 70px;
}


/* =========================================================
   МОБИЛЬНЫЕ
========================================================= */

@media (max-width: 700px) {

    .legal-viewer {
        width: 100%;

        height: 58vh;
        max-height: 520px;

        margin-top: 18px;

        border-radius: 12px;
    }

}


/* =========================================================
   BOOKING CTA
========================================================= */

.document-cta {

    margin: 0 0 70px;

    padding: 42px 44px;

    border: 1px solid #d8e7dd;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            #eef7f1 0%,
            #f7faf8 100%
        );

}


.document-cta-content {

    max-width: 720px;

}


.document-cta h2 {

    margin: 0;

    color: var(--text);

    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -.035em;

}


.document-cta p {

    max-width: 650px;

    margin: 12px 0 0;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.7;

}


.document-cta-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;

}


.document-cta-note {

    max-width: 720px;

    margin: -45px 0 70px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;

}


@media (max-width: 520px) {

    .document-cta {

        padding: 28px 22px;

        border-radius: 16px;

    }


    .document-cta h2 {

        font-size: 25px;

    }


    .document-cta-actions {

        flex-direction: column;

    }


    .document-cta-actions a {

        width: 100%;

    }

}

.offer-document-nav {
    margin: 20px 0 28px;
    padding: 16px;
    background: #f5f7fa;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
}

.offer-document-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: #1769aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.offer-document-nav__button:hover {
    background: #12588f;
}

.offer-document-nav__text {
    margin-top: 9px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}