@font-face{font-family:'Montserrat';font-weight:300;font-style:normal;font-display:swap;src:url('/fonts/montserrat-light.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-weight:500;font-style:normal;font-display:swap;src:url('/fonts/montserrat-medium.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-weight:400;font-style:normal;font-display:swap;src:url('/fonts/manrope-regular.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-weight:500;font-style:normal;font-display:swap;src:url('/fonts/manrope-medium.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-weight:600;font-style:normal;font-display:swap;src:url('/fonts/manrope-semibold.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-weight:400 900;font-style:italic;font-display:swap;src:url('/fonts/playfair-italic-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair Display';font-weight:400 900;font-style:italic;font-display:swap;src:url('/fonts/playfair-italic-latin.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}
@font-face{font-family:'Playfair Display';font-weight:400 900;font-style:normal;font-display:swap;src:url('/fonts/playfair-normal-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair Display';font-weight:400 900;font-style:normal;font-display:swap;src:url('/fonts/playfair-normal-latin.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}
/* PERSPECTIVE UNITY — палитра каталога «Галерея»: графит, слоновая кость, бронза.
   Заголовки — антиква Playfair Display, цифры — Montserrat (ровные), текст и подписи — Manrope.
   Рамок и карточек нет: волосяные линии, воздух, одна светлая полоса ритма (.light). */
:root {
  --ink: #141312; --ink2: #1B1917; --ink3: #24211E;
  --iv: #EFE9DF; --iv2: #D2CBBF; --mute: #9E968A;
  --br: #BC9A63; --br2: #D3B37C; --red: #C9473F;
  --line: rgba(239, 233, 223, .14); --line2: rgba(239, 233, 223, .26);
  /* светлые разделы */
  --paper: #EFE9DF; --p-ink: #1A1816; --p-ink2: #3F3A33; --p-mute: #6F675C; --p-line: rgba(26, 24, 22, .16);
  --br-ink: #7A5C31;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --num: 'Montserrat', 'Manrope', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* мягкая пружина: плавный разгон, перелёт 1,5 % и успокоение — для стопки карточек */
  --spring: linear(0, .025, .088, .174, .272, .373, .472, .564, .647, .721, .784, .838, .882, .918, .946, .968, .984, .996,
                  1.004, 1.01, 1.013, 1.015, 1.015, 1.015, 1.014, 1.012, 1.011, 1.009, 1.008, 1.007, 1.005, 1.004, 1.003,
                  1.002, 1.002, 1.001, 1);
  --wrap: 1320px; --gut: 20px; --top: 64px;
  --side: max(var(--gut), 3vw);   /* поля шапки и первого экрана: на всю ширину, без колонки 1320 */
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
@media (min-width: 768px) { :root { --gut: 40px; --top: 76px; } }
@media (min-width: 1440px) { :root { --gut: 56px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%;
       scrollbar-color: #4A443C var(--ink); }
body { background: var(--ink); color: var(--iv2); font: 400 16px/1.65 var(--sans); font-variant-numeric: lining-nums;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--br); }
::selection { background: var(--br); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--br); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--br-ink); }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.m { font-family: var(--num); font-variant-numeric: lining-nums tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--iv); letter-spacing: -.015em;
             font-variant-numeric: lining-nums; text-wrap: balance; }
h1 em, h2 em, h3 em, .statement em { font-style: italic; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.06; }
h4, .t4 { font: 600 15px/1.4 var(--sans); color: var(--iv); letter-spacing: 0; }
.small { font-size: 13px; line-height: 1.55; color: var(--mute); }
section { padding: clamp(88px, 11vw, 168px) 0; }

/* подписи капителями: разделы, подписи цифр, кнопки */
.now-idx, .now-figs dt, .figs dt, .gains h4, .cons h4, .use span, .ba-tag, .ba-modes button, .btn, .nav a,
.sys-meta, .dir small, .call-t {
  font-family: var(--sans); font-weight: 600; font-size: 11.5px; line-height: 1.2; letter-spacing: .18em;
  text-transform: uppercase;
}

/* заголовок раздела: антиква со сдвигом вправо по редакционной сетке */
.s-head { display: grid; margin-bottom: clamp(48px, 6vw, 88px); }
.s-head h2 { max-width: 15em; }
.s-lead { margin-top: 24px; max-width: 36em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--iv2); }
@media (min-width: 1024px) {
  .s-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; }
  .s-head > div { grid-column: 2; }
}

/* кнопки: капсулы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 30px;
       border-radius: 999px; background: var(--br); color: var(--ink); white-space: nowrap;
       transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { background: var(--br2); }
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn-line { background: transparent; color: var(--iv); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-line:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--iv); }
.btn-ink { background: var(--p-ink); color: var(--paper); }
.btn-line-ink { color: var(--p-ink); box-shadow: inset 0 0 0 1px var(--p-line); }
.btn-line-ink:hover { box-shadow: inset 0 0 0 1px var(--p-ink); }
.btn-ink:hover { background: #000; }

/* ---------- шапка ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top); color: var(--iv);
       transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease); }
.top.solid { background: rgba(20, 19, 18, .86); -webkit-backdrop-filter: blur(16px) saturate(1.1);
             backdrop-filter: blur(16px) saturate(1.1); box-shadow: 0 1px 0 var(--line); }
.top.hide { transform: translateY(-100%); }
.top:not(.solid) .top-in { text-shadow: 0 1px 14px rgba(20, 19, 18, .55); }
.top .top-in { max-width: none; padding-inline: var(--side); height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { flex: none; }
.brand b { display: block; font: 600 12px/1 var(--sans); letter-spacing: .24em; color: var(--iv); white-space: nowrap; }
.brand small { display: block; margin-top: 6px; font: 600 9px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase;
               color: var(--red); }
.nav { display: none; gap: 34px; margin-left: auto; }
.nav a { position: relative; color: var(--iv); padding: 8px 0; transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--br);
                transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--br2); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.call { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px;
        border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--iv); white-space: nowrap;
        transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.call:hover { box-shadow: inset 0 0 0 1px var(--br); background: rgba(188, 154, 99, .12); }
.call svg { color: var(--br); }
.call-n { display: none; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; }
@media (max-width: 479px) { .call { width: 42px; padding: 0; justify-content: center; } .call-t { display: none; } }
@media (min-width: 1180px) { .nav { display: flex; } .call { margin-left: 12px; } .call-t { display: none; } .call-n { display: inline; } }

/* ---------- первый экран ----------
   Телефон и планшет стоя: фото полосой посередине, края растворяются в фоне; заголовок сверху, сводка и стопка снизу.
   Экран шире 5:4: фото на весь экран, заголовок слева внизу, справа сводка фасада и стопка карточек с фактурами. */
.hero { --cw: 96px; --k: 1.9; position: relative; height: 100svh; min-height: 620px; padding: 0; overflow: hidden; isolation: isolate;
        display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; color: var(--iv); background: var(--ink); }
.hero-in { display: contents; }
.hero-copy, .pick { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.hero-copy { grid-row: 1; padding-top: calc(var(--top) + 18px); }
.stage { position: relative; grid-row: 2; z-index: -2; align-self: center; height: calc(100% + 64px); max-height: 112vw;
         -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
                 mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
/* смена фасада: новый кадр быстро проявляется поверх старого, без наезда — фон у всех кадров один и тот же
   (build.py, still), поэтому глаз видит, что поменялась только облицовка */
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) 60%;
        opacity: 0; transition: opacity .4s ease-out; }
.shot.in { opacity: 1; }

.hero-title { font-size: clamp(38px, 10vw, 64px); line-height: .98; letter-spacing: -.025em; }
.hero-title .ln { display: block; }
.hero-title em { color: var(--br2); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.w > span { display: inline-block; animation: rise 1.25s var(--ease) both; animation-delay: calc(.2s + var(--i) * .09s); }
@keyframes rise { from { transform: translateY(108%); } }
.hero-lead { margin-top: 14px; max-width: 28em; font-size: 14px; line-height: 1.55; color: var(--iv2);
             animation: fade 1.2s var(--ease) .75s both; }
.hero-act { display: flex; align-items: center; gap: 18px; margin-top: 16px; animation: fade 1.2s var(--ease) .85s both; }
.hero-act p { display: none; font-size: 13px; line-height: 1.45; color: var(--iv2); }
.hero-call { min-height: 50px; padding: 0 26px; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

.pick { grid-row: 3; display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.pick-row { display: flex; align-items: center; gap: 16px; }
/* тип здания: ряд кнопок над стопкой; на телефоне листается вбок */
.kinds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
         animation: fade 1.2s var(--ease) 1s backwards; }
.kinds::-webkit-scrollbar { display: none; }
.kind { flex: none; padding: 10px 14px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
        white-space: nowrap; color: var(--iv); background: rgba(20, 19, 18, .55); box-shadow: inset 0 0 0 1px var(--line2);
        transition: background-color .3s, color .3s, box-shadow .3s; }
.kind:hover { box-shadow: inset 0 0 0 1px var(--br); }
.kind[aria-pressed="true"] { background: var(--iv); color: var(--ink); box-shadow: none; }
.now { flex: 1; min-width: 0;
       display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 20px; row-gap: 4px;
       animation: fade 1.2s var(--ease) .9s backwards;
       transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.now.swap { opacity: 0; transform: translateY(8px); filter: blur(6px); transition-duration: .28s; transition-timing-function: ease-in; }
.now-idx { grid-column: 1; grid-row: 1; color: var(--mute); letter-spacing: .1em; }
.now-idx .m:first-child { color: var(--br); }
.now-name { grid-column: 1 / -1; font: 400 22px/1.1 var(--serif); color: var(--iv); }
.now-promise { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--iv2); }
.now-figs { grid-column: 1 / -1; display: none; gap: 22px; margin-top: 10px; }   /* рядом со стопкой на телефоне не помещаются */
.now-figs div { display: flex; flex-direction: column-reverse; }
.now-figs dd { font-size: 22px; font-weight: 300; line-height: 1.1; color: var(--iv); white-space: nowrap; }
.now-figs dt { margin-top: 6px; font-size: 11px; letter-spacing: .16em; color: var(--mute); white-space: nowrap; }
.now .more { grid-column: 2; grid-row: 1; justify-self: end; padding: 12px 0; margin: -12px 0; }
.more { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--br2); font-size: 14px; font-weight: 500;
        transition: color .3s, gap .45s var(--ease); }
.more:hover { color: var(--iv); gap: 12px; }

/* стопка карточек: выбранная смотрит прямо, соседние уходят назад, темнеют и повёрнуты к ней лицом; место задаёт data-pos из build.py и app.js.
   У каждой карточки своя перспектива, а порядок слоёв — z-index: карточки не режут друг друга в 3D */
.deck { flex: none; width: var(--cw); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.deck-cards, .deck-navs { animation: fade 1.2s var(--ease) 1s backwards; }
.deck-cards { position: relative; width: 100%; height: calc(var(--cw) * 2 / 3 * var(--k)); }
.card { --ty: 0%; --tz: 0px; --rx: 0deg; --s: 1; --dim: 0;
        position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 3 / 2; margin-top: calc(var(--cw) / -3); z-index: 4;
        border-radius: 3px; overflow: hidden; background: var(--ink3);
        outline: 1px solid rgba(239, 233, 223, .16); outline-offset: -1px;
        box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .8);
        transform: perspective(900px) translateY(var(--ty)) translateZ(var(--tz)) rotateX(var(--rx)) scale(var(--s)); will-change: transform;
        transition: transform 1.1s var(--spring), opacity .7s var(--ease); }
.card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.card::before { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--ink); opacity: var(--dim);
                pointer-events: none; transition: opacity 1.1s var(--ease); }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2px; background: var(--br);
               transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card.loading::after { transform: scaleX(1); animation: loading 1s var(--ease) infinite alternate; }
@keyframes loading { from { opacity: .25; } }
/* блик: полоса света проходит по передней карточке, как по образцу материала у окна; после смены фасада — по новой */
.card-gl { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.card-gl::before { content: ''; position: absolute; top: -40%; bottom: -40%; left: 0; width: 42%;
                   background: linear-gradient(90deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, .42) 50%, rgba(255, 250, 240, 0));
                   transform: translateX(-160%) skewX(-20deg); }
.card[data-pos="0"] .card-gl::before { animation: sheen 6s cubic-bezier(.5, 0, .2, 1) 1.6s infinite; }
@keyframes sheen { 0% { transform: translateX(-160%) skewX(-20deg); } 24%, 100% { transform: translateX(340%) skewX(-20deg); } }
/* подсказка «листается»: один раз после загрузки следующая карточка выглядывает вперёд и уходит назад */
.deck.nudge .card[data-pos="0"] { --ty: -10%; }
.deck.nudge .card[data-pos="1"] { --ty: 40%; --tz: -40px; --rx: 16deg; --s: .93; --dim: .12; }
.deck.nudge .deck-nav[data-step="1"] { background: var(--br2); transform: scale(1.08); }
.card-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 10px 8px;
          background: linear-gradient(rgba(20, 19, 18, 0), rgba(20, 19, 18, .78));
          font: 600 10px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--iv); }
.card-t b { font-weight: 500; letter-spacing: .04em; color: var(--br2); }
.card-t span { display: none; }
.card[data-pos="-1"], .card[data-pos="1"] { --s: .86; --dim: .3; z-index: 3; }
.card[data-pos="-1"] { --ty: -62%; --tz: -90px; --rx: -30deg; }
.card[data-pos="1"] { --ty: 62%; --tz: -90px; --rx: 30deg; }
.card[data-pos="-2"], .card[data-pos="2"] { --s: .74; --dim: .5; z-index: 2; opacity: 0; pointer-events: none; }
.card[data-pos="-2"] { --ty: -110%; --tz: -200px; --rx: -48deg; }
.card[data-pos="2"] { --ty: 110%; --tz: -200px; --rx: 48deg; }
.card[data-pos="-3"], .card[data-pos="3"] { --s: .64; --dim: .9; z-index: 1; opacity: 0; pointer-events: none; }
.card[data-pos="-3"] { --ty: -140%; --tz: -300px; --rx: -60deg; }
.card[data-pos="3"] { --ty: 140%; --tz: -300px; --rx: 60deg; }
/* смена, как в колоде: старая карточка приподнимается на месте и уходит назад, новая выходит из-под неё вперёд
   и встаёт на её место. Слои меняются, когда старая уже выше новой и они не перекрываются, — новая не выпрыгивает поверх.
   .down — новая пришла сверху, тогда старая уходит вниз. Новая всё время выше следующей за ней (z 4 против 3) */
.card.lift { --ty: -88%; --tz: -30px; --rx: -8deg; --s: .9; --dim: .1; z-index: 5; }   /* старая уменьшается, поднимаясь */
.card.lift.down { --ty: 88%; --rx: 8deg; }
.card.rise { --ty: 18%; --tz: -40px; --rx: 10deg; --s: .92; --dim: .15; z-index: 4; }   /* новая растёт до полного размера */
.card.rise.down { --ty: -18%; --rx: -10deg; }
.card.lift, .card.rise { transition: transform .38s cubic-bezier(.3, 0, .2, 1), opacity .7s var(--ease); }
.card[hidden] { display: none; }   /* этого фасада у выбранного здания нет */
.card:focus-visible { outline: 1.5px solid var(--br); outline-offset: 3px; }
@media (hover: hover) { .card:not([data-pos="0"]):hover { --dim: .2; } }
.deck-navs { position: relative; z-index: 6; display: flex; gap: 8px; }   /* карточка в движении проходит под стрелками */
.deck-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
            background: var(--iv); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
            transition: background-color .3s, transform .3s var(--ease); }
