@charset "utf-8";

/* ============================================================
   ЦЭП — Вариант 2 «Дуэт»
   Оба цвета знака равноправны: голубой и зелёный идут парой —
   градиентом, двухцветной обводкой, парой восьмиугольных лент.
   База светлая, ритм задают тёмные врезки.
   ============================================================ */

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/templates/cepspb/golos-cyr.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/templates/cepspb/golos-lat.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img,
ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure,
figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0; padding: 0; border: 0;
    font: inherit; font-size: 100%; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup,
menu, nav, section { display: block; }
img { max-width: 100%; }

/* ---------- токены ---------- */
:root {
    /* голубой логотипа: тень / корпус / блик */
    --brand-deep: #0158A3;
    --brand:      #0292D9;
    --brand-glow: #16D1FA;
    /* зелёный логотипа: тень / корпус / блик */
    --green-deep: #288C0A;
    /* мелкий текст зелёным: #288C0A на белом даёт 4.33 — ниже нормы,
       для подписей и цен берётся тон глубже (5.44 на белом) */
    --green-ink:  #237A09;
    --green:      #7DD00C;
    --green-glow: #DAF94D;
    /* тёмные врезки — петроль с зеленцой, ритм на светлой базе */
    --ink:        #06222B;
    --ink-2:      #0A3441;
    /* светлая база */
    --paper:      #EFF4F2;
    --surface:    #FFFFFF;
    --line:       #DCE6E4;
    --text:       #0A2630;
    --mute:       #4F6A74;
    /* подписи поверх светлой графики: под лентами фон уходит в #CFE8DD,
       и на нём --mute даёт 4.45 — ниже нормы 4.5 для мелкого текста.
       Тон глубже держит 5.30 там же — см. расшифровки в просвете */
    --mute-ink:   #46606A;

    /* дуэт: оба цвета в одной заливке */
    --duo:        linear-gradient(104deg, #0292D9 0%, #7DD00C 100%);
    --duo-v:      linear-gradient(180deg, #0292D9 0%, #7DD00C 100%);
    --duo-bright: linear-gradient(104deg, #16D1FA 0%, #DAF94D 100%);
    /* для текста: светлые концы градиента на белом не читаются,
       поэтому у надписей пара берётся в тенях */
    --duo-ink:    linear-gradient(104deg, #0158A3 0%, #288C0A 100%);
    --duo-soft:   linear-gradient(104deg, rgba(2, 146, 217, .12) 0%, rgba(125, 208, 12, .12) 100%);

    --shell: 1500px;
    --gut: 48px;
    /* внешний отступ: прижимает контент к колонке --shell, но фон тянется во всю ширину */
    --edge: max(var(--gut), calc((100% - var(--shell)) / 2 + var(--gut)));

    /* фаска восьмиугольника — мотив логотипа */
    --bevel: 10px;
    --oct: polygon(
        var(--bevel) 0, calc(100% - var(--bevel)) 0,
        100% var(--bevel), 100% calc(100% - var(--bevel)),
        calc(100% - var(--bevel)) 100%, var(--bevel) 100%,
        0 calc(100% - var(--bevel)), 0 var(--bevel));

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- база ---------- */
body {
    font-family: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--text); }

/* Ссылки на тёмных врезках. Глобальный a:hover красит в цвет текста (0,1,1)
   и перебивает одиночный класс (0,1,0) — на тёмном ссылка пропадала.
   Поэтому наведение задано явно, цветом блика. */
.cta__actions .tel:hover,
.cookie-message a:hover { color: var(--brand-glow); }

:focus-visible {
    outline: 2px solid var(--brand-deep);
    outline-offset: 3px;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--text);
}

.wrap { overflow: clip; }

/* ---------- двухцветная обводка ----------
   Рамка — сам градиент, поверх него внутренний слой с тем же
   восьмиугольником, утопленный на 2 px. z-index: -1 у слоя и
   собственный контекст наложения у элемента: иначе слой лёг бы
   поверх текста (позиционированные потомки рисуются после строк). */
.duo-edge {
    position: relative;
    z-index: 0;
    background: var(--duo);
    clip-path: var(--oct);
}
.duo-edge::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--surface);
    clip-path: var(--oct);
}

/* ============================================================
   ШАПКА
   Светлая: объёмный знак с чёрными буквами живёт на белом.
   Границу низа держит градиентная линия — подпись «дуэта».
   ============================================================ */
.util {
    background: #E6EDEB;
    border-bottom: 1px solid #D6E0DE;
}
.util__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 var(--edge);
    min-height: 46px;
}
.util__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.util__nav a {
    font-size: 13px;
    color: var(--mute);
    transition: color .18s;
}
.util__nav a:hover { color: var(--brand-deep); }
.util__side { display: flex; align-items: center; gap: 20px; }
.svyaz { display: flex; gap: 8px; }
.svyaz a {
    position: relative;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    background: var(--duo);
    clip-path: var(--oct);
    --bevel: 8px;
    transition: transform .2s var(--ease);
}
.svyaz a::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--surface);
    clip-path: var(--oct);
    transition: background .22s;
}
.svyaz a:hover { transform: translateY(-2px); }
.svyaz a:hover::before { background: #E8F3EF; }
.svyaz img { width: 26px; height: 26px; object-fit: contain; }

/* градиент для штриховых иконок шапки: 0×0 svg вынесен из потока,
   иначе inline-элемент занимает строку */
.head-defs { position: absolute; width: 0; height: 0; }

/* основной ряд */
.head {
    position: relative;
    background: var(--surface);
}
.head::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--duo);
}
.head__in {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 22px var(--edge);
}
.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    color: inherit;
}
.brand__mark {
    display: block;
    width: 86px; height: auto;
    transition: transform .45s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.04); }
.brand__name {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--text);
}
.brand__tag {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--mute);
}

