/* ==========================================================================
   Vipservice Concierge
   Размеры взяты из макета Figma (десктоп 1440) и таблицы дизайнера
   для адаптива: 1200+ / 980–1200 / 640–980 / 480–640 / 320–480.
   Всё меняется через переменные в блоках @media ниже.
   ========================================================================== */

/* Helvetica Neue — те же файлы, что подключены на Tilda-сайте */
@font-face { font-family: "Helvetica Neue"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/HelveticaNeue-400.woff") format("woff"); }
@font-face { font-family: "Helvetica Neue"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/HelveticaNeue-500.woff") format("woff"); }
@font-face { font-family: "Helvetica Neue"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/HelveticaNeue-700.woff") format("woff"); }

:root {
    --blue: #315470;
    --blue-dark: #223b4e;
    --beige: #b7a99a;
    --text: #161a28;
    --white: #fff;
    --grad: linear-gradient(to right, #702082, #ee2737);
    --rubin: #ce0058;

    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Десктоп (по макету) */
    --pad: 120px;           /* боковой отступ страницы */
    --box-pad-x: 32px;      /* внутренний отступ синих блоков */
    --box-pad-y: 40px;
    --gap: 24px;

    --fs-h1: 33px;   --lh-h1: 1.1;
    --fs-text: 21px; --lh-text: 1.2;
    --fs-lead: 21px;
    --fs-eyebrow: 17px;
    --fs-btn: 18px;
    --fs-nav: 16px;
    --fs-badge: 30px;
    --fs-tile: 33px;
    --fs-foot: 18px;
    --fs-legal: 16px;

    --hero-h: 460px;
    --nav-h: 87px;
    --nav-top: 34px;
    --band-h: 340px;
    --section-gap: 48px;
}

@media (max-width: 1199px) {
    :root {
        --pad: 40px; --box-pad-x: 28px; --box-pad-y: 36px; --gap: 20px;
        --fs-h1: 30px; --lh-h1: 1.1;
        --fs-text: 18px; --lh-text: 1.2;
        --fs-lead: 20px; --fs-eyebrow: 14px; --fs-btn: 16px; --fs-nav: 14px;
        --fs-badge: 28px; --fs-tile: 28px; --fs-foot: 16px; --fs-legal: 14px;
        --hero-h: 400px; --nav-h: 76px; --nav-top: 28px; --band-h: 320px; --section-gap: 44px;
    }
}

@media (max-width: 979px) {
    :root {
        --pad: 32px; --box-pad-x: 24px; --box-pad-y: 32px; --gap: 16px;
        --fs-h1: 28px; --lh-h1: 1.15;
        --fs-text: 18px; --lh-text: 1.25;
        --fs-lead: 18px; --fs-eyebrow: 13px; --fs-btn: 15px; --fs-nav: 14px;
        --fs-badge: 26px; --fs-tile: 26px; --fs-foot: 14px; --fs-legal: 13px;
        --hero-h: 360px; --nav-h: 64px; --nav-top: 20px; --band-h: 300px; --section-gap: 36px;
    }
}

@media (max-width: 639px) {
    :root {
        --pad: 20px; --box-pad-x: 20px; --box-pad-y: 28px; --gap: 12px;
        --fs-h1: 24px;
        --fs-text: 18px;
        --fs-lead: 18px; --fs-eyebrow: 12px; --fs-btn: 14px;
        --fs-badge: 22px; --fs-tile: 22px; --fs-foot: 13px; --fs-legal: 12px;
        --hero-h: 320px; --nav-h: 56px; --nav-top: 16px; --band-h: 280px; --section-gap: 28px;
    }
}

@media (max-width: 479px) {
    :root {
        --pad: 16px; --box-pad-x: 16px; --box-pad-y: 24px;
        --fs-h1: 22px; --lh-h1: 1.2;
        --fs-badge: 20px; --fs-tile: 20px;
        --hero-h: 280px; --band-h: 260px; --section-gap: 24px;
    }
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-text);
    line-height: var(--lh-text);
    color: var(--text);
    background: var(--white);
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 500; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--beige); outline-offset: 2px; }

.wrap {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    --side: var(--pad);
    padding-inline: var(--side);
}
/* От 1200 px содержимое держим ровно 1200 px, боковые поля сжимаются от 120 до 40 */
@media (min-width: 1200px) {
    .wrap { --side: clamp(40px, calc((100% - 1200px) / 2), 120px); }
}

[id] { scroll-margin-top: 16px; }

/* ---------- Типографика ---------- */

.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-text); }
.text { font-size: var(--fs-text); line-height: var(--lh-text); color: var(--white); }
.lead p, .text p { margin: 0; }
.lead p + p, .text p + p { margin-top: .55em; }
.lead a, .text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead strong, .text strong, .lead b, .text b { font-weight: 700; }

