/* ============================================================
   YURCONSULT — landing 5.1 (contrast minimal, open)
   Чистый чёрно-белый: плоские поверхности, прямые углы,
   контурная графика, инверсия при наведении.
   Структура 5.1: сетки «раскрыты» — вместо коробок с рамками
   отдельные ячейки на воздухе + волосяные линии; открытые
   ведомости, бегущая строка доменов, рейл-индикатор секции,
   прогресс скролла, гигантский контурный вордмарк в футере.
   ============================================================ */

@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-300.woff2') format('woff2'), url('../fonts/Montserrat-latin-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-400.woff2') format('woff2'), url('../fonts/Montserrat-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-500.woff2') format('woff2'), url('../fonts/Montserrat-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-cyrillic-600.woff2') format('woff2'), url('../fonts/Montserrat-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------------- tokens ---------------- */

:root {
    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-x: cubic-bezier(.65, 0, .15, 1);
    --wrap: 1440px;
    /* полноэкранные секции с авто-полями по контентной ширине */
    --pad-x: max(28px, calc((100vw - var(--wrap)) / 2));

    /* тема по умолчанию — тёмная */
    --fg: #ffffff;
    --on-fg: #000000;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --line: rgba(255, 255, 255, .18);
    --line-strong: rgba(255, 255, 255, .4);
    --card-border: rgba(255, 255, 255, .32);

    --bg: #000000;
    --surface: #000000;
}

/* светлая тема секции — инверсия */
.section--light {
    --fg: #000000;
    --on-fg: #ffffff;
    --muted: #4d4d4d;
    --dim: #8a8a8a;
    --line: rgba(0, 0, 0, .18);
    --line-strong: rgba(0, 0, 0, .4);
    --card-border: rgba(0, 0, 0, .3);
}

/* ---------------- base ---------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    color-scheme: dark;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #ffffff; color: #000000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .55); }

/* ---------------- контурная поверхность ---------------- */

.glass {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease;
}
.glass:hover { border-color: var(--line-strong); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border: 1px solid var(--line-strong);
    font-size: 12px;
    color: var(--muted);
}
a.chip { transition: background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; }
a.chip:hover { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }

.tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg);
}

/* ---------------- header: сплошная полоса ---------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    border-bottom: 1px solid var(--line-strong);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.header.scrolled::before { opacity: 1; }

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    height: 68px;
    padding: 0 var(--pad-x);
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img {
    height: 34px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav-link {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 9px 14px;
    transition: color .2s ease;
}
.header-nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.header-nav-link:hover { color: var(--fg); }
.header-nav-link:hover::after { transform: scaleX(1); }

/* переключатель языка — контурная плашка в конце меню */
.header-nav-lang { color: var(--fg); border: 1px solid var(--line); margin-left: 16px; }
.header-nav-lang::after { display: none; }
.header-nav-lang:hover { border-color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* CTA-кнопка в шапке — минималистичный контурный вариант .btn */
.btn.header-cta {
    padding: 9px 18px;
    font-size: 11px;
    background: transparent;
    border-color: var(--line-strong);
    color: var(--fg);
}
.btn.header-cta:hover {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--on-fg);
}

/* тонкий прогресс скролла по нижней кромке шапки */
.hprog {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
}
.burger span {
    width: 16px;
    height: 2px;
    background: var(--fg);
    transition: transform .3s var(--ease), opacity .2s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- mobile nav ---------------- */

.mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 30px;
    background: #000000;
    visibility: hidden;
}
.mobile-nav.open { visibility: visible; }

/* открытое меню: чёрный экран целиком — включая шапку */
body.menu-open { overflow: hidden; }
body.menu-open .header::before { opacity: 1; transition: none; }

.mobile-nav-link {
    font-size: 15px;
    font-weight: 500;
    padding: 14px;
    margin: 1px 0;
    color: var(--fg);
    border: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, transform .3s var(--ease);
}
.mobile-nav-link:hover { border-color: var(--line); transform: translateX(4px); }

/* CTA-платформа — кнопка внутри мобильного меню, прижата к низу */
.mobile-nav-cta { margin: auto 0 0; }

/* ---------------- buttons (прямые углы, инверсия) ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-glass { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-glass:hover { background: var(--fg); border-color: var(--fg); color: var(--on-fg); }

.actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* текстовая стрелка для ссылок-направлений */
.arrow-link,
.dir-card-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg);
    transition: gap .3s var(--ease), color .2s ease;
}
.arrow-link::after { content: '→'; }
.arrow-link--out::after { content: '↗'; }
.dir-card-link::after { content: '→'; }
.arrow-link:hover, .dir-card-link:hover { gap: 14px; }

/* ---------------- общая типографика секций ---------------- */

.eyebrow,
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before,
.section-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--fg);
    flex: none;
    animation: sq-pulse 2.6s ease-in-out infinite;
}
@keyframes sq-pulse { 50% { opacity: .3; } }

