/* ============================================================
   АРС ИНЖЕНЕРИЯ. Сварка ПНД труб в Москве и Московской области
   Тема зафиксирована: светлая техническая.
   Акцент: фирменный синий #0068a5 (текст и кнопки), #1b93d8 (ховер, заливки).
   Сигнальный жёлтый #f4e25d: только маркер аварийной службы 24/7.
   Тёмные поверхности точечно: панель итога, фотополоса, лайтбокс.
   Скругления: панели 16px, элементы управления 10px. Пилюль нет.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
    color-scheme: light;

    --void: #f4f7fa;
    --panel: #fdfefe;
    --panel-2: #eef3f7;
    --panel-3: #e2eaf1;
    --navy: #003858;
    --navy-2: #04263a;

    --line: rgba(4, 40, 62, .12);
    --line-2: rgba(4, 40, 62, .2);

    --accent: #0068a5;
    --accent-2: #1b93d8;
    --accent-dim: rgba(27, 147, 216, .12);

    --signal: #f4e25d;
    --signal-ink: #322b06;

    --ok: #16794f;
    --warn: #c4661f;
    --err: #b4402f;

    --text: #0d1e29;
    --text-2: #4a6172;
    --text-3: #74899a;

    --on-dark: #eef4f9;
    --on-dark-2: #a9bdcc;
    --on-dark-line: rgba(255, 255, 255, .16);

    --tg: #229ed9;
    --max: #7d4cf0;

    --r: 16px;
    --r-sm: 10px;


    /* Шкала размеров текста. Семь ступеней, ничего между ними. */
    --fs-3xs: .64rem;   /* служебные микро-подписи      */
    --fs-2xs: .74rem;   /* меты, единицы, бейджи        */
    --fs-xs:  .82rem;   /* подписи полей, сноски        */
    --fs-sm:  .89rem;   /* вторичный текст, спецификации */
    --fs-md:  .96rem;   /* кнопки, описания карточек    */
    --fs-base: 1.03rem; /* основной текст               */
    --fs-lg:  1.12rem;  /* h4, крупные пункты           */
    --fs-xl:  1.28rem;  /* h3 в плотных блоках          */

    --ff-display: "Rubik", "Segoe UI", system-ui, sans-serif;
    --ff-text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --ff-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

    --shadow: 0 22px 54px -26px rgba(4, 40, 62, .38);
    --shadow-sm: 0 2px 10px -5px rgba(4, 40, 62, .3);
    --ease: cubic-bezier(.16, 1, .3, 1);

    --gutter: 20px;
    --maxw: 1360px;
    --sec-y: clamp(58px, 6.6vw, 108px);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* ---------- 2. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--void);
    color: var(--text);
    font-family: var(--ff-text);
    font-size: clamp(1rem, .965rem + .17vw, 1.0625rem);
    line-height: 1.62;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 600;
    letter-spacing: -.022em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Типографика ---------- */
.h1 { font-size: clamp(2.05rem, 1.28rem + 2.6vw, 3.35rem); }
.h2 { font-size: clamp(1.68rem, 1.1rem + 2vw, 2.7rem); }
.h3 { font-size: clamp(1.12rem, .98rem + .58vw, 1.4rem); line-height: 1.24; }
.h4 { font-size: clamp(1rem, .95rem + .25vw, 1.12rem); line-height: 1.3; }

.lead {
    font-size: clamp(1.02rem, .96rem + .34vw, 1.2rem);
    color: var(--text-2);
    line-height: 1.6;
    max-width: 60ch;
}

