/* DZHOLOV — дизайн-система по Odin's Crow (odins-crow.com).
   Палитра снята пипеткой с оригинала, изинг и радиусы — из его темы.
   Шрифт — Golos Text self-hosted (23.11 Google Fonts выключён; ONDER,
   добавлявшийся 23.11, полностью отменён владельцем). */

/* Golos Text self-hosted (23.11): Google Fonts выключён, подмножества woff2 по unicode-range */
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-400-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: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-500-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-500-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: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-600-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-600-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: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-700-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-700-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: 'Golos Text'; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/golos-900-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/golos-900-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/golos-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 900; font-display: swap;
  src: url("fonts/golos-900-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;
}

:root {
  color-scheme: dark;     /* 04.11.2026: палитра вывернута (инверсия по просьбе владельца) */
  --paper: #2b2b2b;      /* фон — прежний чёрно-серый (24.11 откат; #15160A зелёнил, #000 не зашёл) */
  --ink: #F2F2EF;        /* основной — белый (24.11 палитра владельца) */
  --ink-deep: #272421;   /* тёплый чёрный: текст на тоновых панелях, hover-затемнение карточек */
  --taupe: #c9c8c9;      /* 24.11: зелёный (#4e5d3c) убран со всего сайта — мягкий серый для служебного текста */
  --sand: #e5d5c3;
  --grey: #c9c8c9;
  --sage: #82887c;
  --warmgrey: #afa7a2;
  --peach: #fbd4b7;
  --hair: rgba(241, 237, 232, .35);   /* тонкая линейка (светлая на тёмном) */
  --hair-soft: rgba(241, 237, 232, .18);
  --ease: cubic-bezier(.4, 0, 0, 1);
  --ios: cubic-bezier(.32, .72, 0, 1);     /* плавный iOS-spring */
  --pop: cubic-bezier(.34, 1.45, .5, 1);   /* pop с лёгким overshoot (открытие папки iOS) */
  --jelly: cubic-bezier(.34, 1.56, .5, 1); /* более «желейный» отскок */
  --popfast: cubic-bezier(.2, .8, .36, 1.05); /* быстрый pop, лёгкий overshoot */
  --pad: clamp(8px, 1vw, 16px);    /* поля страницы — у оригинала узкие */
  /* минимальный размер читаемого текста сайта (требование владельца 04.11):
     равен тексту «Основатель и руководитель студии…» (.about2-role);
     всё, что раньше было 11-13px, поднято до этого уровня.
     Кроме: навигация, подвал, hero-строка, cookie/док/гео-плашки */
  --minfs: clamp(14px, 1.4vw, 17px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;   /* для якорей; колесо ведёт SmoothScroll.js */
  overflow-y: scroll;        /* желоб скроллбара всегда: ширина страницы
                                не прыгает между прелоадером и страницей */
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 23.11 (владелец): белый убран со всего сайта, кроме кнопок-акцентов,
   текста и двух светлых карточек 1.4. Фон = чёрный html + WebGL mesh-drift (bg.js).
   Зерно бумаги убрано (дешевит). */
html { background: var(--paper); }   /* 23.11: фон страницы = фон интро, без стыка цветов */
/* 24.11: кросс-штриховка убрана по ТЗ владельца — фон чистый, без текстур */
body {
  position: relative;
  font-family: 'Golos Text', system-ui, sans-serif;
  font-weight: 400;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; touch-action: none; overscroll-behavior: none; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ---------- мелкий служебный текст ---------- */
.meta, .card-tag, .work-meta, .hero-meta, .foot-small,
.step-mark, .sect-intro {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* читабельность (ТЗ 04.11): карточные и блочные подписи — не мельче эталонного
   текста; hero-строка и подвальные мелочи остаются служебными (11px) */
.meta, .card-tag, .work-meta, .step-mark, .sect-intro { font-size: var(--minfs); }

/* ================= ПРЕЛОАДЕР ================= */
/* Линии rule-stack хиро рисуются слева направо ровно на своих местах
   (координаты клонов считает JS), Dzholov улетает в лого. Без слайдов. */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
}
.preloader.gone { display: none; }
.pl-line {
  position: absolute;
  z-index: 1;               /* линии — под словом Dzholov */
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.pl-line.draw {
  transition: transform .7s var(--ease);
  transition-delay: var(--ld, 0s);
  transform: scaleX(1);
}
.pre-title {
  position: absolute;
  z-index: 2;               /* слово поверх рисующихся линий */
  left: var(--pad); bottom: var(--pad);
  /* «DZHOLOV» ≈ 4.9 ширины шрифта: 16.4vw заведомо влезает в экран минус отступы
     (на 375px: 61px×4.9≈300 < 335) — буква V никогда не переносится на вторую
     строку, как это случалось на iPhone с полом 80px. nowrap — страховкой */
  font-size: clamp(40px, 16.4vw, 280px);
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -.02em;   /* тот же трекинг, что у .logo — прилётовое слово совпадает с лого пик-в-пик */
  line-height: 1;
  transform-origin: left top;
}
.pre-title .ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .004em; }  /* минимум запаса: трекинг = .logo, стыковка пик-в-пик */
.pre-title .ch-in {
  display: inline-block;
  transform: translateY(110%);
}
.preloader.go .ch-in {
  transition: transform .9s var(--ease);
  transition-delay: var(--chd, 0s);
  transform: translateY(0);
}

/* ================= ЗЕРНО (паттерн поверх всего) ================= */
.grain, .doc-grain {
  position: absolute;   /* едет вместе со страницей — эффект бумаги */
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: auto;
  background-repeat: repeat;
  opacity: .09;
}

/* плавное появление видимых элементов хиро после прелоадера;
   у полосы заявки transition совмещаем: появление + плавный ховер (цвет),
   иначе это правило (spec 0-2-0) перекрывало анимацию цвета у .bar-cta */
.js .header, .js .hero-meta {
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.js .bar-cta {
  opacity: 0;
  transition: opacity .8s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
body.ready .header, body.ready .hero-meta, body.ready .bar-cta { opacity: 1; }
/* ТЗ 11.12 (владелец): мгновенный вход при свежем кеше — на одно кадр-окно
   гасим фейды (класс снимается на следующем кадре, ховеры живые); заголовок
   «Создаём архитектуру» script.js в этом режиме лишает анимации напрямую */
body.no-fade .header, body.no-fade .hero-meta, body.no-fade .bar-cta { transition: none !important; }

/* ================= ШАПКА ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: transparent;
  transition: transform 1.65s var(--ease), color .6s var(--ease);   /* появление в 3 раза плавнее */
}
.header.hide { transform: translateY(-110%); transition: transform .45s var(--ease); }  /* прятать — быстро */
/* проявление шапки после остановки скролла: текст въезжал быстрым началом кривой
   и воспринимался резко на фоне медленно ползущей вуали — теперь буквы проступают
   по алфавиту синхронно с вуалью (те же 1.65s и та же кривая) */
.header > * { transition: opacity 1.65s var(--ease); }
.header.hide > * { opacity: 0; }
/* вуаль при остановке: мягкий размытый градиент + фрост, выделяет шапку на контенте */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100% + 96px);
  background: linear-gradient(180deg,
    rgba(241, 237, 232, .18) 0%,
    rgba(241, 237, 232, .12) 28%,
    rgba(241, 237, 232, .05) 62%,
    rgba(241, 237, 232, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: 0;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: opacity 1.65s var(--ease), backdrop-filter .9s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.header.stopped::before { opacity: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.header--solid { background: var(--paper); }   /* подстраницы без JS-логики */

/* адаптивный цвет: на СВЕТЛОМ фоне — тёмный текст (ставит JS; фон страницы тёмный, текст и так светлый) */
.header.on-light { color: var(--paper); }
.header.on-light .logo,
.header.on-light .nav-mid a,
.header.on-light .nav-touch,
.header.on-light .region-switch summary { color: var(--paper); }
.header.on-light .burger span { background: var(--paper); }

/* при открытом бургер-меню шапка чистая: без вуали и без инверсии цвета */
body.menu-open .header::before { opacity: 0; }
body.menu-open .header,
body.menu-open .header .logo,
body.menu-open .header .region-switch summary { color: var(--ink); }
body.menu-open .header .burger span { background: var(--ink); }
.logo { font-weight: 900; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.logo sup { font-size: 9px; font-weight: 700; }
/* части вордмарка: DZHOLOV — цель прилёта заставки, ARCHITECTS — вписывается слева направо.
   Пока заставочное слово летит (body.opening), настоящие буквы скрыты —
   в момент приземления показываем DZHOLOV под прилетевшим словом: без «двоения» (fix 04.11) */
.logo-w, .logo-sub { display: inline-block; }
body.opening .logo-w,
body.opening .logo-sub,
body.opening .logo sup { visibility: hidden; }
@keyframes wordIn {   /* закрыто справа → открыто: текст «вписывается» слева направо */
  from { clip-path: inset(-.2em 100% -.2em -.08em); }
  to   { clip-path: inset(-.2em -.08em -.2em -.08em); }
}
@keyframes regIn { from { opacity: 0; } }
.logo.type-in .logo-sub { animation: wordIn .5s steps(10, end) .1s both; }
.logo.type-in sup { animation: regIn .4s ease .55s both; }
.nav-mid { display: flex; gap: 18px; }
/* 1021–1599: меню центрируется flex-ом ровно посередине меду вордмарком и правым
   кластером (Region+заявка) — экранная ось (50%) визуально уезжала вправо;
   на 1600+ зазор велик, перекос не читается — возвращаем строгую ось экрана */
@media (min-width: 1600px) {
  .nav-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
.nav-mid a, .nav-touch {
  font-size: 12px; font-weight: 600;
}
.nav-mid a:hover { opacity: .55; }
.nav-touch { text-decoration: underline; text-underline-offset: 3px; }
.nav-touch:hover { opacity: .55; }
.env { font-size: .9em; }   /* иконки соразмерны тексту, в котором стоят */

/* ——— бургер + мобильное меню ——— */
.burger {
  display: none;
  width: 28px; height: 20px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative; z-index: 60;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 1px; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 17px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* размытый фон под меню */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 47;
  background: rgba(15, 13, 11, .5);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.menu-backdrop.open {
  opacity: 1; visibility: visible;
  transition: opacity .55s var(--ease), visibility 0s;
}

/* выезжающая справа панель меню */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 49;
  height: 100%; width: min(84vw, 360px);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 92px 30px 40px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .6);
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ios), visibility 0s linear .55s;
}
.mobile-menu.open {
  transform: translateX(0); visibility: visible;
  transition: transform .55s var(--ios), visibility 0s;
}
.mobile-menu a {
  font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: -.02em;
  padding: 13px 2px; border-bottom: 1px solid var(--hair-soft);
  transition: opacity .25s var(--ease);
}
.mobile-menu a:hover { opacity: .55; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mm-cta {
  margin-top: 18px; border-bottom: 0;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; text-align: center;
  font-size: clamp(17px, 4.8vw, 21px); padding: 17px 20px;
}
.mobile-menu .mm-cta:hover { opacity: .9; }
body.menu-open { overflow: hidden; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) var(--pad);
}

/* фон хиро: видео-чертёж на весь экран, контент поверх.
   contain: фон видео = крем сайта, границы сливаются — план целиком виден */
.hero-title {
  font-size: clamp(34px, 6.9vw, 132px);
  font-weight: 900;
  /* ТЗ 10.11 вечер-14 (владелец): межбуквенный интервал слегка больше
     (было -.015em, стало .005em) */
  letter-spacing: .005em;
  line-height: .98;
  position: relative;
}
/* 24.11 ТЗ владельца: притемнить фон за буквами — мягкое чёрное пятно под заголовком */
.hero-title::before {
  content: '';
  position: absolute; z-index: -1; pointer-events: none;
  left: -10vw; right: -14vw; top: -7vh; bottom: -7vh;
  background: radial-gradient(60% 55% at 42% 46%, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, 0) 78%);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.js .hero-title .line {
  clip-path: inset(0 0 100% 0);
  animation: line-up 1s var(--ease) forwards;
  animation-delay: calc(2.25s + var(--ld, 0s));
}
.js .hero-title .line:nth-child(2) { --ld: .12s; }
@keyframes line-up { to { clip-path: inset(0 0 -10% 0); } }

.hero-meta {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 3px 0;
  margin-top: clamp(14px, 2vw, 28px);
}
.rule-stack { display: grid; gap: 4px; margin-top: 8px; }
.rule-stack span { display: block; background: var(--ink); }
.rule-stack span:nth-child(1) { height: 2px; }
.rule-stack span:nth-child(2) { height: 3px; }
.rule-stack span:nth-child(3) { height: 5px; }
.rule-stack span:nth-child(4) { height: 8px; }

.bar-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 21px);
  padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.6vw, 26px);
  margin-top: 8px;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
/* ховер полосы заявки: плавно в зелёный из палитры, текст белым (ТЗ 04.11) */
.bar-cta:hover { background: var(--sage); color: #ffffff; }
.bar-cta .arr { font-size: 1.25em; line-height: 1; }

/* ================= СЕКЦИИ ================= */
.sect {
  padding: 0 var(--pad);
  margin-top: clamp(96px, 13vw, 210px);
}
.sect-head {
  display: flex;            /* 24.11 ТЗ владельца: названия блоков — к правой стороне */
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 10px;
}
.sect-head h2 { text-align: right; }
.sect-head h2, .sect-num {
  font-size: clamp(26px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.sect-intro {
  margin-left: auto;   /* 24.11 ТЗ владельца: прижать и блок, и текст к правому краю (было margin-left 66.6%) */
  max-width: 320px;
  padding-top: 18px;
  text-transform: none;
  font-size: var(--minfs);
  letter-spacing: 0;
  line-height: 1.55;
  text-align: right;   /* 24.11 ТЗ владельца: подписи блоков — вправо */
}

/* ================= ПРОЕКТЫ ================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: clamp(20px, 3vw, 48px);
}
.work-card {
  position: relative;
  container-type: inline-size;   /* cqi-единицы для ховер-оверлея = ширина карточки */
  background-color: var(--tone, rgba(241, 237, 232, .12));
  background-size: cover; background-position: center;
  color: var(--ink-deep);
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 4 / 4.4;
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.work-card--dark { color: var(--ink); }
/* фото-карточки: градиентное затемнение сверху (под номером) и снизу (под подписью) */
.work-card--photo::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, 0) 30%),
    linear-gradient(to top, rgba(20, 16, 12, .6) 0%, rgba(20, 16, 12, 0) 34%);
}
.work-card--photo .work-num,
.work-card--photo .card-cap { color: var(--ink); }
/* hover: карточка сжимается, темнеет, поверх — описание + фейк-кнопка */
.work-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: var(--ink-deep);
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.work-card:hover { transform: scale(.965); }
.work-card:hover::after { opacity: .62; }
.card-hover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 4cqi, 16px); text-align: center;
  padding: clamp(10px, 5cqi, 40px) clamp(12px, 6cqi, 40px);
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.work-card:hover .card-hover { opacity: 1; transform: none; }
/* cqi = ширина КАРТОЧКИ (не вьюпорта): в 4-в-ряд и на планшете карточки узкие,
   текст и кнопка масштабируются под них, а не под экран */
.card-info {
  color: var(--ink); font-size: clamp(11px, 4.6cqi, 17px); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.card-fakebtn {
  display: inline-block; padding: clamp(4px, 2.2cqi, 9px) clamp(10px, 4.5cqi, 18px);
  border: 1px solid rgba(241, 237, 232, .65); border-radius: 3px;
  color: var(--ink); font-size: clamp(10px, 3.6cqi, 12px); font-weight: 600; white-space: nowrap;
}
.work-card:hover .card-fakebtn { background: rgba(241, 237, 232, .12); }

/* карточка-заглушка «Объект в работе…»: без ссылки, ховера и подписей */
.work-card--soon { color: var(--ink); cursor: default; align-items: center; justify-content: center; text-align: center; }
.work-card--soon:hover { transform: none; }
.work-card--soon::after { display: none; }
.work-card--soon .work-num { position: absolute; top: 14px; left: 16px; }
.soon-label { position: relative; z-index: 1; font-size: var(--minfs); font-weight: 600; letter-spacing: .02em; opacity: .68; }

/* кнопки под сеткой на главной: в линию, по визуальному центру, шаг 14-18px,
   симметрия от краёв рядов до краёв кнопок за счёт justify-content:center */
.works-all-wrap {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: clamp(24px, 3vw, 40px);
}
.works-all {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; padding: 14px 28px; border-radius: 3px;
  text-decoration: none; transition: opacity .2s var(--ease);
}
.works-all:hover { opacity: .88; }
/* «пример рабочей документации» - тот же зелёный, что карточка «Полный проект под ключ» (1.4) */
.works-all--sage { background: var(--sage); color: var(--ink-deep); }
@media (max-width: 620px) {
  /* на мобилке — одна строка, кнопки одинаковые: длинная метка переносится
     внутри своей кнопки, высоты выравнивает stretch */
  .works-all-wrap { flex-wrap: nowrap; align-items: stretch; }
  .works-all {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
    justify-content: center; text-align: center; line-height: 1.3;
    font-size: 13px; padding: 12px 14px;
  }
  .works-all--sage { flex: 1.55 1 auto; }
}

/* ================= СТРАНИЦА «ВСЕ ПРОЕКТЫ» ================= */
.proj-page { max-width: 1100px; margin: 0 auto; padding: 96px var(--pad) 80px; }
.proj-head { margin-bottom: clamp(20px, 3vw, 40px); }
.proj-head h1 {
  font-size: clamp(26px, 3vw, 52px); font-weight: 700;
  letter-spacing: -.015em; line-height: 1.05; margin-bottom: 10px;
}
.proj-intro { font-size: 15px; opacity: .75; max-width: 640px; line-height: 1.6; }
.proj-empty { opacity: .55; font-size: 15px; padding: 40px 0; }
.proj-cta {
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 48px);
  background: rgba(241, 237, 232, .05); border: 1px solid var(--hair-soft);
  color: var(--ink); border-radius: 6px; text-align: center;
}
.proj-cta-h { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.proj-cta-text { font-size: 15px; opacity: .85; max-width: 520px; margin: 0 auto 22px; line-height: 1.55; }
.proj-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.proj-cta-btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 3px;
  text-decoration: none; transition: opacity .2s var(--ease);
}
.proj-cta-btn:hover { opacity: .9; }
.proj-cta-btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(241, 237, 232, .4); font-weight: 600; }

/* шапка/заголовок галереи: h1 слева, «Вернуться» справа симметрично */
.proj-head-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.proj-head-top h1 { margin-bottom: 0; }
.proj-back-btn {
  flex: 0 0 auto; display: inline-block;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 3px;
  text-decoration: none; white-space: nowrap; transition: opacity .2s var(--ease);
}
.proj-back-btn:hover { opacity: .88; }
/* зелёная «пример документации» в шапке галереи - тот же sage, что 1.4 */
.proj-back-btn--sage { background: var(--sage); color: var(--ink-deep); }
.proj-head-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.proj-head .proj-intro { margin-top: 12px; }
.proj-grid .work-num { font-size: clamp(20px, 2.4vw, 34px); }   /* мельче номера в галерее */

/* контакт-кнопка в шапке (button вместо ссылки) */
.nav-touch--btn { background: none; border: 0; cursor: pointer; padding: 0; color: inherit; }
.mobile-menu button.mm-cta { font: inherit; border: 0; cursor: pointer; width: 100%; }

/* форма-модалка «Оставить заявку» на подстраницах */
.modal-box--form { width: min(480px, 100%); max-height: 88vh; overflow-y: auto; }
.modal-box--form .form { margin: 0; max-width: none; }
.lead-intro { font-size: 14px; opacity: .7; margin: -8px 0 16px; line-height: 1.5; }

/* ================= БЛОК «О НАС» (главная) ================= */
.about-photo {
  background-color: #1e1e1e;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23f1ede8' fill-opacity='.10'><circle cx='12' cy='8.5' r='4.2'/><path d='M3.6 21c0-4.6 3.8-8.4 8.4-8.4s8.4 3.8 8.4 8.4Z'/></g></svg>");
  background-repeat: no-repeat; background-position: center 96%; background-size: 62%;
  border-radius: 8px; overflow: hidden;
}
.about-grid { display: flex; align-items: flex-end; gap: clamp(14px, 2.5vw, 32px); margin-top: clamp(20px, 3vw, 40px); }
.about-lead { display: flex; flex-direction: column; gap: 14px; }
.about-photo--big { width: clamp(150px, 24vw, 280px); aspect-ratio: 5 / 6; }
.about-team { display: flex; align-items: flex-end; gap: 12px; }
.about-photo--md { width: clamp(96px, 15vw, 168px); aspect-ratio: 5 / 6; }
.about-photo--sm { width: clamp(72px, 11vw, 130px); aspect-ratio: 5 / 6; }
.about-cap { display: flex; flex-direction: column; gap: 2px; }
.about-name { font-weight: 800; font-size: clamp(17px, 2vw, 24px); letter-spacing: -.01em; }
.about-role { font-size: var(--minfs); opacity: .6; }
.about-text { max-width: 620px; margin-top: clamp(18px, 2.4vw, 30px); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; opacity: .9; }
.about-more {
  display: inline-block; margin-top: 18px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; padding: 13px 26px; border-radius: 3px;
  text-decoration: none; transition: opacity .2s var(--ease);
}
.about-more:hover { opacity: .88; }

/* блок «Команда специалистов»: текст слева, крупный портрет справа, кружки команды */
.about { padding: clamp(40px, 6vw, 100px) var(--pad) 0; overflow: hidden; }
.about2 {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: start; gap: clamp(16px, 3vw, 48px);   /* колонка прижата к верху - заголовок и имя не прыгают */
  min-height: clamp(304px, 34vw, 464px);
  /* раньше портрет вылетал к правому краю (-pad); теперь панель стоит симметрично тексту (04.11) */
  margin-right: 0;
}
.about2-left { padding-bottom: clamp(24px, 4vw, 56px); padding-left: clamp(32px, 8vw, 120px); }  /* блок не прижат к левому краю (замечание владельца 04.11) */
.about2-title {
  grid-column: 1 / -1;   /* 24.11: заголовок над обеими колонками, прижат вправо — не перемешивается с портретом */
  text-align: right;
  font-size: clamp(26px, 3vw, 52px); font-weight: 700;
  letter-spacing: -.015em; line-height: 1.05; margin: 0 0 clamp(22px, 3vw, 40px);
}
/* ФИКСИРОВАННАЯ высота по САМОМУ ДЛИННОГО контента (ДЖОЛОВ ТИМУР: капс-имя в 2 строки + описание в 4):
   при переключении аватаров нижняя граница блока не скачет, и ни у кого текст не наползает на аватары.
   Если когда-нибудь появится ещё более длинная биография — поднять clamp-значения. */
.about2-card { display: block; max-width: 560px; text-align: left; height: clamp(250px, 27vw, 320px); }
.about2-name { display: block; font-weight: 700; font-size: clamp(40px, 5.5vw, 84px); letter-spacing: -.02em; line-height: 1.02; text-transform: uppercase; }  /* фамилия и имя капсом (по требованию владельца 04.11) */
.about2-role { display: block; font-size: clamp(14px, 1.4vw, 17px); opacity: .62; line-height: 1.55; margin-top: 10px; }
/* ТЗ 13.11 (владелец): в команде 5 человек + кнопка «+» = 6 кругов в ряд.
   Кружки чуть меньше прежних (было clamp(69px,7.2vw,96px), gap 12px), чтобы
   все шесть влезали в одну строку на той же ширине, где раньше влезали пять.
   13.11 вечер (замер headless-Chrome по 23 ширинам): с 5.9vw ряд ЛОМАЛСЯ на
   761-860px (левая колонка там узкая - съедает padding-left 8vw) и на 320px.
   Поэтому 5.4vw с нижним порогом 40px: шесть кругов в одну строку на всех
   761-3440px (самый тесный 761px: нужно 296 при 318) и на 320px (42px,
   нужно 292 при 304). На мониторе владельца (2540) и на 1600+ - те же 80px. */
.about2-team { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about2-avatar {
  width: clamp(40px, 5.4vw, 80px); height: clamp(40px, 5.4vw, 80px); border-radius: 50%; flex: 0 0 auto;
  padding: 0; cursor: pointer;
  background-color: #1e1e1e; background-size: cover; background-position: center;
  border: 3px solid rgba(241, 237, 232, .14); box-shadow: 0 5px 16px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease);
}
.about2-avatar:hover { transform: translateY(-5px); position: relative; z-index: 2; }
/* ТЗ 11.11 вечер (владелец): все кружки видны всегда, выбранный — тонкая
   обводка (2px, цвет чернил), сверх обычной мягкой тени */
.about2-avatar.on { box-shadow: 0 0 0 2px var(--ink), 0 5px 16px rgba(0, 0, 0, .45); }
.about2-plus {
  width: clamp(40px, 5.4vw, 80px); height: clamp(40px, 5.4vw, 80px); border-radius: 50%; flex: 0 0 auto;
  cursor: pointer;
  background: var(--paper); border: 1px solid var(--hair); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1; font-weight: 300;
  transition: background .2s var(--ease);
}
.about2-plus:hover { background: rgba(241, 237, 232, .12); }
.about .about-more { margin-top: 24px; }
.about2-photo {
  /* растянуто по колонке: верх по заголовок «Кто мы…», низ по кнопку «Узнать подробнее»
     (margin-bottom = padding-bottom левой колонки, чтобы нижние края совпадали) */
  align-self: stretch; height: auto;
  /* отступ справа = левому отступу текста: зеркальная граница (по требованию владельца 04.11) */
  margin-right: clamp(32px, 8vw, 120px);
  margin-bottom: clamp(24px, 4vw, 56px);
  background-color: rgba(241, 237, 232, .06); border-radius: 10px;
  /* cover+center: реальное фото заполняет панель целиком на любой ширине,
     лицо по центру, кроп только по краям фона (04.11); силуэт-заглушка тоже ок */
  background-repeat: no-repeat; background-position: center center; background-size: cover;
  position: relative; overflow: hidden;   /* карусель 10.11: кадры режутся рамкой панели */
}
/* ТЗ 10.11 вечер-8 (владелец): карусель-плёнка в панели «Кто мы»: кадры идут
   стык-в-стык лентой A|B|A, прокрутка вправо, ход «медленно-быстро-медленно»
   (ease-in-out, без отскока), 5 сек на кадр, непрозрачность 70% (ТЗ),
   от курсора не зависит (pointer-events сняты) */
.about2-carousel {
  position: absolute; inset: 0; overflow: hidden;
  /* ТЗ вечер-9 (владелец): ПРОЗРАЧНОСТЬ УБРАНА - кадры на 100% */
  pointer-events: none; user-select: none;
}
.about2-track {
  position: absolute; inset: 0; width: 300%;   /* три ячейки A|B|A по ширине панели */
  display: flex; will-change: transform;
}
.about2-frame { flex: 0 0 33.3333%; height: 100%; }
.about2-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; pointer-events: none; user-select: none; -webkit-user-drag: none;
}
/* ТЗ 10.11 вечер-10 (владелец): переключение кружков команды - МЯГКОЕ
   растворение: имя/профессия и фото плавно гаснут (0.34с), меняются, так же
   плавно возвращаются. Карусель - только у Тимура (photos_* только в его
   строке team.json), у остальных статичное фото/заглушка */
.about2-card, .about2-photo { transition: opacity .32s ease; }
.about2-card.about2-out, .about2-photo.about2-out { opacity: 0; }
@media (max-width: 760px) {
  .about2 { grid-template-columns: 1fr; min-height: auto; margin-right: 0; }
  .about2-photo { height: clamp(200px, 54vw, 300px); order: -1; align-self: auto; margin: 0 0 0 0; }
  .about2-left { padding-bottom: 20px; padding-left: 0; }   /* на мобиле колонка одна — отступ не нужен */
  .about2-team { gap: 8px; }
  /* 13.11: шесть кругов в ряд на узких телефонах. Было ровно 50px - на 320px
     (iPhone SE) ряд переносился (нужно 340 при 304). Теперь 13.3vw с порогом
     42px: на 375+ как и было ~50px, ниже - чуть меньше, и ряд целый даже на 320. */
  .about2-avatar, .about2-plus { width: clamp(42px, 13.3vw, 50px); height: clamp(42px, 13.3vw, 50px); }
  .about2-card { height: clamp(240px, 62vw, 300px); }   /* мобайл: тоже фиксированная, по самому длинному тексту */
}

/* ================= СТРАНИЦА «О СТУДИИ» ================= */
.about-page-lead { display: flex; gap: clamp(22px, 4vw, 56px); align-items: stretch; margin-top: clamp(16px, 2vw, 28px); }
.about-page-lead .about-photo--big { flex: 0 0 auto; width: clamp(200px, 30vw, 340px); }
/* ТЗ 23.11 (владелец): в слот «О студии» — его фото aboute-me.png (23.11),
   пропорция 680×1022 = точь-в-точь поле 340×511, кропа нет; по нижнюю
   границу текста справа — колонка стретчится, фото занимает всю её высоту */
.about-page-lead .about-photo--big {
  align-self: stretch; aspect-ratio: auto; height: auto;
  background-image: url("media/team/timur-about.webp?tv=91");
  background-size: cover; background-position: 50% 22%;
}
@media (max-width: 720px) {
  /* в колонке (мобилка) фото — отдельным блоком, своей пропорции */
  .about-page-lead .about-photo--big { aspect-ratio: 5 / 6; width: 100%; max-width: 340px; }
}
.about-page-text { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; max-width: 560px; }
.about-page-text p { margin-bottom: 14px; opacity: .9; }
.about-page-sign { opacity: 1 !important; font-size: 15px; }
@media (max-width: 720px) { .about-page-lead { flex-direction: column; } }

.now { margin-top: clamp(48px, 6vw, 88px); }
/* карта с карточкой организации на /about */
.about-map { margin-top: clamp(48px, 6vw, 88px); }
.about-map h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.map-frame {
  margin-top: clamp(16px, 2vw, 26px); width: 100%;
  border: 1px solid var(--hair); border-radius: 6px; overflow: hidden;
}
.map-frame iframe { display: block; width: 100%; height: clamp(340px, 42vw, 520px); border: 0; }
@media (max-width: 620px) { .map-frame iframe { height: 340px; } }
.now h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.now-text { font-size: 15px; opacity: .7; max-width: 560px; margin: 10px 0 24px; line-height: 1.55; }
.now-carousel {
  overflow: hidden; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.now-carousel.grabbing { cursor: grabbing; }
.now-track { display: flex; gap: 14px; width: max-content; user-select: none; will-change: transform; }
.now-track img { -webkit-user-drag: none; user-drag: none; }
.now-tile {
  flex: 0 0 auto; width: clamp(220px, 28vw, 320px); aspect-ratio: 4 / 3;
  background-color: #1e1e1e; border-radius: 8px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1ede8' stroke-opacity='.3' stroke-width='1.5'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8.5' cy='10' r='1.6'/><path d='m4 17 4.5-3.5 3.5 2.5 3-2 5 3.5'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 46px;
}
/* плитки с фото из бота: картинка подгоняется под формат плитки (crop по центру) */
.now-tile--photo { background-image: none; }
.now-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.work-num {
  position: relative; z-index: 1;
  font-size: clamp(48px, 6vw, 110px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .9;
}
.card-tag { position: absolute; top: 16px; right: 16px; opacity: .65; }
.card-cap { position: relative; z-index: 1; display: grid; gap: 3px; }
.work-name { font-weight: 700; font-size: clamp(15px, 1.3vw, 20px); letter-spacing: -.01em; }
.work-meta { opacity: .65; }

/* ================= ПРОЦЕСС: линейки ================= */
.steps { margin-top: clamp(20px, 3vw, 48px); display: grid; gap: clamp(28px, 3.5vw, 56px); }
.step {
  --lh: 24px;
  margin-left: 33.3%;
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr;
  gap: 0 18px;
  font-size: var(--minfs);
  line-height: var(--lh);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--lh) - 1px),
    var(--hair) calc(var(--lh) - 1px),
    var(--hair) var(--lh)
  );
  border-top: 1px solid var(--ink);
}
.step-mark { font-size: var(--minfs); line-height: var(--lh); }
.step-name { font-weight: 700; }
.step-name em {
  display: block;
  font-weight: 500; font-size: var(--minfs);
  letter-spacing: .04em; text-transform: uppercase;
  opacity: .6;
}
.step-desc { padding-bottom: var(--lh); }