.title,
.section-title {
    margin: 0 0 24px;
    font-size: clamp(34px, 4.6vw, 62px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--fg);
}
/* инвертированный акцент: плашка fg, текст on-fg */
.title em,
.section-title em {
    font-style: normal;
    background: var(--fg);
    color: var(--on-fg);
    padding: 0 .13em;
    margin-left: .12em;
}

.lead,
.section-sub {
    margin: 0 0 34px;
    max-width: 640px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
    color: var(--muted);
}

/* ---------------- sections: на всю ширину ---------------- */

.section {
    position: relative;
    z-index: 1;
    padding: clamp(84px, 12vh, 140px) var(--pad-x);
    border-top: 1px solid var(--line);
    color: var(--fg);
}
/* у hero/page-hero уже есть нижняя линия — не удваиваем */
.hero + .section, .page-hero + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }

/* ---------------- fullpage (главная): блоки на весь экран ---------------- */

html[data-fullpage] { scroll-padding-top: 0; }
html[data-fullpage] main > .section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
html[data-fullpage] main > .section > * { flex: none; min-width: 0; }

/* ============================================================
   HERO — стиль 01 Display: типографика на весь экран
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(96px, 13vh, 140px) var(--pad-x) clamp(76px, 10vh, 108px);
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
}

/* цветное «северное сияние» — занавесы света над слайдером,
   гамма вскользь отсылает к госфлагу Беларуси: красный сверху, зелёный ниже,
   белый — проблесками и еле заметной вертикальной полосой у кромки */
.hero::before {
    content: '';
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 90, 90, .05) 3.5%, transparent 7%),
        repeating-linear-gradient(100deg,
            transparent 0 6%,   rgba(255, 70, 70, .12) 9%, transparent 12%,
            rgba(255, 255, 255, .10) 15%, transparent 19%,
            transparent 25%, rgba(70, 225, 125, .09) 28%, transparent 32%,
            transparent 38%, rgba(255, 95, 95, .08) 41%, transparent 45%),
        linear-gradient(105deg,
            transparent 18%,
            rgba(240, 55, 55, .12) 38%,
            rgba(255, 240, 235, .10) 56%,
            rgba(55, 215, 115, .09) 72%,
            transparent 88%),
        radial-gradient(ellipse 74% 32% at 48% 8%, rgba(235, 45, 50, .28), transparent 55%),
        radial-gradient(ellipse 30% 16% at 50% 16%, rgba(255, 240, 235, .12), transparent 60%),
        radial-gradient(ellipse 46% 22% at 74% 24%, rgba(45, 210, 115, .20), transparent 60%),
        radial-gradient(ellipse 34% 18% at 18% 26%, rgba(60, 200, 110, .15), transparent 60%);
    filter: blur(22px) saturate(1.15);
    mix-blend-mode: screen;
    mask-image: linear-gradient(180deg, #000 44%, transparent 72%);
    -webkit-mask-image: linear-gradient(180deg, #000 44%, transparent 72%);
    animation: curtain-sway 24s ease-in-out infinite alternate;
}
@keyframes curtain-sway {
    from { transform: translate3d(-5%, 0, 0) skewX(-4deg) scaleY(1.03); }
    to   { transform: translate3d(5%, -3%, 0) skewX(4deg)  scaleY(.98); }
}

/* медленно дрейфующее цветное свечение — глубина сияния */
.hero::after {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 38% 26% at 26% 12%, rgba(230, 50, 55, .20), transparent 65%),
        radial-gradient(ellipse 30% 22% at 58% 8%, rgba(255, 235, 230, .14), transparent 65%),
        radial-gradient(ellipse 32% 24% at 82% 26%, rgba(50, 205, 115, .18), transparent 65%);
    filter: blur(42px);
    mix-blend-mode: screen;
    mask-image: linear-gradient(180deg, #000 52%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 80%);
    animation: aurora-drift 30s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
    from { transform: translate3d(-4%, 0, 0) scale(1.04); }
    to   { transform: translate3d(5%, -4%, 0) scale(1.1); }
}

/* статичный hero без слайдера: один слайд, без фона и полноэкранной высоты */
.hero--plain {
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(140px, 18vh, 190px) var(--pad-x) clamp(56px, 8vh, 84px);
}
.hero--plain::before, .hero--plain::after { content: none; }

/* ---------------- слайдер ---------------- */

.hslider {
    position: relative;
    z-index: 3;
    touch-action: pan-y;
}
.hslider--fade .hslides { display: grid; }
/* общая базовая линия слайдера — на одном уровне у всех слайдов */
.hslides {
    --ease-x: cubic-bezier(.65, 0, .15, 1);
}

.hslider--fade { --sx: 44px; }
.hslider--fade[data-dir="back"] { --sx: -44px; }
.hslider--fade .hslide {
    grid-area: 1 / 1;
    /* контент прижат к верху общей ячейки — заголовок на одной высоте на всех слайдах */
    justify-content: flex-start;
    padding-top: clamp(28px, 6vh, 72px);
    opacity: 0;
    transform: translateX(var(--sx)) scale(.985);
    transition: opacity .8s var(--ease-x), transform .8s var(--ease-x);
    pointer-events: none;
    min-width: 0;
}
.hslider--fade .hslide.is-leaving { transform: translateX(calc(var(--sx) * -1)) scale(.985); }
.hslider--fade .hslide.is-active { opacity: 1; transform: none; z-index: 2; pointer-events: auto; }

/* поэлементное появление контента активного слайда */
.hslide.is-active > * { animation: h-in .7s var(--ease) both; }
.hslide.is-active > *:nth-child(2) { animation-delay: .07s; }
.hslide.is-active > *:nth-child(3) { animation-delay: .15s; }
.hslide.is-active > *:nth-child(4) { animation-delay: .24s; }
.hslide.is-active > *:nth-child(5) { animation-delay: .33s; }
.hslide.is-active > *:nth-child(6) { animation-delay: .42s; }
@keyframes h-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.hero .eyebrow::before { content: none; }
.hero .title {
    font-size: clamp(48px, 8vw, 116px);
    max-width: 1180px;
    margin-bottom: 26px;
}
.hero .lead { max-width: 640px; }

/* meta-полоса слайда: ведомость «термин — значение» */
.hero .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 56px;
    margin-top: clamp(30px, 5vh, 48px);
}
.hero .meta > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.hero .meta dt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.hero .meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
}
.hero .meta dd a {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
    transition: text-decoration-color .2s ease;
}
.hero .meta dd a:hover { text-decoration-color: var(--fg); }
.hero .meta dd a[href^="http"]::after {
    content: '↗';
    display: inline-block;
    margin-left: 5px;
    font-size: .8em;
}