/* адрес по центру шапки — иначе между логотипом и телефонами пусто */
.head__addr {
    margin-inline: auto;
    padding-left: 22px;
    border-left: 2px solid;
    border-image: var(--duo-v) 1;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mute);
}
.head__addr-t { display: block; color: var(--text); font-weight: 500; }
.head__addr-s { display: block; }
.head__addr a {
    display: inline-block;
    margin-top: 5px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand-deep);
    border-bottom: 1px solid rgba(2, 146, 217, .35);
}
.head__addr a:hover { color: var(--text); border-color: currentColor; }

.head__phones { margin-left: auto; text-align: right; }
/* плашка с трубкой — только узкая шапка, на широкой номер говорит сам */
.link-phone__p { display: none; }
.link-phone__i {
    display: block;
    fill: none;
    stroke: url(#head-duo);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.link-phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.link-phone:hover { color: var(--brand-deep); }
.head__phones .time {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--mute);
}

/* ---------- кнопки ---------- */
.btn,
.mailing_submit,
#zvonok input[type=submit] {
    display: inline-block;
    padding: 13px 26px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--ink);
    background: var(--duo);
    border: 0;
    clip-path: var(--oct);
    cursor: pointer;
    transition: filter .22s, transform .22s var(--ease);
}
.btn:hover,
.mailing_submit:hover,
#zvonok input[type=submit]:hover {
    filter: saturate(1.1) brightness(1.08);
    transform: translateY(-1px);
}

.btn-order { padding: 11px 22px; font-size: 13.5px; }

/* вторая кнопка — та же пара, но обводкой */
.ghost {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--duo);
    clip-path: var(--oct);
    cursor: pointer;
    transition: transform .22s var(--ease);
}
.ghost::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--surface);
    clip-path: var(--oct);
    transition: background .22s;
}
.ghost:hover { color: var(--text); transform: translateY(-1px); }
.ghost:hover::before { background: #EAF4EF; }

/* ============================================================
   ГЛАВНОЕ МЕНЮ — светлая полоса, пара работает подчёркиванием
   ============================================================ */
.main-nav {
    position: relative;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.main-nav > ul {
    display: flex;
    padding: 0 var(--edge);
    list-style: none;
}
.main-nav > ul > li { position: static; }
.main-nav > ul > li > a {
    position: relative;
    display: block;
    padding: 21px 34px 21px 0;
    margin-right: 34px;
    font-size: 17.5px;
    font-weight: 500;
    letter-spacing: -.012em;
    color: var(--text);
    transition: color .2s;
}
.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 3px;
    background: var(--duo);
    transition: width .3s var(--ease);
}
/* у раздела есть подменю — показываем шевроном */
.main-nav > ul > li.f-rod > a::before {
    content: '';
    position: absolute;
    right: 13px; top: 50%;
    width: 7px; height: 7px;
    border-right: 1.5px solid var(--mute);
    border-bottom: 1.5px solid var(--mute);
    transform: translateY(-70%) rotate(45deg);
    transition: border-color .2s, transform .25s var(--ease);
}
.main-nav > ul > li.f-rod:hover > a::before {
    border-color: var(--green-deep);
    transform: translateY(-30%) rotate(225deg);
}
.main-nav > ul > li:hover > a { color: var(--brand-deep); }
.main-nav > ul > li:hover > a::after { width: calc(100% - 34px); }

/* выпадающее подменю: четыре столбца, цена прижата вправо */
.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: var(--edge); right: var(--edge);   /* во всю колонку, но не шире 1500 */
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 38px;
    padding: 26px 34px 30px;
    list-style: none;
    background: var(--duo);
    clip-path: var(--oct);
    --bevel: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.main-nav ul ul::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: 0;
    background: var(--surface);
    clip-path: var(--oct);
}
.main-nav > ul > li:hover > ul,
.main-nav > ul > li:focus-within > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav ul ul li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.main-nav ul ul a {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    transition: color .18s;
}
.main-nav ul ul li:hover a { color: var(--brand-deep); }
.main-nav ul ul b {
    flex: none;
    font-size: 13.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--green-ink);
}

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   Графика — две вложенные разомкнутые восьмиугольные ленты,
   форма самого знака: голубая и зелёная идут навстречу.
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 96px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E9F1EE 100%);
}
/* мягкое свечение пары под лентами */
.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -6%;
    width: 900px; height: 900px;
    background:
        radial-gradient(circle at 62% 42%, rgba(2, 146, 217, .16), transparent 58%),
        radial-gradient(circle at 38% 64%, rgba(125, 208, 12, .16), transparent 58%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 2;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
}
.hero__kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-deep);
}
.hero__kicker::before {
    content: '';
    width: 30px; height: 3px;
    background: var(--duo);
}
.hero h1 {
    max-width: 17ch;
    font-size: clamp(40px, 4.6vw, 66px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: var(--text);
}
/* вторая половина заголовка — парой цветов; концы градиента взяты
   в тенях, светлые на белом не дотягивают по контрасту */
.hero h1 .g {
    font-style: normal;
    background: var(--duo-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    max-width: 52ch;
    margin-top: 26px;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--mute);
}
.hero__cta { display: flex; gap: 14px; margin-top: 38px; }
.hero__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 28px;
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    max-width: 960px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--mute);
}
.hero__trust span { display: flex; gap: 10px; }
.hero__trust span::before {
    content: '';
    width: 7px; height: 7px;
    margin-top: .45em;
    background: var(--duo);
    flex: none;
}

