/* =================================================================
   KORLIS — дизайн-система
   Тёмная премиальная тема, флюидная типографика, стеклянные панели.
   Файл разбит на секции — используйте поиск по заголовкам ======.
   ================================================================= */

/* ---------- 1. Переменные ---------- */
:root{
  /* Без этого браузер рисует нативные попапы (в первую очередь — список
     <select>) в светлой OS-теме по умолчанию, даже когда весь остальной
     сайт тёмный: получается светлый/белый фон выпадающего списка, а
     текст в нём наследует светлый цвет темы сайта — итог: белый на
     белом, ничего не видно. color-scheme говорит браузеру, какую
     системную палитру подставлять этим нативным элементам. */
  color-scheme: dark;
  --bg:            #07090b;
  --bg-rgb:        7,9,11;
  --bg-soft:       #0c0f12;
  --surface:       #12161b;
  --surface-2:     #171c22;
  --glass:         rgba(255,255,255,0.045);
  --glass-strong:  rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.09);
  --border-soft:   rgba(255,255,255,0.05);

  --text:          #f4f7f5;
  --text-dim:      #a9b3b0;
  --text-mute:     #6f7a78;

  --accent:        #c6ff5e;
  --accent-rgb:    198,255,94;
  --accent-2:      #58e0d0;
  --accent-deep:   #2f7a63;
  --accent-contrast: #07120a;

  --grad-1: linear-gradient(135deg,#c6ff5e 0%,#58e0d0 100%);
  --grad-2: radial-gradient(circle at 30% 20%, rgba(198,255,94,0.18), transparent 55%),
            radial-gradient(circle at 80% 60%, rgba(88,224,208,0.14), transparent 55%);

  /* Фоновая «атмосфера» на КАЖДОЙ странице (не только в hero на главной) —
     без неё пустые межсекционные зоны выглядят как плоский пустой экран.
     Три пятна закреплены к экрану (background-attachment:fixed) — центры
     ВНУТРИ видимой области (не за краем, как было раньше — иначе почти не
     видно), поэтому пятно остаётся на своём месте экрана при любом скролле.
     Слой навешен не только на body, но и на все плотные однотонные секции
     (.section-alt/.site-footer/.marquee-strip, см. ниже) с теми же
     значениями — иначе они просто закрашивают атмосферу поверх и получается
     «обрыв» на границе секции, как заметил пользователь. */
  --ambient-1: radial-gradient(60% 55% at 6% 2%, rgba(var(--accent-rgb),.20), transparent 68%);
  --ambient-2: radial-gradient(55% 50% at 96% 4%, rgba(var(--gold-rgb),.16), transparent 66%);
  --ambient-3: radial-gradient(70% 60% at 50% 100%, rgba(var(--accent-rgb),.12), transparent 68%);
  --atmosphere: var(--ambient-1), var(--ambient-2), var(--ambient-3);

  /* Тёмная тема — характер «АТP/большой корт вечером»: чуть более
     собранная, графичная геометрия (меньше скругления). */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --hero-pattern: linear-gradient(var(--grid-line) 1px, transparent 1px),
                  linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  --hero-pattern-size: 64px 64px;
  --eyebrow-font: 'Inter', sans-serif;
  --eyebrow-style: normal;
  --eyebrow-tracking: .14em;
  --eyebrow-transform: uppercase;

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 0 1px rgba(198,255,94,0.25), 0 20px 50px -15px rgba(198,255,94,0.25);
  --shadow-elevate: 0 30px 70px -22px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--accent-rgb),.12), 0 0 40px -8px rgba(var(--accent-rgb),.16);
  --shadow-gold: 0 20px 50px -18px rgba(var(--gold-rgb),.4), 0 0 0 1px rgba(var(--gold-rgb),.3);

  --ease: cubic-bezier(.16,.84,.44,1);
  --dur: .6s;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Значения, которые нужно инвертировать между тёмной и светлой темой */
  --scrim:         rgba(7,9,11,0.72);
  --scrim-strong:  rgba(7,9,11,.98);
  --grid-line:     rgba(255,255,255,.06);
  --art-pattern:   rgba(255,255,255,.05);
  --art-icon:      rgba(255,255,255,.5);
  --art-label:     rgba(255,255,255,.55);
  --field-focus-bg: rgba(255,255,255,.06);
  --modal-scrim:   rgba(4,5,6,.78);
  --stat-bg:       rgba(12,15,18,.75);

  /* Второй, «премиальный» акцент — золото/шампань. Используется точечно
     для VIP-меток (международные проекты, сертификаты), отдельно от
     основного лайм/бирюзового градиента — чтобы сайт не сводился к
     одной акцентной паре цветов. */
  --gold:          #e2b45a;
  --gold-rgb:      226,180,90;
  --grad-gold: linear-gradient(135deg,#f0c877 0%,#c98f34 100%);

  --danger:        #ff6b6b;
  --danger-rgb:    255,107,107;

  /* Доп. акценты для авторских SVG-иллюстраций услуг (карточки услуг) —
     чтобы «грунт», «подогрев», «песок», «инфраструктура» не были одного
     цвета с основным лайм/бирюзовым градиентом. */
  --illus-clay:    #d98a4f;
  --illus-clay-rgb: 217,138,79;
  --illus-warm:    #ef7b4f;
  --illus-warm-rgb: 239,123,79;
  --illus-sand:    #e3c581;
  --illus-sand-rgb: 227,197,129;
  --illus-slate:   #8fa3ad;
  --illus-slate-rgb: 143,163,173;
}