.eyebrow {
    font-size: var(--fs-eyebrow);
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
    color: var(--beige);
}
.panel .eyebrow { text-transform: uppercase; }
.eyebrow--white { color: var(--white); font-weight: 400; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    border: 2.4px solid var(--beige);
    background: transparent;
    color: var(--white);
    font-size: var(--fs-btn);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn--beige { background: var(--beige); color: var(--blue-dark); }
.btn--beige:hover { background: #c9bdaf; border-color: #c9bdaf; }
.btn--outline { font-weight: 400; font-size: calc(var(--fs-btn) + 1px); }
.btn--outline:hover { background: var(--beige); color: var(--blue-dark); }

/* ---------- Шапка ---------- */

.site-header {
    position: relative;
    padding-top: var(--nav-top);
}
.home .site-header { height: var(--hero-h); }
body:not(.home) .site-header { background: var(--blue); padding-bottom: var(--nav-top); }
body.single-service .site-header { height: auto; background: var(--white); padding-bottom: 0; }

.site-header__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.navbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end; /* как в макете: логотип и меню прижаты к низу плашки */
    justify-content: space-between;
    min-height: var(--nav-h);
    margin-inline: -2px;
    padding: 0 0 0 20px;
    background: var(--white);
}
.navbar__logo { padding-bottom: calc(var(--nav-h) * .24); }
.navbar__logo img { width: auto; height: calc(var(--nav-h) * .62); }
.navbar__nav { padding-bottom: calc(var(--nav-h) * .14); }

.navbar__nav .menu { display: flex; }
.navbar__nav a {
    display: block;
    padding: 12px 24px;
    font-size: var(--fs-nav);
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    transition: color .2s;
}
.navbar__nav a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 980px) {
    .navbar__nav a { font-size: 18px; }
}

.burger {
    display: none;
    width: var(--nav-h);
    height: var(--nav-h);
    padding: 0;
    border: 0;
    background: none;
    position: relative;
}
.burger span {
    position: absolute;
    left: 30%;
    width: 40%;
    height: 2px;
    background: var(--rubin);
    transition: transform .25s, opacity .2s, top .25s;
}
.burger span:nth-child(1) { top: 36%; }
.burger span:nth-child(2) { top: 50%; }
.burger span:nth-child(3) { top: 64%; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

@media (max-width: 979px) {
    .burger { display: block; }
    .navbar { flex-wrap: wrap; align-items: center; padding-left: 16px; }
    .navbar__logo, .navbar__nav { padding-bottom: 0; }
    .navbar__nav {
        display: none;
        flex-basis: 100%;
        border-top: 1px solid #e4e0da;
    }
    .navbar__nav.is-open { display: block; }
    .navbar__nav .menu { flex-direction: column; padding: 8px 0; }
    .navbar__nav a { padding: 14px 4px; }
    .navbar { margin-inline: 0; }
}

/* Плашки под обложкой */
.hero-title {
    position: relative;
    z-index: 4;
    margin-top: -44px;
    padding-bottom: var(--section-gap);
}
.hero-title .wrap { padding-left: calc(var(--side) - 2px); }
.badge {
    display: table;
    padding: 4px 16px;
    background: var(--grad);
    color: var(--white);
    font-size: var(--fs-badge);
    line-height: 1.2;
    font-weight: 500;
}
@media (max-width: 639px) {
    .hero-title { margin-top: 0; padding-top: 0; }
    .badge { padding: 6px 12px; }
    .hero-title .badge:first-child { margin-top: calc(-1 * (1.2em + 12px)); }
}

/* ---------- Вводный текст ---------- */

.intro { padding-bottom: var(--section-gap); }
.intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-inline: calc(var(--box-pad-x) + 12px);
    text-align: center;
}
.intro .h1 { max-width: 680px; }
.intro .lead { max-width: 1000px; }