/* «Как мы работаем» — светлая полоса (после инверсии палитры: тёмные линии чертежа на светлом).
   --hair переопределён локально → линейки шагов и бордюр шапки секции темнеют сами. */
.sect--dark {
  --hair: rgba(241, 237, 232, .16);
  background: transparent;
  color: var(--ink);
  padding-top: clamp(54px, 7vw, 104px);
  padding-bottom: clamp(54px, 7vw, 104px);
}
.sect--dark .step { border-top-color: rgba(241, 237, 232, .85); }

/* ================= ЦЕНЫ: панели ================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: clamp(20px, 3vw, 48px);
}
.stat-card {
  background: var(--tone, var(--grey));
  color: var(--ink-deep);
  min-height: clamp(360px, 38vw, 560px);
  padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-mid {
  text-align: center;
  display: grid; gap: 18px; justify-items: center;
  padding: 0 8px;
  margin: auto 0;   /* вертикальный центр карточки */
}
.stat-cond {
  font-size: clamp(17px, 1.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  max-width: 460px;
}
/* второй уровень — главное, что продаём: название услуги (цен с 05.11 нет) */
.stat-val {
  position: relative;
  font-size: clamp(30px, 3.5vw, 60px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.12;
  max-width: 560px;
}
.ring-wrap { position: relative; white-space: nowrap; }
/* «под ключ» — чуть крупнее остальных слов заголовка (ТЗ владельца 05.11),
   овал-обводка масштабируется вместе со словом (svg тянется за .ring-wrap) */
.stat-val .ring-wrap { font-size: 1.15em; }
.stat-sub {
  font-size: var(--minfs);
  line-height: 1.65;
  max-width: 380px;
  opacity: .9;
}
.stat-foot { font-size: var(--minfs); opacity: .6; }
/* овал «от руки» вокруг «под ключ»: рисуется штрихом, как ручкой.
   Запас по ширине и высоте — обводит слово целиком, не врезаясь */
.ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 200%;
  transform: translate(-50%, -50%) rotate(-2deg);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  overflow: visible;
  pointer-events: none;
}
.ring path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ring.draw path {
  transition: stroke-dashoffset 1.05s cubic-bezier(.5, .05, .35, 1);
  stroke-dashoffset: 0;
}

/* --- пошаговый горизонтальный скролл: full → 1/2 → 1/3 (JS) --- */
@media (min-width: 861px) {
  .js .stat-grid {
    display: flex;
    gap: 10px;
    overflow: hidden;
    height: var(--gridh, auto);   /* «в пол» — высоту считает JS */
  }
  .js .stat-card {
    flex: 0 0 var(--cardw, calc((100% - 20px) / 3));
    min-width: 0;
    min-height: 0;
    /* высоты равняет flex-stretch (align-items по умолчанию): на десктопе
       сетке высоту даёт --gridh (JS), на планшете — самая содержательная
       карточка; height:100% из auto-контейнера не считался и низы прыгали */
  }
}

.price-note-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
  padding: 14px 0 10px;
  font-size: var(--minfs);
}
.note-calc {
  font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.note-calc:hover { opacity: .55; }

/* ================= ЗАЯВКА ================= */
.form {
  margin-left: 33.3%;
  margin-top: clamp(20px, 3vw, 44px);
  max-width: 640px;
  display: grid; gap: 30px;
}
.field label {
  display: block;
  font-size: var(--minfs); font-weight: 600;
  margin-bottom: 2px;
}
.field input {
  width: 100%;
  font: inherit;
  /* 16px минимум: iOS Safari при фокусе зумит поле с шрифтом меньше 16px
     и «уезжает» экран — на мобильных поля не должны мельче 16px */
  font-size: max(16px, clamp(15px, 1.4vw, 17px));
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
}
.field textarea { font-size: max(16px, clamp(15px, 1.4vw, 17px)); }
.field input::placeholder { color: var(--warmgrey); }
.field input:focus { border-bottom-width: 2px; }
.cta-submit {
  font-family: inherit;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 700; letter-spacing: -.02em;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  padding: 0;
  transition: opacity .3s var(--ease);
}
.cta-submit:hover { opacity: .55; }
.form-done { display: grid; gap: 14px; }
.form-done[hidden] { display: none; }
.done-bar--fail { background: #cd5c5c; }   /* error-цвет из палитры Odin's Crow */
.cta-submit:disabled { opacity: .45; cursor: wait; }
/* honeypot: видим только ботам */
.hp { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }
.done-bar {
  background: var(--ink); color: var(--paper);
  font-weight: 700; padding: 14px 18px;
}
.tg-link {
  font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.tg-link:hover { opacity: .55; }

/* ================= ПОДВАЛ (типовой, чёрный) ================= */
.footer {
  margin-top: clamp(96px, 13vw, 210px);
  background: transparent;
  color: var(--ink);
  padding: clamp(40px, 5vw, 72px) var(--pad) clamp(80px, 9vw, 120px); /* низ — запас под док */
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.foot-logo { font-size: clamp(28px, 3vw, 44px); font-weight: 900; letter-spacing: -.015em; }
.foot-logo sup { font-size: .35em; font-weight: 700; }
.foot-mark { display: block; width: clamp(120px, 10vw, 190px); height: auto; margin-top: 20px; }
.foot-tag { font-size: 13px; opacity: .65; margin-top: 10px; max-width: 240px; line-height: 1.5; }
.foot-h {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  opacity: .45;
  margin-bottom: 14px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col a { font-size: 14px; line-height: 1.4; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-plain { font-size: 13px; opacity: .65; }
.foot-bottom {
  border-top: 1px solid rgba(241, 237, 232, .2);
  padding-top: 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 24px;
  align-items: baseline;
  font-size: 11px;
  opacity: .55;
}
/* реквизитки ИП - ровно по середине ЭКРАНА: центральная ячейка сетки + сдвиг
   на половину классического скроллбара (переменная --sbg из script.js, на мобильном 0) */
.foot-bottom > span:nth-child(1) { justify-self: start; text-align: left; }
.foot-bottom > span:nth-child(2) { justify-self: center; text-align: center; position: relative; left: calc(var(--sbg, 0px) / 2); }
.foot-bottom > span:nth-child(3) { justify-self: end; text-align: right; }
/* сноска про Meta/Instagram - отдельной строкой по центру под реквизитами */
.foot-bottom > .foot-meta-note { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: 4px; line-height: 1.5; }

/* ================= COOKIE-УВЕДОМЛЕНИЕ ================= */
.cookiebar {
  /* самый верхний слой (ТЗ 05.11): выше шапки(50), дока(80) и модалок(90) */
  position: fixed; left: 14px; bottom: 14px; z-index: 120;
  transform: translateY(14px); opacity: 0;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .55s cubic-bezier(.2, .7, .2, 1);
  width: min(380px, calc(100vw - 28px));
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(241, 237, 232, .12); border: 1px solid var(--hair-soft);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; line-height: 1.5;
}
.cookiebar[hidden] { display: none; }
.cookiebar.show { transform: none; opacity: 1; }
.cookiebar a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-ok {
  align-self: flex-start;
  font: inherit; font-weight: 600;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px;
  padding: 8px 20px;
  cursor: pointer;
}
.cookie-ok:hover { background: rgba(241, 237, 232, .85); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-no {
  font: inherit; font-weight: 600;
  background: transparent; color: inherit;
  border: 1px solid var(--hair); border-radius: 3px;
  padding: 8px 20px;
  cursor: pointer;
}
.cookie-no:hover { border-color: var(--ink); }
/* сноска «* Meta» на страницах без подвала (О нас, Проекты) */
.meta-note { margin-top: 14px; font-size: 11px; line-height: 1.5; opacity: .55; }

/* ================= СОГЛАСИЕ В ФОРМЕ ================= */
.agree {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--minfs); line-height: 1.55;
  cursor: pointer;
}
.agree input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
}
.agree a { text-decoration: underline; text-underline-offset: 2px; }
.agree a:hover { opacity: .6; }

/* ================= СТРАНИЦЫ ДОКУМЕНТОВ ================= */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 110px var(--pad) 90px;
}
.legal h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -.015em; line-height: 1.1;
  margin-bottom: 10px;
}
.legal .upd { font-size: var(--minfs); opacity: .55; margin-bottom: 36px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .ph { background: rgba(241, 237, 232, .14); color: var(--ink); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }

/* ================= БЛОГ / СТАТЬИ ================= */
.crumbs { font-size: 12px; opacity: .6; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .5; margin: 0 2px; }

.article h1 { margin-bottom: 8px; }
.article .art-meta { font-size: var(--minfs); opacity: .55; margin-bottom: 34px; letter-spacing: .02em; }
.article h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { font-size: 15px; }
.article h2 { font-size: 21px; margin-top: 40px; }
.article blockquote {
  border-left: 3px solid rgba(241, 237, 232, .35);
  padding: 4px 0 4px 18px; margin: 20px 0;
}
.article blockquote p { font-style: italic; opacity: .85; margin: 0; }

.art-hero { margin: 0 0 34px; }
.art-hero img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair-soft); border-radius: 4px;
  background: #1e1e1e;
}
.art-hero figcaption { font-size: var(--minfs); opacity: .55; margin-top: 8px; }

.art-fig { margin: 30px 0; }
.art-fig img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair-soft); border-radius: 4px;
  background: #1e1e1e;
}
.art-fig figcaption { font-size: var(--minfs); opacity: .55; margin-top: 8px; }