/* ---------------- слайды-варианты 03 Spec · 04 Term · 10 Index ---------------- */

/* каркас слайда: контент прижат к базовой линии — текст растёт вверх от неё */
.hslide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(20px, 3vh, 28px);
}

/* — 03 SPEC: чертёжная ведомость, dt/dd-строки */
.hslide--spec > * { position: relative; z-index: 2; }
.hslide--spec .title { font-size: clamp(36px, 5vw, 72px); }
.hslide-sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 56px;
    max-width: 1080px;
}
.hslide--spec .actions { margin-top: 38px; }

/* — 04 TERM: терминал — витрина продукта по центру */
.hslide--term { align-items: center; text-align: center; }
.hslide--term .eyebrow { justify-content: center; }
.hslide--term .title { font-size: clamp(34px, 4.8vw, 64px); margin-bottom: 34px; }
.hslide--term .term { width: min(760px, 100%); text-align: left; }
.hslide--term .actions { justify-content: center; margin-top: 36px; }

/* — 10 INDEX: нумерованный каталог направлений на весь экран */
.hslide--idx .hslide-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 5vh, 52px);
}
.hslide--idx .title { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 0; }
.hslide--idx .lead { margin: 0; max-width: 400px; }
.idx { list-style: none; }
.idx-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: clamp(18px, 3vw, 40px);
    padding: clamp(18px, 3vh, 30px) 0;
    border-top: 1px solid var(--line);
    transition: background .2s ease, color .2s ease, padding .3s var(--ease);
}
.idx-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
}
.idx-name {
    font-size: clamp(22px, 3.4vw, 48px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.05;
}
.idx-note {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: right;
}
a.idx-row:hover { background: var(--fg); color: var(--on-fg); padding-left: 20px; padding-right: 20px; }
a.idx-row:hover .idx-num { -webkit-text-stroke-color: var(--on-fg); }
a.idx-row:hover .idx-note { color: var(--on-fg); }

/* ---------------- hnav: счётчик + сегменты + стрелки ---------------- */

.hnav {
    position: absolute;
    right: var(--pad-x);
    bottom: 34px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hcount {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .12em;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
}
.hcount b { color: var(--fg); font-weight: 600; }

.hnav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    color: var(--fg);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hnav__btn:hover { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }

/* сегменты-прогресс вместо точек */
.hdots { display: flex; gap: 6px; }
.hdot {
    position: relative;
    width: 40px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hdot::before, .hdot::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    margin-top: -1px;
}
.hdot::before { background: var(--line); }
.hdot::after {
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left center;
}
.hdot.is-done::after { transform: scaleX(1); }
.hnav.is-live .hdot.is-active::after { animation: hdotfill var(--autoplay, 6s) linear forwards; }
.hnav.is-paused .hdot.is-active::after { animation-play-state: paused; }
@keyframes hdotfill { to { transform: scaleX(1); } }

/* вертикальная подсказка «вниз» у левого края hero */
.scrollcue {
    position: absolute;
    left: var(--pad-x);
    bottom: 34px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--dim);
    writing-mode: vertical-rl;
    transition: color .2s ease;
}
.scrollcue:hover { color: var(--fg); }
.scrollcue i {
    position: relative;
    width: 1px;
    height: 46px;
    background: var(--line);
    overflow: hidden;
}
.scrollcue i::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 100%;
    height: 40%;
    background: var(--fg);
    animation: cue-drop 1.8s var(--ease) infinite;
}
@keyframes cue-drop { to { top: 110%; } }