/* ---------- Фото-блоки ---------- */

.band { padding-bottom: 0; }
.band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: var(--band-h);
    padding: 32px calc(var(--box-pad-x) + 12px);
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(0, 0, 0, var(--band-shade, .04)), rgba(0, 0, 0, var(--band-shade, .04))),
        var(--band-img) center / cover no-repeat;
}
.band .h1 { max-width: 680px; }
.band .lead { max-width: 640px; }
.band .eyebrow { text-transform: uppercase; }
.band--club .h1 { font-size: calc(var(--fs-h1) - 1px); }
.band__media { display: none; }
.band__shot { position: absolute; top: 0; height: 100%; max-width: none; }
.band:not(.band--club) .band__shot { left: -14.63%; width: 117.59%; }
.band--club .band__shot { left: -75.74%; width: 190.67%; }
.band__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--shade, .42));
}
.band--club .band__media::after { --shade: .5; }

/* ---------- Синие блоки ---------- */

.panel { background: var(--white); }
.panel__box {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: var(--box-pad-y) var(--box-pad-x);
    background: var(--blue);
}
.panel__col { display: flex; flex-direction: column; gap: 8px; max-width: 494px; }
.panel__col--right { align-self: flex-end; text-align: left; }

.panel__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.btn-row .btn { width: 235px; }

.packages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}
.packages__buttons {
    display: grid;
    grid-template-columns: repeat(2, 235px);
    gap: var(--gap);
}
.packages__buttons .btn { min-height: 62px; }
.packages__text { max-width: 506px; }

@media (max-width: 979px) {
    .panel__col, .panel__col--right { max-width: none; align-self: stretch; }
    .panel__cta { flex-direction: column; align-items: stretch; }
    .btn-row .btn { flex: 1 1 200px; width: auto; }
    .packages { flex-direction: column; align-items: stretch; }
    .packages__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .packages__text { max-width: none; }

    /* Как в макете 375: текст слева, а не по центру */
    .intro__inner,
    .band__inner {
        align-items: flex-start;
        text-align: left;
        padding-inline: var(--box-pad-x);
    }
    .intro .h1, .intro .lead,
    .band .h1, .band .lead { max-width: none; }
    .intro .h1 { font-weight: 700; }

    /* Бежевые подписи на синем (Наши гарантии и т.п.), макет 375 — ~14px */
    .panel .eyebrow {
        font-size: 14px;
        line-height: 1.2;
    }

    /* Два фотоблока на телефоне: отдельные кадры из макета */
    .band__inner { position: relative; overflow: hidden; background: none; min-height: 227px; padding: 24px 14px; gap: 12px; }
    .band--club .band__inner { min-height: 230px; }
    .band__media { display: block; position: absolute; inset: 0; }
    .band__inner > :not(.band__media) { position: relative; z-index: 1; }
    .band .eyebrow { font-size: 14px; font-weight: 400; line-height: 1.1; }
    .band .h1 { font-size: 18px; line-height: 1.1; }
    .band--club .h1 { font-size: 18px; line-height: 1.1; }
    .band .lead { font-size: 18px; line-height: 1.3; }
    .band:not(.band--club) .band__inner { min-height: 280px; }

    /* Панельные CTA, макет 375 (9532:7445, 9532:7548): 16px, высота 47–49px, шаг 12px */
    #guarantees .panel__cta { gap: 24px; }
    #guarantees .panel__cta .btn-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    #guarantees .panel__cta .btn-row .btn,
    #join .packages__buttons .btn,
    .svc-card__actions .btn {
        flex: none;
        width: 100%;
        height: auto;
        padding: 12px 16px;
        font-size: 16px;
        line-height: 1.16;
        font-weight: 400;
    }
    #guarantees .panel__cta .btn-row .btn {
        min-height: 47px;
        font-weight: 500;
    }
    #guarantees .panel__cta .btn-row .btn:last-child {
        min-height: 43px;
    }
    #join .packages__buttons {
        gap: 12px;
    }
    #join .packages__buttons .btn {
        min-height: 49px;
    }
    #join .packages__buttons .btn--beige {
        min-height: 45px;
        font-weight: 500;
    }
    .svc-card__actions .btn {
        min-height: 47px;
    }
    .svc-card__actions .btn--beige {
        font-weight: 500;
    }
}

