/* ─── nouter · лендинг — структурный, светлый ──────────────────────────────
   Заголовки: Spectral (полное покрытие az: ə/ğ/ş/İ/ı). Вордмарк: Playfair.
   Темы переключаются через [data-theme] на <html>.                          */

@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@700&display=swap");

/* ─── Токены тем ──────────────────────────────────────────────────────── */
:root,
:root[data-theme="warm"] {
  --paper: #efe5d0;  --paper-2: #e7dabf;  --paper-3: #ddcca8;
  --ink: #211a11;    --ink-2: #453829;    --muted: #6d6150;
  --rule: rgba(33, 26, 17, .16);  --rule-2: rgba(33, 26, 17, .08);
  --card: #fcf8ee;   --accent: #C2602F;   --accent-soft: #E29A6B;
}
:root[data-theme="dark"] {
  --paper: #1b1813;  --paper-2: #252019;  --paper-3: #2f2920;
  --ink: #f1e8d7;    --ink-2: #cdc2ad;    --muted: #968a76;
  --rule: rgba(241, 232, 215, .16);  --rule-2: rgba(241, 232, 215, .07);
  --card: #221e17;   --accent: #db7c4d;   --accent-soft: #E29A6B;
}
:root[data-theme="light"] {
  --paper: #f5f3ef;  --paper-2: #eae7e0;  --paper-3: #ddd8ce;
  --ink: #1d1d1f;    --ink-2: #3f3f44;    --muted: #76767e;
  --rule: rgba(20, 20, 25, .14);  --rule-2: rgba(20, 20, 25, .06);
  --card: #ffffff;   --accent: #C2602F;   --accent-soft: #E29A6B;
}

:root {
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --wordmark: "Playfair Display", Georgia, serif;

  --fs-hero: clamp(38px, 5.6vw, 76px);
  --fs-title: clamp(30px, 4.2vw, 52px);
  --fs-lede: clamp(17px, 2vw, 21px);

  --r-md: 12px;  --r-lg: 16px;  --r-xl: 24px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 10px 30px rgba(33, 26, 17, .10);
  --shadow-lg: 0 22px 55px rgba(33, 26, 17, .14);
  --shadow-xl: 0 28px 64px rgba(33, 26, 17, .18);
  --t-hover: .4s var(--ease);   /* единое время «улучшенных» ховеров */
}

/* ─── База ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; border: 3px solid var(--paper); }

/* Когда активен кастомный курсор — прячем системный */
/* body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } */

/* ─── Кастомный курсор ────────────────────────────────────────────────── */
/* .cursor {
  position: fixed; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 72%);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent-soft) 45%, transparent);
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  opacity: 0; transition: width .3s var(--ease), height .3s var(--ease),
    background .3s, opacity .3s; will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover {
  width: 54px; height: 54px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
} */