/* ============================================================
   НАПРАВЛЕНИЯ — открытая bento-сетка: ячейки на воздухе,
   волосяной контур вместо общей рамки
   ============================================================ */

.dir-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dir-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px 30px 28px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    transition: background .2s ease, border-color .25s ease;
}
.dir-card:hover { background: #0d0d0d; border-color: var(--line-strong); }
.section--light .dir-card { background: #ffffff; }
.section--light .dir-card:hover { background: #f2f2f2; }

/* направление 01 — горизонтальный баннер: текст слева, этапы справа */
.dir-card--banner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 0;
    row-gap: 26px;
}
.dir-card--wide { grid-column: span 2; }

/* направление 05 — горизонтальная полоса во всю ширину (облегчённый баннер) */
.dir-card--strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 0;
    row-gap: 26px;
}
.dir-card--strip .dir-card-list {
    margin: 0;
    border-left: 1px solid var(--line);
    padding-left: clamp(24px, 3vw, 44px);
}
.dir-card--strip .dir-card-title { font-size: clamp(21px, 2vw, 28px); }
.dir-card--strip .dir-card-num { font-size: clamp(44px, 4vw, 60px); }

.dir-card-lead {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding-right: clamp(24px, 3vw, 44px);
}
.dir-card--banner .dir-card-list {
    margin: 0;
    border-left: 1px solid var(--line);
    padding-left: clamp(24px, 3vw, 44px);
}
.dir-card--banner .dir-card-num { font-size: clamp(64px, 6vw, 92px); }

.dir-card-num {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    transition: -webkit-text-stroke-color .2s ease;
    pointer-events: none;
}
.dir-card:hover .dir-card-num { -webkit-text-stroke-color: var(--fg); }

.dir-card-cap {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.dir-card-title {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 600;
    letter-spacing: -.018em;
    line-height: 1.15;
    color: var(--fg);
}
.dir-card--banner .dir-card-title { font-size: clamp(24px, 2.4vw, 34px); }

.dir-card-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    flex: 1;
}

/* «ведомость» — моно-строки с пунктиром (элемент стиля 08) */
.dir-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 4px 0 0;
    flex: 1;
}
.dir-card-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--muted);
}
.dir-card-list li:first-child { padding-top: 0; }
.dir-card-list li:last-child { border-bottom: 0; }
.dir-card-list b {
    flex: none;
    width: 118px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg);
}
.dir-card-list--tags li { align-items: center; }
.dir-card-list--tags b { width: 96px; }
.dir-tag {
    flex: none;
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--fg);
}

.dir-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.dir-card-chips span,
.product-tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 12px;
    border: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.dir-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* карточка в широкой двухколоночной сетке подстраниц: компактнее,
   заголовок как у prose-block, контурный номер приглушён */
.split-2 .dir-card-title { font-size: 19px; }
.split-2 .dir-card-num { font-size: 38px; top: 18px; right: 24px; }

/* ============================================================
   НАПРАВЛЕНИЯ (главная) — горизонтальная витрина:
   карточки в скролл-треке со snap; стрелки + прогресс-линия
   ============================================================ */

.dir-scr-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}
.dir-scr-nav { display: flex; gap: 8px; }
.dir-scr-prog {
    position: relative;
    flex: 1;
    height: 1px;
    background: var(--line);
}
.dir-scr-prog i {
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 20%;
    background: var(--fg);
    transition: left .2s ease, width .2s ease;
}

.dir-scr-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.dir-scr-track::-webkit-scrollbar { display: none; }
.dir-scr-card {
    flex: 0 0 min(420px, 84vw);
    scroll-snap-align: start;
    min-height: 340px;
}

#directions { padding-top: clamp(72px, 9vh, 110px); padding-bottom: clamp(56px, 7vh, 90px); }

/* невысокие экраны: более плотная версия секции */
@media (min-width: 1101px) and (max-height: 860px) {
    #directions { padding-top: 76px; padding-bottom: 44px; }
    #directions .section-eyebrow { margin-bottom: 14px; }
    #directions .section-title { font-size: clamp(30px, 4vw, 48px); }
    #directions .section-sub { margin-bottom: 0; font-size: 14px; }
    #directions .dir-scr-card { min-height: 300px; padding: 24px 22px; }
    #directions .dir-card-title { font-size: clamp(17px, 1.6vw, 22px); }
    #directions .dir-card-text { font-size: 12.5px; line-height: 1.5; }
}