@media (max-width: 639px) {
    .btn-row { flex-direction: column; }
    .btn-row .btn { flex: none; width: 100%; }
    .packages__buttons { grid-template-columns: 1fr; }
}

/* ---------- Услуги: сетка плиток ---------- */

.services { padding-block: var(--gap); }
.svc-grid { display: flex; flex-direction: column; gap: var(--gap); }

.svc-row {
    display: grid;
    gap: var(--gap);
    aspect-ratio: 1200 / 784;
}
.svc-row--A, .svc-row--C { grid-template-columns: 2fr 1fr; }
.svc-row--B { grid-template-columns: 1fr 2fr; }
.svc-stack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); min-height: 0; }

.svc-row--rest {
    aspect-ratio: auto;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.svc-row--rest .tile { aspect-ratio: 1; }

.tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    background: var(--blue-dark);
    color: var(--white);
    text-decoration: none;
}
.tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
}
.tile__and { white-space: nowrap; }
.tile__title {
    position: relative;
    z-index: 2;
    padding: 0 16px 32px;
    max-width: 100%;
    font-size: var(--fs-tile);
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
}
.tile:hover .tile__img { transform: scale(1.04); }

@media (max-width: 979px) {
    /* Макет 375 держит ту же мозаику, что десктоп: большая плитка и две маленькие */
    .tile__title { padding: 0 8px 14px; font-size: 16px; }
}
@media (max-width: 639px) {
    .svc-grid, .svc-row, .svc-stack { gap: 8px; }
    .tile__title { padding: 0 6px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .tile__img { transition: none; }
    .tile:hover .tile__img { transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Финальный блок ---------- */

.final { padding-top: 0; }
.final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: var(--box-pad-y) calc(var(--box-pad-x) + 12px);
    text-align: center;
    background: var(--beige);
    color: var(--blue-dark);
}
.final .h1 { max-width: 717px; color: var(--blue-dark); }
.final .lead { max-width: 760px; color: var(--blue-dark); }
@media (max-width: 979px) {
    .final__inner { align-items: flex-start; text-align: left; padding-inline: var(--box-pad-x); }
    .final .h1, .final .lead { max-width: none; }
}

/* ---------- Подвал ---------- */

.site-footer { color: var(--white); }
.site-footer__box { padding: 32px calc(var(--box-pad-x) + 12px); background: var(--blue); }
.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end; /* меню на одной линии со словом «Випсервис», не с сердцем */
    justify-content: space-between;
    gap: var(--gap);
}
.site-footer__logo { display: block; }
.site-footer__logo img { width: 170px; height: auto; }
.site-footer__nav { padding-bottom: 2px; }
.site-footer__nav .menu { display: flex; flex-wrap: wrap; align-items: center; margin: 0; }
.site-footer__nav a {
    display: block;
    padding: 0 20px;
    font-size: var(--fs-foot);
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.site-footer__legal a { font-size: var(--fs-legal); color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bar { height: 20px; background: var(--beige); }
@media (min-width: 980px) {
    /* Линия и «Файлы cookie» заканчиваются у текста «Присоединиться», не у поля пункта */
    .site-footer__legal { position: relative; padding-right: 20px; border-top: 0; }
    .site-footer__legal::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 20px;
        height: 2px;
        background: rgba(255, 255, 255, .6);
    }
    .site-footer__legal a { text-decoration-thickness: 1px; }
}
@media (max-width: 979px) {
    .site-footer__bar { height: 18px; }
    .site-footer__box { padding-block: 36px; padding-inline: var(--box-pad-x); }
    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
    }
    .site-footer__logo img { width: 140px; }
    .site-footer__nav { padding-bottom: 0; }
    .site-footer__nav .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .site-footer__nav a {
        padding: 0;
        font-size: 16px;
        line-height: 1.2;
    }
    .site-footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
    }
}