/* ---------- 1b. Светлая тема ---------- */
html[data-theme="light"]{
  color-scheme: light;
  /* Раньше --surface был чистым #ffffff — на весь экран карточек и панелей
     это ощущается как "слишком светло, режет глаза". Приглушаем всю палитру
     на тёплый серо-бежевый тон (без чистого белого нигде) — контраст с
     текстом остаётся достаточным, но общая яркость страницы ниже. */
  --bg:            #efece4;
  --bg-rgb:        239,236,228;
  --bg-soft:       #e6e2d6;
  --surface:       #fbfaf5;
  --surface-2:     #efebe1;
  --glass:         rgba(15,20,15,0.035);
  --glass-strong:  rgba(15,20,15,0.07);
  --border:        rgba(15,20,15,0.10);
  --border-soft:   rgba(15,20,15,0.06);

  --text:          #141a16;
  --text-dim:      #4d564f;
  --text-mute:     #838d84;

  --accent:        #0f6e4f;
  --accent-rgb:    15,110,79;
  --accent-2:      #c9922f;
  --accent-deep:   #0b5a40;
  --accent-contrast: #ffffff;

  --grad-1: linear-gradient(135deg,#0f6e4f 0%,#c9922f 100%);
  --grad-2: radial-gradient(circle at 30% 20%, rgba(15,110,79,0.10), transparent 55%),
            radial-gradient(circle at 80% 60%, rgba(201,146,47,0.12), transparent 55%);

  /* Та же атмосфера, что и в тёмной теме, но мягче — насыщенный тёмно-зелёный
     на кремовом фоне быстро «грязнит» картинку при той же непрозрачности. */
  --ambient-1: radial-gradient(60% 55% at 6% 2%, rgba(var(--accent-rgb),.13), transparent 68%);
  --ambient-2: radial-gradient(55% 50% at 96% 4%, rgba(var(--gold-rgb),.14), transparent 66%);
  --ambient-3: radial-gradient(70% 60% at 50% 100%, rgba(var(--accent-rgb),.07), transparent 68%);
  --atmosphere: var(--ambient-1), var(--ambient-2), var(--ambient-3);

  --shadow-soft: 0 20px 60px -25px rgba(20,26,22,0.28);
  --shadow-glow: 0 0 0 1px rgba(15,110,79,0.18), 0 20px 50px -18px rgba(15,110,79,0.28);
  --shadow-elevate: 0 30px 70px -24px rgba(20,26,22,.22), 0 0 0 1px rgba(var(--accent-rgb),.10), 0 0 34px -10px rgba(var(--accent-rgb),.14);
  --shadow-gold: 0 20px 50px -20px rgba(var(--gold-rgb),.30), 0 0 0 1px rgba(var(--gold-rgb),.25);

  /* Светлая тема — характер «клубный турнир, паркет и грунт днём»:
     мягче геометрия, редкая точечная сетка вместо жёсткой линейной,
     курсивный акцент в служебных надписях — другой характер, не
     просто смена цвета. */
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --hero-pattern: radial-gradient(var(--grid-line) 1.6px, transparent 1.6px);
  --hero-pattern-size: 28px 28px;
  --eyebrow-font: 'Lora', 'Georgia', serif;
  --eyebrow-style: italic;
  --eyebrow-tracking: .03em;
  --eyebrow-transform: none;

  --scrim:         rgba(239,236,228,0.78);
  --scrim-strong:  rgba(239,236,228,.98);
  --grid-line:     rgba(15,20,15,.07);
  --art-pattern:   rgba(15,20,15,.05);
  --art-icon:      rgba(15,20,15,.4);
  --art-label:     rgba(15,20,15,.5);
  --field-focus-bg: rgba(15,20,15,.035);
  --modal-scrim:   rgba(20,24,20,.45);
  --stat-bg:       rgba(251,250,245,.72);

  --gold:          #a8752a;
  --gold-rgb:      168,117,42;
  --grad-gold: linear-gradient(135deg,#c9922f 0%,#8a5f22 100%);

  --danger:        #c23b3b;
  --danger-rgb:    194,59,59;

  --illus-clay:    #b96a35;
  --illus-clay-rgb: 185,106,53;
  --illus-warm:    #c9622f;
  --illus-warm-rgb: 201,98,47;
  --illus-sand:    #b8963f;
  --illus-sand-rgb: 184,150,63;
  --illus-slate:   #4c6b76;
  --illus-slate-rgb: 76,107,118;
}

/* ---------- 1c. Локальный шрифт Lora — используется только в светлой
   теме (курсивные акценты, цитата эксперта). Самостоятельно захостен
   (не зависит от Google Fonts CDN), лицензия SIL OFL 1.1 —
   см. assets/fonts/LICENSE.txt. Unbounded/Inter подключены отдельно
   через Google Fonts (см. <head> каждой страницы). ---------- */
@font-face{
  font-family: 'Lora';
  src: url('../fonts/Lora-Variable.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Lora';
  src: url('../fonts/Lora-Italic-Variable.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html,body{ height:100%; }
body{
  /* position:relative тут не для вёрстки — это осознанно создаёт контекст
     наложения на body, чтобы body::before (ниже, z-index:-1, position:fixed)
     гарантированно рисовался ПОД обычным контентом страницы в любом браузере,
     а не поверх него. */
  position: relative;
  background-color: var(--bg);
  background-image: var(--atmosphere);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Системная защита от текста, вылезающего за рамку контейнера —
     длинное слово без пробелов (например "строительство") иначе может
     не переноситься и торчать наружу, особенно внутри flex-элементов
     без явного min-width:0 (см. .brand ниже — где это реально
     случилось). overflow-wrap наследуется, работает сразу везде. */
  overflow-wrap: break-word;
  word-break: normal;
}
/* body's overflow-wrap:break-word выше — это аварийная защита от переполнения
   (нужна для нестандартных случаев вроде .brand в flex без min-width:0), но
   для обычного текста она вредна: если длинное русское слово (например,
   "десятилетиями" в заголовке about.html) на грани того, чтобы влезть в
   строку, браузер вместо переноса ВСЕГО слова целиком отрывает последнюю
   букву-две на новую строку — выглядит как опечатка/баг, а не перенос.
   Для настоящей типографики (заголовки, абзацы, списки) переносим только по
   пробелам — при таком min-height у h1 (clamp, см. ниже) слову есть куда
   поместиться целиком, обрывать буквы не нужно нигде на сайте.

   Но "нормально" — это не безусловно: если слово ЦЕЛИКОМ шире, чем сама
   строка (например "конфиденциальности"/"строительство" в узкой карточке
   на мобильном), overflow-wrap:normal никогда не разрешит перенос — текст
   вылезет за рамку и потянет за собой горизонтальный скролл страницы (баг,
   найденный на privacy.html и в карточках шагов на главной). Поэтому нужен
   perенос как аварийный фолбэк, но не "как попало" (это и была исходная
   жалоба на десятилетиями) — hyphens:auto просит браузер переносить по
   слогам с дефисом, а overflow-wrap включается только если слогового
   переноса недостаточно, чтобы слово влезло.

   Была попытка убрать hyphens:auto именно у заголовков — привело к
   регрессии (перенос "как попало" без дефиса), вернули везде. Но
   hyphens:auto — это указание браузеру ПЕРЕНОСИТЬ ПО СВОИМ ПРАВИЛАМ, а
   не фиксированный алгоритм: словарь переноса кириллицы у Safari/WebKit
   (в частности на iOS, где реально проверяет пользователь) заметно
   агрессивнее и менее аккуратен, чем у Chrome/Blink (где тестирую я) —
   после включения hyphens:auto везде на живом сайте посыпались жалобы на
   "слишком много дефисов" в заголовках, которые в Chrome выглядели
   нормально. Раз движки ведут себя настолько по-разному, а проверить
   Safari у меня нет возможности, — hyphens:auto убран совсем, остаётся
   только overflow-wrap:break-word как аварийный фолбэк (без дефиса) на
   случай реального переполнения (единичное длинное неразрывное слово,
   как "конфиденциальности"/"Строительство" — эти случаи редкие и
   лечатся точечно запасом по max-width, а не глобальным переносом). */
h1,h2,h3,h4,h5,h6,p,li,blockquote,small,.lead{
  overflow-wrap: break-word;
}
img,svg,video{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }

/* Фирменный мотив: изометрическая сцена в правом нижнем углу — корт под
   углом (настоящая изометрия (x,y) → ((x−y)·cos30°, (x+y)·sin30°), не
   чертёж сверху), раскрашенный пополам — тёплый терракотовый (клэй) на
   дальней половине, зелёный на ближней — по отдельному запросу сделать
   его именно двухцветным и эстетичным, а не одной сплошной заливкой; с
   обводной зоной другого тона вокруг покрытия, бликом света, зернистой
   текстурой и тенью от сетки. Корт — статичный фон (см. пояснение к предыдущей
   правке про repaint/композитинг). Мяч и тень — отдельные лёгкие
   fixed-элементы ниже, создаются в initCourtBallFx() в main.js, двигаются
   через transform. Мяч — матовый (радиальный градиент почти без контраста
   + шов + лёгкая войлочная текстура через feTurbulence), а не глянцевый
   шар: раньше яркая точка блика на тёмном фоне читалась как зеркальный
   пластик, а не фетр настоящего мяча. */
/* Вся картинка корта (SVG-градиенты + feTurbulence-зерно + маска) висит
   ТОЛЬКО внутри @media(min-width:721px) — не просто display:none на
   мобильном сверху, а полное отсутствие правила ниже этой ширины. Раньше
   было наоборот (правило безусловное, display:none поверх на мобильном):
   на слабом телефоне браузер всё равно может распарсить/раскодировать
   тяжёлую data-URI SVG (feTurbulence — недешёвый фильтр) даже для
   невидимого элемента. На мобильном она и не видна (сама вписана в самый
   угол широкого экрана), так что просто не грузим её там вообще. */
@media (min-width: 721px){
  body::before{
    content:"";
    position: fixed; inset:0; z-index:-1; pointer-events:none;
    opacity:.78;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
    background-repeat: no-repeat;
    background-position: right 0px bottom 0px;
    background-size: 827px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-15 -12 370 244'><defs><linearGradient id='apron' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%233f8a52'/><stop offset='100%25' stop-color='%231c4c2a'/></linearGradient><linearGradient id='r' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c8523f'/><stop offset='55%25' stop-color='%23a13a2a'/><stop offset='100%25' stop-color='%236e2318'/></linearGradient><linearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%234c9c5c'/><stop offset='55%25' stop-color='%23337a44'/><stop offset='100%25' stop-color='%231c4c2a'/></linearGradient><radialGradient id='glare' cx='50%25' cy='50%25' r='50%25'><stop offset='0%25' stop-color='%23fff3d6' stop-opacity='.4'/><stop offset='100%25' stop-color='%23fff3d6' stop-opacity='0'/></radialGradient><filter id='grain' x='-20%25' y='-20%25' width='140%25' height='140%25'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='n'/><feColorMatrix in='n' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter></defs><path d='M223.1,14.6 L333.3,78.2 L113,205.4 L-7,148.6 Z' fill='url(%23apron)'/><path d='M220,20 L323.9,80 L220,140 L116.1,80 Z' fill='url(%23r)'/><path d='M220,140 L116.1,200 L12.2,140 L116.1,80 Z' fill='url(%23g)'/><path d='M220,20 L323.9,80 L116.1,200 L12.2,140 Z' fill='%23000' filter='url(%23grain)' opacity='.14'/><ellipse cx='255' cy='58' rx='68' ry='38' fill='url(%23glare)'/><g fill='none' stroke='%23fbfaf3' stroke-linecap='round' opacity='.92'><path d='M220,20 L323.9,80 L116.1,200 L12.2,140 Z' stroke-width='3.5'/><path d='M234,28.1 L26.2,148.1' stroke-width='2.2'/><path d='M309.9,71.9 L102.1,191.9' stroke-width='2.2'/><path d='M187.3,55.1 L263.1,98.9' stroke-width='2.2'/><path d='M73,121.1 L148.8,164.9' stroke-width='2.2'/><path d='M225.2,77 L110.9,143' stroke-width='2.2'/></g><path d='M126.5,86 L209.6,134 L203.6,139 L120.5,91 Z' fill='%23000' opacity='.16'/><path d='M126.5,86 L209.6,134 L209.6,124 Q168,108 126.5,76 Z' fill='%23fbfaf3' opacity='.3'/><g fill='none' stroke='%23fbfaf3' stroke-linecap='round' opacity='.85'><path d='M126.5,86 L209.6,134' stroke-width='3'/><path d='M126.5,76 Q168,108 209.6,124' stroke-width='2'/><path d='M126.5,86 L126.5,76' stroke-width='2.5'/><path d='M209.6,134 L209.6,124' stroke-width='2.5'/></g><g fill='none' stroke='%23fbfaf3' stroke-linecap='round' opacity='.45' stroke-width='1'><path d='M143.1,95.6 L143.1,85.6'/><path d='M159.7,105.2 L159.7,95.2'/><path d='M176.4,114.8 L176.4,104.8'/><path d='M193,124.4 L193,114.4'/></g></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: radial-gradient(700px circle at 100% 100%, #fff 55%, transparent 100%);
    mask-image: radial-gradient(700px circle at 100% 100%, #fff 55%, transparent 100%);
  }
  html[data-theme="light"] body::before{ opacity:.5; }
}

/* Тот же принцип, что и у body::before выше: весь мяч+тень (включая их
   SVG/анимацию) существует только от 721px. На мобильном initCourtBallFx()
   в main.js вообще не создаёт эти элементы (см. matchMedia-проверку там) —
   CSS ниже на практике избыточен как подстраховка, но держим оба слоя
   защиты синхронными на случай, если JS не выполнился (например, при
   ошибке раньше по цепочке инициализации). */
@media (min-width: 721px){
  .court-ball-shadow-fx{
    content:"";
    position: fixed; z-index:-1; pointer-events:none;
    right: 523px; bottom: 103px; width: 67px; height: 27px;
    border-radius: 50%; background: #000; opacity: .28;
    animation: courtShadowFly 2s infinite alternate;
    will-change: transform;
  }
  .court-ball-fx{
    content:"";
    position: fixed; z-index:-1; pointer-events:none;
    right: 528px; bottom: 114px; width: 58px; height: 58px;
    border-radius: 50%; opacity: .9;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><radialGradient id='b' cx='40%25' cy='35%25' r='75%25'><stop offset='0%25' stop-color='%23d9f072'/><stop offset='60%25' stop-color='%23c3e457'/><stop offset='100%25' stop-color='%23a3c23c'/></radialGradient><filter id='felt' x='-20%25' y='-20%25' width='140%25' height='140%25'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch' result='n'/><feColorMatrix in='n' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter></defs><circle cx='50' cy='50' r='47' fill='url(%23b)'/><circle cx='50' cy='50' r='47' fill='%23000' filter='url(%23felt)' opacity='.5'/><g fill='none' stroke='%23f4faee' stroke-linecap='round' stroke-width='4' opacity='.85'><path d='M10,50 C10,29 34,29 50,50 C66,71 90,71 90,50'/><path d='M50,10 C29,10 29,34 50,50 C71,66 71,90 50,90'/></g></svg>");
    background-size: 100% 100%;
    animation: courtBallFly 2s infinite alternate;
    will-change: transform;
  }
  html[data-theme="light"] .court-ball-fx{ opacity: .7; }
}
/* Раньше был alternate + общий ease-in-out на весь цикл — это давало
   нулевую скорость ровно в кадре на 50%, который приходится на сетку: мяч
   визуально "зависал" там, как значок. Убирать alternate целиком оказалось
   не решением: без него анимация в конце каждого повтора мгновенно
   телепортирует мяч с точки приземления обратно в старт — резкий скачок,
   который выглядит как обрыв анимации. Правильная комбинация: alternate
   ОСТАЁТСЯ (мяч плавно летит туда-обратно, как розыгрыш, без телепортации
   на стыке цикла), а "зависание" у сетки убрано отдельно — ease-in у 0%
   + ease-out у 50% дают максимальную скорость как раз в момент пролёта
   сетки (и симметрично на обратном ходу), а не остановку. */
@keyframes courtShadowFly{
  0%{ transform: translate(0, 0); animation-timing-function: ease-in; }
  50%{ transform: translate(138.6px, -207.9px); animation-timing-function: ease-out; }
  100%{ transform: translate(350.9px, -154.2px); }
}
@keyframes courtBallFly{
  0%{ transform: translate(0, 0) rotate(0deg); animation-timing-function: ease-in; }
  50%{ transform: translate(138.6px, -252.9px) rotate(160deg); animation-timing-function: ease-out; }
  100%{ transform: translate(350.9px, -154.2px) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce){
  .court-ball-fx, .court-ball-shadow-fx{ animation: none; }
}

/* Тонкая фактура-зерно поверх всего сайта — премиальная печатная
   деталь, которая отличает интерфейс от плоского «просто тёмный /
   просто светлый» экрана. Едва заметна, не мешает читаемости.
   mix-blend-mode на fixed full-viewport элементе — известно тяжёлая для
   рендеринга комбинация: браузер вынужден пересчитывать смешивание слоя
   почти с каждым кадром скролла (композитор не может просто сдвинуть уже
   готовый слой, как с обычным fixed-фоном). На мобильном, особенно на
   длинных страницах вроде "Услуг" с калькулятором, это и давало
   подтормаживание скролла. Десктопу эта деталь по карману, мобильному —
   нет, а разглядеть её на телефоне всё равно почти невозможно. */
@media (min-width: 721px){
  body::after{
    content:"";
    position: fixed; inset:0; z-index: 9000; pointer-events:none;
    opacity:.035; mix-blend-mode: overlay;
    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.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }
  html[data-theme="light"] body::after{ opacity:.025; }
}
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input,textarea,select{ font:inherit; color:inherit; background:none; border:none; }
/* color-scheme на :root (см. выше) чинит это в большинстве браузеров сам
   по себе, но Chrome/Edge на Windows и Safari дополнительно уважают явный
   background-color/color прямо на <option> для попапа списка — на всякий
   случай задаём его тоже, чтобы не зависеть от одного механизма. */
select option{ background: var(--surface); color: var(--text); }
ul,ol{ list-style:none; }
::selection{ background: var(--accent); color: var(--accent-contrast); }

/* Скроллбар */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius: 10px; border:2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background: var(--accent-deep); }

/* Фокус — доступность */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Типографика ---------- */
h1,h2,h3,h4{
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 3.2vw + 1.4rem, 5.4rem); }
h2{ font-size: clamp(1.9rem, 2vw + 1.2rem, 3.4rem); }
h3{ font-size: clamp(1.25rem, .8vw + 1rem, 1.7rem); }
h4{ font-size: clamp(1.05rem, .4vw + .9rem, 1.25rem); }
p{ color: var(--text-dim); }
.lead{ font-size: clamp(1.05rem, .6vw + .95rem, 1.3rem); color: var(--text-dim); }

.eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  font-family: var(--eyebrow-font);
  font-style: var(--eyebrow-style);
  font-size:.8rem; font-weight:600; letter-spacing: var(--eyebrow-tracking); text-transform: var(--eyebrow-transform);
  color: var(--accent);
  transition: font-family .3s;
}
html[data-theme="light"] .eyebrow{ font-size:.95rem; font-weight:600; }
.eyebrow::before{
  content:""; width:1.6em; height:1px; background: var(--accent);
}

.text-gradient{
  color: var(--accent);
}

/* ---------- 4. Layout ---------- */
.container{
  width:100%; max-width: var(--container); margin-inline:auto; padding-inline: var(--gutter);
}
section{ position:relative; padding-block: clamp(64px, 9vw, 140px); }
.section-head{
  max-width: 840px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head > .eyebrow{ margin-bottom: 14px; }
.section-head > p{ margin-top: 16px; }

/* Та же самая атмосфера (--atmosphere), что и на body, привязана к экрану
   тем же способом (background-attachment:fixed) — центры пятен совпадают
   с body в каждый момент скролла, поэтому переход между обычным фоном
   страницы и плотной секцией не виден: это один и тот же рисунок света,
   просто под ним разный базовый оттенок (--bg vs --bg-soft). */
.section-alt{
  background-color: var(--bg-soft);
  background-image: var(--atmosphere);
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-block: 1px solid var(--border-soft);
}

.grid{ display:grid; gap: clamp(18px, 2vw, 28px); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2,1fr); } .grid-3{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

.divider{ height:1px; background: var(--border); border:none; }

/* ---------- 5. Кнопки ---------- */
.btn{
  --pad-y: .95em; --pad-x: 1.7em;
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-weight:600; font-size:.95rem;
  white-space:nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
/* will-change только на hover/focus, а не постоянно на базовом .btn —
   раньше КАЖДАЯ кнопка на странице (их десятки) держала свой отдельный
   GPU-композитный слой всё время, даже когда ничего не анимируется. Это
   известный фактор именно того класса Chrome-багов, что поймали на
   скриншоте (кадр одной страницы поверх другой при навигации/смене
   языка) — не гарантированное лекарство от бага драйвера/компоузера
   браузера, но десятки лишних постоянных слоёв убрать стоит в любом случае. */
.btn:hover, .btn:focus-visible{ will-change: transform; }
.btn:active{ transform: scale(.97); }
.btn-primary{
  position:relative; overflow:hidden;
  background: var(--grad-1); color: var(--accent-contrast);
  box-shadow: var(--shadow-glow);
}
.btn-primary::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 48%, transparent 66%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::before{ transform: translateX(120%); }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 25px 60px -12px rgba(var(--accent-rgb),.45); }
/* Раньше был var(--glass) (почти прозрачный, ~4% альфы) + blur(12px) —
   визуально держался целиком на блюре. .btn-ghost — самая частая кнопка
   на сайте (десятки штук на странице), и на браузерах/устройствах без
   хорошего аппаратного ускорения blur — один из самых тяжёлых CSS-
   эффектов; десятки одновременных blur-слоёв реалистичная причина
   тормозов при скролле на "неоптимизированных" браузерах. Сплошной
   var(--surface-2) держит тот же визуальный эффект без блюра. */
.btn-ghost{
  background: var(--surface-2); color: var(--text); border:1px solid var(--border);
}
.btn-ghost:hover{ background: var(--glass-strong); border-color: var(--glass-strong); transform: translateY(-3px); }
.btn-sm{ --pad-y:.7em; --pad-x:1.3em; font-size:.85rem; }
.btn-block{ width:100%; }
.btn-icon{ width:1.1em; height:1.1em; flex:none; }

/* ---------- 6. Хедер / навигация ---------- */
.site-header{
  position: fixed; inset-inline:0; top:0; z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  padding-block: 10px;
  background: var(--scrim);
  border-color: var(--border);
}
/* backdrop-filter намеренно убран (был blur(18px) saturate(140%)) — этот
   хедер position:fixed и виден при КАЖДОМ скролле на КАЖДОЙ странице, в
   отличие от модалок/лайтбокса (те открыты редко). На Android Chrome
   постоянный блюр под fixed-элементом пересчитывается каждый кадр скролла
   и был основной причиной подлагивания при скролле (замечено на
   реальном Android-устройстве). --scrim уже достаточно непрозрачный
   (.72–.78 alpha), заметной разницы без блюра почти нет. */
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }

.brand{ display:flex; flex-direction:column; gap:3px; font-family:'Unbounded',sans-serif; font-weight:600; font-size:1.25rem; letter-spacing:.01em; flex-shrink:0; }
/* Бейдж и слово ORLIS живут в своём собственном ряду (.brand-top), а не
   прямо в .brand — так align-items:center выравнивает бейдж ровно по
   центру ОДНОЙ строки текста, а не по центру всего блока вместе с
   подписью снизу. Подпись — отдельный сосед-<small> под этим рядом. */
.brand-top{ display:flex; align-items:center; gap:.18em; }
/* min-width:0 без нижней границы схлопывал текстовый блок почти до
   нуля в тесных местах шапки — раз слово "ORLIS" переносится посимвольно
   на отдельные строки. Даём разумный минимум вместо нуля: хватает на
   "ORLIS" в одну строку, а подпись под ним при нехватке места уходит на
   вторую строку целиком (см. .brand small), а не рассыпается по буквам. */
.brand-word{ min-width:74px; }
.brand-mark{
  /* Размер подогнан под высоту строки слова "ORLIS" рядом (шрифт .brand
     1.25rem) — раньше было 38px, заметно выше самого текста. font-size
     близок к 1.25rem у ORLIS, чтобы буква K не выглядела мельче остальных. */
  width:26px; height:26px; min-width:26px; max-width:26px; min-height:26px; max-height:26px;
  aspect-ratio: 1 / 1; border-radius: 8px; flex:0 0 26px; box-sizing:border-box;
  background: var(--grad-1);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent-contrast); font-weight:800; font-size:1.2rem; line-height:1;
  box-shadow: var(--shadow-glow);
}
.brand small{
  display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:.62rem;
  letter-spacing:.14em; text-transform:uppercase; color: var(--text-mute);
  /* Глобальный overflow-wrap:break-word (см. body) в этом месте мог
     разрывать "СТРОИТЕЛЬСТВО" посреди слова без дефиса — некрасиво.
     Тут есть естественная точка переноса (пробел между двумя словами),
     так что откатываем на обычный перенос по словам: в худшем случае
     подпись уйдёт на вторую строку целиком, а не разъедется буквами.
     white-space:normal — явно, чтобы не полагаться на умолчание. */
  overflow-wrap: normal;
  white-space: normal;
}

.nav-desktop{ display:flex; align-items:center; gap: clamp(18px, 2vw, 34px); }
.nav-desktop a{
  position:relative; font-size:.92rem; font-weight:500; color: var(--text-dim);
  padding-block:.4em; white-space:nowrap;
  transition: color .3s var(--ease);
}
.nav-desktop a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--grad-1); transition: right .35s var(--ease); border-radius: 2px;
}
.nav-desktop a:hover, .nav-desktop a.active{ color: var(--text); }
.nav-desktop a:hover::after, .nav-desktop a.active::after{ right:0; }

.header-cta{ display:flex; align-items:center; gap:14px; }
.header-phone{ display:flex; flex-direction:column; align-items:flex-end; font-size:.85rem; white-space:nowrap; }
.header-phone a{ font-weight:700; font-size:.92rem; white-space:nowrap; }
.header-phone span{ color: var(--text-mute); font-size:.72rem; white-space:nowrap; }

.burger{
  display:none; width:44px; height:44px; border-radius:12px; border:1px solid var(--border);
  align-items:center; justify-content:center; flex-direction:column; gap:5px; background: var(--glass);
}
.burger span{ width:18px; height:2px; background: var(--text); border-radius:2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.burger.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity:0; }
.burger.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Лёгкая полупрозрачная подложка (не сплошной чёрный экран) — только
   чтобы клик "мимо" компактного меню его закрывал; сама страница под ней
   остаётся видимой, приглушённой, а не перекрытой целиком. */
.mobile-drawer-backdrop{
  position:fixed; inset:0; z-index:98;
  background: var(--scrim);
  opacity:0; visibility:hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.mobile-drawer-backdrop.is-open{ opacity:1; visibility:visible; transition: opacity .3s var(--ease); }

/* Компактное меню-карточка у бургера, а не разворот на весь экран —
   position:fixed (не absolute) специально: обёртка не зависит от того,
   где в DOM реально лежит этот элемент (см. комментарий в main.js/
   nav.js про перенос в document.body ради обхода iOS-бага с вложенным
   position:fixed). */
.mobile-drawer{
  /* right совпадает с --gutter контейнера (не фиксированный отступ) —
     .burger виден вплоть до 900px, а не только на узких телефонах, где
     5vw гораздо больше 16px; иначе на планшетном диапазоне карточка
     заметно отъезжала бы от края бургера. */
  position:fixed; top:84px; right: clamp(20px, 5vw, 64px); z-index:99;
  width: min(300px, calc(100vw - 40px)); max-width:100%;
  max-height: calc(100vh - 110px); overflow-y:auto; overflow-x:hidden;
  display:flex; flex-direction:column; gap:4px;
  padding:14px; border-radius: var(--radius-lg);
  background: var(--surface-2); border:1px solid var(--border); box-shadow: var(--shadow-elevate);
  opacity:0; visibility:hidden; transform: translateY(-10px) scale(.97); transform-origin: top right;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-drawer.is-open{ opacity:1; visibility:visible; transform:none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-drawer a{
  font-family:'Inter',sans-serif; font-size:.98rem; font-weight:600; color: var(--text);
  padding:.75em 1em; border-radius: var(--radius-sm); text-align:left;
  transition: background-color .2s var(--ease);
}
.mobile-drawer a:hover, .mobile-drawer a:active{ background: var(--glass); }
.mobile-drawer .btn{ margin-top: 8px; width:100%; }

@media (max-width: 900px){
  .nav-desktop, .header-phone{ display:none; }
  .burger{ display:flex; }
  /* Иконка поиска в строке шапки конкурирует за место с lang-toggle/
     theme-toggle/burger на узких экранах (проверено — на 320px ширине
     четыре круглые кнопки рядом с брендом уже не помещаются). Поиск на
     мобильном живёт внутри .mobile-drawer (см. секцию 40 ниже) —
     доступен из того же бургер-меню, а не отдельной кнопкой в шапке.
     .header-cta .search-toggle (не просто .search-toggle) — специально
     на один уровень специфичности выше базового правила: то объявлено
     в отдельной секции ближе к концу файла (добавлено позже, при
     фиче поиска) и по порядку исходников идёт ПОСЛЕ этого блока, так что
     при равной специфичности побеждало бы оно и display:none никогда не
     срабатывал на мобильном — ровно то, что было на скриншоте бага. */
  .header-cta .search-toggle{ display:none; }
}

/* ---------- 7. Hero ---------- */
.hero{
  position:relative; min-height: 100svh; display:flex; align-items:center;
  padding-top: 120px; padding-bottom: 80px;
  overflow:hidden;
}
/* Фирменное фото компании (реальный кадр, используется как визитка
   компании с 90-х) — в hero на главной, на всех размерах экрана (на
   мобильном текст идёт на всю ширину, поэтому там не левый-правый
   градиент, а более ровное затемнение по всей площади). Градиент внутри
   того же background — тёмный у текста, фото проявляется в стороне;
   тонкая настройка через filter, чтобы фото не спорило по цвету с
   зелёно-акцентной палитрой сайта, но само оставалось хорошо видно
   (не "стёртым" почти до однотонного пятна, как было в первой версии). */
.hero-photo{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
}
@media (min-width: 1000px){
  .hero-photo{
    background-image:
      linear-gradient(100deg, rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.8) 26%, rgba(var(--bg-rgb),.32) 52%, rgba(var(--bg-rgb),.05) 76%, rgba(var(--bg-rgb),.12) 100%),
      linear-gradient(150deg, rgba(10,25,18,.28), rgba(8,14,11,.4)),
      url("/assets/img/hero-photo.jpg");
    background-blend-mode: normal, multiply, normal;
    background-position: center, center, right 22% top 72%;
    filter: saturate(1) brightness(1.05);
  }
  /* Тёмный multiply-слой одинаково приглушает фото независимо от темы,
     но светлая тема — единственный контекст, где ТЕКСТ тёмный: фото
     должно дотемна гаснуть именно у текстовой колонки, иначе тёмный
     заголовок перестаёт читаться на светлых участках фото. Поэтому в
     светлой теме первый (эджевый) градиент идёт непрозрачнее и дольше. */
  html[data-theme="light"] .hero-photo{
    background-image:
      linear-gradient(100deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),.95) 34%, rgba(var(--bg-rgb),.62) 58%, rgba(var(--bg-rgb),.28) 80%, rgba(var(--bg-rgb),.4) 100%),
      linear-gradient(150deg, rgba(10,25,18,.28), rgba(8,14,11,.4)),
      url("/assets/img/hero-photo.jpg");
    filter: saturate(.85) brightness(1);
  }
}
@media (max-width: 999px){
  .hero-photo{
    background-image:
      linear-gradient(180deg, rgba(var(--bg-rgb),.88) 0%, rgba(var(--bg-rgb),.45) 32%, rgba(var(--bg-rgb),.4) 68%, rgba(var(--bg-rgb),.7) 100%),
      linear-gradient(150deg, rgba(10,25,18,.32), rgba(8,14,11,.45)),
      url("/assets/img/hero-photo.jpg");
    background-blend-mode: normal, multiply, normal;
    background-position: center, center, center 68%;
    filter: saturate(.95) brightness(1);
  }
  html[data-theme="light"] .hero-photo{
    background-image:
      linear-gradient(180deg, rgba(var(--bg-rgb),.94) 0%, rgba(var(--bg-rgb),.62) 32%, rgba(var(--bg-rgb),.55) 68%, rgba(var(--bg-rgb),.8) 100%),
      linear-gradient(150deg, rgba(10,25,18,.32), rgba(8,14,11,.45)),
      url("/assets/img/hero-photo.jpg");
    filter: saturate(.8) brightness(.95);
  }
}
/* Живой фон hero — вместо статичного градиента 4 мягких пятна медленно
   и независимо друг от друга дрейфуют (разная длительность/фаза, чтобы
   не было ощущения синхронного "дыхания"). filter:blur один раз на всём
   контейнере — компоузится дешёво, translate/scale ничего не пересчитывают. */
.hero-aurora{
  position:absolute; inset:-15%; z-index:0; overflow:hidden; pointer-events:none;
  filter: blur(60px);
}
.hero-aurora span{ position:absolute; border-radius:50%; }
.hero-aurora span:nth-child(1){
  width:40%; height:40%; left:8%; top:4%; background: var(--accent); opacity:.22;
  animation: auroraDrift1 26s var(--ease) infinite;
}
.hero-aurora span:nth-child(2){
  width:34%; height:34%; right:6%; top:0; background: var(--gold); opacity:.16;
  animation: auroraDrift2 32s var(--ease) infinite;
}
.hero-aurora span:nth-child(3){
  width:42%; height:42%; right:4%; bottom:2%; background: var(--accent-2); opacity:.18;
  animation: auroraDrift3 29s var(--ease) infinite;
}
.hero-aurora span:nth-child(4){
  width:32%; height:32%; left:2%; bottom:4%; background: var(--gold); opacity:.12;
  animation: auroraDrift4 35s var(--ease) infinite;
}
@keyframes auroraDrift1{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(7%,9%) scale(1.15); } }
@keyframes auroraDrift2{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-8%,7%) scale(.88); } }
@keyframes auroraDrift3{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-6%,-9%) scale(1.1); } }
@keyframes auroraDrift4{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(9%,-6%) scale(.9); } }
/* Курсор-подсветка на hero — премиальный интерактивный штрих на десктопе.
   Позиция обновляется через main.js (--mx/--my), безопасный фолбэк — 50%/40%. */
