/* ============================================================
   [РРјСЏ Р¤Р°РјРёР»РёСЏ] вЂ” РїРѕСЂС‚С„РѕР»РёРѕ С‡Р°СЃС‚РЅРѕРіРѕ СЂР°Р·СЂР°Р±РѕС‚С‡РёРєР°
   РћСЃРЅРѕРІР°: С‚С‘РїР»Р°СЏ В«Р±СѓРјР°РіР°В», С‡РµСЂРЅРёР»СЊРЅС‹Р№ С‚РµРєСЃС‚, С‚РµСЂСЂР°РєРѕС‚Р° + Р±РёСЂСЋР·Р°.
   РўРµС…РЅРѕ-Р±Р»РѕРє В«РђРІС‚РѕРєРѕРЅС‚РµРЅС‚-Р·Р°РІРѕРґВ» вЂ” С‚С‘РјРЅР°СЏ РїР°РЅРµР»СЊ СЃ Р°РЅРёРјР°С†РёРµР№.
   ============================================================ */

:root {
  --paper: #f6f3ec;        /* С‚С‘РїР»Р°СЏ Р±СѓРјР°РіР° */
  --paper-2: #fdfbf6;      /* РєР°СЂС‚РѕС‡РєРё */
  --ink: #1d1b17;         /* С‚С‘РїР»С‹Р№ С‡С‘СЂРЅС‹Р№ */
  --ink-70: rgba(29, 27, 23, .72);
  --ink-55: rgba(29, 27, 23, .55);
  --line: rgba(29, 27, 23, .16);
  --line-soft: rgba(29, 27, 23, .09);
  --accent: #b4471f;      /* Р¶Р¶С‘РЅР°СЏ С‚РµСЂСЂР°РєРѕС‚Р° */
  --accent-deep: #933816;
  --accent-soft: rgba(180, 71, 31, .08);
  --amber: #d98a3d;       /* СЏРЅС‚Р°СЂСЊ РґР»СЏ РіСЂР°РґРёРµРЅС‚РѕРІ Рё С‚С‘РјРЅРѕР№ СЃРµРєС†РёРё */
  --teal: #2f7f76;        /* Р±РёСЂСЋР·Р°: РїРѕР·РёС†РёРё, РіСЂР°С„РёРєРё, Р±РѕС‚С‹ */
  --teal-deep: #23615b;
  --teal-soft: rgba(47, 127, 118, .09);

  /* С‚С‘РјРЅР°СЏ С‚РµС…РЅРѕ-СЃРµРєС†РёСЏ */
  --dark: #16181d;
  --dark-2: #1e2127;
  --dark-3: #262a33;
  --dark-line: rgba(240, 237, 229, .14);
  --on-dark: #f0ede5;
  --on-dark-70: rgba(240, 237, 229, .72);
  --on-dark-50: rgba(240, 237, 229, .52);
  --teal-bright: #4cbcab;

  --font-main: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius: 2px;
  --maxw: 1120px;
  --header-h: 64px;
}