/* ---------- Карточка услуги ---------- */

.svc-page { padding-top: 24px; padding-bottom: 36px; }
.svc-sheet { background: var(--blue); }
.svc-back {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 32px;
    border-bottom: 1px solid rgba(183, 169, 154, .85);
    color: var(--beige);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}
.svc-back::before { content: "←"; }
.svc-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-sheet .svc-card { background: transparent; }
.svc-card {
    display: grid;
    grid-template-columns: minmax(0, 494px) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    padding: 32px;
    background: var(--blue);
    color: var(--white);
}
.svc-card__img {
    width: 100%;
    height: 494px;
    object-fit: cover;
}
.svc-card__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 21px;
    line-height: 1.16;
    font-weight: 400;
}
.svc-card__text ul { display: flex; flex-direction: column; gap: 12px; }
.svc-card__text li,
.svc-card__text p.is-mark {
    position: relative;
    padding-left: 26px;
}
.svc-card__text li::before,
.svc-card__text p.is-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--beige);
}
.svc-card--dense .svc-card__text { font-size: 18px; gap: 8px; }
.svc-card--dense .svc-card__text ul { gap: 8px; }
.svc-card--dense .svc-card__text li,
.svc-card--dense .svc-card__text p.is-mark { padding-left: 24px; }
.svc-card--dense .svc-card__text li::before,
.svc-card--dense .svc-card__text p.is-mark::before { top: 4px; }
.svc-card__actions {
    display: flex;
    gap: 24px;
    max-width: 494px;
    margin-top: 24px;
}
@media (min-width: 980px) {
    .svc-card__actions .btn { flex: 1; min-height: 52px; }
}

@media (max-width: 979px) {
    .svc-page { padding-top: 24px; padding-bottom: 24px; }
    .svc-back { padding: 16px 14px; font-size: 16px; gap: 10px; }
    .svc-card__text br { display: none; }
    .svc-card {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
        padding: 14px;
    }
    .svc-card__img { height: 224px; }
    .svc-card__text,
    .svc-card--dense .svc-card__text { font-size: 15px; gap: 8px; }
    .svc-card__text ul,
    .svc-card--dense .svc-card__text ul { gap: 8px; }
    .svc-card__text li,
    .svc-card__text p.is-mark,
    .svc-card--dense .svc-card__text li,
    .svc-card--dense .svc-card__text p.is-mark { padding-left: 17px; }
    .svc-card__text li::before,
    .svc-card__text p.is-mark::before,
    .svc-card--dense .svc-card__text li::before,
    .svc-card--dense .svc-card__text p.is-mark::before {
        width: 9px;
        height: 9px;
        top: 4px;
    }
    .svc-card__actions {
        flex-direction: column;
        gap: 12px;
        max-width: none;
        margin-top: 24px;
    }
}

