/* ==========================================================================
   Стартовый шаблон сайта · стили
   Компоненты собраны по эталонам чек-листа «Сайт под ключ»:
   подвал, виджет связи, стрелка наверх — КрашСервис (crashservice/v2);
   шапка, бургер-меню, нижняя панель, прелоадер — «Время без долгов».
   ========================================================================== */

/* шрифты размещены локально: woff2, кириллица и латиница, font-display:swap (Unbounded — заголовки, Onest — текст) */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/Onest-400_600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/Onest-400_600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/Unbounded-500_700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/Unbounded-500_700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root{
  /* ===== НАСТРОЙКИ ПРОЕКТА — цвета и шрифт меняются только здесь ===== */
  --accent:       #0F5A45;   /* фирменный цвет: кнопки, акценты, виджет */
  --accent-dk:    #0B4636;   /* он же темнее — наведение */
  --accent-lt:    #F3C332;   /* он же светлее — на тёмном фоне подвала */
  --accent-soft:  #E2ECE4;   /* подложка под акцент */
  --accent-ink:   #FFFFFF;   /* текст на акцентном фоне */
  --yellow:       #F3C332;   /* второй цвет бренда: главные кнопки, акценты */
  --head:         'Unbounded', 'Onest', system-ui, sans-serif;   /* заголовки */
  --bg:           #F3F1EA;   /* фон страницы */
  --surface:      #FFFFFF;   /* карточки и панели */
  --text:         #122019;   /* основной текст */
  --muted:        #57635C;   /* второстепенный текст */
  --footer-bg:    #0F3B2E;   /* фон подвала */
  --font:         'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* ===== конец настроек ===== */

  --line:         rgba(15,23,42,.10);
  --line-2:       rgba(15,23,42,.18);
  --sh-1:         0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05);
  --sh-2:         0 2px 4px rgba(15,23,42,.05), 0 14px 34px rgba(15,23,42,.10);
  --sh-3:         0 4px 8px rgba(15,23,42,.06), 0 26px 60px rgba(15,23,42,.16);

  --r-lg:         22px;
  --r:            16px;
  --r-sm:         12px;

  --maxw:         1200px;
  --gutter:       28px;
  --header-h:     76px;      /* высота шапки: от неё отступ якорей */
  --widget-size:  56px;
  --dock-h:       0px;       /* высота нижней панели на телефоне, задаётся ниже */

  --ease:         cubic-bezier(.22,.8,.28,1);
}

/* ---------- основа ---------- */
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:clip; }
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img, svg{ max-width:100%; }
img{ display:block; height:auto; }
a{ color:var(--accent); }
h1, h2, h3{ margin:0; line-height:1.18; letter-spacing:-.02em; text-wrap:balance; }
p{ margin:0; }

.container{ width:min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline:auto; }

/* якорные переходы не прячут заголовок раздела под прибитой шапкой */
section[id]{ scroll-margin-top:calc(var(--header-h) + 16px); }

.skip{ position:absolute; left:-9999px; top:8px; z-index:200; padding:10px 16px; background:var(--surface); border-radius:var(--r-sm); }
.skip:focus{ left:8px; }

.eyebrow{ font-size:13px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; }
.section{ padding:96px 0; }
.section--alt{ background:var(--surface); }
.section__head{ max-width:720px; margin-bottom:44px; }
.section__title{ font-size:clamp(28px, 3.2vw, 40px); font-weight:800; }
.section__lead{ margin-top:14px; font-size:18px; color:var(--muted); }

/* ---------- кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 26px;
  font:inherit; font-size:16px; font-weight:700; line-height:1.2;
  border-radius:var(--r-sm); border:1px solid transparent;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn--primary{ color:var(--accent-ink); background:var(--accent); }
@supports (color:color-mix(in srgb, red 50%, blue)){ .btn--primary{ box-shadow:0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent); } }
.btn--primary:hover{ background:var(--accent-dk); }
.btn--ghost{ color:var(--text); background:var(--surface); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn--sm{ padding:12px 18px; font-size:15px; }
.btn--wide{ width:100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }
@supports (color:color-mix(in srgb, red 50%, blue)){ .btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:3px solid color-mix(in srgb, var(--accent) 45%, transparent); } }

/* ---------- появление при прокрутке ---------- */
/* без JS ничего не прячем — иначе при ошибке скрипта страница останется пустой.
   Прячем прозрачностью, а не display:none: поиск и скринридеры контент видят. */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in{ opacity:1; transform:none; }