/* ---------- Р±Р°Р·Р° ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--paper-2); }

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* РіСЂР°РґРёРµРЅС‚РЅС‹Р№ С‚РµРєСЃС‚ (С‚РµСЂСЂР°РєРѕС‚Р° в†’ СЏРЅС‚Р°СЂСЊ) */
.grad-text {
  background: linear-gradient(94deg, var(--accent-deep) 10%, var(--accent) 45%, var(--amber) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* РјРѕРЅРѕС€РёСЂРёРЅРЅС‹Рµ РїРѕРґРїРёСЃРё-В«СЏСЂР»С‹РєРёВ» */
.eyebrow,
.section-num,
.facts,
.case-tags,
.step-term,
.package-term,
figcaption,
.hit-badge,
.draft-note,
.strip-card span,
.photo-frame text,
.frame-chrome i {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
}

/* ---------- С€Р°РїРєР° ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand-mark rect {
  fill: var(--ink);
  stroke: none;
}
.brand-mark path {
  stroke: var(--paper);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.brand-mark .mark-caret { stroke: var(--amber); }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.site-nav {
  display: flex;
  gap: 20px;
}
.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-70);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- РєРЅРѕРїРєРё ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 10px 26px -14px rgba(29, 27, 23, .55);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 12px 30px -14px rgba(180, 71, 31, .6); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- С…РёСЂРѕ ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
/* РјРёР»Р»РёРјРµС‚СЂРѕРІРєР°: С‚РѕС‡РµС‡РЅР°СЏ СЃРµС‚РєР°, РіР°СЃРЅРµС‚ Рє РєСЂР°СЏРј */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 27, 23, .13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 42% 30%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 42% 30%, #000 15%, transparent 78%);
  pointer-events: none;
}
/* С‚С‘РїР»С‹Р№ СЃРІРµС‚ Рё Р±РёСЂСЋР·РѕРІС‹Р№ РєРѕРЅС‚СЂ-СЃРІРµС‚ вЂ” РіР»СѓР±РёРЅР° РІРјРµСЃС‚Рѕ РїР»РѕСЃРєРѕР№ Р±СѓРјР°РіРё */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 440px at 84% 4%, rgba(180, 71, 31, .14), transparent 68%),
    radial-gradient(560px 380px at 6% 92%, rgba(47, 127, 118, .11), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero .eyebrow {
  margin: 0 0 22px;
  color: var(--accent-deep);
  text-transform: lowercase;
}
.hero .eyebrow::before {
  content: "// ";
  color: var(--ink-55);
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 900;
  letter-spacing: -0.028em;
}

.lead {
  max-width: 58ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.68;
  color: var(--ink-70);
}
.lead b { color: var(--ink); }

.hero-offer {
  margin: 24px 0 0;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-70);
}
.hero-offer b {
  font-weight: 800;
  color: var(--accent-deep);
  white-space: nowrap;
}
.hero-offer span::before { content: " · "; }
.hero-call {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-55);
}
.hero-call a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.hero-call a:hover { border-bottom-color: var(--ink); }

.cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.facts {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li {
  flex: 1 1 180px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px 16px 0;
  color: var(--ink-55);
  border-right: 1px solid var(--line-soft);
}
.facts li + li { padding-left: 20px; }
.facts li:last-child { border-right: none; }
.facts strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- СЃРµРєС†РёРё ---------- */

.section { border-top: 1px solid var(--line); }
.section {
  padding-block: clamp(56px, 8.5vw, 104px);
}

.section-head { margin-bottom: clamp(30px, 4.5vw, 48px); }
.section-num {
  margin: 0 0 14px;
  color: var(--ink-55);
}
.section-num::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  max-width: 24ch;
}
.section-head .head-note {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-70);
}

/* ---------- РѕС„С„РµСЂ ---------- */

.offer-intro {
  max-width: 68ch;
  display: grid;
  gap: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-70);
}

.flow {
  margin: clamp(36px, 5vw, 56px) 0 0;
}
.flow svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.flow-node rect {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.flow-node text {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--ink);
  text-anchor: middle;
}
.flow-node-accent rect {
  fill: var(--accent-soft);
  stroke: var(--accent);
}
.flow-node-accent text { fill: var(--accent-deep); }
.flow-node-solid rect {
  fill: var(--ink);
  stroke: var(--ink);
}
.flow-node-solid text { fill: var(--paper-2); font-weight: 600; }
.flow-arrow path {
  stroke: var(--ink-55);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
  animation: dashmove 1.6s linear infinite;
}
.flow figcaption {
  margin-top: 12px;
  color: var(--ink-55);
}

@keyframes dashmove {
  to { stroke-dashoffset: -14; }
}