/* ---------- две ленты ---------- */
.hero__art {
    position: absolute;
    top: 50%; right: max(var(--gut), calc(50% - var(--shell) / 2 + var(--gut)));
    width: 540px; height: 540px;
    transform: translateY(-50%);
    pointer-events: none;
}
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.art-ring path {
    fill: none;
    stroke-width: 3.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.art-ring--out path { stroke: url(#duo-blue); }
.art-ring--in path { stroke: url(#duo-green); }

/* ленты прочерчиваются на загрузке, потом медленно идут навстречу */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes glow {
    0%, 100% { opacity: .75; }
    50%      { opacity: 1; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.art-ring {
    transform-box: view-box;
    transform-origin: 50px 50px;
}
.art-ring--out { animation: spin-cw 110s linear 1.8s infinite; }
.art-ring--in { animation: spin-ccw 80s linear 1.8s infinite; }

/* ---------- аббревиатуры в просвете лент ----------
   Просвет внутренней ленты — 25.98…74.02 из ста единиц макета, то есть
   ровно 48 % графики: 259 px при ленте 540 и 345 px при 720. Внутрь
   помещается одна аббревиатура крупно и расшифровка в две строки —
   больше не влезает, поэтому шаги идут по очереди, а не списком.
   Появление и уход — только по прозрачности с подъёмом на 8 px:
   ленты и так медленно вращаются, второе движение спорило бы с ними. */
.hero__core {
    position: absolute;
    inset: 26%;
    display: grid;
    place-items: center;
    padding: 4%;
    text-align: center;
}
.hero__code {
    grid-area: 1 / 1;
    display: grid;
    justify-items: center;
    gap: 9px;
    opacity: 0;
}
.hero__code b {
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--text);
}
.hero__code i {
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mute-ink);
    text-wrap: balance;
    /* Ленты вращаются, поэтому свободна не коробка просвета, а окружность.
       Её радиус задают не рёбра восьмиугольника (22.19 единиц из ста), а
       загнутые внутрь концы внутренней ленты — они доходят до 20.8; минус
       половина штриха 3.1 остаётся 19.25 единиц, то есть 104 px при ленте
       540. В такую окружность на высоте нижней строки проходит 66 % ширины
       просвета: без ограничения углы длинных расшифровок наезжают на ленту. */
    max-width: 66%;
}
/* восемь шагов по 3,4 с — полный круг 27,2 с; старт после прочерковки лент */
@keyframes core-step {
    0%    { opacity: 0; transform: translateY(8px); }
    2%    { opacity: 1; transform: none; }
    10.5% { opacity: 1; transform: none; }
    12.5% { opacity: 0; transform: translateY(-6px); }
    100%  { opacity: 0; transform: translateY(-6px); }
}
.hero__code { animation: core-step 27.2s var(--ease) infinite; }
.hero__code:nth-child(1) { animation-delay: 1.9s; }
.hero__code:nth-child(2) { animation-delay: 5.3s; }
.hero__code:nth-child(3) { animation-delay: 8.7s; }
.hero__code:nth-child(4) { animation-delay: 12.1s; }
.hero__code:nth-child(5) { animation-delay: 15.5s; }
.hero__code:nth-child(6) { animation-delay: 18.9s; }
.hero__code:nth-child(7) { animation-delay: 22.3s; }
.hero__code:nth-child(8) { animation-delay: 25.7s; }
.art-ring--out path { animation: draw 1.7s var(--ease) .2s forwards; }
.art-ring--in path { animation: draw 1.7s var(--ease) .45s forwards; }
.hero::before { animation: glow 7s ease-in-out 1.5s infinite; }
.hero__kicker { animation: rise .8s var(--ease) .05s backwards; }
.hero h1      { animation: rise .8s var(--ease) .14s backwards; }
.hero__lead   { animation: rise .8s var(--ease) .26s backwards; }
.hero__cta    { animation: rise .8s var(--ease) .38s backwards; }
.hero__trust  { animation: rise .8s var(--ease) .5s backwards; }

/* ============================================================
   НАПРАВЛЕНИЯ — три карточки в двухцветной обводке
   ============================================================ */
.dirs {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
    transform: translateY(-46px);
}
.dirs__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.dir {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    background: var(--duo);
    clip-path: var(--oct);
    --bevel: 16px;
    transition: transform .3s var(--ease);
}
.dir::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--surface);
    clip-path: var(--oct);
}
.dir:hover { transform: translateY(-5px); }
.dir h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.022em;
    line-height: 1.2;
}
.dir h2 a { color: var(--text); }
.dir:hover h2 a { color: var(--brand-deep); }
.dir__d {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mute);
}
.dir__l {
    margin: 20px 0 0;
    padding-top: 6px;
    border-top: 3px solid;
    border-image: var(--duo) 1;
    list-style: none;
}
.dir__l li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.dir__l a {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--text);
    transition: color .18s;
}
.dir__l a:hover { color: var(--brand-deep); }
.dir__l b {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--green-ink);
}
.dir__all {
    margin-top: auto;
    padding-top: 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--brand-deep);
}
.dir__all:hover { color: var(--text); }

/* ============================================================
   ТЁМНАЯ ВРЕЗКА С ЦИФРАМИ — ритм на светлой базе
   ============================================================ */
.facts {
    background: var(--ink);
    border-top: 3px solid;
    border-image: var(--duo) 1;
    color: #fff;
}
.facts__in {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 56px var(--gut) 60px;
}
.facts__t {
    max-width: 24ch;
    font-size: 28px;
    letter-spacing: -.028em;
    color: #fff;
}
.facts__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 36px;
}
.fact {
    padding-top: 20px;
    border-top: 3px solid;
    border-image: var(--duo) 1;
}
.fact b {
    /* inline-block: у блочного элемента коробка шире цифры,
       и обрезанный по тексту градиент показывает только свой левый край */
    display: inline-block;
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    background: var(--duo-bright);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fact span {
    display: block;
    max-width: 30ch;
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .68);
}

/* ============================================================
   КОНТЕНТ + САЙДБАР
   ============================================================ */
.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: start;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 60px var(--gut) 90px;
}
.content-wrap > aside { order: 2; }
.content-wrap > .content { order: 1; min-width: 0; }
/* вторая зона текста лежит в той же сетке, но занимает обе колонки
   и идёт следующей строкой: снаружи сетки боковая колонка не может
   уехать за неё порядком */