.art-cta {
  margin: 48px 0 8px; padding: 26px 28px;
  background: rgba(241, 237, 232, .05); border: 1px solid var(--hair-soft);
  color: var(--ink); border-radius: 4px;
}
.art-cta-h { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.art-cta p { font-size: 14px; line-height: 1.6; opacity: .9; margin: 0 0 16px; }
.art-cta-btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 3px;
  text-decoration: none;
}
.art-cta-btn:hover { opacity: .9; }
.art-back { margin-top: 28px; font-size: 14px; }

/* листинг статей на articles.html — карточные 2 колонки (15.11.2026) */
.art-list { list-style: none; padding: 0; margin: 28px 0 36px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.art-item { padding: 0; display: flex; flex-direction: column; }
.art-item-link {
  display: inline-block; font-size: 20px; font-weight: 700;
  line-height: 1.3; text-decoration: none; letter-spacing: -.01em;
}
.art-item-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-item-desc { font-size: 14px; line-height: 1.55; opacity: .75; margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-item-meta { font-size: var(--minfs); opacity: .5; margin-top: auto; }
.art-list-cta { font-size: 14px; opacity: .8; }
@media (max-width: 720px) { .art-list { grid-template-columns: 1fr; gap: 32px; } }
/* 15.11.2026: широкий контейнер списка статей — как .proj-page (1100), текст остаётся узкой колонкой */
main.legal--articles { max-width: 1100px; }
.legal--articles > p { max-width: 680px; }
.legal--articles .art-item-link { font-size: 22px; }
.legal--articles .art-list { gap: 48px 36px; padding-left: 0; }
/* Вариант C (15.11.2026): пустые поля — как архитектурный лист: фиксированные осевые
   линии с поперечными отметками каждые 120px. Виден только на широких экранах (>=1280). */
main.legal--articles::before, main.legal--articles::after {
  content: ''; position: fixed; top: 84px; bottom: 28px; width: 14px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--hair-soft) 0 0) center / 1px 100% no-repeat,
    repeating-linear-gradient(var(--hair-soft) 0 1px, transparent 1px 120px) center top / 8px 120px repeat-y;
}
main.legal--articles::before { left: max(4px, calc(50% - 592px)); }
main.legal--articles::after { right: max(4px, calc(50% - 592px)); }
@media (max-width: 1279px) { main.legal--articles::before, main.legal--articles::after { display: none; } }