.deck-nav:hover { background: var(--br2); }
.deck-nav:active { transform: scale(.94); }
@media (min-width: 600px) {     /* планшет стоя: места хватает на цифры и подписи карточек */
  .hero { --cw: 124px; }
  .now-name { font-size: 26px; }
  .now-figs { display: flex; }
  .card-t span { display: inline; }
}

@media (min-width: 700px) and (min-aspect-ratio: 5 / 4) {
  /* заголовок и логотип слева, справа на том же поле — стопка и сводка рядом с ней, сводка по центру передней карточки */
  .hero { --cw: clamp(130px, 9.5vw, 170px); --k: 2.3; --hb: clamp(28px, 4.4vh, 52px);
          display: flex; flex-direction: column; height: auto; min-height: max(100svh, 560px); }
  .hero > * { width: 100%; }
  .stage { position: absolute; inset: 0; align-self: auto; height: auto; max-height: none; -webkit-mask-image: none; mask-image: none; }
  .shot { object-position: var(--dx) 62%; }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(20, 19, 18, .82) 0, rgba(20, 19, 18, .5) 9%, rgba(20, 19, 18, 0) 24%),   /* под шапкой: на светлом небе меню не читается */
      linear-gradient(90deg, rgba(20, 19, 18, .5) 0, rgba(20, 19, 18, .12) 34%, rgba(20, 19, 18, 0) 50%),
      radial-gradient(60% 55% at 100% 100%, rgba(20, 19, 18, .55), rgba(20, 19, 18, 0)),
      linear-gradient(0deg, rgba(20, 19, 18, .94) 0, rgba(20, 19, 18, .72) 16%, rgba(20, 19, 18, .2) 38%, rgba(20, 19, 18, 0) 52%); }
  .hero-in { max-width: none; padding-inline: var(--side);
             flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
             padding-top: calc(var(--top) + 18px); padding-bottom: var(--hb); }
  .hero-copy, .pick { max-width: none; margin: 0; padding: 0; }
  .hero-copy { width: auto; min-width: 0; }
  .hero-title { font-size: clamp(52px, 5.8vw, 92px); text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
  .hero-title .ln { white-space: nowrap; }   /* две строки, как утверждено; первая может зайти в пустое фото над сводкой */
  .hero-lead { max-width: 28em; font-size: 16px; color: var(--iv); }
  .hero-act { margin-top: 24px; }
  .hero-act p { display: block; }
  .pick { width: auto; flex: none; gap: 18px; }
  .pick-row { flex-direction: row-reverse; align-items: center; gap: clamp(32px, 2.8vw, 48px); }
  .kinds { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; width: 0; min-width: 100%; }   /* не шире стопки со сводкой */
  .kind { padding: 8px 11px; font-size: 10px; letter-spacing: .1em; }
  .now { width: min(360px, 26vw); flex: none; margin-bottom: 54px; }   /* 54 = стрелки с отступом: центр сводки — центр карточек, а не всей стопки */
  .now { text-shadow: 0 1px 16px rgba(20, 19, 18, .6); }   /* сводка поднялась на фото — тень держит её читаемой */
  .now-name { font-size: clamp(28px, 2.4vw, 36px); }
  .now-promise { font-size: 15px; color: var(--iv); }
  .now-figs { display: flex; margin-top: 20px; padding-top: 18px; gap: 30px; box-shadow: inset 0 1px 0 var(--line2); }
  .card-t { padding: 18px 9px 7px; font-size: 9.5px; letter-spacing: .12em; }
  .card-t span { display: inline; }
  .card[data-pos="-2"], .card[data-pos="2"] { opacity: 1; pointer-events: auto; }
  .now-figs dd { font-size: clamp(24px, 2vw, 30px); }
}
@media (min-width: 700px) and (max-width: 1099px) and (min-aspect-ratio: 5 / 4) {
  .now { display: none; }     /* сводке не хватает места между заголовком и стопкой — название есть на карточке */
  .pick { align-items: flex-end; }
  .kinds { width: auto; min-width: 0; max-width: 300px; justify-content: flex-end; }
}