/* ---------------- products: открытая витрина ---------------- */

.products {
    position: relative;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    transition: background .2s ease, border-color .25s ease;
}
.section--light .product { background: #ffffff; }
.product:hover { background: #0d0d0d; border-color: var(--line-strong); }
.section--light .product:hover { background: #f2f2f2; }

.product-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px 20px 20px;
}
.product-body h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.product-body p { font-size: 12.5px; color: var(--muted); flex: 1; }
.product-tag { margin-top: 6px; }
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}
.product-meta .product-tag { margin-top: 0; }
.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

/* витрина продуктов: табы — список слева, скриншоты справа */
.ptab {
    display: grid;
    grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
    gap: 14px;
    align-items: start;
}
.ptab-list { display: flex; flex-direction: column; gap: 10px; }
.ptab-btn {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg);
    text-align: left;
    transition: background .2s ease, color .2s ease, border-color .25s ease;
}
.ptab-btn b {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--dim);
}
.ptab-btn i {
    margin-left: auto;
    font-style: normal;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
}
.ptab-btn:hover { border-color: var(--line-strong); }
.ptab-btn.is-active { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.ptab-btn.is-active b, .ptab-btn.is-active i { color: var(--on-fg); }
.ptab-panel { display: none; border: 1px solid var(--line); padding: 20px; }
.ptab-panel.is-active { display: block; }
.ptab-panel > p { font-size: 13px; color: var(--muted); max-width: 640px; margin-bottom: 16px; }
.ptab-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ptab-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.ptab-foot .product-tag { margin-top: 0; }

/* витрина продуктов: слайдер скриншотов с блоком функций справа */
.shot-slider {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr);
    align-items: stretch;
    border: 1px solid var(--line);
}
.shot-slider-viewport { overflow: hidden; touch-action: pan-y; min-width: 0; }
.shot-slider-track {
    display: flex;
    height: 100%;
    transition: transform .55s var(--ease-x);
}
.shot-slider-track .shot-window {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.shot-slider-track .shot-window:hover { transform: none; }
.shot-slider-track .shot-window:hover > img { opacity: .82; }
.shot-slider-track img {
    -webkit-user-drag: none;
    user-select: none;
}
.shot-slider-track .shot-window > img {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.shot-slider-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
    border-left: 1px solid var(--line);
}
.shot-slider-side .product-tag { margin-top: 0; }
.shot-slider-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.shot-slider-cap {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shot-slider-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}
.shot-slider-feat {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.shot-slider-feat-title {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.shot-slider-feat ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.shot-slider-feat li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}
.shot-slider-feat li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border: 1px solid var(--dim);
}
.shot-slider-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.shot-slider-name {
    padding: 6px 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    transition: color .2s ease;
}
.shot-slider-name:hover { color: var(--fg); }
.shot-slider-name.is-active {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 5px;
}
.shot-slider-sep {
    font-family: var(--mono);
    font-style: normal;
    font-size: 11px;
    color: var(--dim);
    user-select: none;
}
.shot-slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    font-size: 14px;
    line-height: 1;
    color: var(--fg);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.shot-slider-btn:hover { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.shot-slider-nav .shot-slider-btn:first-child { margin-right: 6px; }

/* ============================================================
   APP BANNER — терминал (элемент стиля 09, плоский)
   ============================================================ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    min-width: 0;
}
.split > * { min-width: 0; }

.term {
    border: 1px solid var(--card-border);
    background: #000000;
    overflow: hidden;
    font-family: var(--mono);
}
.term__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
}
.term__dot { width: 11px; height: 11px; background: transparent; }
.term__dot--r { border: 1px solid rgba(255, 255, 255, .75); }
.term__dot--y { border: 1px solid rgba(255, 255, 255, .42); }
.term__dot--g { border: 1px solid rgba(255, 255, 255, .24); }
.term__name { margin-left: 8px; font-size: 12px; color: var(--dim); }
.term__body { padding: 22px 24px; font-size: 13.5px; line-height: 1.9; color: rgba(245, 245, 247, .85); }
.term__body p { margin: 0; }
.term__p { color: var(--fg); user-select: none; }
.term__ok { color: #a1a1aa; }
.cursor {
    display: inline-block;
    width: 9px;
    height: 18px;
    margin-left: 4px;
    background: var(--fg);
    vertical-align: -3px;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   EDUCATION — стиль 02 Editorial (светлая секция)
   ============================================================ */

.section--editorial { background: #ffffff; }

/* полноэкранная секция: блоки рассредоточены по всей высоте */
html[data-fullpage] .section--editorial {
    justify-content: space-between;
    row-gap: clamp(24px, 4.5vh, 52px);
}
html[data-fullpage] .section--editorial .topline { margin-bottom: 0; }
html[data-fullpage] .section--editorial .title { margin-bottom: 0; }
html[data-fullpage] .section--editorial .edu-links { margin-top: 0; }

.topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: clamp(28px, 4vh, 40px);
    border-bottom: 2px solid var(--fg);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.topline i { font-style: normal; color: var(--fg); }

.section--editorial .title { font-size: clamp(38px, 5.6vw, 80px); letter-spacing: -.03em; }

.cols {
    column-count: 2;
    column-gap: clamp(48px, 6vw, 110px);
    column-rule: 1px solid rgba(0, 0, 0, .09);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.8;
    color: rgba(0, 0, 0, .72);
    hyphens: none;
    text-wrap: pretty;
}
.cols p { margin: 0 0 14px; }
.cols b { color: var(--fg); font-weight: 600; }

.edu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 2px solid var(--fg);
}

/* ============================================================
   RESOURCES — стиль 08 Spec (светлая секция, чертёж)
   ============================================================ */

.section--spec { background: #f5f5f7; position: relative; }
.section--spec > * { position: relative; }

/* открытая «ведомость»: верхнее правило + пунктирные строки,
   без коробки */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
    align-items: start;
}
.spec { border-top: 2px solid var(--fg); }
.spec dl { margin: 0; }
.spec__head {
    padding: 20px 0 18px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg);
}
.spec__row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row dt {
    flex: none;
    width: 150px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dim);
}
.spec__row dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--fg); }
.spec__row dd i {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
}
/* подстроки ведомости — составные части форматов */
.spec__sub {
    padding: 18px 0 4px 22px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}