@media (hover:hover) and (pointer:fine){
  .hero::after{
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background: radial-gradient(480px circle at var(--mx,50%) var(--my,40%), rgba(var(--accent-rgb),.10), transparent 60%);
    transition: opacity .4s var(--ease); opacity:0;
  }
  .hero:hover::after{ opacity:1; }
}
.hero-grid-lines{
  position:absolute; inset:0; z-index:0; opacity:.35; pointer-events:none;
  background-image: var(--hero-pattern);
  background-size: var(--hero-pattern-size);
  transition: opacity .4s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}
html[data-theme="light"] .hero-grid-lines{ opacity:.55; }
.hero .container{ position:relative; z-index:1; }
.hero-inner{ max-width: 900px; }
.hero h1{ margin-block: 22px 24px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-top: 34px; }

.hero-stats{
  margin-top: clamp(56px, 8vw, 96px);
  display:grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--border); border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden;
}
.hero-stats .stat{ background: var(--stat-bg); padding: 22px 20px; }
@media (min-width: 721px){ .hero-stats .stat{ -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }
.stat-value{ font-family:'Unbounded',sans-serif; font-size: clamp(1.5rem, 1.4vw + 1rem, 2.3rem); font-weight:700; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.stat-label{ margin-top:6px; font-size:.8rem; color: var(--text-mute); line-height:1.35; }
@media (max-width: 720px){ .hero-stats{ grid-template-columns: repeat(2,1fr); } }

/* position:fixed от низа ЭКРАНА, а не .hero — раньше был absolute от
   низа блока hero, и на любом окне, где контент hero (заголовок + сетка
   статистики) не помещался в min-height:100svh, подсказка вылезала не у
   низа экрана, а поверх карточек статистики. Теперь высота контента
   вообще не влияет на позицию. .is-hidden переключает main.js по скроллу
   (см. initHeroSpotlight) — после начала скролла подсказка уже не нужна. */
.scroll-cue{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; z-index:50;
  color: var(--text-mute); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  opacity:1; pointer-events:none; transition: opacity .35s var(--ease);
}
.scroll-cue.is-hidden{ opacity:0; }
.scroll-cue .line{ width:1px; height:34px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue{ 0%{ transform: scaleY(0); transform-origin: top;} 50%{ transform: scaleY(1); transform-origin: top;} 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin:bottom;} }
/* На мобильном экран и так короче контента с первого кадра — подсказка
   "листайте" там не нужна вообще, прячем сразу. */
@media (max-width: 720px){ .scroll-cue{ display:none; } }

/* ---------- 8. Карточки услуг / преимуществ ---------- */
.card{
  position:relative; border-radius: var(--radius-md); min-width:0;
  background: var(--surface); border:1px solid var(--border);
  padding: clamp(22px,2.4vw,32px);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover{ transform: translateY(-6px); border-color: var(--glass-strong); background: var(--surface-2); box-shadow: var(--shadow-elevate); }

.icon-tile{
  width: 52px; height:52px; border-radius: 14px; display:flex; align-items:center; justify-content:center;
  background: var(--glass); border:1px solid var(--border); color: var(--accent); margin-bottom: 20px;
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:.95rem;
}
.icon-tile svg{ width: 24px; height:24px; }

.card h3{ margin-bottom: 10px; }
.card p{ font-size:.95rem; }

.service-card{ cursor:pointer; }
.service-card .tag{
  display:inline-block; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color: var(--accent);
  margin-bottom: 14px; font-weight:700;
}
.service-card .thumb{
  aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow:hidden; margin-bottom:18px;
  position:relative;
}
.service-card .more, .news-card .more, .trust-card .more, .knowledge-card .more{
  display:inline-flex; align-items:center; gap:.4em; margin-top:16px; font-size:.85rem; font-weight:600; color: var(--text);
}
.service-card .more svg, .news-card .more svg, .trust-card .more svg, .knowledge-card .more svg{ width:16px; height:16px; transition: transform .3s var(--ease); }
.service-card:hover .more svg, .news-card:hover .more svg, .trust-card:hover .more svg, .knowledge-card:hover .more svg{ transform: translateX(4px); }

.trust-card{ cursor:pointer; display:flex; flex-direction:column; }
.trust-card p{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}

/* Заглушки-иллюстрации (SVG-паттерны вместо фото) */
.art{
  position:relative; width:100%; height:100%; overflow:hidden;
  background: var(--surface-2);
  display:flex; align-items:center; justify-content:center;
}
.art::before{
  content:""; position:absolute; inset:0;
  background: var(--grad-2);
  opacity:.9;
}
.art::after{
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(120deg, var(--art-pattern) 0 2px, transparent 2px 34px);
}
.art svg{ position:relative; width:46%; height:46%; color: var(--art-icon); z-index:1; }
.art .art-label{
  position:absolute; bottom:14px; left:14px; z-index:2;
  font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color: var(--art-label);
}

/* Реальные фотографии вместо SVG-заглушек */
.art.has-photo{ background-size: cover; background-position: center; }
.art.has-photo::before{ background: var(--grad-2); opacity:.35; }
.art.has-photo::after{ display:none; }
.art.has-photo .art-photo-scrim{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}
.art.has-photo .art-label{ color:#fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.art.has-photo img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.04); transition: transform .8s var(--ease);
}
.project-card:hover .art.has-photo img,
.gallery-tile:hover .art.has-photo img{ transform: scale(1.13); }
.art-video-badge{
  position:absolute; top:14px; left:14px; z-index:2;
  width:36px; height:36px; border-radius:50%; background: var(--scrim-strong); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.art-video-badge svg{ width:14px; height:14px; margin-left:2px; color:#fff; }

/* Авторские SVG-иллюстрации услуг — вместо фото/generic-иконки на
   карточках услуг: у каждой услуги свой узор, цвет и пиктограмма,
   поэтому карточки визуально не повторяются. */
.art.is-illustration{ background: var(--surface-2); }
.art.is-illustration::before,
.art.is-illustration::after{ display:none; }
.art.is-illustration .illus{
  position:absolute; inset:0; width:100%; height:100%; z-index:0;
  transition: transform .8s var(--ease);
}
.service-card:hover .art.is-illustration .illus{ transform: scale(1.06); }
.art.is-illustration .illus-icon{ opacity:.9; }
.art.is-illustration .art-label{ z-index:2; color: var(--art-label-on-illus, var(--text)); mix-blend-mode: normal; }
.art.is-illustration .illus-badge{
  position:absolute; top:14px; right:14px; z-index:2;
  width:38px; height:38px; border-radius:50%;
  background: var(--scrim-strong); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.art.is-illustration .illus-badge svg{ width:18px; height:18px; }

/* ---------- 9. Табы (страница услуг) ---------- */
.tabs{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 40px; }
.tab-btn{
  padding: .7em 1.3em; border-radius: var(--radius-pill); border:1px solid var(--border);
  background: var(--glass); font-size:.88rem; font-weight:600; color: var(--text-dim);
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.tab-btn:hover{ color: var(--text); border-color: var(--glass-strong); }
.tab-btn.is-active{ background: var(--grad-1); color: var(--accent-contrast); border-color: transparent; }

.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; animation: fadein .5s var(--ease); }
@keyframes fadein{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:none; } }

/* ---------- 10. Модальное окно услуги ---------- */
.modal-overlay{
  /* Намеренно БЕЗ backdrop-filter: на fixed-элементе во весь экран это
     известный источник рендер-багов в WebKit/Safari на iOS (вплоть до
     сплошного чёрного экрана вместо контента) — воспроизводилось даже
     на актуальном iPhone. Одноцветная полупрозрачная подложка вместо
     блюра работает предсказуемо везде. */
  position:fixed; inset:0; z-index:200; background: var(--modal-scrim);
  display:flex; align-items:center; justify-content:center; padding: 20px;
  opacity:0; visibility:hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; transition: opacity .35s var(--ease); }
.modal{
  position:relative; width:100%; max-width: 720px; max-height: 86vh; overflow:auto;
  -webkit-overflow-scrolling:touch;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px,4vw,44px);
  transform: translateY(24px) scale(.98); transition: transform .4s var(--ease);
}
.modal-overlay.is-open .modal{ transform:none; }
.modal-close{
  position:absolute; top:18px; right:18px; z-index:5; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--border); background: var(--glass); display:flex; align-items:center; justify-content:center;
}
.modal-close svg{ width:18px; height:18px; flex:none; }
.modal .tag{ color: var(--accent); font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; font-weight:700; }
.modal h3{ margin-block: 10px 16px; }
.modal ul{ margin-top: 18px; display:grid; gap:10px; }
.modal ul li{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color: var(--text-dim); }
.modal ul li svg{ width:18px; height:18px; flex:none; margin-top:2px; color: var(--accent); }
.modal .lead svg{ width:18px; height:18px; flex:none; color: var(--text-mute); }

/* ---------- 11. Секции: about / process ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items:center; }
@media (max-width: 900px){ .split{ grid-template-columns:1fr; } }

.timeline{ display:grid; gap:0; }
.timeline-item{
  display:grid; grid-template-columns: 90px 1px 1fr; gap: 24px; padding-block: 26px; position:relative;
}
.timeline-item .year{ font-family:'Unbounded',sans-serif; font-weight:700; color: var(--accent); }
.timeline-item .line{ background: var(--border); position:relative; }
.timeline-item .line::before{
  content:""; position:absolute; left:50%; top:4px; transform:translateX(-50%); z-index:1;
  width:11px; height:11px; border-radius:50%; background: var(--text-mute);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
/* Заливка сегмента линии акцентным цветом при появлении пункта в
   области видимости (см. [data-reveal].is-visible, main.js/initReveal) —
   растёт сверху вниз, как индикатор прогресса "докуда долистали". */
.timeline-item .line::after{
  content:""; position:absolute; inset:0; background: var(--accent);
  transform-origin: top; transform: scaleY(0);
  transition: transform .7s var(--ease) .1s;
}
.timeline-item.is-visible .line::before{
  background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.14), 0 0 18px rgba(var(--accent-rgb),.45);
}
.timeline-item.is-visible .line::after{ transform: scaleY(1); }
.timeline-item:not(:last-child){ border-bottom: none; }

/* ---------- 12. Портфолио ---------- */
.filter-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 34px; }
.project-card{ border-radius: var(--radius-md); overflow:hidden; position:relative; background: var(--surface); border:1px solid var(--border); cursor:pointer; min-width:0; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.project-card:hover{ transform: translateY(-6px); border-color: var(--glass-strong); box-shadow: var(--shadow-elevate); }
.project-card .art{ aspect-ratio: 4/3; }
.project-card .info{ padding: 20px 22px 24px; }
.project-card .meta{ display:flex; justify-content:flex-start; align-items:center; margin-top:10px; font-size:.82rem; color: var(--text-mute); }
.project-card .meta span{ display:flex; align-items:center; gap:6px; }
.project-card .meta svg{ width:14px; height:14px; flex:none; color: var(--accent); }
.project-badge{
  position:absolute; top:14px; right:14px; z-index:2;
  background: var(--scrim-strong); border:1px solid var(--border);
  color: var(--text); font-size:.68rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* Видео объекта */
.video-frame{ position:relative; width:100%; aspect-ratio:16/9; border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--border); background: var(--surface-2); display:flex; align-items:center; justify-content:center; }
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-frame::before{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); pointer-events:none; }
.video-play-btn{
  position:relative; z-index:1; width:78px; height:78px; border-radius:50%;
  background: var(--grad-1); color: var(--accent-contrast); display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-glow); transition: transform .35s var(--ease);
}
.video-play-btn svg{ width:30px; height:30px; margin-left:4px; }
.video-frame:hover .video-play-btn{ transform: scale(1.08); }