/* ---------- вступление ---------- */
.intro { padding-bottom: clamp(72px, 9vw, 128px); }
.statement { max-width: 24em; font: 400 clamp(24px, 2.7vw, 38px)/1.28 var(--serif); color: var(--iv); letter-spacing: -.01em;
             text-wrap: pretty; }
.statement em { color: var(--br2); }

/* ---------- светлые разделы ---------- */
.light { background: var(--paper); color: var(--p-ink2); color-scheme: light; }
.light h2, .light h3, .light h4 { color: var(--p-ink); }
.light .s-lead { color: var(--p-ink2); }
.light ::selection { background: var(--p-ink); color: var(--paper); }

/* ---------- системы: редакционный список ---------- */
.sys-list { box-shadow: 0 1px 0 var(--p-line); }
.sys { box-shadow: inset 0 1px 0 var(--p-line); }
.sys summary { display: grid; grid-template-columns: 60px minmax(0, 1fr) 24px; grid-template-areas: "thumb title pm" "thumb meta meta";
               align-items: center; column-gap: 14px; row-gap: 8px; padding: 22px 0; cursor: pointer; list-style: none; }
.sys-thumb { grid-area: thumb; width: 60px; height: 42px; object-fit: cover; border-radius: 2px; align-self: start; margin-top: 4px; }
.sys summary::-webkit-details-marker { display: none; }
.sys-code { display: none; align-self: start; padding-top: .7em; font-size: 13px; font-weight: 500; color: var(--br-ink); letter-spacing: .04em; }
.sys-title { grid-area: title; display: block; min-width: 0; font: inherit; letter-spacing: 0; }
.sys-name { display: block; font: 400 clamp(24px, 3.1vw, 44px)/1.08 var(--serif); color: var(--p-ink); letter-spacing: -.018em;
            hyphens: manual; overflow-wrap: break-word;
            transition: transform .7s var(--ease), color .4s; }