/* РЅР° СѓР·РєРёС… СЌРєСЂР°РЅР°С… СЃС…РµРјС‹ РЅРµ СЃР¶РёРјР°РµРј РІ РєР°С€Сѓ, Р° РґР°С‘Рј Р»РёСЃС‚Р°С‚СЊ РІР±РѕРє */
.pipe-scroll { min-width: 0; }

@media (max-width: 760px) {
  .pipe-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .pipe-scroll svg { min-width: 700px; }
}

/* РїР°РєРµС‚С‹ */
.packages {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line-soft);
}
.package {
  background: var(--paper-2);
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  display: flex;
  flex-direction: column;
}
.package-hit {
  background: #fff;
  outline: 2px solid var(--ink);
  outline-offset: -1px;
  z-index: 2;
}
.hit-badge {
  position: absolute;
  top: -1px;
  right: 18px;
  background: var(--accent);
  color: var(--paper-2);
  padding: 4px 10px;
  font-size: 11px;
  text-transform: lowercase;
}
.package-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.package-price {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-55);
}
.package-price b {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.package-price span { font-size: 13px; }
.package-old {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-55);
}
.package-for {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-70);
  min-height: 3.2em;
}
.package ul {
  margin-top: 18px;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-70);
}
.package li {
  padding-left: 20px;
  position: relative;
}
.package li::before {
  content: "+";
  position: absolute;
  left: 2px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}
.package-term {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink-55);
}
.promo-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 78ch;
}
.promo-note b { font-weight: 700; }

.packages-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.packages-cta span {
  font-size: 14.5px;
  color: var(--ink-55);
}
.packages-cta span a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.packages-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-55);
}

/* ============================================================
   РўРЃРњРќРђРЇ РўР•РҐРќРћ-РЎР•РљР¦РРЇ: Р°РІС‚РѕРєРѕРЅС‚РµРЅС‚-Р·Р°РІРѕРґ
   ============================================================ */

.factory {
  background:
    radial-gradient(860px 460px at 88% 0%, rgba(217, 138, 61, .13), transparent 66%),
    radial-gradient(700px 420px at 4% 100%, rgba(76, 188, 171, .09), transparent 68%),
    var(--dark);
  color: var(--on-dark);
  border-top: none;
}

.factory .section-num { color: var(--on-dark-50); }
.factory .section-num::before { background: var(--amber); }
.factory .section-head h2 {
  color: var(--on-dark);
  max-width: 20ch;
}
.factory .section-head .head-note { color: var(--on-dark-70); }

.factory-pipeline {
  margin: clamp(30px, 4.5vw, 48px) 0 0;
}
.factory-pipeline svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.fp-node rect {
  fill: var(--dark-2);
  stroke: rgba(240, 237, 229, .34);
  stroke-width: 1.1;
}
.fp-node text {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--on-dark);
  text-anchor: middle;
}
.fp-node-accent rect {
  fill: rgba(217, 138, 61, .16);
  stroke: var(--amber);
}
.fp-node-accent text { fill: #f2b078; }
.fp-node-teal rect {
  fill: rgba(76, 188, 171, .13);
  stroke: var(--teal-bright);
}
.fp-node-teal text { fill: var(--teal-bright); }
.fp-arrow path {
  stroke: rgba(240, 237, 229, .45);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
  animation: dashmove 1.6s linear infinite;
}
.factory .pipe-caption {
  margin-top: 12px;
  color: var(--on-dark-50);
}

/* РєР°СЂС‚РѕС‡РєРё Р·Р°РІРѕРґР° */
.factory-cards {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.f-card {
  background: var(--dark-2);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.f-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.f-card h3 {
  color: var(--on-dark);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.f-card > p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--on-dark-70);
}
.f-card ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--on-dark-70);
}
.f-card li {
  padding-left: 18px;
  position: relative;
}
.f-card li::before {
  content: "вЂ”";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--font-mono);
}