/* ─── Прогресс прокрутки ──────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: var(--accent); transition: width .08s linear; }

/* ─── Фон ─────────────────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--paper); }
.bg .bloom { position: absolute; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  animation: drift 30s ease-in-out infinite; }
.bg .bloom-1 { width: 48vw; height: 48vw; top: -14vw; left: -10vw; opacity: .11; }
.bg .bloom-2 { width: 40vw; height: 40vw; top: 36vh; right: -12vw; opacity: .08; animation-delay: -10s; }
.bg .bloom-3 { width: 32vw; height: 32vw; bottom: -10vw; left: 28vw; opacity: .06; animation-delay: -18s; }
.bg .grain { position: absolute; inset: 0; opacity: .34; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3vw, 3vh) scale(1.06); } }

/* ─── Шапка ───────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 13px clamp(18px, 5vw, 56px); background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--rule); box-shadow: 0 1px 0 var(--rule-2); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--accent); flex: none; }
.brand-word { font-family: var(--wordmark); font-size: 26px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a { transition: color var(--t-hover); }
.nav-links a:hover { color: var(--accent); }
.nav-controls { display: flex; align-items: center; gap: 12px; }

/* сегмент-переключатели (язык/тема) */
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; border: 0; cursor: pointer; color: var(--muted);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 7px 11px;
  transition: color .2s, background .2s; }
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .seg button.is-active { background: #2a251e; }
.theme-dots button { width: 30px; padding: 7px 0; display: inline-flex; justify-content: center; }
.theme-dots .dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--rule); display: block; }
.theme-dots .dot-warm { background: #C2602F; }
.theme-dots .dot-dark { background: #1b1813; }
.theme-dots .dot-light { background: #f5f3ef; }
.theme-dots button.is-active .dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.theme-dots button.is-active { background: transparent; }
[data-theme="dark"] .theme-dots button.is-active .dot { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 4px var(--accent); }

/* бургер + мобильное меню */
.burger { margin-left: auto; display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 44px; height: 44px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { position: sticky; top: 70px; z-index: 49; margin: 0 clamp(12px, 4vw, 24px); padding: 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 4px; }
.menu.open { display: flex; }
.menu a { padding: 13px 14px; border-radius: 12px; font-size: 16px; color: var(--ink-2); transition: background .2s; }
.menu a:hover { background: var(--paper-2); }
.menu .menu-controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px 4px; }
.menu .btn-cta { margin-top: 4px; }

/* ─── Кнопки ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-hover), background var(--t-hover), border-color var(--t-hover),
    color var(--t-hover), box-shadow var(--t-hover); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-mini { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ─── Раскладка ───────────────────────────────────────────────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px); }
section { padding: clamp(56px, 10vh, 120px) 0; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-title); color: var(--ink);
  letter-spacing: -.015em; text-align: center; margin-bottom: 48px; line-height: 1.06; }

/* маска-ревил: внутренник выезжает из-под обрезки */
.reveal-mask { overflow: hidden; }

/* ─── Герой ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(46px, 9vh, 104px) 0 clamp(40px, 7vh, 80px); }
.hero-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { flex: 1 1 380px; min-width: 0; }
.hero-visual { flex: 1 1 360px; min-width: 0; }
.kicker { display: inline-block; font: 500 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card); }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-hero); color: var(--ink);
  line-height: 1.04; letter-spacing: -.02em; margin-bottom: 24px; }
.hero-sub { font-size: var(--fs-lede); color: var(--ink-2); max-width: 54ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* демо-карточка в герое (параллакс-цель) */
.hero-demo { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 20px; position: relative; overflow: hidden; }
.demo-rec { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.demo-rec .rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #c0392b; flex: none;
  animation: pulse 1.4s ease-in-out infinite; }
.demo-rec .rec-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo-rec .rec-brand { margin-left: auto; font-family: var(--wordmark); font-size: 15px;
  background: var(--ink); color: var(--paper); padding: 4px 12px; border-radius: 999px; }
.waveform { display: flex; align-items: center; gap: 3px; height: 48px; padding: 0 2px; margin-bottom: 16px; }
.waveform span { display: block; flex: 1; height: 36px; border-radius: 3px; transform-origin: center;
  background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
.waveform span:nth-child(even) { background: var(--accent-soft); }
.demo-stream { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column;
  gap: 12px; min-height: 148px; }
.demo-seg { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.demo-seg.in { opacity: 1; transform: none; }
.demo-seg .spk { display: block; font: 500 11px/1.4 var(--mono); color: var(--accent); margin-bottom: 2px; }
.demo-seg .txt { font-size: 15px; color: var(--ink-2); }
.demo-summary { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: var(--paper-2); }
.demo-summary.in { opacity: 1; transform: none; }
.demo-summary .sum-h { display: block; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; }
.demo-summary .sum-t { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); }
.demo-progress { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.demo-progress .track { flex: 1; height: 5px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.demo-progress .fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width 3.6s linear; }
.demo-progress .live { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.78); } }
@keyframes wave { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }

/* ─── Рамка приложения (hero) ──────────────────────────────── */
.app-window {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  margin: 0 auto;
}

/* Заголовок окна */
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.app-dots { display: flex; gap: 6px; }
.app-dot { width: 12px; height: 12px; border-radius: 50%; }
.app-dot-red { background: #ff5f57; }
.app-dot-yellow { background: #febc2e; }
.app-dot-green { background: #28c840; }

.app-title {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-title-spacer { width: 54px; } /* баланс для центрирования заголовка */

/* Тело приложения */
.app-body {
  display: flex;
  min-height: 280px;
}

/* Боковая панель */
.app-sidebar {
  width: 80px;
  padding: 16px 8px;
  background: var(--paper-3);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.app-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 9px;
  color: var(--muted);
  cursor: default;
  transition: background .2s, color .2s;
}

.app-sidebar-item svg { opacity: 0.6; }

.app-sidebar-active {
  background: var(--accent);
  color: var(--paper);
}

.app-sidebar-active svg {
  opacity: 1;
  stroke: var(--paper);
}

/* Основной контент */
.app-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Панель инструментов */
.app-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.app-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}

.app-tool:hover {
  background: var(--rule);
  color: var(--ink);
}

.app-tool-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  margin: 0 4px;
}

.app-tool-spacer { flex: 1; }

.app-status {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
}

/* ─── Адаптив рамки ──────────────────────────────────────── */
@media (max-width: 768px) {
  .app-window {
    max-width: 100%;
    border-radius: var(--r-lg);
  }
  
  .app-sidebar {
    width: 52px;
    padding: 12px 4px;
  }
  
  .app-sidebar-item {
    padding: 6px 2px;
    font-size: 0; /* прячем текст, оставляем только иконки */
    gap: 2px;
  }
  
  .app-sidebar-item svg {
    width: 18px;
    height: 18px;
  }
  
  .app-tool span { display: none; } /* прячем текст кнопок, оставляем иконки */
  .app-tool { padding: 8px; }
  .app-main { padding: 12px; }
}

@media (max-width: 560px) {
  /* На очень узких экранах убираем сайдбар совсем, чтобы место сэкономить */
  .app-sidebar { display: none; }
}


/* ─── Демо «было → стало» ─────────────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.demo-arrow { color: var(--accent); display: flex; justify-content: center; }
.demo-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; min-height: 240px; box-shadow: var(--shadow); }
.demo-before { background: var(--paper-2); }
.demo-after { border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); box-shadow: var(--shadow-lg); }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-tag { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.demo-tag-bad { background: var(--paper-3); color: var(--ink-2); }
.demo-tag-good { font-family: var(--wordmark); font-size: 15px; background: var(--ink); color: var(--paper); padding: 5px 14px; border-radius: 999px; }
.demo-x { color: #a8412c; font-size: 18px; }
.demo-check { color: #4f6a3f; font-size: 18px; font-weight: 700; }
.demo-badge-bad { color: #a8412c; font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.demo-badge-good { color: #4f6a3f; font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.demo-line { font-size: 15px; color: var(--ink-2); margin-bottom: 11px; }
.demo-line .spk { display: block; font: 500 11px/1.4 var(--mono); color: var(--accent); margin-bottom: 2px; }
.demo-garble { font-size: 15px; font-style: italic; color: var(--muted); }
.demo-sum { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--rule); }
.demo-sum-h { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.demo-sum-t { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.demo-sum-a { font-size: 14px; color: var(--ink-2); }
.demo-sum-a em { font-style: normal; color: var(--accent); font-weight: 500; }

/* ─── Цифры ───────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1; color: var(--ink); }
.stat-label { margin: 12px auto 0; font-size: 15px; color: var(--muted); max-width: 26ch; }

/* ─── Выгоды ──────────────────────────────────────────────────────────── */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 32px 28px;
  box-shadow: var(--shadow); transition: transform var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover); }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.benefit-ic { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--paper-2); color: var(--accent); margin-bottom: 20px; }
.benefit-ic svg { width: 25px; height: 25px; }
.benefit h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin-bottom: 10px; }
.benefit p { font-size: 15px; color: var(--ink-2); }

/* ─── Шаги ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 14px 0 8px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* ─── Промежуточный призыв ────────────────────────────────────────────── */
.midcta { text-align: center; }
.midcta-title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-title); margin-bottom: 28px; line-height: 1.08; }