.content-wrap > .wide { grid-column: 1 / -1; order: 3; min-width: 0; }

/* ---------- основной текст ---------- */
.page { max-width: none; }
.page p {
    max-width: 62ch;      /* по замеру это ~75 знаков — верхняя граница читаемого */
    margin-bottom: 18px;
    color: #27454F;
}
.page > p:first-of-type {
    max-width: 64ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
}
.page h2 {
    position: relative;
    max-width: 34ch;
    margin: 46px 0 20px;
    padding-top: 26px;
    font-size: 27px;
    letter-spacing: -.025em;
}
.page h2::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 74px; height: 4px;
    background: var(--duo);
}
/* перечни документации — сетка плиток: пункты сильно разной длины,
   в колонках они дают рваный ритм, в сетке ряды выравниваются */
.page ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
    gap: 12px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}
.page li {
    position: relative;
    padding: 16px 20px 16px 24px;
    font-size: 15px;
    line-height: 1.45;
    color: #27454F;
    background: var(--surface);
    clip-path: var(--oct);
    --bevel: 9px;
    transition: color .2s, background .2s;
}
.page li::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--duo-v);
}
.page li:hover { background: #F7FBF8; color: var(--text); }
.justifyleft {
    float: left;
    margin: 4px 26px 14px 0;
    clip-path: var(--oct);
    --bevel: 12px;
}

/* ---------- сайдбар ---------- */
aside .box {
    margin-bottom: 26px;
    padding: 24px 24px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
}
aside .top-line { display: none; }
aside .box-bottom { display: none; }

.sideheader,
aside .box-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: var(--duo) 1;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}

/* в колонке показываем три свежие записи: иначе сайдбар вдвое длиннее текста */
aside .box article:nth-of-type(n+4) { display: none; }
aside .box article:nth-of-type(3) { border-bottom: 0; padding-bottom: 0; }
aside article {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
aside article:last-child { border-bottom: 0; padding-bottom: 0; }
aside article h3 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}
aside article h3 a { color: var(--text); transition: color .2s; }
aside article h3 a:hover { color: var(--brand-deep); }
aside article h3 span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mute);
}
aside article h3 br { display: none; }
aside article p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mute);
}
aside article img {
    display: block;
    width: 100%;
    margin: 10px 0 4px;
    clip-path: var(--oct);
    --bevel: 8px;
}
.akcii p {
    -webkit-line-clamp: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-deep);
}

.thumbs { display: grid; gap: 14px; }
.thumbs a {
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--paper);
    clip-path: var(--oct);
    --bevel: 10px;
    transition: background .22s;
}
.thumbs a:hover { background: #E4EFEA; }
/* логотипы партнёров разных пропорций — равняем по высоте, размер задан заказчиком */
.thumbs img {
    display: block;
    max-height: 180px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* поиск */
#search-form fieldset { border: 0; }
#search-form label { display: flex; gap: 8px; }
.mailing_input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
}
.mailing_input:focus { outline: 0; border-color: var(--brand); background: #fff; }
.mailing_submit { padding: 11px 18px; font-size: 13.5px; }

/* ============================================================
   ПРИЗЫВ — вторая тёмная врезка
   ============================================================ */
.cta {
    background: var(--ink-2);
    border-top: 3px solid;
    border-image: var(--duo) 1;
    color: #fff;
}
.cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 44px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 62px var(--gut);
}
.cta h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.03em;
    color: #fff;
}
.cta p {
    max-width: 58ch;
    margin-top: 14px;
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
}
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
.cta__hours {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    text-align: center;
}
.cta__actions .tel {
    display: block;
    padding: 0;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #fff;
    text-align: center;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
/* ---------- карта над подвалом ----------
   Во всю ширину окна и вплотную к подвалу: карта — верхняя кромка подвала,
   а не отдельный блок с полями. Поэтому ни колонки --shell, ни отступов. */
.map { background: var(--paper); font-size: 0; }
.map__in { position: relative; overflow: hidden; }
.map__link { display: block; position: relative; }
.map__pic {
    display: block;
    width: 100%;
    height: 450px;
    /* снимок шире полосы (1605×683): по ширине он тянется, а по высоте
       кадрируется от карточки организации — она чуть правее центра */
    object-fit: cover;
    object-position: 51% 42%;
}
/* Снимок карты — изображение Яндекс Карт, и знак правообладателя на нём
   обязателен. Свой знак в углу снимка срезается кадрированием, поэтому
   подпись стоит поверх, в левом нижнем углу: правый занят кнопкой */
.map__copy {
    position: absolute;
    left: 10px; bottom: 8px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #33454C;
    background: rgba(255, 255, 255, .82);
    pointer-events: none;
}
/* кнопка встаёт по колонке контента, а не по краю окна: подвал под картой
   выровнен по --edge, и кнопка держит ту же вертикаль */
.map__btn {
    position: absolute;
    right: var(--edge); bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(6, 34, 43, .26);
}
.map__btn svg {
    width: 16px; height: 16px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* наведение на любую точку снимка — кнопка отзывается: кликабелен весь блок */
.map__link:hover .map__btn {
    filter: saturate(1.1) brightness(1.08);
    transform: translateY(-1px);
}
/* подписи виджета для поисковиков: со страницы убраны, из разметки нет */
.map__seo {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- подвал ----------
   Две колонки: слева контакты и реквизиты, справа заявка. Раньше справа
   пустовала половина ширины — подвал был одной строкой текста. */
.foot-defs { position: absolute; width: 0; height: 0; }
.foot {
    background: #04171D;
    color: rgba(255, 255, 255, .62);
}
.foot__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px 60px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 54px var(--gut) 50px;
}
.foot a { color: rgba(255, 255, 255, .82); transition: color .2s; }
.foot a:hover { color: var(--brand-glow); }

.foot__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.foot__nav a { font-size: 15.5px; font-weight: 600; color: #FFFFFF; }

/* строка контакта: иконка в плашке и текст рядом — как у образца */
.foot__line { display: flex; gap: 14px; align-items: flex-start; }
.foot__line--wide { margin-top: 26px; }
.foot__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, .07);
    clip-path: var(--oct);
    --bevel: 10px;
}
.foot__ico svg {
    width: 21px; height: 21px;
    fill: none;
    stroke: url(#foot-duo);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.foot__txt { min-width: 0; }
.foot__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 30px;
    margin-top: 22px;
}
.foot__l {
    margin-bottom: 5px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .52);
}
.foot__v { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }

/* реквизиты, связь и оценка — тремя блоками в ряд */
.foot__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.foot__legal {
    margin-right: auto;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .06);
    clip-path: var(--oct);
    --bevel: 10px;
}
.foot__legal b { display: block; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.foot__legal span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
.foot .svyaz { justify-content: flex-start; }
.foot .svyaz a::before { background: #0B2A33; }
.foot .svyaz a:hover::before { background: #12404E; }

/* оценка: своя плашка, официальный бейдж вставляется кодом Яндекса */
.rate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .06);
    clip-path: var(--oct);
    --bevel: 8px;
}
.rate__v { font-size: 19px; font-weight: 700; color: #FFFFFF; }
.rate__s { display: flex; gap: 2px; }
.rate__s svg { width: 12px; height: 12px; fill: var(--green-glow); }
.rate__d { font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .55); }

.foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    margin-top: 28px;
    font-size: 13.5px;
}
.foot__note { margin-top: 14px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .52); }