/* РјРёРЅРё-РіСЂР°С„РёРє РїРѕР·РёС†РёР№ */
.chart-box { margin-top: 14px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: rgba(240, 237, 229, .1); stroke-width: 1; }
.chart-line {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
}
.factory .reveal.in .chart-line {
  animation: drawline 1.5s ease .25s forwards;
}
.chart-dot { fill: var(--teal-bright); opacity: 0; }
.factory .reveal.in .chart-dot {
  animation: fadein .4s ease forwards;
}
.factory .reveal.in .chart-dot.d1 { animation-delay: 1.1s; }
.factory .reveal.in .chart-dot.d2 { animation-delay: 1.5s; }
.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--on-dark-50);
}
.chart-value {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--teal-bright);
  font-weight: 600;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* РјРѕРєР°Рї РѕС‚С‡С‘С‚Р° РІ telegram */
.tg-mock {
  margin-top: 14px;
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  overflow: hidden;
}
.tg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(240, 237, 229, .05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--on-dark-50);
}
.tg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex: none;
}
.tg-msg {
  position: relative;
  margin: 12px;
  margin-top: 6px;
  background: #2d3542;
  border-radius: 10px;
  border-top-left-radius: 3px;
  padding: 14px 16px 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e6eaf1;
}
.tg-msg b { color: #fff; }
.tg-msg ul { display: grid; gap: 4px; margin-top: 8px; }
.tg-msg li b { color: var(--teal-bright); font-weight: 600; }
.tg-time {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(230, 234, 241, .45);
}

.factory-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--on-dark-50);
  max-width: 74ch;
}
.factory-note b { color: var(--amber); font-weight: 600; }

/* GEO/AEO: РЅРµР№СЂРѕРїРѕРёСЃРє */
.geo-block {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.geo-text {
  background: var(--dark-2);
  padding: clamp(22px, 2.6vw, 30px);
}
.geo-text h3 {
  color: var(--on-dark);
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.01em;
}
.geo-text > p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--on-dark-70);
  max-width: 54ch;
}
.geo-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--on-dark-70);
}
.geo-list li {
  padding-left: 18px;
  position: relative;
}
.geo-list li::before {
  content: "вЂ”";
  position: absolute;
  left: 0;
  color: var(--teal-bright);
  font-family: var(--font-mono);
}
.geo-proof {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(217, 138, 61, .08);
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark);
}
.geo-proof b { color: var(--amber); font-weight: 600; }
.geo-proof a {
  color: var(--teal-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 188, 171, .4);
}
.geo-proof a:hover { border-bottom-color: var(--teal-bright); }

.geo-mock {
  background: var(--dark-2);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.chat-mock {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(240, 237, 229, .05);
  border: 1px solid var(--dark-line);
  border-bottom: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--on-dark-50);
}
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
}
.chat-user {
  align-self: flex-end;
  max-width: 92%;
  background: rgba(76, 188, 171, .14);
  border: 1px solid rgba(76, 188, 171, .35);
  border-radius: 10px;
  border-bottom-right-radius: 3px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #d9f2ee;
}
.chat-bot {
  max-width: 96%;
  background: rgba(240, 237, 229, .06);
  border-radius: 10px;
  border-top-left-radius: 3px;
  padding: 12px 14px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e6eaf1;
}
.chat-src {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid rgba(76, 188, 171, .45);
  background: rgba(76, 188, 171, .1);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal-bright);
}
.chat-src svg { flex: none; }

@media (max-width: 960px) {
  .geo-block { grid-template-columns: 1fr; }
}

/* ---------- РєРµР№СЃС‹ ---------- */

.draft-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -14px 0 34px;
  padding: 8px 14px;
  border: 1px dashed var(--accent);
  color: var(--ink-70);
  font-size: 12.5px;
  background: var(--accent-soft);
}
.draft-note span {
  background: var(--accent);
  color: var(--paper-2);
  padding: 2px 8px;
  font-weight: 600;
  text-transform: lowercase;
}