.muted { color: var(--text-2); }
.num { font-family: var(--ff-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.eyebrow {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.sec-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { margin-top: 16px; }

/* ---------- 4. Раскладка ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
/* Узкая секция держит ту же левую линию сетки, что и остальные:
   сужаем не контейнер, а длину строки внутри него. */
.wrap--narrow > * { max-width: 1140px; }

/* ---------- Прайс-таблицы ---------- */
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ptab {
    padding: 11px 18px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--panel);
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.ptab:hover { border-color: var(--accent); }
.ptab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.ptable-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ptable-wrap[hidden] { display: none; }
.ptable-scroll { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; min-width: 620px; }
.ptable th, .ptable td { padding: 12px 18px; text-align: left; font-size: var(--fs-sm); }
.ptable thead th {
    background: var(--navy);
    color: #fff;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-xs);
    letter-spacing: .02em;
    white-space: nowrap;
}
.ptable thead th small { display: block; font-weight: 400; opacity: .72; font-size: var(--fs-3xs); margin-top: 2px; }
.ptable tbody tr + tr td { border-top: 1px solid var(--line); }
.ptable tbody tr:hover td { background: var(--void); }
.ptable td.num, .ptable th.num { text-align: right; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td.d { font-family: var(--ff-mono); font-weight: 500; color: var(--navy); }
.ptable td.num b { color: var(--text); font-weight: 500; }
.ptable__foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: var(--void);
    font-size: var(--fs-xs);
    color: var(--text-2);
    line-height: 1.55;
}

.minord { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .minord { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.minord div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 15px 17px;
}
.minord b {
    display: block;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--navy);
    margin-bottom: 3px;
}
.minord span { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Услуги списком ---------- */
.srv { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .srv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .srv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.srv__i {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.srv__i:hover { border-color: rgba(27, 147, 216, .5); transform: translateY(-2px); }
.srv__i svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.srv__i b { display: block; font-family: var(--ff-display); font-weight: 500; margin-bottom: 4px; }
.srv__i span { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(44px, 5vw, 76px); }
.section--panel { background: var(--panel); }

/* ---------- 5. Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-md);
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .25s var(--ease), border-color .25s var(--ease),
                color .25s var(--ease), transform .12s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(0, 104, 165, .8);
}
.btn--primary:hover { background: #00588c; }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--panel); }
.btn--ghost:active { transform: translateY(1px); }

.btn--signal { background: var(--signal); color: var(--signal-ink); }
.btn--signal:hover { background: #e8d449; }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; font-size: var(--fs-base); }

/* Кнопки мессенджеров */
.msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--panel);
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-md);
    color: var(--text);
    transition: border-color .2s var(--ease), background .2s var(--ease),
                transform .12s ease;
}
.msg-btn svg { width: 20px; height: 20px; flex: none; }
.msg-btn:active { transform: translateY(1px); }
.msg-btn--tg { color: #0f6f9b; }
.msg-btn--tg:hover { border-color: var(--tg); background: rgba(34, 158, 217, .09); }
.msg-btn--max { color: #5a2fc0; }
.msg-btn--max:hover { border-color: var(--max); background: rgba(125, 76, 240, .09); }

/* ---------- 6. Шапка ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(244, 247, 250, 0);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease),
                box-shadow .3s var(--ease);
}

.header.is-stuck {
    background: rgba(253, 254, 254, .92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 24px -20px rgba(4, 40, 62, .6);
}

.header__inner {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 36px);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-base);
    letter-spacing: -.02em;
    line-height: 1.05;
}
.brand__sub {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    letter-spacing: .11em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-top: 3px;
}

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(13px, 1.5vw, 24px); }
.nav a {
    font-size: var(--fs-sm);
    color: var(--text-2);
    transition: color .2s var(--ease);
    white-space: nowrap;
}
.nav a:hover { color: var(--accent); }

.header__side { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.header__phone {
    display: none;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-base);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.header__cta { display: none; }

.burger {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger.is-open .burger__open { display: none; }
.burger.is-open .burger__close { display: block; }

@media (min-width: 1140px) {
    .nav { display: block; }
    .header__phone { display: block; }
    .header__cta { display: inline-flex; }
    .burger { display: none; }
    .header__side { margin-left: 0; }
}

/* Датчик для переключения шапки: пока он в кадре, шапка прозрачная */
.top-sentinel {
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 190px;
    pointer-events: none;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 89;
    background: var(--void);
    padding: 26px var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
    font-family: var(--ff-display);
    font-size: var(--fs-xl);
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu__phone {
    margin-top: 18px;
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 600;
    border: 0 !important;
    color: var(--accent);
}
.mobile-menu .btn { margin-top: 8px; }
.mobile-menu__msg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mobile-menu__msg a { border-bottom: 0; }

@media (min-width: 1140px) { .mobile-menu { display: none; } }

/* ---------- 7. Прелоадер ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--void);
    display: grid;
    place-items: center;
    transition: opacity .55s var(--ease), visibility .55s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__box { width: min(340px, 78vw); text-align: center; }
.preloader__art { width: 100%; height: auto; margin-bottom: 26px; }

.preloader__art .pl-pipe {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: plDraw 1.5s var(--ease) forwards;
}
.preloader__art .pl-pipe--b { animation-delay: .18s; }
.preloader__art .pl-bead {
    fill: none;
    stroke: var(--warn);
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0;
    animation: plBead .5s var(--ease) 1.05s forwards;
}
.preloader__art .pl-frame {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.2;
    stroke-dasharray: 5 6;
}

@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plBead { to { opacity: 1; } }

.preloader__track {
    height: 3px;
    background: var(--panel-3);
    border-radius: 3px;
    overflow: hidden;
}
.preloader__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .3s linear;
}
.preloader__label {
    margin-top: 14px;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
    display: flex;
    justify-content: space-between;
}

/* ---------- 8. Первый экран ---------- */
.hero {
    position: relative;
    padding-top: clamp(100px, 10vw, 124px);
    padding-bottom: clamp(44px, 5.4vw, 76px);
    overflow: hidden;
    background: var(--panel);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -30%;
    height: 92vh;
    background:
        radial-gradient(46% 50% at 20% 26%, rgba(27, 147, 216, .13), transparent 70%),
        radial-gradient(38% 42% at 80% 8%, rgba(0, 104, 165, .09), transparent 72%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    gap: clamp(30px, 3.6vw, 52px);
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        align-items: center;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--panel);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 22px;
}
.hero__badge svg { width: 15px; height: 15px; color: var(--accent); }

.hero h1 { margin-bottom: 20px; }
.hero__lead { margin-bottom: 28px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__fig { margin: 0; }

.hero__media {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    object-position: 50% 62%;
}
@media (min-width: 1024px) {
    .hero__media img { aspect-ratio: 4 / 4.4; object-position: 50% 55%; }
}

.media-cap {
    margin-top: 13px;
    font-size: var(--fs-xs);
    line-height: 1.5;
    color: var(--text-3);
    max-width: 48ch;
}

/* ---------- 9. Полоса показателей ---------- */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--void);
}
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
    padding: clamp(24px, 3vw, 38px) clamp(16px, 2vw, 30px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats__grid .stat:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) {
    .stats__grid .stat { border-bottom: 0; }
    .stats__grid .stat:nth-child(2n) { border-right: 1px solid var(--line); }
    .stats__grid .stat:last-child { border-right: 0; }
}

.stat__val {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.6rem);
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--navy);
}
.stat__val sup { font-size: .46em; color: var(--accent-2); top: -.9em; }
.stat__label { margin-top: 11px; font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- 10. Услуги (бенто) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(22px, 2.4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .28s var(--ease), box-shadow .28s var(--ease),
                transform .28s var(--ease);
}
.card:hover {
    border-color: rgba(27, 147, 216, .45);
    box-shadow: 0 18px 40px -26px rgba(4, 40, 62, .45);
}

.card__icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent-dim);
    color: var(--accent);
    flex: none;
}
.card__icon svg { width: 24px; height: 24px; }

.card p { color: var(--text-2); font-size: var(--fs-md); }

.card__list { display: grid; gap: 9px; margin-top: auto; padding-top: 8px; }
.card__list li { display: flex; gap: 9px; font-size: var(--fs-sm); color: var(--text-2); }
.card__list svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; margin-top: 4px; }

.card--photo { padding: 0; overflow: hidden; position: relative; min-height: 250px; }
.card--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card--photo .card__cap {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: clamp(22px, 2.4vw, 30px);
    background: linear-gradient(180deg, transparent, rgba(6, 22, 33, .92) 60%);
    width: 100%;
    color: var(--on-dark);
}
.card--photo .card__cap .h3 { margin-bottom: 8px; }
.card--photo .card__cap p { color: var(--on-dark-2); }

@media (min-width: 760px) {
    .card--a { grid-column: span 3; }
    .card--b { grid-column: span 3; }
    .card--c { grid-column: span 2; }
    .card--d { grid-column: span 2; }
    .card--e { grid-column: span 2; }
}

/* ---------- 11. Калькулятор ---------- */
.calc { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.calc__panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(20px, 2.4vw, 32px);
    box-shadow: var(--shadow-sm);
}

.field { display: block; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; font-size: var(--fs-xs); color: var(--text-2); margin-bottom: 9px; }
.field__hint { display: block; font-size: var(--fs-2xs); color: var(--text-3); margin-top: 7px; }

.diam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}
.diam {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 11px 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.diam:hover { border-color: var(--accent-2); background: var(--panel-3); }
.diam.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.diam__d { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-base); display: block; }
.diam__p { font-size: var(--fs-2xs); color: var(--text-3); display: block; margin-top: 2px; }
.diam.is-on .diam__p { color: rgba(255, 255, 255, .84); }

.stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--panel-2);
    max-width: 220px;
}
.stepper button {
    width: 46px;
    background: transparent;
    border: 0;
    color: var(--text-2);
    cursor: pointer;
    font-size: var(--fs-xl);
    line-height: 1;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.stepper button:hover { background: var(--panel-3); color: var(--accent); }
.stepper input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    text-align: center;
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: var(--fs-base);
    padding: 13px 4px;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { -moz-appearance: textfield; }

.switch-row { display: grid; gap: 10px; }

.vat { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.vat__b {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-2);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.vat__b:hover { color: var(--text); }
.vat__b.is-on { background: var(--navy); color: #fff; }
.switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.switch:hover { border-color: var(--accent-2); }
.switch--need { border-color: rgba(244,226,93,.55); background: rgba(244,226,93,.07); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__box {
    width: 20px; height: 20px;
    flex: none;
    margin-top: 2px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 5px;
    display: grid;
    place-items: center;
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.switch__box svg { width: 13px; height: 13px; opacity: 0; color: #fff; transition: opacity .2s; }
.switch input:checked + .switch__box { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__box svg { opacity: 1; }
.switch input:focus-visible + .switch__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch__text { font-size: var(--fs-sm); }
.switch__text b { display: block; font-weight: 500; }
.switch__text span { color: var(--text-3); font-size: var(--fs-xs); }

/* Тёмная панель итога: акцентная поверхность, а не смена темы страницы */
.calc__out {
    background: linear-gradient(165deg, var(--navy), #052435);
    border: 1px solid var(--navy);
    border-radius: var(--r);
    padding: clamp(22px, 2.6vw, 34px);
    display: flex;
    flex-direction: column;
    color: var(--on-dark);
    box-shadow: var(--shadow);
}

.calc__rows { display: grid; gap: 0; margin-bottom: 20px; }
.calc__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--on-dark-line);
    font-size: var(--fs-sm);
}
.calc__row span:first-child { color: var(--on-dark-2); }
.calc__row b { font-family: var(--ff-mono); font-weight: 500; white-space: nowrap; }

.calc__total { margin-top: auto; padding-top: 20px; }
.calc__total-label { font-size: var(--fs-xs); color: var(--on-dark-2); margin-bottom: 6px; }
.calc__total-val {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
    letter-spacing: -.03em;
    line-height: 1;
}
.calc__note { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.calc__out .calc__note { color: var(--on-dark-2); }
.calc__out .btn--primary {
    background: var(--accent-2);
    color: #04222f;
    box-shadow: none;
}
.calc__out .btn--primary:hover { background: #3fabe8; }
.calc__out .btn { margin-top: 22px; }

.calc__min {
    margin-top: 12px;
    display: flex;
    gap: 9px;
    padding: 12px 14px;
    background: rgba(244, 226, 93, .12);
    border: 1px solid rgba(244, 226, 93, .4);
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    color: #f2e79f;
    line-height: 1.45;
}
.calc__min svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--signal); }
.calc__min.is-hidden { display: none; }

/* ---------- 12. Технология ---------- */
.tech { display: grid; gap: clamp(28px, 3.4vw, 48px); }
@media (min-width: 1080px) { .tech { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

.chart {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(18px, 2.2vw, 28px);
    box-shadow: var(--shadow-sm);
}
/* На широком экране график остаётся перед глазами, пока читают шаги цикла */
@media (min-width: 1080px) {
    .chart { position: sticky; top: 96px; }
}
.chart svg { width: 100%; height: auto; }

.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .lbl { fill: var(--text-3); font-family: var(--ff-mono); font-size: 10px; }
.chart .lbl-b { fill: var(--text); font-family: var(--ff-mono); font-size: 10.5px; }

.chart .curve-t {
    fill: none;
    stroke: var(--warn);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}
.chart .curve-p {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}
.chart.is-in .curve-t { animation: drawLine 1.7s var(--ease) .1s forwards; }
.chart.is-in .curve-p { animation: drawLine 1.7s var(--ease) .35s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.chart .phase { fill: rgba(4, 40, 62, .04); }
.chart .phase-line { stroke: var(--line); stroke-width: 1; }

.chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: var(--fs-xs);
    color: var(--text-2);
}
.chart__legend i {
    display: inline-block;
    width: 18px; height: 3px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.steps { display: grid; gap: 2px; }
.step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step__n { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--accent); padding-top: 4px; }
.step h4 { margin-bottom: 5px; }
.step p { font-size: var(--fs-sm); color: var(--text-2); }
.step__meta {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    color: var(--text-3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
    background: var(--panel);
}

/* ---------- 13. Контроль качества ---------- */
.qc { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .qc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .qc { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.qc__item {
    padding: clamp(20px, 2.2vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--void);
}
.qc__item .card__icon { margin-bottom: 16px; }
.qc__item h3 { margin-bottom: 9px; }
.qc__item p { font-size: var(--fs-sm); color: var(--text-2); }

.docs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.docs span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 14px;
    font-size: var(--fs-xs);
    color: var(--text-2);
    background: var(--panel);
}
.docs svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- 14. Аварийная полоса (фотосекция) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark); }
.band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
}
.band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(4, 22, 33, .95) 8%, rgba(4, 22, 33, .78) 48%, rgba(4, 22, 33, .55));
}
.band .lead { color: var(--on-dark-2); }
.band__inner { display: grid; gap: clamp(26px, 3vw, 44px); }
@media (min-width: 940px) { .band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; } }

.band__flag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--signal);
    color: var(--signal-ink);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.band__flag svg { width: 15px; height: 15px; }

.band__list { display: grid; gap: 12px; }
.band__list li {
    display: flex;
    gap: 13px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--on-dark-line);
    border-radius: var(--r-sm);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.band__list svg { width: 21px; height: 21px; color: var(--signal); flex: none; margin-top: 2px; }
.band__list b { display: block; font-weight: 500; font-family: var(--ff-display); }
.band__list span { font-size: var(--fs-sm); color: var(--on-dark-2); }

/* ---------- 15. Объекты ---------- */
.gal { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gal__item {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    cursor: zoom-in;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
}
.gal__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.gal__item:hover img { transform: scale(1.045); }
.gal__item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(4, 22, 33, .93));
    font-size: var(--fs-xs);
    color: #fff;
    line-height: 1.35;
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 20, 30, .95);
    display: grid;
    place-items: center;
    padding: 4vh 4vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-sm); object-fit: contain; }