/* ---------- заявка в подвале ---------- */
.foot__form {
    align-self: start;
    padding: 30px 30px 32px;
    background: rgba(255, 255, 255, .05);
    clip-path: var(--oct);
    --bevel: 18px;
}
.foot__ft {
    font-size: 27px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #FFFFFF;
}
.foot__ft em {
    display: block;
    font-style: normal;
    background: var(--duo-bright);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.foot__fd { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.foot__f { display: block; margin-top: 18px; }
.foot__fl {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .72);
}
.foot__fl i { font-style: normal; color: var(--green-glow); }
.foot__form input[type=text],
.foot__form input[type=tel] {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 15px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    clip-path: var(--oct);
    --bevel: 8px;
}
.foot__form input::placeholder { color: rgba(255, 255, 255, .5); }
.foot__form input[type=text]:focus,
.foot__form input[type=tel]:focus {
    outline: 0;
    border-color: var(--brand-glow);
    background: rgba(255, 255, 255, .1);
}
.foot__agree {
    display: flex;
    gap: 11px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
}
.foot__agree input {
    flex: none;
    width: 17px; height: 17px;
    margin-top: 1px;
    accent-color: #7DD00C;
}
.foot__fb { width: 100%; margin-top: 22px; padding: 15px 26px; font-size: 15px; }

/* ============================================================
   ПЛАВАЮЩАЯ ПАНЕЛЬ / МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.block-top-cont {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: none;
    align-items: center;
    gap: 26px;
    padding: 11px var(--gut);
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid;
    border-image: var(--duo) 1;
}
.block-top-cont__item:last-child { margin-left: auto; }
.block-top-cont a { color: var(--text); font-weight: 500; }
.block-top-cont a:hover { color: var(--brand-deep); }
.block-top-cont .prefix { color: var(--mute); font-weight: 400; }
.block-top-cont .svyaz { margin: 0; gap: 7px; }
.block-top-cont .svyaz a { width: 34px; height: 34px; --bevel: 7px; }
.block-top-cont .svyaz img { width: 20px; height: 20px; }
.block-top-cont-mobile { display: none; }
.mobile-menu { display: none; }

/* ============================================================
   ФОРМА ОБРАТНОГО ЗВОНКА
   ============================================================ */
.callback-form { display: none; padding: 34px 38px; background: #fff; }
.fancybox__content > .callback-form { display: block; }
#online-wrap { min-width: 420px; }
#zvonok table { width: 100%; border-collapse: collapse; }
#zvonok td { padding: 5px 0; font-size: 14px; color: var(--mute); vertical-align: middle; }
#zvonok input[type=text],
#zvonok textarea {
    width: 100% !important;
    margin: 0 0 0 10px !important;
    padding: 10px 13px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
}
#zvonok input[type=text]:focus,
#zvonok textarea:focus { outline: 0; border-color: var(--brand); background: #fff; }
#zvonok input[type=submit] {
    margin-top: 16px !important;
    box-shadow: none !important;
    background: var(--duo) !important;
    border-radius: 0 !important;
}

/* ============================================================
   COOKIE
   ============================================================ */
.cookie-message {
    position: fixed;
    left: 24px; bottom: 24px;
    z-index: 950;
    max-width: 420px;
    padding: 20px 24px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
    background: var(--ink);
    clip-path: var(--oct);
    --bevel: 12px;
}
.cookie-message a { color: var(--brand-glow); }
.js-cookie-message-confirm {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--duo);
    cursor: pointer;
}

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================ */
[data-rise] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--rd, 0s);
}
[data-rise].is-in { opacity: 1; transform: none; }

/* ============================================================
   ДОСТУПНОСТЬ ДВИЖЕНИЯ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .art-ring path { stroke-dashoffset: 0; }
    [data-rise] { opacity: 1 !important; transform: none !important; }
    /* шаги сменяются анимацией: без неё виден только первый */
    .hero__code:first-child { opacity: 1; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (min-width: 1500px) {
    body { font-size: 17px; }
    .hero__art { width: 620px; height: 620px; }
    .hero h1 { font-size: clamp(52px, 4.4vw, 74px); }
}

@media (max-width: 1400px) {
    :root { --gut: 36px; }
    /* адрес помещается только на широкой шапке — иначе ломает строку */
    .head__addr { display: none; }
    .content-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; }
}