.cases {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.case-flip .frame { order: 2; }

.frame {
  margin: 0;
}
.frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  padding: 9px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.frame-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 243, 236, .28);
}
.frame-chrome span:first-child { background: var(--accent); }
.frame-chrome i {
  margin-left: 10px;
  font-style: normal;
  color: rgba(246, 243, 236, .72);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-body {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, var(--line-soft) 14px 15px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.frame-body p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-55);
  max-width: 26ch;
  line-height: 1.7;
}
.frame-body.has-shot { padding: 0; background: #fff; }
.frame-body img, .frame-body .shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame figcaption {
  margin-top: 12px;
  color: var(--ink-55);
}

.case-tags {
  color: var(--accent-deep);
  text-transform: lowercase;
  margin-bottom: 14px;
}
.case-tags.alt { color: var(--teal-deep); }
.case h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.015em;
}
.case dl {
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}
.case dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 3px;
}
.case dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-70);
  line-height: 1.6;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease;
}
.case-tags.alt ~ .case-link { color: var(--teal-deep); }
.case-link:hover { border-bottom-color: currentColor; }
.case-link span { transition: transform .15s ease; }
.case-link:hover span { transform: translateX(3px); }

/* Р»РµРЅС‚Р° РѕСЃС‚Р°Р»СЊРЅС‹С… РїСЂРѕРµРєС‚РѕРІ */
.strip-wrap { margin-top: clamp(56px, 7vw, 88px); }
.strip-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.strip-title span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: .04em;
}
.strip {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: var(--line-soft); }
.strip::-webkit-scrollbar-thumb { background: var(--line); }
.strip-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 232px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.strip-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(29, 27, 23, .4);
}
.strip-card b { font-size: 15.5px; font-weight: 600; }
.strip-card span { color: var(--ink-55); font-size: 12px; }
.strip-card i {
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-size: 14px;
}

/* ---------- РґРѕРї. СѓСЃР»СѓРіРё ---------- */

.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
.extra {
  background: var(--paper-2);
  padding: clamp(24px, 3.4vw, 40px);
  transition: background-color .15s ease;
}
.extra:hover { background: #fff; }
.extra h3 { font-size: 22px; letter-spacing: -0.01em; }
.extra > p {
  margin-top: 14px;
  color: var(--ink-70);
  font-size: 15.5px;
  max-width: 46ch;
}
.extra ul {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-70);
}
.extra li {
  padding-left: 20px;
  position: relative;
}
.extra li::before {
  content: "вЂ”";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
}
.extra-price {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-55);
}
.extra-price b { color: var(--ink); font-weight: 600; }

/* ---------- С€Р°РіРё ---------- */

.steps {
  display: grid;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  padding-block: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  transition: background-color .15s ease;
}
.steps li:hover { background: var(--paper-2); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink-55);
  letter-spacing: .02em;
  line-height: 1;
  padding-top: 4px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--ink-70); max-width: 60ch; }
.step-term {
  margin-top: 12px;
  color: var(--accent-deep);
  font-size: 12px;
}
.step-term::before { content: "СЃСЂРѕРє: "; color: var(--ink-55); }