.spec__sub::before { content: '└ '; }
.spec__row--sub { padding-left: 22px; }
.spec__row--sub dt { width: 128px; }

/* ============================================================
   CONTACT — финальный экран: только типографика, почта
   крупной строкой-ведомостью
   ============================================================ */

.section--cta {
    background: #000000;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.section--cta .section-in {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin-inline: auto;
}
.section--cta .eyebrow,
.section--cta .section-eyebrow { justify-content: center; }
.section--cta .section-eyebrow::before { content: none; }
.section--cta .title { font-size: clamp(38px, 6vw, 84px); margin-inline: auto; }
.section--cta .lead { margin-inline: auto; }
.section--cta .actions { justify-content: center; }
/* почта — строка-ведомость на всю ширину: hairline-границы, инверсия при ховере как у idx-row */
.cta-mail {
    display: block;
    margin: clamp(18px, 3.5vh, 32px) auto clamp(16px, 3vh, 26px);
    padding: clamp(18px, 3.5vh, 34px) 0;
    font-size: clamp(28px, 4.8vw, 62px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--fg);
    text-decoration: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .2s ease, color .2s ease, padding .3s var(--ease);
}
.cta-mail:hover { background: var(--fg); color: var(--on-fg); padding-inline: 20px; }
.cta-meta {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .05em;
    line-height: 1.7;
    color: var(--dim);
}
.cta-meta a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.cta-meta a:hover { color: var(--fg); }
.fchips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

/* ---------------- cta-блок (подстраницы) ---------------- */

.cta { padding: clamp(44px, 6vw, 64px) clamp(28px, 5vw, 56px); }
.cta-title {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.06;
    margin-bottom: 16px;
}
.cta-sub { font-size: 15.5px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-phone {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg);
    transition: opacity .2s ease;
}
.cta-phone:hover { opacity: .6; }

/* ---------------- окна-скриншоты ---------------- */

.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot-grid--3 { grid-template-columns: repeat(3, 1fr); }
.shot-grid--compact { max-width: 780px; margin-left: auto; margin-right: auto; }

.shot-window {
    display: block;
    margin: 0;
    overflow: hidden;
    transition: border-color .25s ease, transform .4s var(--ease);
}
a.shot-window:hover { border-color: var(--fg); transform: translateY(-4px); }
.shot-window > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.shot-window > video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}
.shot-window--wide { max-width: 1080px; margin: 0 auto; }
.shot-window--wide > img { aspect-ratio: auto; }

.mini-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
}
.mini-window-bar i {
    width: 9px;
    height: 9px;
    background: transparent;
    border: 1px solid var(--dim);
}
.mini-window-bar i:first-child { border-color: var(--fg); background: var(--fg); }
.mini-window-bar span {
    margin-left: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--dim);
}

/* ---------------- просмотрщик скриншотов ---------------- */

.shot-window.is-zoomable > img { cursor: zoom-in; }
body.lightbox-open { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 4vw, 56px);
    background: rgba(0, 0, 0, .86);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox [hidden] { display: none; }

.lightbox__win {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    background: #050505;
    transform: translateY(12px);
    transition: transform .32s var(--ease);
}
.lightbox.is-open .lightbox__win { transform: none; }