.sys-aka { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--p-mute); transition: transform .7s var(--ease); }
.sys-meta { grid-area: meta; color: var(--p-mute); }
@media (min-width: 900px) { .sys-meta { white-space: nowrap; } }
.sys-meta .m { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--p-ink); text-transform: none; }
.sys-meta .sys-mc { color: var(--br-ink); }
.sys-pm { grid-area: pm; position: relative; width: 24px; height: 28px; justify-self: end; }
.sys-pm::before, .sys-pm::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; margin-top: -.75px;
                                   background: var(--p-ink); transition: transform .6s var(--ease); }
.sys-pm::after { transform: rotate(90deg); }
.sys[open] .sys-pm::after { transform: rotate(0deg); }
.sys[open] .sys-pm::before { transform: rotate(180deg); }
@media (hover: hover) {
  .sys summary:hover .sys-name, .sys summary:hover .sys-aka { transform: translateX(14px); }
  .sys summary:hover .sys-name { color: var(--br-ink); }
}
@media (min-width: 900px) and (hover: none) {
  .sys summary { grid-template-columns: 72px minmax(0, 1fr) auto 96px 40px; grid-template-areas: "code title meta thumb pm"; }
  .sys-thumb { display: block; width: 96px; height: 64px; margin: 0; align-self: center; }
}
.sys::details-content { block-size: 0; overflow: clip; transition: block-size .8s var(--ease), content-visibility .8s allow-discrete; }
.sys[open]::details-content { block-size: auto; }
.sys-body { display: grid; gap: 32px; padding: 8px 0 56px; }
@media (min-width: 900px) {
  .sys summary { grid-template-columns: 72px minmax(0, 1fr) auto 40px; grid-template-areas: "code title meta pm"; column-gap: 28px; padding: 30px 0; }
  .sys-code { display: block; grid-area: code; }
  .sys-mc { display: none; }
  .sys-thumb { display: none; }
}
@media (min-width: 1024px) {
  .sys-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding: 12px 0 72px 100px; align-items: start; }
}