/* ================= ДОК (кнопка-звонок + поповер) ================= */
.dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end;
}
.js .dock {
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .dock.show { opacity: 1; pointer-events: auto; transform: none; }

.dock-fab {
  position: relative; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transition: background .3s var(--ease);
}
.dock-fab:hover { background: rgba(241, 237, 232, .85); }
.dock-fab svg { width: 24px; height: 24px; position: absolute; transition: opacity .3s var(--ease), transform .45s var(--pop); }
.dock-fab .dock-fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.dock.open .dock-fab .dock-fab-call { opacity: 0; transform: rotate(90deg) scale(.5); }
.dock.open .dock-fab .dock-fab-close { opacity: 1; transform: none; }

.dock-pop {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 250px; background: var(--paper);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 18px 50px rgba(241, 237, 232, .10); border: 1px solid var(--hair-soft);
  display: flex; flex-direction: column; gap: 2px;
  transform-origin: bottom right;
  transform: scale(.06); opacity: 0; visibility: hidden;
  transition: transform .34s var(--popfast), opacity .2s var(--ease), visibility 0s linear .34s;
}
.dock.open .dock-pop {
  transform: scale(1); opacity: 1; visibility: visible;
  transition: transform .34s var(--popfast), opacity .2s var(--ease), visibility 0s;
}
.dock-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none;
  width: 100%; transition: background .2s var(--ease);
}
.dock-item:hover { background: rgba(241, 237, 232, .12); }
.dock-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.dock-item--accent { background: var(--ink); color: var(--paper); margin-top: 4px; }
.dock-item--accent:hover { background: rgba(241, 237, 232, .85); }