.lightbox__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
}
.lightbox__bar > i {
    width: 9px;
    height: 9px;
    flex: none;
    background: transparent;
    border: 1px solid #7a7a7a;
}
.lightbox__bar > i:first-child { border-color: #ffffff; background: #ffffff; }
.lightbox__cap {
    margin-left: 10px;
    min-width: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox__src {
    margin-left: auto;
    padding-left: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: #7a7a7a;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.lightbox__src:hover { color: #ffffff; }
.lightbox__src[hidden] + .lightbox__close { margin-left: auto; }
.lightbox__close {
    width: 26px;
    height: 26px;
    margin-left: 10px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.lightbox__close:hover { background: #ffffff; color: #000000; }

.lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1240px, 92vw);
    max-height: calc(100vh - 180px);
    object-fit: contain;
    user-select: none;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(0, 0, 0, .4);
    color: #ffffff;
    font-family: var(--mono);
    font-size: 16px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.lightbox__nav:hover { background: #ffffff; color: #000000; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

@media (max-width: 640px) {
    .lightbox__img { max-height: calc(100vh - 220px); }
    .lightbox__nav { top: auto; bottom: 16px; transform: none; }
}

/* ---------------- footer ---------------- */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-strong);
    background: #000000;
    color: var(--fg);
}

.footer-inner {
    padding: 60px var(--pad-x) 44px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand p { margin-top: 30px; font-size: 13px; color: var(--dim); letter-spacing: .02em; }
.footer-desc { font-size: 12.5px; max-width: 320px; }
.footer-logo { height: 36px; width: auto; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
}
.footer-link { font-size: 13.5px; color: var(--dim); width: max-content; transition: color .2s ease; }
.footer-link:hover { color: var(--fg); }
.footer-text { font-size: 13.5px; color: var(--dim); }

.footer-copy {
    margin: 0 var(--pad-x);
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--dim);
    letter-spacing: .04em;
}
.footer-note {
    margin: 0 var(--pad-x);
    padding: 0 0 28px;
    font-size: 11.5px;
    color: var(--dim);
    letter-spacing: .04em;
}

/* ============================================================
   SUBPAGES
   ============================================================ */

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.crumbs a { color: var(--muted); transition: color .2s ease; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }

/* шапка подстраницы — тот же «display»-фон, компактнее */
.page-hero {
    position: relative;
    padding: clamp(140px, 18vh, 190px) var(--pad-x) clamp(56px, 8vh, 84px);
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
}
.page-hero > * { position: relative; }

.page-title {
    font-size: clamp(36px, 5.2vw, 68px);
    font-weight: 600;
    letter-spacing: -.033em;
    line-height: 1.03;
    margin: 0 0 22px;
    max-width: 900px;
}
.page-lead {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    color: var(--muted);
    max-width: 700px;
    margin: 0 0 14px;
}
.page-lead:last-of-type { margin-bottom: 38px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; transition: border-color .25s ease; }
.feat:hover { border-color: var(--line-strong); }
.feat-num {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    margin-bottom: 18px;
}
.feat h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feat p { font-size: 13.5px; color: var(--muted); }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.prose-block { padding: 32px 34px; }
.prose-block h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.015em;
    margin-bottom: 16px;
}
.prose-block > p, .prose-block li { font-size: 14px; color: var(--muted); }
.prose-block > p + p { margin-top: 10px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .58em;
    width: 12px;
    height: 2px;
    background: var(--fg);
}

/* ведомость нормативной базы: группы по типу акта + строки */
.law-board { border-top: 1px solid var(--line-strong); }
.law-cat { border-bottom: 1px solid var(--line); }
.law-cat__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 8px;
}
.law-cat__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
}
.law-cat__count {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.law-cat__list { list-style: none; }
.law-row {
    display: grid;
    grid-template-columns: minmax(190px, 240px) 1fr;
    align-items: baseline;
    gap: 26px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    transition: background .2s ease, color .2s ease, padding .3s var(--ease);
}
.law-row:hover { background: var(--fg); color: var(--on-fg); padding-left: 16px; padding-right: 16px; }
.law-row__meta {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .05em;
    color: var(--muted);
    white-space: nowrap;
}
.law-row__meta b { color: var(--fg); font-weight: 600; }
.law-row:hover .law-row__meta, .law-row:hover .law-row__meta b { color: var(--on-fg); }
.law-row__name { font-size: 14px; font-weight: 500; line-height: 1.55; }
.law-board__note {
    padding-top: 20px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .25s ease;
}
.contact-card:hover { border-color: var(--line-strong); }
.contact-card .tag { margin-bottom: 10px; }
.contact-card .big {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--fg);
    transition: opacity .2s ease;
}
.contact-card a.big:hover { opacity: .6; }
.contact-card p { font-size: 13.5px; color: var(--muted); }

/* сетка карточек продуктов на подстраницах */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* шаги/фичи в четыре колонки */
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* компактная «ведомость» для блоков «смотрите также» */
.idx--compact .idx-row { padding: clamp(14px, 2.4vh, 22px) 0; }
.idx--compact .idx-name { font-size: clamp(18px, 2.2vw, 28px); }
.idx--compact .idx-note { font-size: 10.5px; }