.sys-kind { margin-top: 22px; font-size: 13px; line-height: 1.45; color: var(--p-mute); }
.sys-why { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--p-ink2); }
.ba-modes { display: flex; gap: 26px; box-shadow: inset 0 -1px 0 var(--p-line); }
.ba-modes button { position: relative; padding: 14px 0; color: var(--p-mute); transition: color .3s; }
.ba-modes button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--p-ink);
                          transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ba-modes button.on { color: var(--p-ink); }
.ba-modes button.on::after { transform: scaleX(1); }
.var-cap { margin-top: 14px; font-size: 14px; color: var(--br-ink); }
.gains { margin-top: 30px; }
.gains h4, .cons h4 { margin-bottom: 12px; color: var(--p-mute); }
.gains ul { list-style: none; }
.gains li { padding: 12px 0 13px; box-shadow: inset 0 1px 0 var(--p-line); }
.gains b { display: block; font: 600 15px/1.4 var(--sans); color: var(--p-ink); }
.gains li span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--p-ink2); }
.cons { margin-top: 28px; }
ul.pl { list-style: none; }
ul.pl li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; color: var(--p-ink); }
ul.pl li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--br-ink); }
ul.mi li { color: var(--p-ink2); }
ul.mi li::before { background: var(--p-mute); width: 6px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 30px; }
.figs div { padding: 14px 0 16px; box-shadow: inset 0 1px 0 var(--p-line); }
.figs dt { margin-bottom: 8px; color: var(--p-mute); font-size: 11px; }
.figs dd { font-size: 14px; line-height: 1.35; color: var(--p-ink); }
.figs dd.m, .figs dd .m { font-size: 24px; font-weight: 300; letter-spacing: -.01em; }
.figs small { font-size: 13px; color: var(--p-ink2); }
.use { margin-top: 22px; font-size: 15px; color: var(--p-ink2); }
.use span { display: block; margin-bottom: 8px; color: var(--p-mute); font-size: 11px; }
.sys-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lvl { display: inline-flex; gap: 4px; vertical-align: 1px; margin-right: 6px; }
.lvl i { width: 14px; height: 2px; background: var(--p-line); }
.lvl i.on { background: var(--br-ink); }