.dock-backdrop {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(15, 13, 11, .55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .42s var(--ease), visibility 0s linear .42s;
}
.dock-backdrop.open { opacity: 1; visibility: visible; transition: opacity .42s var(--ease), visibility 0s; }

/* на мобиле окно — по центру экрана, пружинит из кнопки как «желе» */
@media (max-width: 620px) {
  /* left/top и transform-origin (= центр кнопки) задаёт JS → окно растёт прямо из кнопки */
  .dock-pop {
    position: fixed; left: 0; top: 0; right: auto; bottom: auto;
    width: min(330px, 86vw);
    transform: scale(.05);
    transition: transform .36s var(--popfast), opacity .2s var(--ease), visibility 0s linear .36s;
  }
  .dock.open .dock-pop {
    transform: scale(1);
    transition: transform .36s var(--popfast), opacity .2s var(--ease), visibility 0s;
  }
  .dock-item { padding: 15px 16px; font-size: 15px; }
}

/* ================= МОДАЛКА ================= */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 13, 11, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.modal-box {
  background: var(--paper);
  border-radius: 16px;
  width: min(440px, 100%);
  padding: 24px;
  transform: scale(.86); opacity: .4;
  transition: transform .45s var(--pop), opacity .3s var(--ease);
}
.modal.open .modal-box { transform: scale(1); opacity: 1; }
.modal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.modal-h { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.modal-close {
  font: inherit; font-size: 12px; font-weight: 600;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.modal-close:hover { opacity: .55; }
.box-field label { display: block; margin-bottom: 6px; }
.box-field input {
  width: 100%;
  font: inherit; font-size: max(16px, var(--minfs));
  background: rgba(0, 0, 0, .28); color: var(--ink);
  border: 1px solid var(--warmgrey);
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
}
.box-field input:focus { border-color: var(--ink); }
.calc-out { display: grid; gap: 10px; margin: 20px 0; }
.calc-line {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--hair-soft);
  padding-bottom: 8px;
}
.calc-val { font-weight: 700; }
.calc-note { font-size: var(--minfs); opacity: .65; line-height: 1.5; }

/* ================= ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ================= */
.js .sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .sr.in { opacity: 1; transform: none; }

/* ================= АДАПТИВ ================= */
@media (max-width: 860px) {
  .work-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .form, .step { margin-left: 0; }   /* 24.11: .sect-intro исключён — остаётся margin-left:auto (прижат вправо по ТЗ) */
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-mid { display: none; }   /* длинный вордмарк + 5 ссылок в ряд уже не помещаются */
  .burger { display: block; }
}
@media (max-width: 620px) {
  .logo { font-size: 13.5px; }  /* на телефоне вордмарк компактнее, место под бургер и регион */
  .header-right .nav-touch { display: none; }   /* контакт переехал в бургер-меню */
  .hero-title { font-size: clamp(30px, 10.5vw, 64px); }
  .work-grid, .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 300px; }
  .step { grid-template-columns: 44px 1fr; }
  .step-desc { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { display: flex; flex-direction: column; align-items: flex-start; }
  .dock-label { display: none; }
  .dock-btn { padding: 12px 14px; }
}

/* ================= ТАЧ-УСТРОЙСТВА С БОЛЬШОЙ КАРТИНКОЙ (iPad горизонт и т.п.) =================
   По разрешению это «десктоп» (>=861px), а колеса нет — анимация 1.4 не заводилась.
   Класс touch-desk навешивает script.js (десктопная ширина + тач + без reduced-motion):
   секция цен прилипает, а горизонтальный проезд карточек едет от положения скролла. */
body.touch-desk #price { position: sticky; top: 0; margin-top: 0; margin-bottom: 0; }
body.touch-desk .stat-wrap { padding-top: clamp(96px, 13vw, 210px); }

/* ================= ДОСТУПНОСТЬ ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .js .hero-title .line { clip-path: none; animation: none; }
  .js .sr { opacity: 1; transform: none; transition: none; }
  .js .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; }
  .js .stat-card { height: auto; }
  .ring path { stroke-dashoffset: 0; }
  .js .header, .js .hero-meta, .js .bar-cta { opacity: 1; transition: none; }
  .header > *, .header.hide > * { opacity: 1; transition: none; }
}

/* ================= ПЕРЕКЛЮЧАТЕЛЬ РЕГИОНОВ + ГЕО-БАННЕР =================
   (мультирегиональность; добавлено отдельным блоком, существующее не менялось) */
.header-right { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }

.region-switch { position: relative; font-size: 12px; font-weight: 600; }
.region-switch summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.region-switch summary::-webkit-details-marker { display: none; }
.region-switch summary:hover { opacity: .55; }
.region-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 180px;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  transform-origin: top right;
}
.region-switch[open] .region-menu { animation: region-pop .4s var(--pop); }
@keyframes region-pop {
  from { opacity: 0; transform: scale(.85) translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.region-menu a {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.region-menu a:hover { background: rgba(241, 237, 232, .12); }
.region-menu a[aria-current="true"] { font-weight: 700; }

.geo-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 70;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  max-width: min(560px, calc(100vw - 28px));
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.geo-banner[hidden] { display: none; }
.geo-actions { display: flex; align-items: center; gap: 10px; }
.geo-yes {
  background: var(--peach); color: var(--paper);
  font-weight: 700; padding: 7px 16px; border-radius: 3px;
  white-space: nowrap;
}
.geo-yes:hover { background: rgba(241, 237, 232, .85); }
.geo-no {
  font: inherit; font-weight: 600; color: var(--paper);
  background: none; border: 0; cursor: pointer; opacity: .7;
  white-space: nowrap;
}
.geo-no:hover { opacity: 1; }

@media (max-width: 620px) {
  .region-switch summary { font-size: 0; }   /* на мобиле прячем подпись, остаётся в меню */
  .region-switch summary::before {
    content: ''; display: inline-block; width: 19px; height: 19px; vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1ede8' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4.2' ry='9'/%3E%3Cpath d='M3.2 12h17.6M4.6 7.5h14.8M4.6 16.5h14.8'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}

/* город-лендинг: уникальный вводный абзац (SEO, не дорвей) */
.city-intro .sect-intro {
  margin-left: 0;
  max-width: 860px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  opacity: .85;
}

/* --- Перелинковка внизу статей (06.11, аудит H4) --- */
.art-cross {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0 8px;
  padding: 28px 0 4px;
  border-top: 1px solid rgba(241, 237, 232, .14);
}
.art-cross-h {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-cross-h a { color: var(--ink); text-decoration: none; }
.art-cross-h a:hover { text-decoration: underline; }
.art-cross-p, .art-cross-cities {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  opacity: .8;
}
.art-cross a { color: var(--ink); }
.art-cross--more { display: block; margin-top: 28px; }
.art-cross-list { margin: 0; padding: 0; list-style: none; }
.art-cross-list li { font-size: 14px; line-height: 1.8; }
.art-cross-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(241, 237, 232, .25); }
.art-cross-list a:hover { border-bottom-color: var(--ink); }
@media (max-width: 720px) { .art-cross { grid-template-columns: 1fr; gap: 20px; } }

/* ================= 10.11 ПРОЕКЦИЯ-ПРОЕКТОР (hero, ТЗ владельца) =================
   Геометрия плоскости (перспектива), свет и контент разделены: замена слайдов
   на видео или новые изображения - правка только внутри .proj-content.
   Настройки перспективы/света - в CSS-переменных ниже. */
.proj {
  /* ТЗ 10.11: плоская 2D «проекторная» подложка на весь блок героя;
     края «съедены» маской строго по периметру; фото владельца в .proj-content;
     ТЗ вечер-3: за курсором не следует - только цикл и плавные переходы */
  position: absolute; inset: 0; width: auto; height: auto;
  z-index: 1; pointer-events: none;
  opacity: var(--pj-op, 1); /* 24.11 ТЗ владельца: 100% непрозрачности, фон не просвечивает (было .4 по ТЗ 10.11) */
  transition: opacity 2s ease;
  --pj-op: 1;
}
.proj-plane {
  position: absolute; inset: 0;
  /* ТЗ вечер-3: никакого следования за курсором - плоскость неподвижна */
  background: var(--paper);
  /* ТЗ 10.11 (вечер): виньетка СТРОГО ПО ПЕРИМЕТРУ - равные мягкие полосы по
     всем 4 краям (пересечение двух линеек маски), без овала */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-composite: intersect;
}
.proj-content { position: absolute; inset: 0; overflow: hidden; }
.proj-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 2s ease; /* ТЗ вечер: переливание 2 сек */
  /* ТЗ вечер-2: фотографических фильтров нет - 50% есть 50% */
}
.proj-slide.is-on { opacity: 1; }
/* ТЗ вечер-2: ДВА НАБОРА (десктоп 1..3+надпись / мобилка m-1..m-4+m-надпись).
   Скрытый набор display:none -> браузер его вообще не качает */
.slide-m, .logo-m { display: none; }
@media (max-width: 900px) {
  .slide-d, .proj-logo:not(.logo-m) { display: none; }
  .slide-m { display: block; }
  .logo-m { display: block; }
}
/* надпись студии (PNG с альфой) - отдельный слой вне .proj: в фазе гашения проекции
   она НЕПРОЗРАЧНА НА 100% (ТЗ), пока сама проекция плавно тухнет до 0 */
.proj-logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 2s ease;
}
.proj-light { /* свет: лампа слева; затемнение - тоже СТРОГО ПО ПЕРИМЕТРУ,
                 равномерными полосами по 4 краям (ТЗ вечер 10.11), без овала
                 и без мерцаний */
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(255,251,243,.16), rgba(255,251,243,0) 60%),
    linear-gradient(to right, rgba(20,20,19,.38), rgba(20,20,19,0) 9% 91%, rgba(20,20,19,.38)),
    linear-gradient(to bottom, rgba(20,20,19,.45), rgba(20,20,19,0) 10% 90%, rgba(20,20,19,.45));
}
/* ---- появление при полном открытии сайта (ТЗ 10.11 вечер, финал):
        НИКАКИХ вспышек/мерцаний/ослепления - просто плавный выход
        из полной прозрачности в рабочую яркость --pj-op ---- */
@keyframes pj-warmup {
  from { opacity: 0; }
  to   { opacity: var(--pj-op, .4); }
}
body.ready .proj { animation: pj-warmup 1.5s ease-out .3s backwards; }
/* ВАЖНО: fill = backwards (не both!) - после появления opacity возвращается
   на базовое значение var(--pj-op), и JS может свободно гаснить/зажигать
   проекцию transition-ом в фазе надписи (заполненная анимация запретила бы это) */
/* тексты и CTA хиро поднимаем над плоскостью, не трогая вёрстку */
.hero-title, .hero-meta, .rule-stack, .bar-cta { position: relative; z-index: 2; }
/* моб. 10.11 (ТЗ вечер-2): та же логика и та же 50%, только свой вертикальный
   набор (m-1..m-4 + m-надпись) - переключение наборов в блоке .slide-* выше */
/* reduced-motion: без плавного появления - сразу рабочая картинка */
@media (prefers-reduced-motion: reduce) {
  .proj-slide { transition-duration: .01s; }
  body.ready .proj { animation: none; }
}
/* моб. 10.11: проекция не должна расширять горизонтальный скролл */
.hero { overflow-x: clip; }
/* 15.11.2026: обложки статей в списке /articles (внутри карточной сетки) */
.art-item-cover { display: block; margin: 0 0 14px; overflow: hidden; border-radius: 3px; }
.art-item-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  object-position: 50% 42%; transition: transform .5s ease; }
.art-item:hover .art-item-cover img { transform: scale(1.04); }

/* grid-треки не должны растягиваться длинными словами */
.stat-card { min-width: 0; }

/* ================= СТРАНИЦА ПРОЕКТА (23.11, ТЗ владельца: мозаика gallery-4) =================
   Мозаичные блоки по 5 кадров: сетка 4x2, первый тайл 2x2; ч/б -> цвет при наведении;
   клик — лайтбокс со стрелками/Esc. Адаптация React-промпта gallery-4 под vanilla/CSP. */
.pp-wrap { max-width: 1240px; margin: 0 auto; padding: 120px 24px 80px; }   /* 24.11: полной ширины не захотел — контейнер чуть шире прежнего (было 1100) */
main.pp-page.proj-page { max-width: 1240px; }
.pp-back { display: block; width: max-content; max-width: 1240px; margin: 0 auto 28px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--taupe); text-decoration: none; }
.pp-back:hover { color: var(--ink); }
.pp-head { max-width: 1240px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pp-title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.01em; margin: 0; }
.pp-meta { margin: 10px 0 0; color: var(--taupe); font-size: 15px; }
.pp-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pp-behance { display: inline-block; padding: 11px 18px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; transition: background-color .2s, color .2s; }
.pp-behance:hover { background: var(--ink); color: var(--paper); }
.pp-count { font-size: 13px; color: var(--taupe); font-variant-numeric: tabular-nums; }
.pp-desc { max-width: 720px; margin: 26px auto 44px; color: var(--ink); font-size: 16px; line-height: 1.65; }   /* 24.11: описания проектов — белые (было зелёный тауп-фолбэк) */
.pp-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; aspect-ratio: 3 / 2; margin-bottom: 10px; }
.pp-tile { position: relative; padding: 0; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; background: var(--ink-deep); cursor: zoom-in; }
.pp-tile--big { grid-column: span 2; grid-row: span 2; }
.pp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s ease, transform .5s ease; }
.pp-tile:hover img { filter: grayscale(0); transform: scale(1.02); }
.pp-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; background: rgba(0, 0, 0, .18); transition: opacity .25s; }
.pp-zoom svg { width: 26px; height: 26px; color: var(--ink); background: rgba(20, 20, 20, .72); border-radius: 8px; padding: 5px; }
.pp-tile:hover .pp-zoom, .pp-tile:focus-visible .pp-zoom { opacity: 1; }
.pp-grid--solo { aspect-ratio: 2 / 1; }   /* одиночный финальный кадр — широкая панорама во всю сетку */
.pp-tile--solo { grid-column: 1 / -1; grid-row: 1 / -1; }
.pp-foot { display: flex; justify-content: center; margin-top: 56px; }
/* лайтбокс */
.pp-lb { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; background: rgba(6, 6, 6, .94); }
.pp-lb--on { display: flex; }
.pp-lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; gap: 10px; }
.pp-lb-fig img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.pp-lb-cap { text-align: center; color: var(--taupe); font-size: 13px; font-variant-numeric: tabular-nums; }
.pp-lb-close, .pp-lb-prev, .pp-lb-next { position: fixed; background: rgba(255, 255, 255, .07); color: var(--ink); border: 1px solid var(--hair); border-radius: 999px; width: 44px; height: 44px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.pp-lb-close:hover, .pp-lb-prev:hover, .pp-lb-next:hover { background: rgba(255, 255, 255, .18); }
.pp-lb-close { top: 22px; right: 22px; }
.pp-lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.pp-lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (hover: none) {   /* тач: ховера нет — кадры сразу цветные, лупа не нужна */
  .pp-tile img { filter: none; }
  .pp-zoom { display: none; }
}
@media (max-width: 900px) { .pp-wrap { padding-top: 104px; } .pp-grid { gap: 8px; } }
@media (max-width: 640px) {
  .pp-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 3 / 4; gap: 7px; }
  .pp-grid--solo { aspect-ratio: 4 / 3; }   /* панорама-финал на телефоне — повыше, чтобы не полоской */
  .pp-tile--big { grid-column: span 2; grid-row: span 2; }
  .pp-lb-prev { left: 10px; } .pp-lb-next { right: 10px; }
  .pp-head-side { align-items: flex-start; }
}