/* ─── Для кого ────────────────────────────────────────────────────────── */
.who { text-align: center; }
.who-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.who-list li { border: 1px solid var(--rule); border-radius: 999px; padding: 11px 22px; font-size: 15px;
  background: var(--card); box-shadow: var(--shadow);
  transition: border-color var(--t-hover), color var(--t-hover), transform var(--t-hover); }
.who-list li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.who-sub { color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0 auto; }

/* ─── Тарифы ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform var(--t-hover), box-shadow var(--t-hover); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-feat { border: 1.5px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 6px; }
.plan-price { font: 500 15px/1 var(--mono); color: var(--accent); margin-bottom: 18px; }
.plan-d { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; flex: 1; }
.pricing-note { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 28px auto 0; text-align: center; }

/* ─── Форма — тёмная секция ───────────────────────────────────────────── */
.cta-final { padding-bottom: clamp(80px, 13vh, 150px); }
.cta-card { background: var(--ink); color: var(--paper); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-xl); }
.cta-title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-title); line-height: 1.08;
  text-align: center; margin-bottom: 14px; color: var(--paper); }
.cta-sub { text-align: center; color: color-mix(in srgb, var(--paper) 76%, transparent); max-width: 56ch; margin: 0 auto 36px; }
.demo-form { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; }
.form-row .field { flex: 1 1 220px; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 64%, transparent); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--paper);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md);
  padding: 14px 16px; transition: border-color .18s, box-shadow .18s; resize: vertical; }