.js .reveal.no-anim{ transition:none; }

/* ==========================================================================
   ПРЕЛОАДЕР — каркас: шторка, название, страховка 4 с, повторный заход коротко (.is-fast).
   Свой вид ДезКонтроля (щит замыкается вокруг жука) — в site.css, раздел «Заставка».
   ========================================================================== */
.preloader{
  position:fixed; inset:0; z-index:1000;
  display:grid; place-items:center;
  background:var(--footer-bg); color:#fff;
  /* страховка: уходит сам через 4 с, даже если скрипт не отработал */
  animation:preloaderFailsafe 0s linear 4s forwards;
}
.preloader.is-hidden{ transform:translateY(-100%); transition:transform .55s cubic-bezier(.76,0,.24,1); pointer-events:none; }
.preloader__in{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 24px; transition:transform .7s cubic-bezier(.76,0,.24,1), opacity .45s; }
.preloader.is-hidden .preloader__in{ transform:translateY(-50px); opacity:0; }
.preloader__name{ margin-top:18px; font-size:clamp(22px,3vw,30px); font-weight:800; line-height:1.15; letter-spacing:-.01em; opacity:0; transform:translateY(16px); animation:preloaderRise .6s cubic-bezier(.2,.8,.2,1) .35s forwards; }
.preloader__cap{ margin-top:8px; font-size:11px; font-weight:700; letter-spacing:.28em; text-transform:uppercase; white-space:nowrap; color:rgba(255,255,255,.55); opacity:0; animation:preloaderCap .8s ease .55s forwards; }
.preloader.is-fast .pl-shield, .preloader.is-fast .preloader__name, .preloader.is-fast .preloader__cap{ animation-duration:0s; animation-delay:0s; }
.preloader.is-fast.is-hidden{ transition-duration:.45s; }
@keyframes preloaderPop{ to{ opacity:1; transform:none; } }
@keyframes preloaderRise{ to{ opacity:1; transform:none; } }
@keyframes preloaderCap{ from{ letter-spacing:.5em; } to{ opacity:1; letter-spacing:.28em; } }
@keyframes preloaderFailsafe{ to{ opacity:0; visibility:hidden; pointer-events:none; } }
@media (max-width:600px){ .preloader__cap{ font-size:9.5px; letter-spacing:.18em; } }
@media (prefers-reduced-motion:reduce){ .preloader{ display:none; } }

/* Старые браузеры (Chromium до 111: Windows 7/8 с Chrome 109, многие китайские браузеры) не знают color-mix()
   и единиц dvh/svh. Запасное значение ПЕРЕД объявлением с var() не помогает: такое объявление браузер не
   отбрасывает, а при расчёте сбрасывает свойство (unset), и фон шапки становится прозрачным
   («Агент в Китае», 24.10.2026). Поэтому в правиле — сплошной цвет темы, а color-mix(var()) и dvh/svh с var()
   стоят в @supports сразу после своего правила. Проверка — в audit-site.py. */
/* ==========================================================================
   ШАПКА — прибита при прокрутке на всех ширинах, высота не меняется
   ========================================================================== */