/* активный пункт меню — текущий раздел */
.header-nav-link.is-active { color: var(--fg); }
.header-nav-link.is-active::after { transform: scaleX(1); }

/* ---------------- страница 404 ---------------- */

.err-code {
    display: block;
    font-size: clamp(96px, 20vw, 260px);
    font-weight: 600;
    line-height: .85;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-strong);
    margin-bottom: clamp(28px, 4vh, 44px);
    user-select: none;
}

/* ---------------- рейл-индикатор текущей секции ---------------- */

.rail {
    position: fixed;
    left: 18px;
    top: 50%;
    z-index: 90;
    transform: translateY(-50%);
    display: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: #ffffff;
    mix-blend-mode: difference;
    pointer-events: none;
    user-select: none;
}
@media (min-width: 1280px) { .rail { display: block; } }
.rail span { transition: opacity .25s ease; }
.rail.is-switching span { opacity: 0; }

/* ---------------- reveal ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
    .dir-grid { grid-template-columns: repeat(2, 1fr); }
    /* полоса складывается в обычную карточку: баннер / 2+2 */
    .dir-card--strip { grid-template-columns: 1fr; }
    .dir-card--strip .dir-card-lead { padding-right: 0; }
    .dir-card--strip .dir-card-list { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin: 4px 0 0; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .split, .spec-grid, .hslide-sheet { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-cta { display: none; }
    .header-inner { gap: 14px; }
    .header-logo img { height: 28px; }
    .header-actions { margin-left: auto; }
    .burger { display: flex; flex: none; }
    .shot-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .split-2 { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .page-hero { padding-top: 130px; }
    .cols { column-count: 1; }
    .ptab { grid-template-columns: 1fr; }
    .ptab-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .ptab-list::-webkit-scrollbar { display: none; }
    .ptab-btn { flex: 1 0 auto; white-space: nowrap; }
    .shot-slider { grid-template-columns: 1fr; }
    .shot-slider-side { border-left: 0; border-top: 1px solid var(--line); }
    .dir-card--banner { grid-template-columns: 1fr; }
    .dir-card-lead { padding-right: 0; }
    .dir-card--banner .dir-card-list { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

@media (max-width: 640px) {
    :root { --pad-x: 20px; }
    .dir-grid { grid-template-columns: 1fr; }
    .dir-card-num { font-size: 38px; top: 14px; right: 18px; }
    .title, .section-title { overflow-wrap: break-word; }
    .section--cta .title { font-size: clamp(32px, 9vw, 84px); }
    #directions .section-head { margin-bottom: 18px; }
    .dir-card--wide { grid-column: span 1; }
    .ptab-shots { grid-template-columns: 1fr; }
    .feat-grid, .contact-grid { grid-template-columns: 1fr; }
    .scrollcue { display: none; }
    .footer-inner { grid-template-columns: 1fr; padding-top: 44px; }
    .hero .title { font-size: clamp(38px, 11vw, 60px); }
    /* резерв под 2 строки eyebrow — заголовок не скачет между слайдами при переносе */
    .hslider--fade .hslide .eyebrow { min-height: 3.2em; }
    .hero .meta { gap: 12px 28px; }
    .hero .meta > div { min-width: 0; padding-top: 10px; }
    .hero .meta dd { font-size: 13.5px; }
    .hnav { right: 20px; bottom: 20px; gap: 10px; }
    .hdot { width: 30px; }
    .hcount { display: none; }
    .spec__row { padding: 14px 0; gap: 12px; }
    .spec__row dt { width: 104px; font-size: 10.5px; }
    .spec__sub { padding-left: 12px; }
    .spec__row--sub { padding-left: 12px; }
    .spec__row--sub dt { width: 92px; }
    .idx-row { gap: 14px; }
    .idx-note { display: none; }
    .law-row { grid-template-columns: 1fr; gap: 4px; }
    .law-row__meta { white-space: normal; }
    .dir-card-list li { flex-direction: column; gap: 3px; }
    .dir-card-list b { width: auto; }
    .dir-card-list--tags li { align-items: flex-start; gap: 6px; }
    .prose-block { padding: 26px 22px; }
    .contact-card { padding: 26px 22px; }
    .cta { padding: 40px 24px; }
    .cta-actions { gap: 16px; }
}

/* невысокие мобильные экраны: компактный hero — контент должен помещаться */
@media (max-width: 640px) and (max-height: 700px) {
    .hero { padding-top: 82px; padding-bottom: 56px; }
    .hero .eyebrow { margin-bottom: 14px; font-size: 10.5px; }
    .hero .title { font-size: clamp(28px, 8.8vw, 44px); margin-bottom: 16px; }
    .hero .lead { font-size: 14px; line-height: 1.55; }
    .hnav { bottom: 14px; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .hdot::after { transform: scaleX(1); }
}