.field select option { color: #211a11; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 236, 218, .42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 24%, transparent); }
.field input.invalid, .field textarea.invalid { border-color: #e0735c; }
.demo-form .btn-submit { background: var(--accent); color: #fff; border: 0; margin-top: 6px; }
.demo-form .btn-submit:hover { background: var(--accent-soft); color: #2a160b; transform: translateY(-2px); }
.form-status { text-align: center; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #9cc47e; }
.form-status.err { color: #ec8f78; }
.form-status a { color: var(--accent-soft); text-decoration: underline; }

/* ─── Подвал ──────────────────────────────────────────────────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 44px clamp(18px, 5vw, 56px) 100px;
  border-top: 1px solid var(--rule); display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ─── Липкий призыв (моб.) ────────────────────────────────────────────── */
.sticky-cta { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 60;
  display: none; padding: 15px 30px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 16px/1 var(--sans); box-shadow: 0 12px 34px rgba(33, 26, 17, .30); transition: transform .4s var(--ease); }
.sticky-cta.show { transform: translate(-50%, 0); }

/* ─── Адаптив ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }

  /* Показываем переключатели в шапке, но прячем CTA-кнопку */
  .nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-controls .btn-mini {
    display: none;
  }

  /* Компактные точки темы */
  .nav-controls .theme-dots {
    gap: 3px;
    padding: 3px;
  }
  .nav-controls .theme-dots button {
    width: 26px;
    padding: 5px 0;
  }
  .nav-controls .theme-dots .dot {
    width: 11px;
    height: 11px;
  }

  /* Компактные кнопки языка */
  .nav-controls .langs {
    gap: 1px;
    padding: 3px;
  }
  .nav-controls .langs button {
    font-size: 10px;
    padding: 5px 6px;
  }

  /* Бургер прижат к правому краю */
  .burger {
    margin-left: auto;
  }

  /* Убираем дубликаты из мобильного меню (на случай если не удалены из HTML) */
  .menu .menu-controls {
    display: none;
  }

  .benefits, .steps, .plans, .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 8px 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); }
  .sticky-cta { display: inline-flex; }
}

/* ─── Адаптив для очень узких экранов ─────────────────────────────────────────────────────────── */
@media (max-width: 379px) {
  .nav-controls {
    gap: 5px;
  }
  .nav-controls .theme-dots .dot {
    width: 9px;
    height: 9px;
  }
  .nav-controls .langs button {
    font-size: 9px;
    padding: 4px 5px;
  }
  .brand-word {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .form-row { flex-direction: column; }
}

/* ─── Уважение к reduced-motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  /* .cursor { display: none; } */
  .demo-seg, .demo-summary { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Секция мокапов — переопределение блока #interfaces
   ═══════════════════════════════════════════════════════════════════ */

.mockup-section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  overflow: hidden;
}

/* Фоновые свечения */
.mockup-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 70vh;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    color-mix(in srgb, var(--accent-soft) 8%, transparent),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.mockup-section::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 40vh;
  background: radial-gradient(
    ellipse 50% 60% at 50% 100%,
    color-mix(in srgb, var(--accent) 5%, transparent),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Сетка-паттерн */
.mockup-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .035;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Частицы */
.mockup-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mockup-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  15%  { opacity: .6; transform: translateY(-30px) scale(1); }
  85%  { opacity: .4; transform: translateY(-180px) scale(.8); }
  100% { opacity: 0; transform: translateY(-220px) scale(0); }
}

.mockup-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* Подзаголовок */
.mockup-subtitle {
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* ── Раскладка ─────────────────────────────────────────────────────── */
.mockup-pair {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

/* Пунктир между устройствами */
.mockup-pair::before {
  content: '';
  position: absolute;
  bottom: 38%;
  left: 38%;
  right: 22%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--rule) 0px, var(--rule) 6px,
    transparent 6px, transparent 12px
  );
  z-index: 0;
}

/* ── Аннотации (фиксированный вылет от устройств) ─────────────────── */
.mockup-annotation {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-width: 200px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mockup-annotation.visible { opacity: 1; transform: translateY(0); }

/* Справа от десктопа, фиксированный отступ */
.mockup-annotation-1 {
  top: 10%;
  right: -220px;
}

/* Слева от мобильного, фиксированный отступ */
.mockup-annotation-2 {
  bottom: 28%;
  left: -210px;
}

/* ── MacBook ───────────────────────────────────────────────────────── */
.mockup-desktop {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(620px, 56vw);
  animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.mockup-desktop .device-frame {
  position: relative;
  background: linear-gradient(160deg, #3a3632 0%, #1e1b17 100%);
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 0;
  box-shadow:
    0 30px 80px rgba(0,0,0,.25),
    0 8px 24px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.mockup-desktop .device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: #1a1714;
  border-radius: 0 0 8px 8px;
  z-index: 3;
}
.mockup-desktop .device-notch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a4a3a, #1a2a20);
  box-shadow: 0 0 3px rgba(60,180,120,.3);
}
.mockup-desktop .device-screen {
  background: var(--paper-2);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}
.mockup-desktop .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease);
}
.mockup-desktop:hover .device-screen img { transform: scale(1.02); }
.mockup-desktop .device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
  z-index: 2;
}
.mockup-desktop .device-base {
  position: relative;
  width: calc(100% + 40px);
  left: -20px;
  height: 14px;
  background: linear-gradient(180deg, #3a3632 0%, #2a2723 40%, #1e1b17 100%);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}
.mockup-desktop .device-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #1a1714;
  border-radius: 0 0 6px 6px;
}
.mockup-desktop .device-base::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.15), transparent 70%);
}

/* ── iPhone ────────────────────────────────────────────────────────── */
.mockup-mobile {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin-left: -40px;
  margin-bottom: 30px;
  animation: deviceFloat 6s ease-in-out infinite;
  animation-delay: -2.5s;
}
.mockup-mobile .device-frame {
  position: relative;
  background: linear-gradient(160deg, #3a3632 0%, #1e1b17 100%);
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.3),
    0 8px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.mockup-mobile .device-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: #0e0c0a;
  border-radius: 20px;
  z-index: 5;
}
.mockup-mobile .device-island::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1a3028, #0e1a14);
  box-shadow: 0 0 4px rgba(60,180,120,.25);
}
.mockup-mobile .device-screen {
  background: var(--paper-2);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  width: 190px;
  position: relative;
}
.mockup-mobile .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease);
}
.mockup-mobile:hover .device-screen img { transform: scale(1.03); }
.mockup-mobile .device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.09) 0%, transparent 35%, transparent 65%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
  z-index: 2;
}
.mockup-mobile .device-frame::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 28%;
  width: 3px;
  height: 32px;
  background: linear-gradient(180deg, #3a3632, #2a2723);
  border-radius: 0 2px 2px 0;
}
.mockup-mobile .device-frame::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 24%;
  width: 3px;
  height: 22px;
  background: linear-gradient(180deg, #3a3632, #2a2723);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 28px 0 #2e2b27;
}
.mockup-mobile-shadow {
  width: 120px;
  height: 16px;
  margin: 8px auto 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.12), transparent 70%);
}