.lightbox__cap {
    margin-top: 16px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--on-dark-2);
    max-width: 62ch;
}
.lightbox__close, .lightbox__nav {
    position: absolute;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--on-dark-line);
    border-radius: var(--r-sm);
    color: #fff;
    cursor: pointer;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* ---------- 15.0. Полоса с призывом ---------- */
.ctaband {
    background: linear-gradient(120deg, var(--navy), #052435);
    color: var(--on-dark);
    border-radius: var(--r);
    padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.6vw, 38px);
    display: grid;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow);
}
@media (min-width: 900px) { .ctaband { grid-template-columns: minmax(0, 1fr) auto; gap: 30px; } }
.ctaband h3 { color: #fff; font-size: clamp(1.16rem, 1rem + .7vw, 1.55rem); margin-bottom: 7px; }
.ctaband p { color: var(--on-dark-2); font-size: var(--fs-md); max-width: 64ch; }
.ctaband__act { display: flex; flex-wrap: wrap; gap: 10px; }
.ctaband .btn--primary { background: var(--accent-2); color: #04222f; box-shadow: none; }
.ctaband .btn--primary:hover { background: #3fabe8; }
.ctaband .btn--ghost { color: #fff; border-color: var(--on-dark-line); }
.ctaband .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.ctaband--signal { background: linear-gradient(120deg, #b8a72e, #8d7f18); }
.ctaband--signal p { color: rgba(255, 255, 255, .88); }
.ctaband--signal .btn--primary { background: #fff; color: #6b6011; }

/* ---------- 15.0.1. Почему берут нас ---------- */
.why { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why__i {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(20px, 2.2vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.why__i:hover { border-color: rgba(27, 147, 216, .5); transform: translateY(-3px); }
.why__ico {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent-dim);
    color: var(--accent);
    flex: none;
}
.why__ico svg { width: 23px; height: 23px; }
.why__i h3 { font-size: var(--fs-base); }
.why__i p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.why__i b {
    margin-top: auto;
    padding-top: 10px;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--navy);
}

/* ---------- 15.1. Три способа закрыть задачу ---------- */
.ways { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.way {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(22px, 2.4vw, 30px);
    background: var(--void);
    display: flex;
    flex-direction: column;
}
.way--best {
    background: linear-gradient(168deg, var(--navy), #052435);
    border-color: var(--navy);
    color: var(--on-dark);
    box-shadow: var(--shadow);
}
.way__tag {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 9px;
    margin-bottom: 16px;
}
.way--best .way__tag {
    color: var(--signal-ink);
    background: var(--signal);
    border-color: var(--signal);
    font-weight: 700;
}
.way h3 { margin-bottom: 14px; }
.way--best h3 { color: #fff; }

.way__list { display: grid; gap: 10px; margin-bottom: 18px; }
.way__list li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.way__list svg { width: 17px; height: 17px; flex: none; margin-top: 4px; }
.way__list--minus svg { color: var(--text-3); }
.way__list--plus svg { color: var(--accent); }
.way--best .way__list li { color: var(--on-dark-2); }
.way--best .way__list svg { color: var(--signal); }

.way__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: var(--fs-sm);
    color: var(--text-3);
}
.way--best .way__foot { border-top-color: var(--on-dark-line); color: var(--on-dark-2); }
.way__foot b { display: block; font-family: var(--ff-display); font-weight: 600; font-size: var(--fs-base); color: var(--text); margin-bottom: 3px; }
.way--best .way__foot b { color: #fff; }

/* ---------- 15.2. Отзывы ---------- */
.reviews { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.review {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(20px, 2.1vw, 26px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.review__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.review__ava {
    width: 48px; height: 48px;
    flex: none;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-base);
    letter-spacing: -.02em;
}
.review__ava--2 { background: var(--accent); }
.review__ava--3 { background: #2b4a5c; }
.review__ava--4 { background: #1d5f7f; }
.review__name { font-family: var(--ff-display); font-weight: 600; font-size: var(--fs-md); line-height: 1.2; }
.review__meta { font-size: var(--fs-2xs); color: var(--text-3); margin-top: 3px; }

.review__stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review__stars svg { width: 15px; height: 15px; color: var(--warn); }

.review__text { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.review__text .review__rest { display: none; }
.review.is-open .review__text .review__rest { display: inline; }
.review.is-open .review__dots { display: none; }

.review__more {
    margin-top: auto;
    padding-top: 16px;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--accent);
}
.review__more:hover { color: #00588c; }

.reviews__foot {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: var(--fs-sm);
    color: var(--text-2);
}
.reviews__foot span { display: inline-flex; align-items: center; gap: 9px; }
.reviews__foot svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- 16. Быстрый захват контакта ---------- */
.quick {
    background: linear-gradient(150deg, var(--navy), #052435);
    color: var(--on-dark);
}
.quick__grid { display: grid; gap: clamp(24px, 3vw, 44px); align-items: center; }
@media (min-width: 940px) { .quick__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); } }

.quick h2 { color: #fff; }
.quick p { color: var(--on-dark-2); margin-top: 14px; }

.quick__form { display: grid; gap: 10px; }
@media (min-width: 560px) { .quick__form { grid-template-columns: minmax(0, 1fr) auto; } }
.quick__form .input {
    background: rgba(255, 255, 255, .1);
    border-color: var(--on-dark-line);
    color: #fff;
    font-family: var(--ff-mono);
    font-size: var(--fs-base);
    padding: 17px 18px;
}
.quick__form .input::placeholder { color: rgba(238, 244, 249, .5); }
.quick__form .input:focus { background: rgba(255, 255, 255, .16); border-color: var(--accent-2); }
.quick__form .btn--primary { background: var(--signal); color: var(--signal-ink); box-shadow: none; }
.quick__form .btn--primary:hover { background: #f8ec8b; }

.quick__ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.quick__ways .msg-btn { background: rgba(255, 255, 255, .08); border-color: var(--on-dark-line); color: #fff; }
.quick__ways .msg-btn--tg:hover { background: rgba(34, 158, 217, .3); border-color: var(--tg); }
.quick__ways .msg-btn--max:hover { background: rgba(125, 76, 240, .32); border-color: #a583f5; }

.quick__note { font-size: var(--fs-xs); color: var(--on-dark-2); margin-top: 14px; line-height: 1.5; }
.quick__ok {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--on-dark-line);
    border-radius: var(--r);
}
.quick__ok svg { width: 30px; height: 30px; color: var(--signal); flex: none; }
.quick.is-sent .quick__form, .quick.is-sent .quick__note { display: none; }
.quick.is-sent .quick__ok { display: flex; }

/* ---------- 17. География ---------- */
.geo { display: grid; gap: clamp(24px, 3vw, 44px); }
@media (min-width: 940px) { .geo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }

.geo__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.geo__tags a, .geo__tags span {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 15px;
    font-size: var(--fs-sm);
    color: var(--text-2);
    background: var(--panel);
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.geo__tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ---------- 18. FAQ ---------- */
.faq { max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: clamp(1rem, .96rem + .3vw, 1.14rem);
    line-height: 1.35;
    letter-spacing: -.015em;
    color: var(--text);
    transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__q svg {
    width: 22px; height: 22px;
    flex: none;
    color: var(--accent);
    margin-top: 2px;
    transition: transform .35s var(--ease);
}
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }

.faq__a { display: none; padding: 0 0 24px; }
.faq__a p { color: var(--text-2); max-width: 78ch; }
.faq__a p + p { margin-top: 12px; }

/* ---------- 19. Заявка ---------- */
.cta { position: relative; overflow: hidden; background: var(--panel); }
.cta::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% 30%;
    height: 70vh;
    background: radial-gradient(50% 50% at 50% 50%, rgba(27, 147, 216, .12), transparent 70%);
    pointer-events: none;
}
.cta__grid { position: relative; display: grid; gap: clamp(28px, 3.4vw, 52px); }
@media (min-width: 980px) { .cta__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }

.form {
    background: var(--void);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(22px, 2.6vw, 36px);
    box-shadow: var(--shadow-sm);
}

.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Что подтянулось в заявку из калькулятора */
.pulled {
    background: var(--panel);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.pulled__t {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-xs);
    margin-bottom: 9px;
}
.pulled__t svg { width: 16px; height: 16px; color: var(--ok); }
.pulled__list { display: flex; flex-wrap: wrap; gap: 6px; }
.pulled__list span {
    font-size: var(--fs-xs);
    color: var(--text-2);
    background: var(--void);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 4px 9px;
}
.pulled__empty { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.pulled__edit {
    margin-top: 10px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-xs);
    color: var(--accent);
}
.pulled__edit:hover { color: #00588c; }
.pulled__more { display: none; margin-top: 12px; }
.pulled.is-open .pulled__more { display: block; }

.input, .select, .textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    color: var(--text);
    transition: border-color .2s var(--ease), background .2s var(--ease),
                box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 104, 165, .14);
}
.textarea { min-height: 104px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6172' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.field--err .input, .field--err .select { border-color: var(--err); }
.err-msg { display: none; margin-top: 7px; font-size: var(--fs-xs); color: var(--err); }
.field--err .err-msg { display: block; }

.form__consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 6px 0 20px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.5;
    cursor: pointer;
}
.form__consent input { position: absolute; opacity: 0; pointer-events: none; }
.form__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form__consent .switch__box { margin-top: 1px; width: 18px; height: 18px; }

.form__ok { display: none; text-align: center; padding: 24px 8px; }
.form__ok svg { width: 52px; height: 52px; color: var(--ok); margin: 0 auto 18px; }
.form__ok h3 { margin-bottom: 10px; }
.form__ok p { color: var(--text-2); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }

.contacts { display: grid; gap: 2px; }
.contact { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact:first-of-type { border-top: 1px solid var(--line); }
.contact svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 3px; }
.contact__label { font-size: var(--fs-2xs); color: var(--text-3); margin-bottom: 3px; }
.contact__val {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-base);
    letter-spacing: -.01em;
}
a.contact__val:hover { color: var(--accent); }

.contacts__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- 20. Подвал ---------- */
.footer {
    background: var(--panel-2);
    border-top: 1px solid var(--line);
    padding-block: clamp(44px, 5vw, 70px) 30px;
    font-size: var(--fs-sm);
}
.footer__grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer h4 {
    font-family: var(--ff-mono);
    font-size: var(--fs-3xs);
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--text-2); transition: color .2s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__req { color: var(--text-3); line-height: 1.7; font-size: var(--fs-xs); }
.footer__bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    justify-content: space-between;
    color: var(--text-3);
    font-size: var(--fs-xs);
}

/* ---------- 21. Виджет обратного звонка ---------- */
.cb {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
@media (min-width: 768px) { .cb { right: 26px; bottom: 26px; } }

.cb__toggle {
    position: relative;
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 34px -14px rgba(0, 56, 88, .8);
    transition: background .25s var(--ease), transform .18s var(--ease);
    flex: none;
}
.cb__toggle:hover { background: #00588c; transform: translateY(-2px); }
.cb__toggle svg { width: 26px; height: 26px; }
.cb__toggle .cb__ico-close { display: none; }
.cb.is-open .cb__toggle .cb__ico-phone { display: none; }
.cb.is-open .cb__toggle .cb__ico-close { display: block; }

.cb__ring {
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    border: 2px solid var(--accent-2);
    opacity: 0;
    pointer-events: none;
}
.cb.is-idle .cb__ring { animation: cbRing 2.6s var(--ease) infinite; }
@keyframes cbRing {
    0%   { transform: scale(1);    opacity: .75; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

.cb__panel {
    width: min(340px, calc(100vw - 32px));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px;
    transform: translateY(14px) scale(.97);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.cb.is-open .cb__panel { opacity: 1; visibility: visible; transform: none; }

.cb__panel h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.cb__panel .cb__sub { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 16px; line-height: 1.45; }

.cb__form { display: grid; gap: 10px; }
.cb__form .input { font-family: var(--ff-mono); font-size: var(--fs-base); padding: 15px 16px; }

.cb__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cb__ways .msg-btn { padding: 12px 10px; font-size: var(--fs-sm); background: var(--void); }

.cb__call {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--accent);
}
.cb__call svg { width: 18px; height: 18px; }

.cb__note { font-size: var(--fs-2xs); color: var(--text-3); margin-top: 12px; line-height: 1.45; }
.cb__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.cb__ok { display: none; text-align: center; padding: 8px 0 4px; }
.cb__ok svg { width: 42px; height: 42px; color: var(--ok); margin: 0 auto 12px; }
.cb__ok p { font-size: var(--fs-sm); color: var(--text-2); margin-top: 6px; }
.cb__panel.is-sent .cb__body { display: none; }
.cb__panel.is-sent .cb__ok { display: block; }

/* Нижняя панель действий на мобильном */
.actionbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 94;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .4s var(--ease);
}
.actionbar.is-show { transform: none; }
.actionbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 8px;
    background: var(--panel);
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: var(--fs-md);
}
.actionbar a:first-child { color: var(--accent); }
.actionbar a:last-child { color: #0f6f9b; }
.actionbar svg { width: 19px; height: 19px; }
@media (min-width: 768px) { .actionbar { display: none; } }
@media (max-width: 767px) { .cb { bottom: 68px; } }

/* ---------- 22. Появление при прокрутке ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
    transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 23. Доступность и печать ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .chart .curve-t, .chart .curve-p { stroke-dashoffset: 0; }
    .preloader__art .pl-pipe { stroke-dashoffset: 0; }
    .preloader__art .pl-bead { opacity: 1; }
    .actionbar { transform: none; }
    .cb.is-idle .cb__ring { animation: none; }
}

/* ---------- 24. УТП и быстрый захват в первом экране ---------- */
.usp {
    list-style: none;
    margin: 28px 0 30px;
    padding: 0;
    display: grid;
    gap: 16px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.usp__i {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 14px;
    border-left: 2px solid var(--accent-2);
}
.usp__n {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: var(--fs-lg);
    line-height: 1.15;
    color: var(--navy);
    letter-spacing: -.012em;
}
.usp__t { font-size: var(--fs-xs); line-height: 1.42; color: var(--text-2); }

.quickbar {
    margin-top: 28px;
    max-width: 580px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.quickbar__head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 13px;
    font-size: var(--fs-sm);
    line-height: 1.42;
    color: var(--text-2);
}
.quickbar__head svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.quickbar__row { display: grid; gap: 10px; }
@media (min-width: 540px) { .quickbar__row { grid-template-columns: 1fr auto; } }
.quickbar__note { margin: 11px 0 0; font-size: var(--fs-3xs); line-height: 1.45; color: var(--text-3); }
.quickbar__note a { color: var(--text-2); }
.quickbar__ok {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 12px 0 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ok);
}
.quickbar__ok svg { width: 20px; height: 20px; flex: none; }
.quickbar.is-done .quickbar__row,
.quickbar.is-done .quickbar__note { display: none; }

.hero__strip {
    margin-top: clamp(34px, 4vw, 56px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}
.hero__strip ul {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    display: grid;
    gap: 11px 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .hero__strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__strip li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: var(--fs-xs);
    line-height: 1.3;
    color: var(--navy);
}
.hero__strip svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------- 25. Баннер cookie и страницы документов ---------- */
.cookie {
    position: fixed;
    left: var(--gutter); right: var(--gutter); bottom: 16px;
    /* не наезжаем на нижнюю панель действий */
    z-index: 70;
    max-width: 760px;
    margin-inline: auto;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 24px 60px -24px rgba(8, 22, 32, .45);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
@media (max-width: 900px) { .cookie { bottom: 84px; } }
.cookie[hidden] { display: none !important; }
.cookie__in { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.cookie__ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.cookie__txt {
    flex: 1 1 260px;
    margin: 0;
    font-size: var(--fs-2xs);
    line-height: 1.5;
    color: var(--text-2);
}
.cookie__txt a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie__ok { flex: none; }
@media (max-width: 560px) { .cookie__ok { width: 100%; } }

.doc-main { padding: calc(var(--hdr) + 34px) 0 var(--sec-y); }
.wrap--doc { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: var(--fs-2xs); color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs span { color: var(--text-3); }
.doc__h1 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 1.15rem + 2vw, 2.5rem);
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 12px;
}
.doc__meta {
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-2xs);
    line-height: 1.55;
    color: var(--text-3);
}
.doc { font-size: var(--fs-sm); line-height: 1.68; color: var(--text-2); }
.doc p { margin: 0 0 12px; }
.doc__h2 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: var(--fs-lg);
    line-height: 1.3;
    color: var(--navy);
    margin: 30px 0 12px;
}
.doc__list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 7px; }
.doc__list li { list-style: disc; }
.doc__tablewrap { overflow-x: auto; margin: 0 0 18px; }
.doc__table { width: 100%; border-collapse: collapse; font-size: var(--fs-2xs); }
.doc__table th, .doc__table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.doc__table th { width: 34%; background: var(--panel-2); color: var(--text); font-weight: 600; }
.doc__box {
    margin-top: 34px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: var(--panel-2);
    font-size: var(--fs-2xs);
    line-height: 1.6;
    color: var(--text-2);
}
.doc__box b { color: var(--text); }
.doc__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; }

/* ---------- 26. Слайдер объектов ---------- */
.sec-head--split { display: grid; gap: 18px; align-items: end; max-width: none; }
@media (min-width: 860px) { .sec-head--split { grid-template-columns: minmax(0, 1fr) auto; } }
.slider__nav { display: flex; gap: 10px; }
.slider__btn {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--panel);
    color: var(--navy);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.slider__btn[disabled] { opacity: .34; cursor: default; }
.slider__btn[disabled]:hover { background: var(--panel); color: var(--navy); border-color: var(--line-2); }

.slider { margin-top: 26px; }
.slider__vp {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    /* без этого snap подтягивает первую карточку под левый край и съедает отступ */
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    cursor: grab;
}
.slider__vp::-webkit-scrollbar { display: none; }
.slider__vp.is-drag { cursor: grabbing; scroll-snap-type: none; }
.slider__vp:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.slider__track { display: flex; gap: 16px; list-style: none; margin: 0; padding: 3px 0 6px; }
.work { flex: 0 0 auto; width: min(80vw, 400px); scroll-snap-align: start; }
@media (min-width: 720px) { .work { width: min(46vw, 420px); } }
@media (min-width: 1180px) {
    .work { width: calc((min(100vw, var(--maxw)) - var(--gutter) * 2 - 32px) / 3); }
}
.work__btn {
    display: block; width: 100%; padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    text-align: left; cursor: pointer; overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.work__btn:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.work__pic { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--panel-2); }
.work__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__cap { display: block; padding: 13px 15px 15px; }
.work__cap b {
    display: block;
    font-family: var(--ff-display); font-weight: 600;
    font-size: var(--fs-md); line-height: 1.3; color: var(--text);
}
.slider__foot { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.slider__bar { flex: 1; height: 3px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.slider__bar span {
    display: block; height: 100%; width: 12%;
    border-radius: 3px; background: var(--accent);
    transition: width .2s linear, transform .2s linear;
}
.slider__count {
    margin: 0; display: flex; gap: 5px;
    font-family: var(--ff-mono); font-weight: 500;
    font-size: var(--fs-2xs); color: var(--text-3);
}
.slider__count b { color: var(--text); }

/* Ловушка для ботов: человек этого поля не видит и не может в него попасть. */
.hp-trap {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Заявка не дошла до сервера: не пишем «спасибо», а даём телефон. */
.sendfail {
    position: fixed;
    left: var(--gutter); right: var(--gutter); bottom: 96px;
    z-index: 90;
    max-width: 560px;
    margin-inline: auto;
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px 17px;
    border: 1px solid var(--warn);
    border-left-width: 3px;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 24px 60px -24px rgba(8, 22, 32, .5);
}
.sendfail[hidden] { display: none !important; }
.sendfail svg { width: 20px; height: 20px; flex: none; color: var(--warn); }
.sendfail p { margin: 0; font-size: var(--fs-2xs); line-height: 1.5; color: var(--text-2); }
.sendfail a { color: var(--text); font-weight: 600; text-decoration: underline; }
.sendfail__x {
    margin-left: auto; padding: 0; border: 0; background: none;
    cursor: pointer; color: var(--text-2);
}
.sendfail__x svg { width: 16px; height: 16px; color: currentColor; }

@media print {
    .header, .preloader, .cb, .actionbar, .mobile-menu, .lightbox { display: none !important; }
    body { background: #fff; }
    .quick, .calc__out { background: #fff !important; color: #000 !important; }
}