@media (max-width: 1180px) {
    :root { --gut: 28px; }
    .content-wrap { grid-template-columns: minmax(0, 1fr) 280px; gap: 38px; }
    .dirs__row { gap: 14px; }
    .dir { padding: 26px 22px 22px; }
    .hero__art { right: -260px; width: 720px; height: 720px; }
    /* лента выросла и ушла за правый край — просвет оказывается за
       экраном на 73 px, а уменьшить увод нельзя: обводка пойдёт прямо
       по строкам заголовка (замер: левый край ленты 567 против 578 у h1).
       Поэтому ниже 1180 графика работает как фон, без подписей. */
    .hero__core { display: none; }
    .main-nav > ul > li > a { padding-right: 26px; margin-right: 22px; font-size: 16px; }
    .main-nav > ul > li:hover > a::after { width: calc(100% - 22px); }
    .brand__mark { width: 74px; }
    .facts__row { gap: 22px; }
}

@media (max-width: 980px) {
    /* в одну колонку заявка идёт первой: за ней приходят чаще, чем за
       реквизитами, а внизу её пришлось бы искать прокруткой */
    .foot__in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .foot__form { order: -1; }
    .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot__legal { margin-right: 0; }
    .head__in { flex-wrap: wrap; gap: 20px 28px; }
    .head__phones { margin-left: auto; }
    .util__nav { gap: 6px 18px; }
    .hero { padding: 70px 0 84px; }
    .hero__art svg { opacity: .55; }
    .dirs__row { grid-template-columns: 1fr; }
    .dirs { transform: translateY(-30px); }
    .facts__row { grid-template-columns: 1fr; gap: 26px; }
    .facts__in { padding: 44px var(--gut) 48px; }
    .content-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 46px; }
    /* в одну колонку боковая уходит под весь текст, к самому подвалу:
       между зонами статьи пять её блоков подряд читаются как обрыв текста */
    .content-wrap > aside { order: 2; }
    .content-wrap > .wide { order: 1; }
    .cta__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   МОБИЛЬНАЯ ШАПКА И ВЫЕЗЖАЮЩЕЕ МЕНЮ
   ============================================================ */