/* ---------- РѕР±Рѕ РјРЅРµ ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-photo { margin: 0; }
.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 14%;   /* РґРµСЂР¶РёРј Р»РёС†Рѕ РІ РєР°РґСЂРµ */
  border: 1px solid var(--line);
}
.photo-border { fill: none; stroke: var(--line); stroke-width: 1; }
.photo-head, .photo-shoulders { fill: var(--line-soft); stroke: var(--ink-55); stroke-width: 1.2; }
.photo-frame text {
  font-size: 11px;
  fill: var(--ink-55);
  text-anchor: middle;
  letter-spacing: .08em;
}
.about-photo figcaption {
  margin-top: 12px;
  color: var(--ink-55);
}
.about-text > p {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--ink-70);
  font-size: clamp(16px, 1.4vw, 18px);
}
.about-points {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.about-points li {
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 15.5px;
  color: var(--ink-70);
  transition: transform .15s ease;
}
.about-points li:hover { transform: translateX(4px); }
.about-points li:nth-child(2) { border-left-color: var(--teal); }
.about-points b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }
.faq-plus {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-plus::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-plus::after { left: 10px; top: 0; width: 2px; height: 22px; }
details[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
details[open] .faq-plus::before { transform: rotate(180deg); }
.faq details p {
  padding-bottom: 24px;
  max-width: 68ch;
  color: var(--ink-70);
  font-size: 15.5px;
}

/* ---------- РєРѕРЅС‚Р°РєС‚С‹ ---------- */

.section-contacts {
  background:
    radial-gradient(640px 340px at 92% 8%, rgba(180, 71, 31, .1), transparent 66%),
    var(--paper-2);
  border-top: 1px solid var(--line);
}
.contacts-lead {
  margin-top: -18px;
  max-width: 52ch;
  color: var(--ink-70);
  font-size: clamp(17px, 1.6vw, 19px);
}
.contacts-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.contact-btn:active { transform: translateY(1px); }
.contact-btn b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.contact-btn span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: .04em;
}
.contact-btn:hover {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 14px 30px -16px rgba(29, 27, 23, .55);
}
.contact-btn:hover span { color: rgba(246, 243, 236, .66); }
.contact-tg { border-color: var(--accent); border-width: 2px; }
.contact-tg:hover { background: var(--accent); }

/* ---------- РїРѕРґРІР°Р» ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-55);
  max-width: 60ch;
  line-height: 1.8;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Р±СЂРёС„-РєРІРёР· ---------- */

.quiz-wrap {
  margin-top: clamp(28px, 4vw, 40px);
  max-width: 660px;
}
.quiz-panel {
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(217, 138, 61, .1), transparent 70%),
    var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  overflow: hidden;
}
.quiz-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(240, 237, 229, .05);
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--on-dark-50);
}
.quiz-restart {
  margin-left: auto;
  cursor: pointer;
  color: var(--amber);
  border-bottom: 1px dashed rgba(217, 138, 61, .5);
  padding-bottom: 1px;
  transition: color .15s ease;
}
.quiz-restart:hover { color: var(--on-dark); border-bottom-color: var(--on-dark-50); }
.quiz-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  max-height: 58vh;
  overflow-y: auto;
}
.q-msg {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 10px;
}
.q-bot {
  align-self: flex-start;
  background: var(--dark-3);
  border-top-left-radius: 3px;
  color: #e6eaf1;
}
.q-user {
  align-self: flex-end;
  background: rgba(76, 188, 171, .16);
  border: 1px solid rgba(76, 188, 171, .35);
  border-bottom-right-radius: 3px;
  color: #d9f2ee;
}
.q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 94%;
}
.q-chip {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--dark-2);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.q-chip:hover {
  border-color: var(--amber);
  color: #f2b078;
  transform: translateY(-1px);
}
.q-inputrow {
  display: flex;
  gap: 8px;
  align-self: stretch;
}
.q-inputrow input {
  flex: 1;
  min-width: 0;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  color: var(--on-dark);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-main);
}
.q-inputrow input:focus { outline: none; border-color: var(--teal-bright); }
.q-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--dark-3);
  border-radius: 10px;
  border-top-left-radius: 3px;
}
.q-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-dark-50);
  animation: qblink 1s infinite;
}
.q-typing i:nth-child(2) { animation-delay: .18s; }
.q-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes qblink {
  0%, 80%, 100% { opacity: .25; }
  40% { opacity: 1; }
}
.q-summary {
  align-self: stretch;
  background: rgba(217, 138, 61, .08);
  border: 1px solid rgba(217, 138, 61, .35);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark);
}
.q-summary b { color: #f2b078; font-weight: 600; }
.q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: flex-start;
}
.q-actions a,
.q-actions button {
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
  color: var(--on-dark);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.q-actions .q-tg { border-color: var(--teal-bright); color: var(--teal-bright); }
.q-actions .q-wa { border-color: #57d377; color: #57d377; }
.q-actions a:hover,
.q-actions button:hover { transform: translateY(-1px); border-color: var(--on-dark-50); }
.quiz-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-55);
}