.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(280px, 24vw, 380px); height: auto; aspect-ratio: 16 / 9;
        object-fit: cover; pointer-events: none; opacity: 0; visibility: hidden; border-radius: 2px;
        box-shadow: 0 30px 60px -20px rgba(20, 19, 18, .45), 0 10px 20px -10px rgba(20, 19, 18, .3);
        transition: opacity .45s var(--ease), visibility 0s .45s; }
.peek.on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }

/* шторка «до / после» */
.ba { position: relative; aspect-ratio: 2400 / 1792; overflow: hidden; background: var(--p-line); touch-action: pan-y;
      user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
         -webkit-user-drag: none; user-select: none; }
.ba-a { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-tag { position: absolute; top: 14px; padding: 8px 11px 7px; border-radius: 999px; background: rgba(20, 19, 18, .72);
          color: var(--iv); font-size: 11px; pointer-events: none; }
.ba-ta { left: 14px; }
.ba-tb { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; margin-left: -.5px; background: var(--iv);
             pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
               background: rgba(239, 233, 223, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.ba-handle i::before, .ba-handle i::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border: solid var(--p-ink); border-width: 0 0 1.5px 1.5px; }
.ba-handle i::before { left: 12px; transform: rotate(45deg); }
.ba-handle i::after { right: 12px; transform: rotate(-135deg); }
.ba-range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }  /* для клавиатуры */
.ba:has(.ba-range:focus-visible) { outline: 1.5px solid var(--br-ink); outline-offset: 4px; }

/* ---------- технология ---------- */
.layers { display: grid; gap: 40px; }
.layers-ph { position: relative; }
.mk { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%;
      background: var(--iv); color: var(--ink); font-weight: 500; font-size: 13px; box-shadow: 0 0 0 5px rgba(20, 19, 18, .35); }
.layers-list { list-style: none; counter-reset: l; }
.layers-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); }
.layers-list li > .m { font-size: 13px; font-weight: 500; color: var(--br); padding-top: 2px; }
.layers-list .t4 { font: 400 20px/1.25 var(--serif); }
.layers-list p { font-size: 14.5px; line-height: 1.55; margin-top: 4px; color: var(--iv2); }
@media (min-width: 1024px) { .layers { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }

.sub { margin-top: clamp(96px, 11vw, 160px); margin-bottom: 40px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.sub-lead { margin: -20px 0 40px; max-width: 44em; font-size: 15px; color: var(--iv2); }
.steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.steps li { position: relative; padding-top: 30px; box-shadow: inset 0 1px 0 var(--line2); }
.steps li::before { content: ''; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--br); }
.steps .m { display: block; font-size: clamp(34px, 3.2vw, 46px); font-weight: 300; line-height: 1; color: var(--iv); letter-spacing: -.02em; }
.steps h4 { margin-top: 22px; font: 400 22px/1.2 var(--serif); }
.steps p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--iv2); }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(6, 1fr); } }