/* География */
.geo-list{ display:flex; flex-wrap:wrap; gap:10px; }
.geo-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: .55em 1.1em; border-radius: var(--radius-pill);
  background: var(--glass); border:1px solid var(--border); font-size:.85rem; color: var(--text-dim);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
a.geo-pill{ cursor:pointer; }
a.geo-pill:hover{ transform: translateY(-2px); border-color: var(--glass-strong); background: var(--surface-2); color: var(--text); }
.geo-pill svg{ width:14px; height:14px; color: var(--accent); flex:none; }

/* Карта регионов — собственная схематичная локатор-карта (см.
   GEO_MAP_COORDS/renderGeography в main.js), маркеры спроецированы из
   настоящих широты/долготы, а не расставлены на глаз. Раньше здесь
   последовательно было: (1) точки на абстрактном тёмном шаре без
   реальной проекции — читалось как чёрный фон, не карта; (2) встроенный
   Google Maps — настоящая карта, но без API-ключа умеет показать только
   один общий вид (поиск "Россия"), без кастомных маркеров по городам —
   вернулись к прежней жалобе ("просто карта, не видно где строили").
   Ключей у карт-провайдеров нет, поэтому маркеры — свои, поверх простого
   декоративного фона (не претендующего на точные береговые линии). */
.geo-map{
  position:relative; width:100%; max-width:720px; margin:0 auto;
  aspect-ratio: 640 / 620; border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background: var(--surface-2);
  box-shadow: inset 0 0 80px -20px rgba(0,0,0,.5);
}
/* Реальную Google-карту подложкой пробовали, но её видимые границы
   нельзя точно откалибровать с собственной проекцией маркеров через
   обычный embed-URL (центр/зум не гарантируют предсказуемый охват) —
   маркеры оказались НЕ там, где реальные города на подложке. Вернули
   схематичный фон: маркеры согласованы САМИ С СОБОЙ (относительное
   расположение друг друга верное, см. GEO_MAP_COORDS), без ложной
   претензии на выравнивание с внешней картой. */