/* ---------- РР-РїРѕРјРѕС‰РЅРёРє ---------- */

.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  transition: background-color .15s ease, transform .15s ease;
}
.ai-fab:hover { background: var(--accent); transform: translateY(-1px); }
.ai-fab .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57d377;
  animation: aipulse 2s infinite;
}
@keyframes aipulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 211, 119, .45); }
  70% { box-shadow: 0 0 0 8px rgba(87, 211, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 211, 119, 0); }
}
.ai-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 95;
  width: min(380px, calc(100vw - 24px));
  max-height: min(600px, 76vh);
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.ai-panel[hidden] { display: none; }
.ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(240, 237, 229, .05);
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--on-dark-50);
}
.ai-mode { color: var(--teal-bright); }
.ai-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--on-dark-50);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}
.ai-close:hover { color: var(--on-dark); }
.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-msg {
  max-width: 88%;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  border-radius: 10px;
  white-space: pre-line;
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--dark-3);
  border-top-left-radius: 3px;
  color: #e6eaf1;
}
.ai-msg.user {
  align-self: flex-end;
  background: rgba(76, 188, 171, .16);
  border: 1px solid rgba(76, 188, 171, .35);
  border-bottom-right-radius: 3px;
  color: #d9f2ee;
}
.ai-msg a { color: var(--teal-bright); }
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.ai-chip {
  padding: 7px 11px;
  font-size: 12px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: var(--on-dark-70);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.ai-chip:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.ai-inputrow {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--dark-line);
}
.ai-inputrow input {
  flex: 1;
  min-width: 0;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--on-dark);
  font-size: 13.5px;
  font-family: var(--font-main);
}
.ai-inputrow input:focus { outline: none; border-color: var(--teal-bright); }
.ai-send {
  flex: none;
  width: 40px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--paper-2);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ai-send:hover { background: var(--accent-deep); }

@media (max-width: 760px) {
  .ai-panel { right: 12px; left: 12px; width: auto; bottom: 74px; }
  .ai-fab { right: 14px; bottom: 14px; padding: 12px 15px; font-size: 13.5px; }
}

/* ---------- РїРѕСЏРІР»РµРЅРёРµ РїСЂРё СЃРєСЂРѕР»Р»Рµ (С‚РѕР»СЊРєРѕ СЃ JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .case-link, .strip-card, .contact-btn { transition: none; }
  .flow-arrow path, .fp-arrow path { animation: none; }
  .ai-fab .pulse, .q-typing i { animation: none; }
  .factory .reveal.in .chart-line { animation: none; stroke-dashoffset: 0; }
  .factory .reveal.in .chart-dot { animation: none; opacity: 1; }
}

/* ---------- Р°РґР°РїС‚РёРІ ---------- */