.burger {
    display: none;
    position: relative;
    z-index: 1300;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px; height: 48px;
    padding: 0 11px;
    margin-left: auto;
    background: var(--duo);
    border: 0;
    cursor: pointer;
    clip-path: var(--oct);
    --bevel: 9px;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(6, 34, 43, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

.nav__foot { display: none; }
.sub-toggle { display: none; }

@media (max-width: 1100px) {
    .burger { display: flex; }
    .util { display: none; }
    .block-top-cont { display: none !important; }
    body.nav-open { overflow: hidden; }

    /* ряд шапки не переносится ни на какой ширине: на 721 px бургер
       уезжал на вторую строку и шапка становилась двухэтажной —
       flex-wrap: wrap достался от блока 980 и здесь не отменялся */
    .head__in { flex-wrap: nowrap; gap: 16px; padding: 14px var(--gut); }
    .brand { gap: 14px; min-width: 0; }
    .brand__txt { min-width: 0; }
    .brand__mark { width: 58px; }
    .brand__name { font-size: 17px; }
    .head__addr { display: none; }
    .head__in > .btn-order { display: none; }
    /* между логотипом и бургером пустовала половина шапки — туда встаёт
       основной телефон: на мобильном это первое, зачем сюда приходят */
    .head__phones { display: flex; align-items: center; margin-left: auto; }
    .head__phones .link-phone:not(.link-phone--first),
    .head__phones .time { display: none; }
    .head__phones .link-phone--first {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 16px;
        white-space: nowrap;
    }
    .link-phone__p { display: grid; place-items: center; flex: none; }
    .link-phone__i { width: 19px; height: 19px; }
    /* бургер прижимался своим margin-left: auto, и свободное место делилось
       между ним и телефоном пополам: на 719 px между ними зияло 203 px.
       Теперь вправо уходит только телефон, а бургер встаёт следом — пара */
    .burger { margin-left: 0; }

    /* меню уезжает в панель справа — светлую, как вся база «Дуэта» */
    .main-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        z-index: 1200;
        width: min(430px, 90vw);
        padding: 86px 0 36px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--surface);
        border-bottom: 0;
        border-left: 3px solid;
        border-image: var(--duo-v) 1;
        box-shadow: -22px 0 60px rgba(6, 34, 43, .28);
        transform: translateX(105%);
        transition: transform .38s var(--ease);
    }
    body.nav-open .main-nav { transform: none; }

    .main-nav > ul { flex-direction: column; padding: 0 26px; }
    .main-nav > ul > li > a {
        padding: 17px 42px 17px 0;
        margin: 0;
        font-size: 17px;
        color: var(--text);
        border-bottom: 1px solid var(--line);
    }
    .main-nav > ul > li > a::after { display: none; }
    .main-nav > ul > li.f-rod > a::before { display: none; }
    .sub-toggle {
        display: grid;
        place-items: center;
        position: absolute;
        top: 0; right: -8px;
        width: 54px; height: 56px;
        background: none;
        border: 0;
        cursor: pointer;
    }
    .sub-toggle::before {
        content: '';
        width: 8px; height: 8px;
        border-right: 2px solid var(--mute);
        border-bottom: 2px solid var(--mute);
        transform: translateY(-2px) rotate(45deg);
        transition: transform .28s var(--ease), border-color .2s;
    }
    .main-nav > ul > li.open .sub-toggle::before {
        border-color: var(--green-deep);
        transform: translateY(2px) rotate(225deg);
    }
    .main-nav > ul > li { position: relative; }

    /* подменю — аккордеон, раскрывается по тапу */
    .main-nav ul ul {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        width: auto;
        gap: 0;
        padding: 4px 0 12px;
        background: transparent;
        clip-path: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .main-nav ul ul::before { display: none; }
    .main-nav > ul > li.open > ul { display: grid; }
    .main-nav ul ul li { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .main-nav ul ul a { font-size: 14.5px; }

    /* контакты в панели */
    .nav__foot { display: block; margin: 24px 26px 0; }
    .nav__soc {
        display: grid;
        gap: 8px;
        margin-bottom: 24px;
    }
    .nav__soc a {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px 14px;
        font-size: 14.5px;
        color: var(--text);
        background: var(--paper);
        clip-path: var(--oct);
        --bevel: 8px;
        transition: background .2s;
    }
    .nav__soc a:hover { color: var(--brand-deep); background: #E4EFEA; }
    .nav__soc img { width: 24px; height: 24px; flex: none; }
    .nav__tel {
        display: block;
        margin-bottom: 4px;
        font-size: 21px;
        font-weight: 600;
        letter-spacing: -.02em;
        color: var(--text);
    }
    .nav__hours {
        display: block;
        margin-bottom: 18px;
        font-size: 13px;
        color: var(--mute);
    }
    .nav__foot .btn { width: 100%; text-align: center; }
    .nav__links { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
    .nav__links a { font-size: 14px; color: var(--mute); }
    .nav__links a:hover { color: var(--brand-deep); }
}

/* Номер строкой держится до 740 px впритык (замер: логотип 431 + номер 170
   + бургер 48 + отступы = ровно 740). Порог поднят до 820, чтобы запас был
   не в девять пикселей: ниже него номер сворачивается в плашку с трубкой,
   и справа стоит пара «телефон + меню» — две восьмиугольные плашки подряд.
   Плашка светлая с обводкой парой, бургер — залитый: так же, как .ghost
   отличается от .btn. */
@media (max-width: 820px) {
    .head__phones .link-phone__n { display: none; }
    .head__phones .link-phone--first { gap: 0; }
    .link-phone__p {
        position: relative;
        z-index: 0;
        width: 48px; height: 48px;
        background: var(--duo);
        clip-path: var(--oct);
        --bevel: 9px;
    }
    .link-phone__p::before {
        content: '';
        position: absolute;
        inset: 2px;
        z-index: -1;
        background: var(--paper);
        clip-path: var(--oct);
        --bevel: 8px;
        transition: background .22s;
    }
    .link-phone--first:hover .link-phone__p::before { background: #E8F3EF; }
    .link-phone__i { width: 22px; height: 22px; }
}

@media (max-width: 720px) {
    :root { --gut: 18px; }
    .foot__cols { grid-template-columns: minmax(0, 1fr); }
    .foot__in { padding-top: 38px; padding-bottom: 36px; }
    .foot__form { padding: 24px 20px 26px; }
    .foot__ft { font-size: 23px; }
    .map__pic { height: 320px; object-position: 51% 42%; }
    .map__btn { right: var(--gut); bottom: 18px; padding: 11px 18px; font-size: 13.5px; }
    .brand__tag { display: none; }
    .brand__mark { width: 52px; }
    /* логотип с названием, плашка телефона и бургер в сумме шире 320 px,
       и при сжатии они наезжают друг на друга — на узких экранах всё
       уменьшается разом */
    .head__in { gap: 10px; }
    .brand { min-width: 0; gap: 10px; }
    .brand__txt { min-width: 0; }
    .brand__name { font-size: 14.5px; line-height: 1.25; }
    .hero { padding: 54px 0 68px; }
    .hero h1 { font-size: clamp(30px, 8vw, 40px); max-width: none; }
    .hero__kicker { font-size: 11.5px; letter-spacing: .13em; }
    .hero__lead { font-size: 16px; margin-top: 20px; }
    .hero__cta { flex-wrap: wrap; gap: 10px; }
    .hero__cta .btn, .hero__cta .ghost { flex: 1 1 100%; text-align: center; }
    /* на узком экране ленты уходят за правый край и гасятся:
       иначе толстый штрих проходит прямо по строкам лида */
    .hero__art { top: 58%; right: -215px; width: 420px; height: 420px; }
    .hero__art svg { opacity: .4; }
    .hero__trust { grid-template-columns: 1fr; gap: 9px; margin-top: 36px; }
    .dirs { transform: translateY(-24px); }
    .dir { padding: 24px 20px 20px; }
    .facts__t { font-size: 22px; }
    .facts__in { padding: 36px var(--gut) 40px; }
    .content-wrap { padding-top: 34px; padding-bottom: 56px; gap: 34px; }
    .page ul { grid-template-columns: 1fr; }
    .thumbs a { padding: 16px; }
    .thumbs img { max-height: 150px; }
    .page h2 { font-size: 22px; margin-top: 34px; max-width: none; }
    .page > p:first-of-type { font-size: 16.5px; }
    .justifyleft { float: none; width: 100%; height: auto; margin: 0 0 18px; }
    .cta__inner { padding: 44px var(--gut); gap: 28px; }
    .cta h2 { font-size: 25px; }
    .cta__actions .tel { font-size: 24px; text-align: left; }
    .cta__actions .btn { width: 100%; text-align: center; }
    footer p, footer .svyaz { padding-left: var(--gut); padding-right: var(--gut); }
    .cookie-message { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* на 320 px логотип, телефон и бургер не расходились: минимальная ширина
   названия задана самой длинной строкой, поэтому на этом пороге ужимаются
   и знак, и кегль */
@media (max-width: 360px) {
    .brand__mark { width: 46px; }
    .brand__name { font-size: 13.5px; }
    .head__in { padding-left: 14px; padding-right: 14px; }
}



/* ---------- CMS: дополнения к стилям макета ----------
   Только то, чего в макете не было: старые тексты разделов, пустая подпись
   под h1 и картинки из текстов старого сайта. */

/* ---------- старый текст раздела (временно, до нового текста) ----------
   Метка для своих: маленький контурный восьмиугольник в правом верхнем углу
   текста. Посетителю ничего не говорит; в HTML — data-text="old". */
.old-text { position: relative; }
.old-text::before {
    content: '';
    position: absolute;
    top: 6px; right: 0;
    width: 11px; height: 11px;
    background: #B9CCC8;
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%,
                       30% 0, 36% 18%, 18% 36%, 18% 64%, 36% 82%, 64% 82%, 82% 64%, 82% 36%, 64% 18%, 36% 18%);
}
.old-text.art { padding-top: 6px; }

/* карточка «Сроки / Стоимость / Документы» */
.old-text .important {
    max-width: 920px;
    margin: 24px 0 34px;
    padding: 24px 28px 8px;
    background: var(--surface);
    clip-path: var(--oct);
}
.old-text .important::after { content: ''; display: block; clear: both; }
.old-text .old-text__pic { float: right; max-width: 220px; margin: 0 0 16px 24px; }
.old-text dl { margin: 0; }
.old-text dt {
    margin: 0 0 4px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--mute-ink);
}
.old-text dd { margin: 0 0 18px; font-size: 17px; line-height: 1.55; color: var(--text); }
.old-text dd ul { margin-top: 6px; }

/* списки, таблицы, цитаты */
.art.old-text ul, .art.old-text ol {
    max-width: 68ch;
    margin: 0 0 22px;
    padding-left: 22px;
    font-size: 16px; line-height: 1.6; color: #27454F;
}
.art.old-text li { margin-bottom: 6px; }
.art.old-text ul li::marker { color: var(--green-ink); }
.art.old-text table { width: 100%; max-width: 920px; margin: 0 0 26px; border-collapse: collapse; font-size: 15px; }
.art.old-text th, .art.old-text td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art.old-text th { background: var(--paper); font-weight: 600; }
.art.old-text blockquote {
    max-width: 68ch;
    margin: 0 0 22px;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--line);
    color: var(--mute-ink);
}
@media (max-width: 720px) {
    .old-text .important { padding: 20px 18px 4px; }
    .old-text .old-text__pic { float: none; display: block; max-width: 100%; margin: 0 0 16px; }
    .art.old-text table { display: block; overflow-x: auto; }
}

/* подпись под h1 пустая — блок не занимает места */
.lede__p:empty { display: none; }
.feed__none { margin: 30px 0; color: var(--mute-ink); }

/* картинки в текстах, перенесённых со старого сайта */
.art img, .page img { max-width: 100%; height: auto; }
.art .justifyright { float: right; max-width: 40%; margin: 4px 0 16px 24px; }
.art .justifyleft { float: left; max-width: 40%; margin: 4px 24px 16px 0; }
.art .img-c { text-align: center; }
.art::after { content: ''; display: block; clear: both; }
@media (max-width: 720px) {
    .art .justifyright, .art .justifyleft { float: none; max-width: 100%; margin: 0 0 16px; }
}

/* первый абзац перенесённого материала не прилипает к заголовку */
.art > :first-child { margin-top: 24px; }

/* Окно cookie (основа — скил privacy-ru) в токенах сайта ЦЭП: --surface, --ink, --mute-ink, --line, --duo, --oct.
   Карточка внизу слева, контент не перекрывает. На паре --duo текст только тёмный (--ink) — правило проекта. */
.consent{position:fixed;left:16px;bottom:16px;z-index:60;max-width:440px;width:calc(100% - 32px);box-sizing:border-box;
  background:var(--surface,#fff);color:var(--text,#0A2630);border:1px solid var(--line,#DCE6E4);
  box-shadow:0 18px 40px -18px rgba(6,34,43,.45);padding:18px 20px;font-family:inherit;font-size:15px;line-height:1.5}
.consent[hidden]{display:none!important}
.consent__t{margin:0;color:var(--text,#0A2630)}
.consent__l{margin:8px 0 0;font-size:14px;color:var(--mute-ink,#46606A)}
.consent__t a,.consent__l a{color:#0158A3;text-decoration:underline;text-underline-offset:2px}
.consent__b{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.consent__b button{font:inherit;font-weight:700;min-height:44px;padding:0 20px;cursor:pointer;border:0;
  clip-path:var(--oct,none);color:var(--ink,#06222B)}
.consent__yes{background:var(--duo,linear-gradient(104deg,#0292D9,#7DD00C))}
.consent__yes:hover{filter:brightness(1.06)}
.consent__no{background:var(--paper,#EFF4F2);box-shadow:inset 0 0 0 2px var(--ink-2,#0A3441)}
.consent__no:hover{background:#E2EBE8}
.consent :focus-visible{outline:3px solid #0158A3;outline-offset:2px}
@media (max-width:480px){ .consent{left:8px;right:8px;bottom:8px;width:auto;padding:16px} .consent__b button{flex:1} }
/* окно не закрывает низ подвала: место под ним — тёмным продолжением подвала, а не отступом body (светлая полоса) */
body.has-consent::after{content:"";display:block;height:var(--consent-h,0);background:#04171D}

/* Галочка согласия в формах (скил privacy-ru): не отмечена заранее, обязательна; ошибка у поля */
.agree{display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 10px;align-items:start;font-size:13.5px;line-height:1.45;cursor:pointer;text-align:left}
.agree input{width:20px;height:20px;margin:1px 0 0;padding:0;accent-color:#0158A3;cursor:pointer}
.agree a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.agree .err{grid-column:2}
.form__note{font-size:13px;line-height:1.45;margin:8px 0 0}
.form__note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.err{display:block;font-size:13px;font-weight:600;color:#B3261E}
.trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.foot__form .err{color:#FF8A80} /* на тёмном подвале #B3261E даёт 2,3 — светлый тон 8+ */
/* ответ на отправку заявки (lead.php) */
.lead__msg{margin:10px 0 0;font-size:14px;font-weight:600;color:#237A09}
.lead__msg--bad{color:#B3261E}
.foot__form .lead__msg{color:#A6E86A}
.foot__form .lead__msg--bad{color:#FF8A80}