.geo-map-grid{
  position:absolute; inset:0; opacity:.55;
  background-image: var(--hero-pattern); background-size: var(--hero-pattern-size);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 92%);
          mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 92%);
}
/* Мягкое свечение из точки штаба (Петербург) — даёт карте глубину и сразу
   притягивает взгляд к центру сети, вместо ровного плоского фона. */
.geo-map-glow{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse 55% 50% at 37% 30%, rgba(var(--accent-rgb),.16), transparent 70%);
}
/* Линии от штаба к каждой точке — карта связей, а не попытка нарисовать
   точные границы: честно показывает "откуда мы работаем", а заодно
   наконец даёт карте узнаваемую структуру вместо разрозненных точек. */
.geo-map-lines{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.geo-line{
  stroke: var(--accent); stroke-width:1.4; stroke-linecap:round; opacity:.22;
  vector-effect: non-scaling-stroke;
  transition: opacity .25s var(--ease), stroke-width .25s var(--ease);
}
.geo-line.is-highlighted{ opacity:.85; stroke-width:2.2; }
.geo-marker{
  position:absolute; transform: translate(-50%, -50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:6px; cursor:pointer; z-index:1;
}
.geo-marker-dot{
  width:9px; height:9px; border-radius:50%; flex:none;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.geo-marker-label{
  display:inline-block; font-size:.72rem; font-weight:600; color: var(--text-dim); white-space:nowrap;
  padding:.3em .7em; border-radius: var(--radius-pill);
  background: var(--surface); border:1px solid var(--border-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.geo-marker-hub .geo-marker-dot{
  width:15px; height:15px; background: var(--grad-1); box-shadow: 0 0 0 7px rgba(var(--accent-rgb),.22);
  position:relative;
}
.geo-marker-hub .geo-marker-dot::after{
  content:""; position:absolute; inset:-7px; border-radius:50%;
  border:1.5px solid rgba(var(--accent-rgb),.5); animation: geoPulse 2.4s var(--ease) infinite;
}
@keyframes geoPulse{
  0%{ transform: scale(.7); opacity:.9; }
  100%{ transform: scale(1.9); opacity:0; }
}
.geo-marker-hub .geo-marker-label{ color: var(--text); font-weight:700; background: var(--glass-strong); border-color: rgba(var(--accent-rgb),.35); }
.geo-marker:hover .geo-marker-dot, .geo-marker.is-highlighted .geo-marker-dot{
  transform: scale(1.35); box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.3);
}
.geo-marker:hover .geo-marker-label, .geo-marker.is-highlighted .geo-marker-label{
  color: var(--text); border-color: var(--glass-strong); background: var(--surface-2);
}

.geo-pill-hub{ border-color: rgba(var(--accent-rgb),.4); color: var(--text); font-weight:700; background: var(--glass-strong); }
.geo-pill.is-highlighted{ border-color: var(--glass-strong); background: var(--surface-2); color: var(--text); transform: translateY(-2px); }

/* Раньше подписи маркеров скрывались целиком на узких экранах — карта
   превращалась ровно в "точки без подписей", что и была жалоба. Вместо
   скрытия — более узкая (высокая) карта на мобильном, чтобы 12 подписям
   хватало вертикального места не налезать друг на друга, плюс подписи
   чуть мельче. */
@media (max-width: 560px){
  .geo-map{ aspect-ratio: 640 / 780; }
  .geo-marker-label{ font-size:.64rem; padding:.26em .6em; }
}

.region-filter-tag{
  display:inline-flex; align-items:center; gap:10px;
  padding: .5em .6em .5em 1.1em; border-radius: var(--radius-pill);
  background: var(--glass); border:1px solid var(--border); font-size:.85rem; color: var(--text-dim);
}
.region-filter-tag b{ color: var(--text); font-weight:600; }
.region-filter-tag button{
  display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%;
  background: var(--glass-strong); border:0; color: var(--text-dim); cursor:pointer; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.region-filter-tag button:hover{ background: var(--accent); color: var(--accent-contrast); }
.region-filter-tag button svg{ width:12px; height:12px; flex:none; }

/* ---------- 12b. FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-item:first-child{ border-top: 1px solid var(--border); }
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 22px 4px; text-align:left; font-family:'Unbounded',sans-serif; font-weight:600; font-size:1rem; color: var(--text);
}
.faq-question svg{ width:20px; height:20px; flex:none; color: var(--accent); transition: transform .35s var(--ease); }
.faq-item.is-open .faq-question svg{ transform: rotate(180deg); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq-item.is-open .faq-answer{ max-height: 260px; }
.faq-answer p{ padding: 0 4px 22px; }

/* ---------- 13. Отзывы ---------- */
.review-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); padding: 28px; height:100%; display:flex; flex-direction:column; }
.stars{ display:flex; gap:4px; color: var(--accent); margin-bottom: 16px; }
.stars svg{ width:16px; height:16px; }
.review-card p{ flex:1; }
.review-author{ display:flex; align-items:center; gap:12px; margin-top: 20px; }
.avatar{
  width:44px; height:44px; border-radius:50%; flex:none;
  background: var(--grad-1); display:flex; align-items:center; justify-content:center;
  font-family:'Unbounded',sans-serif; font-weight:700; color: var(--accent-contrast);
}
.review-author strong{ display:block; font-size:.92rem; }
.review-author span{ font-size:.78rem; color: var(--text-mute); }

/* ---------- 14. Новости ---------- */
.news-card{
  display:flex; flex-direction:column; gap:14px; padding: 26px; border-radius: var(--radius-md);
  background: var(--surface); border:1px solid var(--border); cursor:pointer; min-width:0;
  transition: transform .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.news-card:hover{ box-shadow: var(--shadow-elevate); border-color: var(--glass-strong); transform: translateY(-6px); }
.news-thumb{ aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow:hidden; position:relative; margin-bottom:2px; }
.news-date{ font-size:.78rem; color: var(--accent); letter-spacing:.08em; text-transform:uppercase; font-weight:700; }

/* ---------- 15. Форма ---------- */
.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-size:.82rem; color: var(--text-mute); margin-bottom:8px; }
.form-field input, .form-field textarea{
  width:100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border:1px solid var(--border); color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder{ color: var(--text-mute); }
.form-field input:focus, .form-field textarea:focus{ border-color: var(--accent); background: var(--field-focus-bg); outline:none; }
.form-field textarea{ min-height: 130px; resize: vertical; }
.form-note{ font-size:.78rem; color: var(--text-mute); margin-top: 14px; }
.form-success{
  display:none; align-items:center; gap:12px; padding:16px 18px; border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb),.1); border:1px solid rgba(var(--accent-rgb),.35); color: var(--accent); font-size:.9rem; font-weight:600;
}
.form-success.is-visible{ display:flex; }
.form-error{
  display:none; align-items:center; gap:12px; padding:16px 18px; border-radius: var(--radius-sm);
  background: rgba(var(--danger-rgb),.1); border:1px solid rgba(var(--danger-rgb),.35); color: var(--danger); font-size:.9rem; font-weight:600;
}
.form-error.is-visible{ display:flex; }

/* ---------- 16. CTA-полоса ---------- */
.cta-band{
  border-radius: var(--radius-lg); padding: clamp(36px,6vw,64px);
  background: var(--surface); border:1px solid var(--border);
  position:relative; overflow:hidden;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:28px;
}
/* Тот же приём "живого" фона, что у hero, но без лишних DOM-элементов на
   странице — псевдоэлемент крупнее контейнера (inset:-30%), поэтому его
   можно двигать через transform, не открывая края. Раньше двигали через
   background-position — это заставляет браузер перерисовывать (paint)
   слой каждый кадр все 24 секунды на каждой странице с .cta-band (почти
   везде на сайте); transform — чисто композитная операция, GPU, без
   перерисовки. --grad-2 уже тема-зависимая переменная. */
.cta-band::before{
  content:""; position:absolute; inset:-30%; background: var(--grad-2);
  background-size: 160% 160%; opacity:.8;
  animation: ctaAuroraShift 24s var(--ease) infinite alternate;
}
@keyframes ctaAuroraShift{
  0%{ transform: translate(-8%, -6%) scale(1.05); }
  100%{ transform: translate(8%, 6%) scale(1.05); }
}
.cta-band > *{ position:relative; z-index:1; }
.cta-band .actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- 17. Футер ---------- */
.site-footer{
  border-top:1px solid var(--border); padding-block: 64px 32px;
  background-color: var(--bg-soft);
  background-image: var(--atmosphere);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ margin-bottom: 18px; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; color: var(--text-mute); }
.footer-links{ display:grid; gap:11px; }
.footer-links a{ font-size:.92rem; color: var(--text-dim); transition: color .3s var(--ease); }
.footer-links a:hover, .footer-links a.active{ color: var(--accent); }
.footer-bottom{ margin-top: 56px; padding-top: 26px; border-top:1px solid var(--border-soft); display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:.8rem; color: var(--text-mute); }
#toTop svg{ width:16px; height:16px; flex:none; }
.social-row{ display:flex; gap:10px; }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.social-row a:hover{ background: var(--grad-1); color: var(--accent-contrast); border-color: transparent; }
.social-row svg{ width:16px; height:16px; }

/* ---------- 18. Утилиты ---------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-center{text-align:center}
.flex{display:flex} .items-center{align-items:center} .justify-between{justify-content:space-between}
.gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px}
.hide-mobile{}
@media (max-width: 720px){ .hide-mobile{ display:none !important; } }

/* ---------- 19. Скролл-анимации ---------- */
[data-reveal]{
  opacity:0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{ opacity:1; transform:none; }
[data-reveal-stagger] > *{ transition-delay: calc(var(--i,0) * 90ms); }

/* ---------- 20. Прочее: бейдж страницы, breadcrumbs ---------- */
.page-hero{ padding-top: 150px; padding-bottom: 60px; }
.breadcrumbs{ display:flex; gap:8px; align-items:center; font-size:.82rem; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumbs a{ color: var(--text-mute); }
.breadcrumbs a:hover{ color: var(--accent); }

.floating-cta{
  position:fixed; right: 22px; bottom: 22px; z-index: 80;
  display:flex; flex-direction:column; gap:10px;
}
.floating-cta a{
  width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.floating-cta a:hover{ transform: scale(1.08) translateY(-2px); background: var(--surface-2); }
.floating-cta svg{ width:22px; height:22px; color: var(--accent); }

/* ---------- 21b. Переключатель темы + плавный переход ---------- */
html, body, .site-header, .mobile-drawer, .card, .cta-band, .site-footer,
.modal, .service-card, .project-card, .review-card, .news-card, .art,
.form-field input, .form-field textarea, .tab-btn, .icon-tile{
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}

.theme-toggle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background: var(--glass); display:flex; align-items:center; justify-content:center; flex:none;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.theme-toggle:hover{ background: var(--glass-strong); transform: translateY(-2px); }
.theme-toggle svg{ width:19px; height:19px; }
.theme-toggle .icon-sun{ display:none; }
html[data-theme="light"] .theme-toggle .icon-sun{ display:block; }
html[data-theme="light"] .theme-toggle .icon-moon{ display:none; }

/* Переключатель RU/EN в шапке — та же геометрия круглой кнопки, что и
   .theme-toggle (одинаковая высота ряда иконок), но текстовая метка
   вместо SVG. См. computeLangSwitchHref() в main.js. */
.lang-toggle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background: var(--glass); display:flex; align-items:center; justify-content:center; flex:none;
  font-family:'Inter',sans-serif; font-size:.72rem; font-weight:700; letter-spacing:.02em;
  color: var(--text-dim);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.lang-toggle:hover{ background: var(--glass-strong); transform: translateY(-2px); color: var(--text); }

/* ---------- 21. Печать / уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior:auto !important; }
}

/* ---------- 22. Золотая VIP-метка ---------- */
.badge-gold{
  background: var(--grad-gold) !important; color:#1a1305 !important; border-color: transparent !important;
}
.project-badge.badge-gold{ box-shadow: 0 8px 24px -8px rgba(var(--gold-rgb),.55); }

/* ---------- 23. Диагональный разделитель под hero ---------- */
.hero-divider{
  position:relative; height: 70px; margin-top:-70px; z-index:2; pointer-events:none;
}
.hero-divider svg{ width:100%; height:100%; display:block; }
.hero-divider path{ fill: var(--bg); }
html[data-theme="light"] .hero-divider path{ fill: var(--bg); }

/* ---------- 24. Бегущая строка доверия (marquee) ---------- */
.marquee-strip{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background-color: var(--surface);
  background-image: var(--atmosphere);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow:hidden; padding-block: 18px;
  position:relative;
}
.marquee-strip::before, .marquee-strip::after{
  content:""; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}

/* background-attachment:fixed (body/.section-alt/.site-footer/.marquee-strip
   выше) — известная причина подтормаживания скролла в мобильных браузерах:
   движок вынужден перерисовывать фиксированный фон почти на каждом кадре
   скролла вместо того, чтобы просто сдвинуть уже отрисованный слой
   (compositing). На десктопе это дёшево и даёт красивый эффект "одного
   источника света" через все секции, но на телефоне того же эффекта не
   разглядеть, а плавность скролла — разглядеть легко. На узких экранах
   откатываем на обычное scroll-поведение (умолчание). */
@media (max-width: 900px){
  body, .section-alt, .site-footer, .marquee-strip{ background-attachment: scroll; }
}
.marquee-strip::before{ left:0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee-strip::after{ right:0; background: linear-gradient(-90deg, var(--surface), transparent); }
.marquee-track{
  display:flex; gap: 48px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-strip:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.marquee-item{
  display:flex; align-items:center; gap:10px; font-size:.9rem; font-weight:600; color: var(--text-dim);
  white-space:nowrap; letter-spacing:.01em;
}
.marquee-item svg{ width:16px; height:16px; color: var(--accent); flex:none; }
.marquee-item b{ color: var(--text); font-weight:700; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ---------- 25. Категорийная фотогалерея объектов ---------- */
.gallery-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 30px; }
.gallery-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 980px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap:10px; } }
.gallery-tile{
  position:relative; border-radius: var(--radius-sm); overflow:hidden; cursor:pointer;
  aspect-ratio: 1/1; background: var(--surface-2); border:1px solid var(--border);
}
.gallery-tile .art{ position:absolute; inset:0; }
.gallery-tile::after{
  content:""; position:absolute; inset:0; z-index:1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background-color .3s var(--ease);
}
.gallery-tile:hover::after{ background: rgba(var(--accent-rgb),.08); }
.gallery-more{
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px;
  color: var(--text); font-weight:700; font-size:.95rem; text-align:center; padding:12px;
}

/* ---------- 26. Лайтбокс ---------- */
.lightbox-overlay{
  /* См. комментарий у .modal-overlay — тот же fixed+backdrop-filter риск,
     здесь ещё и с background почти непрозрачным (.94), так что визуально
     без блюра почти не отличить. */
  position:fixed; inset:0; z-index:300; background: rgba(4,5,6,.94);
  display:flex; align-items:center; justify-content:center; padding: clamp(16px,4vw,48px);
  opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.lightbox-overlay.is-open{ opacity:1; visibility:visible; transition: opacity .3s var(--ease); }
.lightbox-stage{ position:relative; max-width: 1200px; width:100%; }
.lightbox-stage img, .lightbox-stage video{
  width:100%; max-height: 78vh; object-fit:contain; border-radius: var(--radius-sm); margin-inline:auto;
  background:#000;
}
.lightbox-caption{ color: rgba(255,255,255,.75); font-size:.86rem; text-align:center; margin-top:14px; }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:fixed; width:48px; height:48px; border-radius:50%;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: background-color .3s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,.18); }
.lightbox-close{ top:20px; right:20px; }
.lightbox-prev{ left:20px; top:50%; transform:translateY(-50%); }
.lightbox-next{ right:20px; top:50%; transform:translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg{ width:20px; height:20px; }
.lightbox-prev svg{ transform: scaleX(-1); }
@media (max-width: 680px){
  .lightbox-prev, .lightbox-next{ width:40px; height:40px; }
  .lightbox-prev{ left:8px; } .lightbox-next{ right:8px; }
  .lightbox-close{ top:10px; right:10px; }
}

/* ---------- 27. Нативное видео в video-frame ---------- */
.video-frame video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border:0; }
.video-frame.is-native{ cursor:pointer; }

/* Мини-галерея превью внутри модалки проекта */
.modal-gallery{ display:grid; grid-template-columns: repeat(4,1fr); gap:8px; margin-top:18px; }
.modal-gallery .art{ aspect-ratio:1/1; border-radius: var(--radius-sm); cursor:pointer; }
@media (max-width:480px){ .modal-gallery{ grid-template-columns: repeat(3,1fr); } }

/* ---------- 28. Блок «Экспертиза» / история ---------- */
.expert-card{
  display:flex; gap:22px; padding: clamp(24px,4vw,36px); border-radius: var(--radius-lg);
  background: var(--surface); border:1px solid var(--border); position:relative; overflow:hidden;
}
.expert-card::before{ content:""; position:absolute; inset:0; background: var(--grad-2); opacity:.5; pointer-events:none; }
.expert-card > *{ position:relative; z-index:1; }
.expert-avatar{
  flex:none; width:64px; height:64px; border-radius:50%; background: var(--grad-gold);
  display:flex; align-items:center; justify-content:center; font-family:'Unbounded',sans-serif;
  font-weight:700; color:#1a1305; font-size:1.3rem;
}
.expert-quote{
  font-family:'Unbounded',sans-serif; font-size: clamp(1.05rem,2vw,1.35rem); line-height:1.5;
  margin-block: 14px 18px; position:relative; padding-left: 22px; border-left: 3px solid var(--gold);
  transition: font-family .3s;
}
html[data-theme="light"] .expert-quote{ font-family:'Lora','Georgia',serif; font-style:italic; font-weight:500; }
@media (max-width:640px){ .expert-card{ flex-direction:column; } }

/* ---------- 29. Прелоадер: пиксельный теннисный мяч ---------- */
/* Скрыт по умолчанию — показывается через JS только если загрузка
   данных занимает заметное время (см. инлайн-скрипт в <body> и вызов
   window.__korlisHideLoader() в конце runInit() в main.js), чтобы не
   мигать на быстрых загрузках. */
.page-loader{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .32s ease;
}
.page-loader.is-visible{ opacity:1; visibility:visible; pointer-events:auto; }
.pixel-ball-scene{ display:flex; flex-direction:column; align-items:center; gap:16px; }
.pixel-ball{ width:56px; height:56px; animation: pixelBallBounce .9s cubic-bezier(.5,0,.85,.35) infinite alternate; }
.pixel-ball-shadow{
  width:38px; height:7px; border-radius:50%; background: rgba(0,0,0,.4);
  animation: pixelBallShadow .9s cubic-bezier(.5,0,.85,.35) infinite alternate;
}
@keyframes pixelBallBounce{ from{ transform: translateY(-34px); } to{ transform: translateY(0) scaleX(1.14) scaleY(.8); } }
@keyframes pixelBallShadow{ from{ opacity:.22; transform: scaleX(.65); } to{ opacity:.45; transform: scaleX(1); } }

/* ---------- 30. Honeypot-поле формы заявки (см. initForm в main.js) ---------- */
/* Не display:none — часть спам-ботов пропускает скрытые через display
   поля, оставаясь незаполненными. Прячем позиционированием за пределы
   экрана и убираем из таб-порядка, оставляя поле формально видимым
   для простых DOM-парсеров ботов. */
.hp-field{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---------- 31. Калькулятор примерной стоимости (services.html) ---------- */
.card > .tag{
  display:inline-block; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color: var(--accent);
  font-weight:700;
}

.calc-form{ margin-bottom: 22px; }
.calc-note{
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom:18px;
  background: var(--glass); border:1px solid var(--border-soft);
  font-size:.82rem; color: var(--text-mute); line-height:1.5;
}

.calc-step-head{ display:flex; align-items:center; gap:12px; margin: 30px 0 16px; }
.calc-form > .calc-step-head:first-child{ margin-top:0; }
.calc-step-num{
  display:flex; align-items:center; justify-content:center; flex:none;
  width:28px; height:28px; border-radius:50%;
  background: var(--grad-1); color: var(--accent-contrast);
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:.85rem;
}
.calc-step-label{ font-family:'Unbounded',sans-serif; font-weight:600; font-size:.95rem; color: var(--text); }

.calc-type-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap:12px; margin-bottom: 8px;
}
.calc-type-card{
  display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;
  padding: 20px 14px; border-radius: var(--radius-md);
  background: var(--glass); border:1px solid var(--border); color: var(--text-dim);
  font-size:.85rem; font-weight:600;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.calc-type-card:hover{ color: var(--text); border-color: var(--glass-strong); transform: translateY(-2px); }
.calc-type-card.is-active{ background: var(--grad-1); color: var(--accent-contrast); border-color: transparent; box-shadow: var(--shadow-elevate); }
.calc-type-icon{ display:flex; }
.calc-type-icon svg{ width:26px; height:26px; }

.calc-addons{ display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 24px; }
.calc-addon-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: .65em 1.2em; border-radius: var(--radius-pill);
  background: var(--glass); border:1px solid var(--border); color: var(--text-dim);
  font-size:.85rem; font-weight:600;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.calc-addon-chip:hover{ color: var(--text); border-color: var(--glass-strong); }
.calc-addon-chip.is-active{ background: rgba(var(--accent-rgb),.14); border-color: var(--accent); color: var(--text); }
.calc-addon-check{
  display:flex; width:0; overflow:hidden; opacity:0; color: var(--accent);
  transition: width .25s var(--ease), opacity .25s var(--ease);
}
.calc-addon-check svg{ width:14px; height:14px; flex:none; }
.calc-addon-chip.is-active .calc-addon-check{ width:14px; opacity:1; }

.calc-result{
  padding: 24px 26px; border-radius: var(--radius-md);
  background: var(--grad-2), var(--surface-2); border:1px solid var(--border);
  transition: opacity .2s var(--ease); margin-bottom: 22px;
}
.calc-result.is-updating{ opacity:.55; }
.calc-result-label{
  display:block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--text-mute); margin-bottom:8px;
}
.calc-result strong{
  display:block; font-family:'Unbounded',sans-serif; font-weight:700; font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem);
  margin-bottom:8px;
  background: var(--grad-1); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.calc-result p{ margin:0; font-size:.85rem; color: var(--text-mute); }
.calc-placeholder{ margin:0; font-size:.9rem; color: var(--text-mute); }

.calc-fields-hint{ font-size:.8rem; color: var(--text-mute); margin-bottom:18px; }

/* ---------- 32. Слайдер «до/после» (модалка проекта, портфолио) ---------- */
.ba-slider-wrap{ margin-top:22px; }
.ba-slider-heading{ font-family:'Unbounded',sans-serif; font-weight:600; font-size:.95rem; color: var(--text); margin-bottom:12px; }
.ba-slider{
  position:relative; width:100%; aspect-ratio: 4 / 3; max-height: 560px;
  overflow:hidden; border-radius: var(--radius-sm);
  cursor: ew-resize; -webkit-user-select:none; user-select:none; touch-action: pan-y;
}
.ba-slider img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.ba-before-wrap{ position:absolute; inset:0; width:50%; overflow:hidden; }
.ba-before-wrap img{ position:absolute; inset:0; height:100%; max-width:none; object-fit:cover; }
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%; width:3px; background: var(--accent);
  transform: translateX(-50%); pointer-events:none;
}
.ba-handle::after{
  content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:44px; height:44px; border-radius:50%;
  background: var(--accent); border:3px solid var(--bg);
  box-shadow: var(--shadow-elevate);
}
.ba-label{
  position:absolute; top:14px; z-index:2; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:.4em .8em; border-radius: var(--radius-pill);
  background: var(--scrim-strong); color: var(--text); pointer-events:none;
}
.ba-label-left{ left:14px; }
.ba-label-right{ right:14px; }

/* ---------- 33. Тест «Какой корт вам подходит?» (quiz.html) ---------- */
.quiz-card{ max-width: 720px; margin: 0 auto; }
.quiz-progress-track{
  height:4px; border-radius: var(--radius-pill); background: var(--border-soft); overflow:hidden; margin-bottom:28px;
}
.quiz-progress-bar{
  height:100%; width:100%; transform-origin:left; transform: scaleX(0);
  background: var(--grad-1); transition: transform .4s var(--ease);
}
.quiz-question{ margin: 4px 0 22px; }
.quiz-nav{ display:flex; justify-content:space-between; gap:12px; margin-top:28px; }

.quiz-result{ max-width:720px; margin:0 auto; }
.quiz-result ul{ margin:18px 0; display:grid; gap:10px; }
.quiz-result ul li{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color: var(--text-dim); }
.quiz-result ul li svg{ width:18px; height:18px; flex:none; margin-top:2px; color: var(--accent); }

.quiz-addons{
  margin-top:22px; padding:16px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border:1px solid var(--border-soft);
}
.quiz-addons-label{ display:block; font-size:.82rem; color: var(--text-mute); margin-bottom:10px; }
.quiz-addons-list{ display:flex; flex-wrap:wrap; gap:10px; }
.quiz-addon-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:.5em 1em; border-radius: var(--radius-pill);
  background: var(--surface-2); border:1px solid var(--border); color: var(--text-dim);
  font-size:.82rem; font-weight:600;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.quiz-addon-link:hover{ color: var(--text); border-color: var(--glass-strong); }
.quiz-addon-link svg{ width:14px; height:14px; flex:none; color: var(--accent); }

.quiz-restart{
  display:inline-flex; margin-top:18px; background:none; border:none; padding:0;
  color: var(--text-mute); font-size:.85rem; text-decoration: underline; cursor:pointer;
}
.quiz-restart:hover{ color: var(--text); }

/* ---------- 34. База знаний (knowledge.html) ---------- */
.knowledge-card{ cursor:pointer; display:flex; flex-direction:column; }
.knowledge-card p{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}

/* ---------- 35. Бейдж «Открыто сейчас» ---------- */
.open-now-badge{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.78rem; font-weight:600;
  padding:.32em .8em .32em .65em; border-radius: var(--radius-pill);
  border:1px solid var(--border); background: var(--glass);
  color: var(--text-mute);
}
.open-now-dot{ width:7px; height:7px; border-radius:50%; background: currentColor; flex:none; }
.open-now-badge.is-open{
  color: var(--accent); border-color: rgba(var(--accent-rgb),.35); background: rgba(var(--accent-rgb),.1);
}
.open-now-badge.is-open .open-now-dot{ box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }
.open-now-badge.is-closed{ color: var(--text-mute); }

/* ---------- 36. Ступени «Как мы работаем» (about.html) ---------- */
.journey{ display:grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
.journey-step{ position:relative; padding-top:56px; min-width:0; }
.journey-step-num{
  position:absolute; top:0; left:0; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:.92rem;
  background: var(--surface); border:1px solid var(--border); color: var(--text-dim);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.journey-step.is-visible .journey-step-num{
  background: var(--grad-1); color: var(--accent-contrast); border-color: transparent;
}
.journey-step-connector{ position:absolute; top:19px; left:38px; right:-4px; height:1px; background: var(--border); }
.journey-step:last-child .journey-step-connector{ display:none; }
.journey-step .icon-tile{ margin-top:18px; }
.journey-step h3{ font-size:1.02rem; margin-bottom:6px; }
.journey-step p{ font-size:.87rem; color: var(--text-dim); margin:0; }

@media (max-width: 900px){
  .journey{ grid-template-columns: repeat(3,1fr); row-gap:32px; }
  .journey-step:nth-child(3) .journey-step-connector{ display:none; }
}
@media (max-width: 720px){
  .journey{ grid-template-columns: 1fr; gap:0; }
  .journey-step{ padding-top:0; padding-left:56px; padding-bottom:32px; }
  .journey-step:last-child{ padding-bottom:0; }
  .journey-step-num{ top:0; left:0; }
  .journey-step-connector{ top:38px; bottom:0; left:19px; right:auto; width:1px; height:auto; }
  .journey-step .icon-tile{ margin-top:0; }
}

/* ---------- 37. Мобильная панель быстрых действий ----------
   Только мобильная ширина (см. правило проекта: без backdrop-filter на
   position:fixed — сплошной непрозрачный фон вместо блюра, в т.ч. у
   .btn-ghost внутри панели, где обычно есть свой backdrop-filter). На
   мобильном заменяет собой .floating-cta (та же функция — быстрый звонок),
   а не дублирует её — два независимых плавающих элемента конфликтовали бы
   друг с другом визуально на узком экране. */
.mobile-quickbar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:85;
  gap:10px;
  padding: 10px max(16px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  background: var(--surface);
  border-top:1px solid var(--border);
  box-shadow: 0 -16px 30px -20px rgba(0,0,0,.45);
}
.mobile-quickbar .btn{ flex:1 1 0; }
.mobile-quickbar .btn-ghost{
  -webkit-backdrop-filter:none; backdrop-filter:none; background: var(--surface-2);
}
.mobile-quickbar svg{ width:18px; height:18px; }

@media (max-width: 720px){
  .mobile-quickbar{ display:flex; }
  .floating-cta{ display:none; }
  body{ padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- 38. Поиск по FAQ ---------- */
.faq-search-wrap{ max-width:420px; margin: 0 auto 28px; }
.faq-search{
  width:100%; padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--glass); border:1px solid var(--border); color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.faq-search::placeholder{ color: var(--text-mute); }
.faq-search:focus{ border-color: var(--accent); background: var(--field-focus-bg); outline:none; }
.faq-no-results{ text-align:center; color: var(--text-mute); margin-top:18px; }

/* ---------- 39. Сравнение покрытий / оценка срока службы (services.html) ---------- */
.table-scroll{
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  border-radius: var(--radius-md); border:1px solid var(--border);
}
.compare-table{
  width:100%; min-width:760px; border-collapse:collapse;
  background: var(--surface); font-size:.88rem;
}
.compare-table th, .compare-table td{
  padding:16px 18px; text-align:left; vertical-align:top;
  border-bottom:1px solid var(--border-soft);
}
.compare-table thead th{
  font-family:'Unbounded',sans-serif; font-weight:600; font-size:.76rem;
  letter-spacing:.04em; text-transform:uppercase; color: var(--text-mute);
  background: var(--surface-2); white-space:nowrap;
}
.compare-table tbody th{
  font-weight:700; color: var(--text); white-space:nowrap;
}
.compare-table tbody th span:last-child{ display:block; }
.compare-table tbody td{ color: var(--text-dim); line-height:1.5; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td{ border-bottom:none; }
.compare-coating-icon{
  display:inline-flex; margin-right:10px; vertical-align:-6px; color: var(--accent);
}
.compare-coating-icon svg{ width:18px; height:18px; }
.compare-disclaimer{ margin-top:16px; font-size:.8rem; color: var(--text-mute); }

/* На узком экране горизонтальная прокрутка таблицы с min-width:760px —
   неудобно (жалоба: "сравнение покрытий с телефона неудобно смотреть").
   Ниже 720px разбираем таблицу на карточки: каждая строка становится
   отдельной карточкой, ячейки — вертикальным списком "подпись/значение"
   через уже готовые data-label у <td> (см. renderCoatingCompare в
   main.js — JS трогать не пришлось, разметка уже была к этому готова). */
@media (max-width: 720px){
  .table-scroll{ overflow-x:visible; border:none; border-radius:0; }
  .compare-table{ min-width:0; display:block; }
  .compare-table thead{ display:none; }
  .compare-table tbody{ display:flex; flex-direction:column; gap:14px; }
  .compare-table tr{
    display:block; background: var(--surface); border:1px solid var(--border);
    border-radius: var(--radius-md); padding:16px 18px;
  }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td{ border-bottom:1px solid var(--border-soft); }
  .compare-table tr:last-child td:last-child{ border-bottom:none; }
  .compare-table th, .compare-table td{
    display:block; padding:10px 0; border-bottom:1px solid var(--border-soft); white-space:normal;
  }
  .compare-table tbody th{ font-size:1rem; padding-bottom:12px; }
  .compare-table td[data-label]::before{
    content: attr(data-label); display:block; margin-bottom:4px;
    font-family:'Unbounded',sans-serif; font-weight:600; font-size:.68rem;
    letter-spacing:.04em; text-transform:uppercase; color: var(--text-mute);
  }
}

/* ---------- 40. Устройство корта — слои под покрытием (services.html) ---------- */
.anatomy-wrap{
  display:grid; grid-template-columns: minmax(200px,280px) 1fr;
  gap: clamp(20px,4vw,40px); align-items:stretch;
}
@media (max-width: 800px){ .anatomy-wrap{ grid-template-columns:1fr; } }

.anatomy-stack{
  display:flex; flex-direction:column-reverse; gap:5px; min-height:400px;
}
.anatomy-layer{
  all:unset; box-sizing:border-box; cursor:pointer;
  display:flex; align-items:center; gap:12px; min-height:44px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border:1px solid var(--border); color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.anatomy-layer:hover{ color: var(--text); border-color: var(--glass-strong); }
.anatomy-layer.is-active{ background: var(--grad-1); color: var(--accent-contrast); border-color:transparent; box-shadow: var(--shadow-elevate); }
.anatomy-layer-icon{ display:flex; flex:none; }
.anatomy-layer-icon svg{ width:22px; height:22px; }
.anatomy-layer-label{ font-family:'Unbounded',sans-serif; font-weight:600; font-size:.85rem; line-height:1.25; }

/* ---------- 41. Сезонность старта строительства (база знаний, knowledge.html) ---------- */
.season-widget{ margin-top:26px; }
.season-strip{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:6px; margin-top:12px;
}
@media (max-width: 560px){ .season-strip{ grid-template-columns: repeat(6, 1fr); } }
.season-cell{
  display:flex; align-items:flex-end; justify-content:center;
  height:56px; border-radius: var(--radius-sm) var(--radius-sm) 4px 4px;
  padding-bottom:6px; background: var(--surface-2); border:1px solid var(--border-soft);
}
.season-cell--good{ background: rgba(var(--accent-rgb),.5); border-color: rgba(var(--accent-rgb),.4); }
.season-cell--marginal{ background: rgba(var(--gold-rgb),.4); border-color: rgba(var(--gold-rgb),.4); }
.season-cell-month{ font-size:.68rem; font-weight:700; color: var(--text); }
.season-legend{ display:grid; gap:8px; margin-top:16px; }
.season-legend-item{
  display:flex; align-items:flex-start; gap:10px;
  font-size:.82rem; color: var(--text-dim); line-height:1.5;
}
.season-swatch{
  flex:none; width:14px; height:14px; margin-top:2px; border-radius:4px;
  background: var(--surface-2); border:1px solid var(--border-soft);
}
.season-swatch--good{ background: rgba(var(--accent-rgb),.5); border-color: rgba(var(--accent-rgb),.4); }
.season-swatch--marginal{ background: rgba(var(--gold-rgb),.4); border-color: rgba(var(--gold-rgb),.4); }

/* ---------- 42. Поиск по сайту (шапка) ---------- */
.search-toggle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background: var(--glass); display:flex; align-items:center; justify-content:center; flex:none;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.search-toggle:hover{ background: var(--glass-strong); transform: translateY(-2px); }
.search-toggle svg{ width:19px; height:19px; }

/* Панель — не position:fixed на весь экран (см. правило проекта про
   backdrop-filter/iOS), а абсолютный дочерний элемент .site-header
   (у неё уже position:fixed, так что она сама служит containing block —
   панель просто "прилипает" под шапкой, отдельная фиксация не нужна).
   .site-search-panel-inner НЕ носит класс .container — тот внутри
   .site-header матчится правилом ".site-header .container{display:flex;
   justify-content:space-between}" (оно для строки логотип/меню/кнопки) и
   ломало вертикальную раскладку инпута и результатов, растягивая их в
   разные концы строки. У панели поиска — свой центрированный "плавающий"
   блок, а не растянутая на всю ширину шапки полоса. */
.site-search-panel{
  position:absolute; left:0; right:0; top:100%; z-index:120;
  display:flex; justify-content:center;
  padding: 14px var(--gutter) 20px;
  pointer-events:none;
  opacity:0; visibility:hidden; transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.site-search-panel.is-open{
  pointer-events:auto;
  opacity:1; visibility:visible; transform:none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.site-search-panel-inner{
  width:100%; max-width:600px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.55);
  padding: 18px 18px 20px;
}
.site-search-input-wrap{
  position:relative; display:flex; align-items:center;
  border:1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--glass);
}
.site-search-input-wrap:focus-within{ border-color: var(--accent); background: var(--field-focus-bg); }
.site-search-input:focus{ outline:none; }
.site-search-input-icon{ display:flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; color: var(--text-mute); }
.site-search-input-icon svg{ width:17px; height:17px; }
.site-search-input{
  flex:1 1 auto; min-width:0; background:none; border:0; color: var(--text);
  font-size:.95rem; padding: 12px 4px;
}
.site-search-input::placeholder{ color: var(--text-mute); }
.site-search-close{
  width:36px; height:36px; margin-right:4px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center; color: var(--text-mute);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.site-search-close:hover{ background: var(--glass-strong); color: var(--text); }
.site-search-close svg{ width:15px; height:15px; }
.site-search-results{ margin-top:16px; max-height: min(60vh, 480px); overflow-y:auto; }
.site-search-group + .site-search-group{ margin-top:14px; padding-top:14px; border-top:1px solid var(--border-soft); }
.site-search-group-label{
  display:block; font-family:'Unbounded',sans-serif; font-weight:600; font-size:.72rem;
  letter-spacing:.06em; text-transform:uppercase; color: var(--text-mute); margin-bottom:6px;
}
/* Единый "пункт списка" — переиспользуется и в десктопной плавающей
   панели, и внутри мобильного бургер-меню (см. ниже), визуально ближе к
   пунктам .mobile-drawer a, чем к произвольной карточке. */
.site-search-result{
  display:flex; flex-direction:column; gap:2px; padding:.7em 1em; border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease);
}
.site-search-result:hover, .site-search-result:active{ background: var(--glass); }
.site-search-result-title{ font-size:.94rem; font-weight:600; color: var(--text); }
.site-search-result-sub{ font-size:.78rem; color: var(--text-mute); }
.site-search-empty{ color: var(--text-mute); font-size:.9rem; padding: 4px 1em; }

@media (max-width: 640px){
  .site-search-panel{ padding-inline: 12px; }
  .site-search-panel-inner{ max-width:none; }
}

/* Поиск в мобильном бургер-меню (см. .search-toggle{display:none} на
   900px) — не отдельная плавающая карточка (там уже своя, у .mobile-drawer),
   а инпут+список прямо в потоке меню, оформленные как его пункты: список
   результатов группами, каждая строка — такой же по ощущению "пункт
   меню", как обычная ссылка навигации ниже, а не мелкий дропдаун. */
.mobile-drawer .site-search-input-wrap{ margin: 0 0 8px; background: var(--surface); }
.mobile-drawer .site-search-results{ margin-top:0; max-height:min(50vh, 320px); }
.mobile-drawer .site-search-results:not(:empty){ margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--border-soft); }
.mobile-drawer .site-search-group-label{ padding-inline:.2em; }
.mobile-drawer .site-search-result{ padding:.75em 1em; }
.mobile-drawer .site-search-result-title{ font-family:'Inter',sans-serif; }

/* ---------- 43. Голосовой ввод в форме заявки ---------- */
/* mic-btn скрыт атрибутом hidden в разметке по умолчанию — initVoiceInput()
   в main.js снимает его, только если браузер реально поддерживает
   SpeechRecognition/webkitSpeechRecognition (большинство браузеров, кроме
   Chrome-семейства, не умеют — показывать нерабочую кнопку хуже, чем не
   показывать никакой). */
.textarea-wrap{ position:relative; }
.textarea-wrap textarea{ padding-right:52px; }
.mic-btn{
  position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%;
  border:1px solid var(--border); background: var(--glass);
  display:flex; align-items:center; justify-content:center; color: var(--text-dim); flex:none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.mic-btn svg{ width:16px; height:16px; }
.mic-btn:hover{ background: var(--glass-strong); }
.mic-btn.is-listening{
  color: var(--accent); border-color: rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.12);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
@keyframes mic-pulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.35); }
  50%{ box-shadow: 0 0 0 6px rgba(var(--accent-rgb),0); }
}

/* ---------- 44. Экспорт в PDF (калькулятор / карточка объекта) ---------- */
.calc-pdf-btn{ margin-top:16px; }
.calc-pdf-btn svg{ width:16px; height:16px; }
#modalProjectPdfBtn svg{ width:16px; height:16px; }