@media (max-width: 960px) {
  .packages { grid-template-columns: 1fr; }
  .factory-cards { grid-template-columns: 1fr; }
  .contacts-row { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .case, .case-flip .frame { grid-template-columns: 1fr; }
  .case-flip .frame { order: 0; }
  .case { align-items: start; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); }
  .step-num { font-size: 26px; padding-top: 6px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .facts li { border-right: none; padding-left: 0 !important; }
  .facts { gap: 4px 24px; }
  .flow-node text,
  .fp-node text { font-size: 15px; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .hero-call { font-size: 14px; }
  .packages-cta .btn { width: 100%; }
  .hero-offer span { display: block; }
  .hero-offer span::before { content: none; }
  /* ИИ-помощник временно скрыт на мобиле: перекрывает контент и работает в демо-режиме */
  .ai-fab { display: none; }
  .ai-panel { display: none; }
}

/* ============================================================
   КОНСТРУКТОР СМЕТЫ
   ============================================================ */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.builder-group + .builder-group { margin-top: 32px; }
.builder-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.builder-bases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-base { position: relative; display: block; cursor: pointer; }
.b-base input { position: absolute; opacity: 0; pointer-events: none; }
.b-base-body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.b-base input:checked + .b-base-body {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.b-base-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.b-base-desc { font-size: 12.5px; line-height: 1.45; color: var(--ink-55); }
.b-base-price { margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

.b-addons { display: grid; gap: 8px; }
.b-addon { position: relative; display: block; cursor: pointer; }
.b-addon input { position: absolute; opacity: 0; pointer-events: none; }
.b-addon-body {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color .15s, background .15s;
}
.b-addon-body::before {
  content: "";
  position: absolute; left: 16px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border: 1.5px solid var(--ink-55);
  border-radius: 2px;
  background: #fff;
}
.b-addon input:checked + .b-addon-body { border-color: var(--accent); background: #fff; }
.b-addon input:checked + .b-addon-body::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.b-addon-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.b-addon-top b { font-weight: 700; }
.b-addon-top span { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-55); }
.b-addon-desc { font-size: 12.5px; line-height: 1.45; color: var(--ink-55); }

.builder-summary {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.builder-sum-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.builder-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-70);
}
.builder-list li { display: flex; justify-content: space-between; gap: 10px; }
.builder-list li span:last-child { white-space: nowrap; color: var(--ink); }
.builder-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-55);
}
.builder-row b { color: var(--ink); font-weight: 700; }
.builder-discount[hidden] { display: none; }
.builder-discount em { font-style: normal; color: var(--accent-deep); }
.builder-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.builder-total span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.builder-total b { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.builder-cta { width: 100%; }
.builder-note { margin-top: 11px; font-size: 11.5px; line-height: 1.55; color: var(--ink-55); }
.builder-note a { color: var(--ink); }

.brief-modal[hidden] { display: none; }
.brief-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.brief-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 15, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.brief-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.brief-x {
  position: absolute; top: 8px; right: 10px;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1;
  color: var(--ink-55); cursor: pointer;
}
.brief-card h3 { margin: 2px 0 10px; font-size: 26px; letter-spacing: -.02em; }
.brief-config {
  margin: 0 0 6px;
  padding: 12px 14px;
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}
.brief-field { display: block; margin-top: 14px; font-size: 13px; color: var(--ink-70); }
.brief-field input,
.brief-field textarea,
.brief-field select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.brief-field textarea { resize: vertical; }
.brief-consent {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-55);
}
.brief-consent input { margin-top: 2px; }
.brief-send { width: 100%; margin-top: 16px; }
.brief-hint { margin: 10px 0 0; font-size: 13px; color: var(--accent-deep); }
.brief-hint.err { color: #b42318; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .builder-summary { position: static; }
  .builder-bases { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .builder-total b { font-size: 26px; }
}

/* ============================================================
   ЮРИДИЧЕСКАЯ СТРАНИЦА
   ============================================================ */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 18px 90px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
.legal-date { margin-top: 10px !important; font-family: var(--font-mono); font-size: 12px !important; color: var(--ink-55) !important; }
.legal h2 { margin: 30px 0 8px; font-size: 20px; letter-spacing: -.01em; }
.legal p, .legal li { margin: 8px 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-70); }
.legal ul { margin: 8px 0; padding-left: 22px; list-style: disc; }
.legal a { color: var(--ink); }
.legal-back { margin-top: 36px; }
section[id] { scroll-margin-top: 84px; }
.footer-legal { flex-basis: 100%; max-width: none; margin-top: 4px; }
.footer-legal a { color: var(--ink-70); }
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line-soft);
}
.case-stats div { background: var(--paper); padding: 11px 9px; }
.case-stats b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.case-stats span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--ink-55); }
.case-stats-note { margin-top: 7px; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-55); }
@media (max-width: 560px) { .case-stats { grid-template-columns: repeat(2, 1fr); } }