/* POSHE — дизайн-система по Odin's Crow (odins-crow.com).
   Палитра снята пипеткой с оригинала, изинг и радиусы — из его темы.
   Шрифт Plain (Optimo) платный и без кириллицы → Golos Text. */

:root {
  --paper: #f1ede8;      /* фон */
  --ink: #2b2b2b;        /* основной чёрный */
  --ink-deep: #272421;   /* тёплый чёрный (текст на панелях) */
  --taupe: #cdc0b1;
  --sand: #e5d5c3;
  --grey: #c9c8c9;
  --sage: #82887c;
  --warmgrey: #afa7a2;
  --peach: #fbd4b7;
  --hair: rgba(43, 43, 43, .35);   /* тонкая линейка */
  --hair-soft: rgba(43, 43, 43, .18);
  --ease: cubic-bezier(.4, 0, 0, 1);
  --ios: cubic-bezier(.32, .72, 0, 1);     /* плавный iOS-spring */
  --pop: cubic-bezier(.34, 1.45, .5, 1);   /* pop с лёгким overshoot (открытие папки iOS) */
  --pad: clamp(8px, 1vw, 16px);    /* поля страницы — у оригинала узкие */
}

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

html {
  scroll-behavior: smooth;   /* для якорей; колесо ведёт SmoothScroll.js */
  overflow-y: scroll;        /* желоб скроллбара всегда: ширина страницы
                                не прыгает между прелоадером и страницей */
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  position: relative;   /* контейнер для зерна-бумаги */
  font-family: 'Golos Text', system-ui, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ---------- мелкий служебный текст ---------- */
.meta, .card-tag, .work-meta, .hero-meta, .foot-small,
.step-mark, .sect-intro {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ================= ПРЕЛОАДЕР ================= */
/* Линии rule-stack хиро рисуются слева направо ровно на своих местах
   (координаты клонов считает JS), Poshe улетает в лого. Без слайдов. */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
}
.preloader.gone { display: none; }
.pl-line {
  position: absolute;
  z-index: 1;               /* линии — под словом Poshe */
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.pl-line.draw {
  transition: transform .7s var(--ease);
  transition-delay: var(--ld, 0s);
  transform: scaleX(1);
}
.pre-title {
  position: absolute;
  z-index: 2;               /* слово поверх рисующихся линий */
  left: var(--pad); bottom: var(--pad);
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1;
  transform-origin: left top;
}
.pre-title .ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .012em; }
.pre-title .ch-in {
  display: inline-block;
  transform: translateY(110%);
}
.preloader.go .ch-in {
  transition: transform .9s var(--ease);
  transition-delay: var(--chd, 0s);
  transform: translateY(0);
}

/* ================= ЗЕРНО (паттерн поверх всего) ================= */
.grain {
  position: absolute;   /* едет вместе со страницей — эффект бумаги */
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: auto;
  background-repeat: repeat;
  opacity: .09;
}

/* плавное появление видимых элементов хиро после прелоадера */
.js .header, .js .hero-meta, .js .bar-cta {
  opacity: 0;
  transition: opacity .8s var(--ease);
}
body.ready .header, body.ready .hero-meta, body.ready .bar-cta { opacity: 1; }

/* ================= ШАПКА ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: transparent;
  transition: transform 1.65s var(--ease), color .6s var(--ease);   /* появление в 3 раза плавнее */
}
.header.hide { transform: translateY(-110%); transition: transform .45s var(--ease); }  /* прятать — быстро */
/* вуаль при остановке: мягкий размытый градиент + фрост, выделяет шапку на контенте */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100% + 96px);
  background: linear-gradient(180deg,
    rgba(39, 36, 33, .28) 0%,
    rgba(39, 36, 33, .20) 28%,
    rgba(39, 36, 33, .09) 62%,
    rgba(39, 36, 33, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: 0;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: opacity 1.65s var(--ease), backdrop-filter .9s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.header.stopped::before { opacity: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.header--solid { background: var(--paper); }   /* подстраницы без JS-логики */

/* адаптивный цвет: на тёмном фоне — светлый текст (ставит JS) */
.header.on-dark { color: var(--paper); }
.header.on-dark .logo,
.header.on-dark .nav-mid a,
.header.on-dark .nav-touch,
.header.on-dark .region-switch summary { color: var(--paper); }
.header.on-dark .burger span { background: var(--paper); }
.logo { font-weight: 900; font-size: 17px; letter-spacing: -.02em; }
.logo sup { font-size: 9px; font-weight: 700; }
.nav-mid { display: flex; gap: 18px; }
.nav-mid a, .nav-touch {
  font-size: 12px; font-weight: 600;
}
.nav-mid a:hover { opacity: .55; }
.nav-touch { text-decoration: underline; text-underline-offset: 3px; }
.nav-touch:hover { opacity: .55; }
.env { font-size: .9em; }   /* иконки соразмерны тексту, в котором стоят */

/* ——— бургер + мобильное меню ——— */
.burger {
  display: none;
  width: 28px; height: 20px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative; z-index: 60;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 1px; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 17px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* размытый фон под меню */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 47;
  background: rgba(39, 36, 33, .22);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.menu-backdrop.open {
  opacity: 1; visibility: visible;
  transition: opacity .55s var(--ease), visibility 0s;
}

/* выезжающая справа панель меню */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 49;
  height: 100%; width: min(84vw, 360px);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 92px 30px 40px;
  box-shadow: -24px 0 60px rgba(39, 36, 33, .20);
  transform: translateX(100%); visibility: hidden;
  transition: transform .55s var(--ios), visibility 0s linear .55s;
}
.mobile-menu.open {
  transform: translateX(0); visibility: visible;
  transition: transform .55s var(--ios), visibility 0s;
}
.mobile-menu a {
  font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: -.02em;
  padding: 13px 2px; border-bottom: 1px solid var(--hair-soft);
  transition: opacity .25s var(--ease);
}
.mobile-menu a:hover { opacity: .55; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mm-cta {
  margin-top: 18px; border-bottom: 0;
  background: var(--ink); color: var(--paper);
  border-radius: 4px; text-align: center;
  font-size: clamp(17px, 4.8vw, 21px); padding: 17px 20px;
}
.mobile-menu .mm-cta:hover { opacity: .9; }
body.menu-open { overflow: hidden; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) var(--pad);
}

/* фон хиро: видео-чертёж на весь экран, контент поверх.
   contain: фон видео = крем сайта, границы сливаются — план целиком виден */
.hero-title {
  font-size: clamp(34px, 6.9vw, 132px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .98;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.js .hero-title .line {
  clip-path: inset(0 0 100% 0);
  animation: line-up 1s var(--ease) forwards;
  animation-delay: calc(2.25s + var(--ld, 0s));
}
.js .hero-title .line:nth-child(2) { --ld: .12s; }
@keyframes line-up { to { clip-path: inset(0 0 -10% 0); } }

.hero-meta {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 3px 0;
  margin-top: clamp(14px, 2vw, 28px);
}
.rule-stack { display: grid; gap: 4px; margin-top: 8px; }
.rule-stack span { display: block; background: var(--ink); }
.rule-stack span:nth-child(1) { height: 2px; }
.rule-stack span:nth-child(2) { height: 3px; }
.rule-stack span:nth-child(3) { height: 5px; }
.rule-stack span:nth-child(4) { height: 8px; }

.bar-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 21px);
  padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.6vw, 26px);
  margin-top: 8px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.bar-cta:hover { background: var(--peach); color: var(--ink); }
.bar-cta .arr { font-size: 1.25em; line-height: 1; }

/* ================= СЕКЦИИ ================= */
.sect {
  padding: 0 var(--pad);
  margin-top: clamp(96px, 13vw, 210px);
}
.sect-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: baseline;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 10px;
}
.sect-head h2, .sect-num {
  font-size: clamp(26px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.sect-intro {
  margin-left: 66.6%;
  max-width: 320px;
  padding-top: 18px;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.55;
}

/* ================= ПРОЕКТЫ ================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: clamp(20px, 3vw, 48px);
}
.work-card {
  position: relative;
  background: var(--tone, var(--taupe));
  color: var(--ink-deep);
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 4 / 4.4;
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.work-card--dark { color: var(--paper); }
/* hover: карточка сжимается, темнеет, поверх — подробности */
.work-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: var(--ink-deep);
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.work-card:hover { transform: scale(.965); }
.work-card:hover::after { opacity: .6; }
.card-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(18px, 2.5vw, 44px);
  color: var(--paper);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.work-card:hover .card-info { opacity: 1; transform: none; }
.work-num {
  font-size: clamp(48px, 6vw, 110px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .9;
}
.card-tag { position: absolute; top: 16px; right: 16px; opacity: .65; }
.card-cap { display: grid; gap: 3px; }
.work-name { font-weight: 700; font-size: clamp(15px, 1.3vw, 20px); letter-spacing: -.01em; }
.work-meta { opacity: .65; }

/* ================= ПРОЦЕСС: линейки ================= */
.steps { margin-top: clamp(20px, 3vw, 48px); display: grid; gap: clamp(28px, 3.5vw, 56px); }
.step {
  --lh: 24px;
  margin-left: 33.3%;
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr;
  gap: 0 18px;
  font-size: 13px;
  line-height: var(--lh);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--lh) - 1px),
    var(--hair) calc(var(--lh) - 1px),
    var(--hair) var(--lh)
  );
  border-top: 1px solid var(--ink);
}
.step-mark { font-size: 11px; line-height: var(--lh); }
.step-name { font-weight: 700; }
.step-name em {
  display: block;
  font-weight: 500; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  opacity: .6;
}
.step-desc { padding-bottom: var(--lh); }

/* ================= ЦЕНЫ: панели ================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: clamp(20px, 3vw, 48px);
}
.stat-card {
  background: var(--tone, var(--grey));
  color: var(--ink-deep);
  min-height: clamp(360px, 38vw, 560px);
  padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-mid {
  text-align: center;
  display: grid; gap: 18px; justify-items: center;
  padding: 0 8px;
  margin: auto 0;   /* вертикальный центр карточки */
}
.stat-cond {
  font-size: clamp(17px, 1.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  max-width: 460px;
}
/* второй уровень — главное, что продаём: размер заголовка секции */
.stat-val {
  position: relative;
  font-size: clamp(26px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.12;
  max-width: 560px;
}
.ring-wrap { position: relative; white-space: nowrap; }
.stat-sub {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.65;
  max-width: 380px;
  opacity: .9;
}
.stat-foot { font-size: 12px; opacity: .6; }
/* овал «от руки» вокруг «под ключ»: рисуется штрихом, как ручкой.
   Запас по ширине и высоте — обводит слово целиком, не врезаясь */
.ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 200%;
  transform: translate(-50%, -50%) rotate(-2deg);
  fill: none;
  stroke: var(--ink-deep);
  stroke-width: 2.2;
  stroke-linecap: round;
  overflow: visible;
  pointer-events: none;
}
.ring path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ring.draw path {
  transition: stroke-dashoffset 1.05s cubic-bezier(.5, .05, .35, 1);
  stroke-dashoffset: 0;
}

/* --- пошаговый горизонтальный скролл: full → 1/2 → 1/3 (JS) --- */
@media (min-width: 861px) {
  .js .stat-grid {
    display: flex;
    gap: 10px;
    overflow: hidden;
    height: var(--gridh, auto);   /* «в пол» — высоту считает JS */
  }
  .js .stat-card {
    flex: 0 0 var(--cardw, calc((100% - 20px) / 3));
    min-width: 0;
    min-height: 0;
    height: 100%;
  }
}

.price-note-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
  padding: 14px 0 10px;
  font-size: 13px;
}
.note-calc {
  font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.note-calc:hover { opacity: .55; }

/* ================= ЗАЯВКА ================= */
.form {
  margin-left: 33.3%;
  margin-top: clamp(20px, 3vw, 44px);
  max-width: 640px;
  display: grid; gap: 30px;
}
.field label {
  display: block;
  font-size: 12px; font-weight: 600;
  margin-bottom: 2px;
}
.field input {
  width: 100%;
  font: inherit; font-size: 15px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 0 10px;
  color: var(--ink);
  outline: none;
}
.field input::placeholder { color: var(--warmgrey); }
.field input:focus { border-bottom-width: 2px; }
.cta-submit {
  font-family: inherit;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 700; letter-spacing: -.02em;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  padding: 0;
  transition: opacity .3s var(--ease);
}
.cta-submit:hover { opacity: .55; }
.form-done { display: grid; gap: 14px; }
.form-done[hidden] { display: none; }
.done-bar--fail { background: #cd5c5c; }   /* error-цвет из палитры Odin's Crow */
.cta-submit:disabled { opacity: .45; cursor: wait; }
/* honeypot: видим только ботам */
.hp { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }
.done-bar {
  background: var(--ink); color: var(--paper);
  font-weight: 700; padding: 14px 18px;
}
.tg-link {
  font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.tg-link:hover { opacity: .55; }

/* ================= ПОДВАЛ (типовой, чёрный) ================= */
.footer {
  margin-top: clamp(96px, 13vw, 210px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 5vw, 72px) var(--pad) clamp(80px, 9vw, 120px); /* низ — запас под док */
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.foot-logo { font-size: clamp(28px, 3vw, 44px); font-weight: 900; letter-spacing: -.015em; }
.foot-logo sup { font-size: .35em; font-weight: 700; }
.foot-tag { font-size: 13px; opacity: .65; margin-top: 10px; max-width: 240px; line-height: 1.5; }
.foot-h {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  opacity: .45;
  margin-bottom: 14px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col a { font-size: 14px; line-height: 1.4; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-plain { font-size: 13px; opacity: .65; }
.foot-bottom {
  border-top: 1px solid rgba(241, 237, 232, .2);
  padding-top: 16px;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 11px;
  opacity: .55;
}

/* ================= COOKIE-УВЕДОМЛЕНИЕ ================= */
.cookiebar {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  width: min(380px, calc(100vw - 28px));
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(39, 36, 33, .3);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; line-height: 1.5;
}
.cookiebar[hidden] { display: none; }
.cookiebar a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-ok {
  align-self: flex-start;
  font: inherit; font-weight: 600;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px;
  padding: 8px 20px;
  cursor: pointer;
}
.cookie-ok:hover { background: var(--ink-deep); }

/* ================= СОГЛАСИЕ В ФОРМЕ ================= */
.agree {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.55;
  cursor: pointer;
}
.agree input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
}
.agree a { text-decoration: underline; text-underline-offset: 2px; }
.agree a:hover { opacity: .6; }

/* ================= СТРАНИЦЫ ДОКУМЕНТОВ ================= */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 110px var(--pad) 90px;
}
.legal h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -.015em; line-height: 1.1;
  margin-bottom: 10px;
}
.legal .upd { font-size: 12px; opacity: .55; margin-bottom: 36px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .ph { background: var(--sand); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }

/* ================= БЛОГ / СТАТЬИ ================= */
.crumbs { font-size: 12px; opacity: .6; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .5; margin: 0 2px; }

.article h1 { margin-bottom: 8px; }
.article .art-meta { font-size: 12px; opacity: .55; margin-bottom: 34px; letter-spacing: .02em; }
.article h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { font-size: 15px; }
.article h2 { font-size: 21px; margin-top: 40px; }
.article blockquote {
  border-left: 3px solid var(--sand);
  padding: 4px 0 4px 18px; margin: 20px 0;
}
.article blockquote p { font-style: italic; opacity: .85; margin: 0; }

.art-hero { margin: 0 0 34px; }
.art-hero img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair-soft); border-radius: 4px;
  background: #fff;
}
.art-hero figcaption { font-size: 12px; opacity: .55; margin-top: 8px; }

.art-fig { margin: 30px 0; }
.art-fig img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair-soft); border-radius: 4px;
  background: #fff;
}
.art-fig figcaption { font-size: 12px; opacity: .55; margin-top: 8px; }

.art-cta {
  margin: 48px 0 8px; padding: 26px 28px;
  background: var(--ink); color: var(--paper); border-radius: 4px;
}
.art-cta-h { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.art-cta p { font-size: 14px; line-height: 1.6; opacity: .9; margin: 0 0 16px; }
.art-cta-btn {
  display: inline-block; background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 3px;
  text-decoration: none;
}
.art-cta-btn:hover { opacity: .9; }
.art-back { margin-top: 28px; font-size: 14px; }

/* листинг статей на articles.html */
.art-list { list-style: none; padding: 0; margin: 28px 0 36px; }
.art-item { padding: 20px 0; border-top: 1px solid var(--hair-soft); }
.art-item:last-child { border-bottom: 1px solid var(--hair-soft); }
.art-item-link {
  display: inline-block; font-size: 18px; font-weight: 700;
  line-height: 1.3; text-decoration: none; letter-spacing: -.01em;
}
.art-item-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-item-desc { font-size: 14px; line-height: 1.55; opacity: .75; margin: 6px 0 8px; }
.art-item-meta { font-size: 12px; opacity: .5; }
.art-list-cta { font-size: 14px; opacity: .8; }

/* ================= ДОК (кнопка-звонок + поповер) ================= */
.dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end;
}
.js .dock {
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .dock.show { opacity: 1; pointer-events: auto; transform: none; }

.dock-fab {
  position: relative; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(39, 36, 33, .32);
  transition: background .3s var(--ease);
}
.dock-fab:hover { background: var(--ink-deep); }
.dock-fab svg { width: 24px; height: 24px; position: absolute; transition: opacity .3s var(--ease), transform .45s var(--pop); }
.dock-fab .dock-fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.dock.open .dock-fab .dock-fab-call { opacity: 0; transform: rotate(90deg) scale(.5); }
.dock.open .dock-fab .dock-fab-close { opacity: 1; transform: none; }

.dock-pop {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 250px; background: var(--paper);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 18px 50px rgba(39, 36, 33, .28);
  display: flex; flex-direction: column; gap: 2px;
  transform-origin: bottom right;
  transform: scale(.8) translateY(10px); opacity: 0; visibility: hidden;
  transition: transform .42s var(--pop), opacity .26s var(--ease), visibility 0s linear .42s;
}
.dock.open .dock-pop {
  transform: scale(1) translateY(0); opacity: 1; visibility: visible;
  transition: transform .42s var(--pop), opacity .26s var(--ease), visibility 0s;
}
.dock-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none;
  width: 100%; transition: background .2s var(--ease);
}
.dock-item:hover { background: var(--sand); }
.dock-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.dock-item--accent { background: var(--ink); color: var(--paper); margin-top: 4px; }
.dock-item--accent:hover { background: var(--ink-deep); }

.dock-backdrop {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(39, 36, 33, .18);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .42s var(--ease), visibility 0s linear .42s;
}
.dock-backdrop.open { opacity: 1; visibility: visible; transition: opacity .42s var(--ease), visibility 0s; }

/* ================= МОДАЛКА ================= */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(39, 36, 33, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.modal-box {
  background: var(--paper);
  border-radius: 16px;
  width: min(440px, 100%);
  padding: 24px;
  transform: scale(.86); opacity: .4;
  transition: transform .45s var(--pop), opacity .3s var(--ease);
}
.modal.open .modal-box { transform: scale(1); opacity: 1; }
.modal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.modal-h { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.modal-close {
  font: inherit; font-size: 12px; font-weight: 600;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.modal-close:hover { opacity: .55; }
.box-field label { display: block; margin-bottom: 6px; }
.box-field input {
  width: 100%;
  font: inherit; font-size: 16px;
  background: #fff;
  border: 1px solid var(--warmgrey);
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
}
.box-field input:focus { border-color: var(--ink); }
.calc-out { display: grid; gap: 10px; margin: 20px 0; }
.calc-line {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--hair-soft);
  padding-bottom: 8px;
}
.calc-val { font-weight: 700; }
.calc-note { font-size: 12px; opacity: .65; line-height: 1.5; }

/* ================= ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ================= */
.js .sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .sr.in { opacity: 1; transform: none; }

/* ================= АДАПТИВ ================= */
@media (max-width: 860px) {
  .work-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .sect-intro, .form, .step { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-mid { display: none; }
  .burger { display: block; }
  .header-right .nav-touch { display: none; }   /* контакт переехал в бургер-меню */
  .hero-title { font-size: clamp(30px, 10.5vw, 64px); }
  .work-grid, .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 300px; }
  .step { grid-template-columns: 44px 1fr; }
  .step-desc { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .dock-label { display: none; }
  .dock-btn { padding: 12px 14px; }
}

/* ================= ДОСТУПНОСТЬ ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .js .hero-title .line { clip-path: none; animation: none; }
  .js .sr { opacity: 1; transform: none; transition: none; }
  .js .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; }
  .js .stat-card { height: auto; }
  .ring path { stroke-dashoffset: 0; }
  .js .header, .js .hero-meta, .js .bar-cta { opacity: 1; transition: none; }
}

/* ================= ПЕРЕКЛЮЧАТЕЛЬ РЕГИОНОВ + ГЕО-БАННЕР =================
   (мультирегиональность; добавлено отдельным блоком, существующее не менялось) */
.header-right { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }

.region-switch { position: relative; font-size: 12px; font-weight: 600; }
.region-switch summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.region-switch summary::-webkit-details-marker { display: none; }
.region-switch summary:hover { opacity: .55; }
.region-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 180px;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 40px rgba(39, 36, 33, .20);
  transform-origin: top right;
}
.region-switch[open] .region-menu { animation: region-pop .4s var(--pop); }
@keyframes region-pop {
  from { opacity: 0; transform: scale(.85) translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.region-menu a {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  transition: background .2s var(--ease);
}
.region-menu a:hover { background: var(--sand); }
.region-menu a[aria-current="true"] { font-weight: 700; }

.geo-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 70;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  max-width: min(560px, calc(100vw - 28px));
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 12px 40px rgba(39, 36, 33, .35);
}
.geo-banner[hidden] { display: none; }
.geo-actions { display: flex; align-items: center; gap: 10px; }
.geo-yes {
  background: var(--peach); color: var(--ink);
  font-weight: 700; padding: 7px 16px; border-radius: 3px;
  white-space: nowrap;
}
.geo-yes:hover { background: var(--sand); }
.geo-no {
  font: inherit; font-weight: 600; color: var(--paper);
  background: none; border: 0; cursor: pointer; opacity: .7;
  white-space: nowrap;
}
.geo-no:hover { opacity: 1; }

@media (max-width: 620px) {
  .region-switch summary { font-size: 0; }   /* на мобиле прячем подпись, остаётся в меню */
  .region-switch summary::before {
    content: ''; display: inline-block; width: 19px; height: 19px; vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4.2' ry='9'/%3E%3Cpath d='M3.2 12h17.6M4.6 7.5h14.8M4.6 16.5h14.8'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}

/* город-лендинг: уникальный вводный абзац (SEO, не дорвей) */
.city-intro .sect-intro {
  margin-left: 0;
  max-width: 860px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  opacity: .85;
}