.header{ position:sticky; top:0; z-index:50; }
.header__bar{
  position:relative; z-index:2;                 /* шапка остаётся светлой поверх затемнения меню */
  background:var(--bg);
  backdrop-filter:saturate(170%) blur(14px);
  -webkit-backdrop-filter:saturate(170%) blur(14px);
  border-bottom:1px solid transparent;
  transition:background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
@supports (color:color-mix(in srgb, red 50%, blue)){ .header__bar{ background:color-mix(in srgb, var(--bg) 86%, transparent); } }
.header.is-stuck .header__bar{
  background:var(--bg);
  border-bottom-color:var(--line);
  box-shadow:0 8px 30px rgba(15,23,42,.08);
}
@supports (color:color-mix(in srgb, red 50%, blue)){ .header.is-stuck .header__bar{ background:color-mix(in srgb, var(--bg) 95%, transparent); } }
.header__in{
  display:flex; align-items:center; gap:24px;
  height:var(--header-h);
}

.logo{ display:inline-flex; align-items:center; gap:11px; text-decoration:none; color:var(--text); flex:none; }
.logo__mark{ width:40px; height:40px; flex:none; }
.logo__word{ display:flex; flex-direction:column; line-height:1.1; }
.logo__word b{ font-size:18px; font-weight:800; letter-spacing:-.02em; }
.logo__word small{ font-size:12px; font-weight:600; color:var(--muted); }

.nav{ display:flex; gap:26px; margin-left:auto; }
.nav a{ color:var(--text); text-decoration:none; font-size:15.5px; font-weight:650; transition:color .2s ease; }
.nav a:hover{ color:var(--accent); }

.header__contacts{ display:flex; align-items:center; gap:18px; margin-left:auto; }
.nav + .header__contacts{ margin-left:0; }
.header__phone-box{ display:flex; flex-direction:column; align-items:flex-end; line-height:1.15; }
.header__phone{ font-size:17px; font-weight:800; color:var(--text); text-decoration:none; white-space:nowrap; letter-spacing:-.01em; }
.header__phone:hover{ color:var(--accent); }
.header__city{ font-size:12px; font-weight:600; color:var(--muted); margin-top:4px; white-space:nowrap; }

/* кнопка «Позвонить»: всегда рядом с гамбургером; где хватает места — с подписью */
.header__call{ display:none; }
.header__call:hover{ background:var(--accent-dk); }

/* --- гамбургер и мобильное меню --- */
.burger{
  display:none;
  width:44px; height:44px; flex:none;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  border:1px solid var(--line-2); border-radius:12px;
  background:var(--surface); cursor:pointer; padding:0;
}
.burger span{ display:block; width:20px; height:2px; border-radius:2px; background:var(--text); transition:transform .25s var(--ease), opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mnav{
  position:absolute; left:0; right:0; top:100%; z-index:1;
  max-height:calc(100vh - var(--header-h)); overflow-y:auto; overscroll-behavior:contain;
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:8px var(--gutter) 24px;
  box-shadow:0 24px 50px rgba(15,23,42,.18);
}
@supports (height:100dvh){ .mnav{ max-height:calc(100dvh - var(--header-h)); } }
/* под открытым меню страница затемняется; клик по затемнению закрывает меню и не нажимает ничего под ним */
.mnav-backdrop{ position:fixed; inset:0; z-index:45; background:rgba(8,15,30,.45); }
html.is-menu-open .dock{ z-index:40; }
.mnav__links{ display:flex; flex-direction:column; }
.mnav__links a{
  padding:14px 2px; font-size:17px; font-weight:700; color:var(--text); text-decoration:none;
  border-bottom:1px solid var(--line);
}
.mnav__links a:hover{ color:var(--accent); }
.mnav__contacts{ display:flex; flex-direction:column; gap:10px; padding-top:18px; }
.mnav__phone{ font-size:21px; font-weight:800; color:var(--text); text-decoration:none; }
.mnav__hours{ font-size:13px; color:var(--muted); margin-top:-6px; }
.mnav__msg{ display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 6px; }
.mnav__msg a{
  flex:1 1 120px; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:11px; border:1px solid var(--line-2); border-radius:12px;
  font-size:15px; font-weight:700; color:var(--text); text-decoration:none;
}
.mnav__msg img{ width:20px; height:20px; }

/* прокрутку при открытом меню блокируем на html, а не на body:
   body{overflow:hidden} ломает прибитую шапку — она уезжает вверх вместе с меню */
html.is-menu-open{ overflow:hidden; }
html.is-menu-open .back-to-top, html.is-menu-open .contact-widget{ opacity:0; visibility:hidden; pointer-events:none; }

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================================== */
.hero{ padding:64px 0 88px; }
.hero__grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.hero__title{ font-size:clamp(34px, 4.6vw, 58px); font-weight:800; letter-spacing:-.03em; }
.hero__lead{ margin-top:20px; font-size:19px; color:var(--muted); max-width:34em; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.hero__facts{ display:flex; flex-wrap:wrap; gap:28px; margin:40px 0 0; padding:0; list-style:none; }
.hero__facts b{ display:block; font-size:28px; font-weight:800; letter-spacing:-.02em; }
.hero__facts span{ font-size:14px; color:var(--muted); }
.hero__media img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--r-lg); box-shadow:var(--sh-3); }

/* ==========================================================================
   КАРТОЧКИ И ШАГИ
   ========================================================================== */
.cards{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.card{
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden; box-shadow:var(--sh-1);
  transition:box-shadow .25s ease, transform .25s var(--ease);
}
.section--alt .card{ background:var(--bg); }
.card:hover{ box-shadow:var(--sh-2); transform:translateY(-3px); }
.card__img{ width:100%; aspect-ratio:8/5; object-fit:cover; }
.card__body{ padding:22px 24px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.card__title{ font-size:20px; font-weight:800; }
.card__text{ color:var(--muted); font-size:15.5px; }
.card__price{ margin-top:auto; padding-top:8px; font-weight:800; color:var(--accent); }

.steps{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; margin:0; padding:0; list-style:none; counter-reset:step; }
.step{
  position:relative; padding:28px 26px 30px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  counter-increment:step;
}
.step::before{
  content:counter(step, decimal-leading-zero);
  display:block; margin-bottom:14px;
  font-size:14px; font-weight:800; letter-spacing:.12em; color:var(--accent);
}
.step__title{ font-size:19px; font-weight:800; }
.step__text{ margin-top:8px; color:var(--muted); font-size:15.5px; }

/* ==========================================================================
   ЗАЯВКА
   ========================================================================== */
.lead{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,480px); gap:56px; align-items:start; }
.lead__points{ margin:26px 0 0; padding:0; list-style:none; display:grid; gap:12px; }
.lead__points li{ position:relative; padding-left:30px; color:var(--muted); }
.lead__points li::before{
  content:''; position:absolute; left:0; top:.45em; width:18px; height:18px; border-radius:50%;
  background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.formbox{ padding:32px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-2); }
.formbox__title{ font-size:22px; font-weight:800; margin-bottom:18px; }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.field label{ font-size:14px; font-weight:700; }
.field .opt{ font-weight:500; color:var(--muted); }
.field input, .field textarea{
  width:100%; padding:14px 16px;
  font:inherit; font-size:16px; color:var(--text);
  background:var(--bg); border:1px solid var(--line-2); border-radius:var(--r-sm);
  transition:border-color .2s ease, background .2s ease;
}
.field textarea{ resize:vertical; min-height:92px; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent); background:var(--surface); }
.field.is-invalid input{ border-color:#D64545; background:#FFF6F6; }

/* ловушка для ботов: людям не видна, но в DOM есть */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

.consent{ display:flex; align-items:flex-start; gap:10px; margin:6px 0 18px; cursor:pointer; }
.consent__box{ flex:none; width:18px; height:18px; margin-top:2px; accent-color:var(--accent); cursor:pointer; }
.consent__text{ font-size:13px; line-height:1.5; color:var(--muted); }
.consent__text a{ color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.consent.is-invalid .consent__text{ color:#C23B3B; }
.consent.is-invalid .consent__box{ outline:2px solid #D64545; outline-offset:2px; border-radius:3px; }

.form-status{ margin-top:14px; font-size:14.5px; line-height:1.5; }
.form-status.is-error{ color:#C23B3B; }
.form-done{ text-align:center; padding:24px 8px; }
.form-done__icon{ width:56px; height:56px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); }
.form-done__title{ font-size:22px; font-weight:800; }
.form-done__text{ margin-top:8px; color:var(--muted); }

/* ==========================================================================
   КОНТАКТЫ И КАРТА ПО КЛИКУ
   ========================================================================== */
.contacts{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:40px; align-items:stretch; }
.contacts__list{ margin:28px 0 0; padding:0; list-style:none; display:grid; gap:18px; }
.contacts__list dt{ font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.contacts__list dd{ margin:4px 0 0; font-size:18px; font-weight:700; }
.contacts__list a{ color:var(--text); text-decoration:none; }
.contacts__list a:hover{ color:var(--accent); }
.map{
  position:relative; min-height:360px; border-radius:var(--r-lg); overflow:hidden;
  background:linear-gradient(135deg, var(--accent-soft), var(--surface));
  border:1px solid var(--line);
  display:grid; place-items:center; text-align:center;
}
.map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.map.is-loaded .map__cover{ display:none; }
.map__cover{ display:grid; gap:12px; justify-items:center; padding:24px; }
.map__addr{ font-weight:700; }

/* ==========================================================================
   ПОДВАЛ — четыре колонки, нижняя строка с реквизитами и сносками
   ========================================================================== */
.footer{
  background:var(--footer-bg);
  color:rgba(255,255,255,.62);
  padding:64px 0 28px;
  font-size:14.5px;
  line-height:1.6;
}
.footer__grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1.2fr 1.3fr;   /* бренд · разделы · связаться · документы */
  gap:40px;
  margin-bottom:40px;
}
.logo--footer{ color:#fff; }
.logo--footer .logo__word small{ color:rgba(255,255,255,.6); }
.footer__tagline{ margin-top:14px; max-width:30ch; color:rgba(255,255,255,.7); line-height:1.55; }
.footer__heading{
  margin:0 0 16px;
  font-size:11.5px; font-weight:800;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent-lt);                       /* мелкие, прописными, с разрядкой, в акцентном цвете */
}
.footer__links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer__links a{ color:rgba(255,255,255,.78); text-decoration:none; transition:color .2s ease; }
.footer__links a:hover{ color:var(--accent-lt); }
.footer__phone{ font-weight:800; font-size:16px; color:#fff !important; }
.footer__hours{ color:rgba(255,255,255,.55); font-size:13.5px; margin-top:-6px; }
.footer__social-link{ display:inline-flex; align-items:center; gap:9px; }
.footer__social-icon{ flex:none; display:block; width:20px; height:20px; }
.footer__social-icon--max{ border-radius:5px; object-fit:cover; }
.footer__address{ font-style:normal; line-height:1.5; }

.footer__bottom{ padding-top:22px; border-top:1px solid rgba(255,255,255,.12); }
/* реквизиты слева, сноски справа; не помещаются рядом — сноски сами уходят на строку ниже. В сетке minmax(0,1fr) auto сноски забирали всю
   свою ширину, а реквизиты сжимались в узкий столбик и длинный номер налезал на ссылки («Антиквариат», 1001–1300 px, 23.10.2026) */
.footer__bottom-inner{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 40px; }
@media (min-width:901px){ .footer__bottom-inner{ padding-right:84px; } }   /* круглая кнопка связи не закрывает сноску */
.footer__copy{ font-size:12.5px; color:rgba(255,255,255,.48); line-height:1.55; }
.footer__copy p + p{ margin-top:2px; }
.footer__copy, .footer__meta{ min-width:0; }

/* сноски справа: политика | разработчик. Мелкий текст, не кнопка */
.footer__meta-links{ display:flex; flex-wrap:wrap; align-items:center; list-style:none; margin:0; padding:0; }
.footer__meta-links li{ display:inline-flex; align-items:center; }
.footer__meta-links li + li::before{
  content:''; display:block; width:1px; height:13px; margin-inline:14px;
  background:rgba(255,255,255,.22);
}
.footer__meta-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; line-height:1.45;
  color:rgba(255,255,255,.55);
  text-decoration:none; background:none; border:0;
  transition:color .2s ease;
}
.footer__meta-link:hover{ color:#fff; }
.footer__meta-icon{ flex:none; width:15px; height:15px; color:currentColor; }   /* штриховой значок в цвет текста */
.footer__meta-link--tg:hover{ color:var(--accent-lt); }

/* ==========================================================================
   НИЖНЯЯ ПАНЕЛЬ НА ТЕЛЕФОНЕ: «Позвонить» и целевое действие
   ========================================================================== */
.dock{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:var(--surface);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  box-shadow:0 -6px 24px rgba(15,23,42,.08);
}
@supports (color:color-mix(in srgb, red 50%, blue)){ .dock{ background:color-mix(in srgb, var(--surface) 92%, transparent); } }
.dock__call, .dock__cta{
  flex:1;
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:15px; font-weight:700;
  padding:14px 10px;
  border-radius:var(--r-sm);
  text-decoration:none; border:0; cursor:pointer;
}
.dock__call{ color:var(--text); background:var(--accent-soft); flex:0 0 42%; }
.dock__call svg{ width:17px; height:17px; }
.dock__cta{ color:var(--accent-ink); background:var(--accent); }
/* панель выезжает, когда первый экран остался позади; пока он виден, у него свои кнопки (правило Дмитрия 17.10.2026, пункт 9.6).
   Без скриптов панель видна всегда: прячет её только main.js (initDock) */
.js .dock{ transition:transform .32s var(--ease), visibility 0s linear .32s; }
.js .dock:not(.is-on){ transform:translateY(110%); visibility:hidden; pointer-events:none; }
.js .dock.is-on{ transition:transform .32s var(--ease), visibility 0s; }

/* ==========================================================================
   ВИДЖЕТ СВЯЗИ И СТРЕЛКА НАВЕРХ
   ========================================================================== */
.contact-widget{
  position:fixed; right:22px; bottom:22px; z-index:90;
  display:flex; flex-direction:column; align-items:flex-end;
  transition:opacity .2s ease, visibility .2s ease;
}
.contact-widget__toggle{
  width:var(--widget-size); height:var(--widget-size);
  border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center;
  color:var(--accent-ink);
  background:var(--accent);
  transition:box-shadow .2s ease, background .2s ease;
}
@supports (color:color-mix(in srgb, red 50%, blue)){ .contact-widget__toggle{ box-shadow:0 12px 30px color-mix(in srgb, var(--accent) 42%, transparent); } }
.contact-widget__toggle:hover{ background:var(--accent-dk); }
@supports (color:color-mix(in srgb, red 50%, blue)){ .contact-widget__toggle:hover{ box-shadow:0 14px 38px color-mix(in srgb, var(--accent) 55%, transparent); } }
.contact-widget__icon{ width:24px; height:24px; }
.contact-widget__toggle[aria-expanded="true"]  .contact-widget__icon--open { display:none; }
.contact-widget__toggle[aria-expanded="false"] .contact-widget__icon--close{ display:none; }

.contact-widget__panel{
  position:absolute; right:0; bottom:calc(100% + 12px);
  display:flex; flex-direction:column; gap:8px;
  min-width:230px;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(10px) scale(.96); transform-origin:bottom right;
  transition:opacity .22s ease, transform .22s var(--ease), visibility .22s ease;
}
/* невидимая подложка: клик мимо открытой панели только закрывает её, ссылку под ним не открывает */
.contact-widget.is-open::before{ content:""; position:fixed; inset:0; z-index:-1; }
.contact-widget.is-open .contact-widget__panel{ opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.contact-widget__action{
  display:flex; align-items:center; gap:11px;
  min-height:46px; padding:11px 16px;
  font:inherit; font-size:14.5px; font-weight:700; text-align:left; white-space:nowrap;
  color:var(--text); text-decoration:none;
  background:var(--surface);
  border:1px solid var(--line); border-left:3px solid var(--accent);
  border-radius:var(--r-sm);
  box-shadow:var(--sh-2);
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.contact-widget__action:hover{ background:var(--accent-soft); color:var(--accent-dk); }
.contact-widget__action svg{ flex:none; color:var(--accent); }
.contact-widget__action img{ flex:none; display:block; width:22px; height:22px; }
.contact-widget__action img[src$=".webp"]{ border-radius:5px; object-fit:cover; }
.contact-widget__action--lead{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.contact-widget__action--lead svg{ color:var(--accent-ink); }
.contact-widget__action--lead:hover{ background:var(--accent-dk); color:var(--accent-ink); border-color:var(--accent-dk); }

/* плашка cookie (создаётся из js/main.js, если задан metrikaId) */
.cookie-note{ position:fixed; z-index:96; left:22px; bottom:22px; max-width:600px; display:flex; align-items:center; gap:16px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--sh-2); font-size:14px; line-height:1.45; color:var(--muted); }
.cookie-note p{ margin:0; }
.cookie-note a{ text-decoration:underline; }
.cookie-note__act{ display:flex; gap:8px; flex:none; }
@media (max-width:900px){ .cookie-note{ left:12px; right:12px; max-width:none; bottom:calc(var(--dock-h) + 12px); flex-wrap:wrap; } }
@media print{ .cookie-note{ display:none !important; } }

.back-to-top{
  position:fixed; z-index:95;
  right:calc(22px + (var(--widget-size) - 46px) / 2);
  bottom:calc(22px + var(--widget-size) + 14px);       /* строго над кнопкой виджета */
  width:46px; height:46px; padding:0;
  display:grid; place-items:center;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--line-2); border-radius:var(--r-sm);
  box-shadow:var(--sh-2);
  cursor:pointer;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease, color .2s ease, border-color .2s ease;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; pointer-events:auto; }
.is-widget-open .back-to-top{ opacity:0; visibility:hidden; pointer-events:none; }   /* панель перекрыла бы стрелку */
.back-to-top:hover{ color:var(--accent); border-color:var(--accent); }

/* ==========================================================================
   ОКНО ЗАЯВКИ — кнопки открывают форму поверх страницы, а не прокручивают к ней
   ========================================================================== */
html.is-modal-open{ overflow:hidden; }
.lead-modal{
  width:min(520px, calc(100% - 32px)); max-width:none; max-height:calc(100vh - 40px); max-height:calc(100svh - 40px);
  margin:auto; padding:0; border:0; border-radius:var(--r-lg);
  color:var(--text); background:var(--surface); box-shadow:var(--sh-2);
  overflow:auto; overscroll-behavior:contain;
}
.lead-modal::backdrop{ background:rgba(10,14,20,.6); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.lead-modal[open]{ animation:leadModalIn .3s var(--ease); }
@keyframes leadModalIn{ from{ opacity:0; transform:translateY(16px); } }
.lead-modal__box{ position:relative; padding:32px; }
.lead-modal__close{
  position:absolute; top:12px; right:12px; width:44px; height:44px; padding:0;
  display:grid; place-items:center; color:var(--muted); background:none;
  border:0; border-radius:50%; cursor:pointer; transition:color .2s ease, background .2s ease;
}
.lead-modal__close:hover{ color:var(--text); background:var(--accent-soft); }
.lead-modal__title{ padding-right:44px; font-size:24px; font-weight:800; line-height:1.2; }
.lead-modal__text{ margin:8px 0 20px; color:var(--muted); }
@media (max-width:600px){
  .lead-modal{ width:100%; height:100%; max-height:none; margin:0; border-radius:0; }
  .lead-modal__box{ min-height:100%; padding:24px 20px 32px; }
}
@media (prefers-reduced-motion:reduce){ .lead-modal[open]{ animation:none; } }

/* ==========================================================================
   СТРАНИЦА 404
   ========================================================================== */
.page-404{ min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:40px var(--gutter); text-align:center; }
.page-404__code{ font-size:clamp(84px, 16vw, 150px); font-weight:800; line-height:1; letter-spacing:-.05em; color:var(--accent); }
.page-404__title{ margin-top:12px; font-size:clamp(24px, 3vw, 32px); font-weight:800; }
.page-404__text{ margin:14px auto 0; max-width:30em; color:var(--muted); }
.page-404__cta{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:28px; }
.page-404 .logo{ margin-bottom:36px; }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width:1100px){
  .nav{ gap:20px; }
  .nav a{ font-size:15px; }
  .header__cta{ display:none; }
}

/* меню разделов уже не помещается — гамбургер */
@media (max-width:960px){
  .nav{ display:none; }
  .burger{ display:flex; }
  .header__call{ display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:none; height:44px; padding:0 14px; border-radius:12px; background:var(--accent); color:var(--accent-ink); font-size:14.5px; font-weight:700; text-decoration:none; white-space:nowrap; transition:background .2s ease; }
  .header__contacts, .nav + .header__contacts{ gap:12px; margin-left:auto; }   /* меню скрыто — контакты и бургер к правому краю */
  .hero__grid, .lead, .contacts{ grid-template-columns:1fr; gap:36px; }
  .cards, .steps{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .footer__grid{ grid-template-columns:1fr 1fr; gap:36px 32px; }   /* планшет: колонки в два ряда */
}
@media (min-width:961px){
  .mnav{ display:none !important; }
}

@media (max-width:900px){
  :root{ --gutter:20px; --header-h:66px; --dock-h:calc(66px + env(safe-area-inset-bottom)); }
  .dock{ display:flex; }
  /* на телефоне есть нижняя панель: виджет скрыт, стрелка поднята над панелью */
  .has-dock .contact-widget{ display:none; }
  .has-dock .back-to-top{ right:16px; bottom:calc(var(--dock-h) + 14px); transition:opacity .22s ease, visibility .22s ease, color .2s ease, border-color .2s ease, bottom .32s var(--ease); }
  .js:not(.is-dock-on) .has-dock .back-to-top{ bottom:16px; }   /* пока панель спрятана (виден первый экран), стрелка у нижнего края */
  .contact-widget{ right:16px; bottom:16px; }
  body:not(.has-dock) .back-to-top{ right:calc(16px + (var(--widget-size) - 46px) / 2); bottom:calc(16px + var(--widget-size) + 12px); }
  .has-dock .footer{ padding-bottom:calc(28px + var(--dock-h)); }   /* подвал не уходит под панель */
  .section{ padding:64px 0; }
  .hero{ padding:36px 0 56px; }
  .logo__mark{ width:36px; height:36px; }
  .footer__bottom-inner{ flex-direction:column; align-items:flex-start; }
}

@media (max-width:600px){
  body{ font-size:16px; }
  .header__call{ width:44px; padding:0; }
  .header__call span{ display:none; }
  .cards, .steps{ grid-template-columns:1fr; }
  .hero__cta .btn{ width:100%; }
  .formbox{ padding:24px 20px; }
  .footer__grid{ grid-template-columns:1fr; gap:30px; }           /* телефон: одна колонка */
  /* сноски встают друг под друга, разделитель убираем */
  .footer__meta-links{ flex-direction:column; align-items:flex-start; gap:8px; }
  .footer__meta-links li + li::before{ display:none; }
}

/* узкие телефоны: номер, город и гамбургер должны уместиться в строку */
@media (max-width:480px){
  :root{ --gutter:16px; }
  .header .logo__word{ display:none; }
  .header__phone{ font-size:15.5px; }
  .header__city{ font-size:11px; }
  .burger{ width:42px; height:42px; }
  .header__call{ width:42px; height:42px; }
}
@media (max-width:359px){
  .header__phone{ font-size:14px; }
  .header__city{ display:none; }
}

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

/* печать: без шапки, виджетов и прелоадера */
@media print{
  .preloader,.header,.burger,.mnav,.mnav-backdrop,.contact-widget,.back-to-top,.dock,.toast,.cookie-note,.lead-modal{display:none !important}
  body{background:#fff !important;color:#000 !important}
  a{color:inherit;text-decoration:underline}
}