/* ---------- выбор и сравнение ---------- */
.compare { background: var(--ink2); }
.guide { list-style: none; box-shadow: 0 1px 0 var(--line); }
.guide li { display: grid; gap: 14px; padding: 26px 0; box-shadow: inset 0 1px 0 var(--line); }
.guide h3 { font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); }
.guide div { display: flex; flex-wrap: wrap; gap: 0 26px; }
.tag-try { position: relative; padding: 11px 0; font-size: 15px; color: var(--iv2); transition: color .3s; }
.tag-try::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--line2);
                  transition: background .3s; }
.tag-try:hover { color: var(--br2); }
.tag-try:hover::after { background: var(--br); }
@media (min-width: 900px) { .guide li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: 40px; } }

.tbl-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; }   /* relative — скрытые «да/нет» не вылезают за прокрутку */
.tbl { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14px; }
@media (min-width: 768px) { .tbl { min-width: 1000px; } .tbl tbody th { min-width: 220px; max-width: none; font-size: 14px; } }
.tbl th, .tbl td { padding: 13px 8px; text-align: center; box-shadow: inset 0 -1px 0 var(--line); }
.tbl tbody th { position: sticky; left: 0; min-width: 132px; max-width: 132px; padding-left: 0; padding-right: 10px; text-align: left; font-weight: 400; color: var(--iv);
                font-size: 13px; line-height: 1.35;
                background: var(--ink2); }