/* ---------- Обычные страницы и страница услуги ---------- */

.content-page { padding-block: var(--section-gap); }
.content-page__box { max-width: 860px; margin-inline: auto; }
.content-page__title { margin-bottom: 24px; color: var(--blue-dark); }
.content-page__back { display: inline-block; margin-bottom: 16px; font-size: var(--fs-nav); color: var(--blue); text-decoration: none; }
.content-page__back:hover { text-decoration: underline; }
.entry__cover {
    display: block;
    width: min(100%, 640px);
    height: auto;
    margin: 0 auto 28px;
}
.entry__content { font-size: var(--fs-text); line-height: 1.5; }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2, .entry__content h3 { margin-top: 1.5em; color: var(--blue-dark); font-weight: 500; }
.entry__content a { color: var(--blue); }
.entry__content .table-form .item { display: grid; grid-template-columns: 2.2em 1fr; gap: 8px 12px; margin-top: 18px; }
.entry__content .form-title { font-weight: 500; margin-bottom: 6px; }
.entry__content ul { list-style: disc; padding-left: 1.4em; }
.entry__content ol { padding-left: 1.4em; }
.entry__content .legal-table { overflow-x: auto; }
.entry__content .legal-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.4;
}
.entry__content .legal-table th,
.entry__content .legal-table td {
    border: 1px solid #c9c4bc;
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
}
.entry__content .legal-table th { font-weight: 500; background: #f6f4f1; }
.entry__cta { margin-top: 32px; }
.entry__join { color: var(--blue-dark); border-color: var(--blue); }
.entry__join:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---------- Форма заявки ---------- */

dialog.modal {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
}
dialog.modal::backdrop { background: rgba(22, 26, 40, .6); }
.lead__form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.lead__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    font-size: 32px;
    line-height: 1;
    color: var(--blue);
}
.lead__title { font-size: 26px; line-height: 1.15; color: var(--blue-dark); padding-right: 32px; }
.lead__pitch {
    margin-top: -6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.lead__sub { margin-top: -8px; color: var(--blue); font-weight: 500; }
.lead__sub:empty { display: none; }
.lead__field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--blue-dark); }
.lead__field em { font-weight: 400; font-style: normal; color: #777; }
.lead__field input, .lead__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #c9c4bc;
    border-radius: 0;
    font: inherit;
    color: var(--text);
    background: var(--white);
}
.lead__field input:focus, .lead__field textarea:focus { outline: none; border-color: var(--blue); }
.lead__field.is-invalid > span:first-child { color: #b3261e; }
.lead__field.is-invalid input,
.lead__field.is-invalid textarea {
    border-color: #b3261e;
    box-shadow: 0 0 0 1px #b3261e;
}
.lead__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.lead__consent.is-invalid { color: #b3261e; }
.lead__consent.is-invalid > span { color: #b3261e; }
.lead__consent.is-invalid a { color: #8f1f18; }
.lead__consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.lead__consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__status { min-height: 1.2em; font-size: 14px; white-space: pre-line; }
.lead__status.is-error { color: #b3261e; }
.lead__status.is-ok { color: #1b6e3a; }
.lead__submit { align-self: stretch; }
.lead__submit[disabled] { opacity: .6; cursor: wait; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 14px 0 16px;
    background: var(--white);
    border-top: 2px solid var(--beige);
    transform: translateY(100%);
    transition: transform .25s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--blue-dark);
    max-width: 720px;
}
.cookie-banner__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__btn { flex: none; min-height: 44px; padding-inline: 28px; }
@media (max-width: 679px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__btn { width: 100%; }
}

.entry__content .legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(22, 26, 40, .65);
}
.entry__content .legal-h {
    margin-top: 1.6em;
    margin-bottom: .35em;
    font-weight: 500;
    color: var(--blue-dark);
}