/* ── Подписи устройств ─────────────────────────────────────────────── */
.mockup-section .device-label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
  text-align: center;
}

/* ── Фича-бейджи ──────────────────────────────────────────────────── */
.mockup-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.mockup-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--t-hover), border-color var(--t-hover);
}
.mockup-feat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
}
.mockup-feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}
.mockup-feat-icon svg { width: 16px; height: 16px; }
.mockup-feat-text { font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* ── Адаптив мокапов ───────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .mockup-desktop { width: min(520px, 60vw); }
  .mockup-mobile { margin-left: -30px; }
  .mockup-mobile .device-screen { width: 160px; }
  .mockup-annotation { display: none; }
  .mockup-pair::before { display: none; }
}
@media (max-width: 768px) {
  .mockup-pair { flex-direction: column; align-items: center; gap: 0; }
  .mockup-desktop { width: min(480px, 88vw); }
  .mockup-mobile { margin-left: 0; margin-top: -20px; margin-bottom: 0; order: -1; }
  .mockup-mobile .device-screen { width: 150px; }
  .mockup-features { gap: 12px; }
  .mockup-feat { padding: 10px 14px; }
}
@media (max-width: 480px) {
  .mockup-desktop { width: 92vw; }
  .mockup-mobile .device-screen { width: 130px; }
  .mockup-features { flex-direction: column; align-items: center; }
  .mockup-feat { width: 100%; max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .mockup-desktop, .mockup-mobile { animation: none !important; }
  .mockup-particle { animation: none !important; display: none; }
  .mockup-annotation { opacity: 1; transform: none; transition: none; }
}