.tbl thead th { vertical-align: bottom; padding-bottom: 16px; box-shadow: inset 0 -1px 0 var(--line2); }
.tbl thead th:first-child { position: sticky; left: 0; background: var(--ink2); }
.th-try { min-height: 44px; padding: 4px 0; font-size: 12.5px; line-height: 1.3; color: var(--iv); hyphens: manual; text-align: center; transition: color .3s; }
.th-try b { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--br); }
.th-try:hover { color: var(--br2); }
.tbl i.yes { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--br); }
.tbl i.no { display: inline-block; width: 10px; height: 1px; background: #5A544C; vertical-align: middle; }
.tbl small { font-size: 12.5px; color: var(--iv2); }
.tbl .lvl i { width: 9px; background: #3B3732; }
.tbl .lvl i.on { background: var(--br); }
.note { margin-top: 18px; max-width: 52em; font-size: 13.5px; color: var(--mute); }
.tbl-hint { display: flex; align-items: center; gap: 8px; margin: -24px 0 16px; font-size: 13px; color: var(--mute); }
@media (max-width: 767px) { .tbl-wrap { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
                                        mask-image: linear-gradient(90deg, #000 85%, transparent); } }
@media (min-width: 768px) { .tbl-hint { display: none; } }

/* ---------- гарантия: табличка — главное высказывание ---------- */
.guarantee { box-shadow: inset 0 1px 0 var(--line); }
.g-in { display: grid; gap: 40px; align-items: center; }
.g-copy h2 { max-width: 12em; }
.safety { list-style: none; display: grid; gap: 0 32px; margin-top: 40px; }
.safety li { padding: 20px 0; box-shadow: inset 0 1px 0 var(--line); }
.safety p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--iv2); }
.plaque { width: 100%; max-width: 720px; justify-self: center; }
@media (min-width: 640px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .g-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }

/* ---------- контакты: последний экран на фото ---------- */
.contact { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; }
.contact > .wrap { width: 100%; }
.c-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 19, 18, .96) 0, rgba(20, 19, 18, .88) 46%, rgba(20, 19, 18, .55)),
              linear-gradient(0deg, rgba(20, 19, 18, .9), rgba(20, 19, 18, 0) 40%); }
.contact .s-head h2 { max-width: 16em; }
.c-in { display: grid; }
.c-main { display: grid; gap: 22px; justify-items: start; }
.phones { display: grid; gap: 4px; }
.phone { font-size: clamp(32px, 4.6vw, 64px); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; color: var(--iv);
         transition: color .3s; }
.phone:hover { color: var(--br2); }
.dir { font-size: 16px; color: var(--iv); }
.dir small { display: block; margin-top: 6px; color: var(--mute); }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.c-req { margin-top: clamp(64px, 8vw, 112px); }
.c-req h3 { margin-bottom: 18px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.req { list-style: none; display: grid; gap: 0 28px; }
.req li { display: grid; grid-template-columns: 36px 1fr; align-content: start; column-gap: 8px; padding: 16px 0; box-shadow: inset 0 1px 0 var(--line2); }
.req .m { grid-row: span 2; font-size: 12px; font-weight: 500; color: var(--br); padding-top: 3px; }
.req p { font-size: 14px; line-height: 1.5; color: var(--iv2); }
@media (min-width: 640px) { .req { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .c-in { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 40px; }
  .c-in .s-head { grid-column: 1 / -1; margin-bottom: 56px; }
  .c-main, .c-req { grid-column: 2; }
  .req { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- панель звонка на телефоне: после первого экрана, до контактов ---------- */
.callbar { position: fixed; left: var(--gut); right: var(--gut); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
           display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 999px;
           background: var(--br); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
           transform: translateY(calc(100% + 24px)); transition: transform .6s var(--ease); }
.callbar span:first-of-type { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.callbar .m { font-size: 14px; font-weight: 500; }
.callbar.on { transform: none; }
@media (min-width: 768px) { .callbar { display: none; } }

/* ---------- подвал ---------- */
.foot { padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 var(--line); }
@media (min-width: 768px) { .foot { padding-bottom: calc(48px + env(safe-area-inset-bottom)); } }
.f-in { display: grid; gap: 20px; }
.foot p { font-size: 14px; line-height: 1.7; }
.foot p a { display: inline-block; padding: 10px 0; }
.foot a:hover { color: var(--iv); }
@media (min-width: 1024px) {
  .f-in { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); column-gap: 40px; align-items: start; }
}

/* ---------- появление при прокрутке ----------
   Без JS всё видно сразу; с JS — блок выезжает, когда доходит до экрана. */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w > span, .hero-lead, .hero-act, .now, .deck-cards, .deck-navs, .card.loading::after, .card-gl::before { animation: none !important; }
  .card, .card::before, .now { transition-duration: .01s; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .sys-name, .sys-aka, .btn svg, .callbar { transition: none; }
  .sys summary:hover .sys-name, .sys summary:hover .sys-aka { transform: none; }
  .sys::details-content { transition: none; }
}
