/* ============================================================
   AKU AUTOMATION — core stylesheet
   Тема переключается атрибутом data-theme на <html>
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --bg:        #08080A;
  --bg-2:      #0D0D10;
  --surface:   #121216;
  --surface-2: #17171C;
  --line:      #26262C;
  --line-soft: #1B1B20;
  --txt:       #F4F4F5;
  --txt-2:     #8E8E98;
  --txt-3:     #5C5C66;
  --accent:    #DB2022;
  --accent-2:  #FF4A4C;
  --accent-soft: rgba(219, 32, 34, .10);
  --ok:        #4FA97A;
  --wait:      #D9A036;
  --glow:      rgba(219, 32, 34, .16);
  --noise-op:  .035;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --shell: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="light"] {
  --bg:        #F5F4F1;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF8;
  --line:      #E2E1DB;
  --line-soft: #EDECE7;
  --txt:       #101013;
  --txt-2:     #63636B;
  --txt-3:     #91919A;
  --accent:    #C41A1C;
  --accent-2:  #DB2022;
  --accent-soft: rgba(196, 26, 28, .07);
  --ok:        #2F7D53;
  --wait:      #A9761C;
  --glow:      rgba(196, 26, 28, .10);
  --noise-op:  .025;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- 3. Фон: сетка + шум + курсорное свечение ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, #000 20%, transparent 78%);
  opacity: .8;
}

.bg-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 0; top: 0;
  margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  transform: translate3d(50vw, 22vh, 0);
  will-change: transform;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: var(--noise-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Каркас ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

section { position: relative; }

.rule {
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

/* Сетка секции: липкая метка слева + контент справа */
.sec {
  padding-block: clamp(72px, 11vh, 130px);
}
.sec-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.sec-label {
  position: sticky;
  top: 116px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.sec-label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

/* ---------- 5. Типографика ---------- */
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 20px;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.22;
  letter-spacing: -.024em;
  margin: 0 0 10px;
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--txt-2);
  max-width: 62ch;
  margin: 0;
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--txt-2); }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.accent { color: var(--accent); }

/* ---------- 6. Шапка ---------- */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.head.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.head-in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand-mark {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand b { color: var(--accent); font-weight: 700; }

.nav {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  color: var(--txt-2);
}
.nav a { position: relative; padding-block: 4px; transition: color .25s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--txt); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.head-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--txt-2);
  transition: color .25s, border-color .25s, background .25s;
}
.icon-btn:hover { color: var(--txt); border-color: var(--txt-3); background: var(--surface); }

.lang {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--txt-2);
  transition: color .25s, border-color .25s;
}
.lang-btn:hover { color: var(--txt); border-color: var(--txt-3); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 148px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .25s var(--ease);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--txt-2);
  transition: background .2s, color .2s;
}
.lang-menu a:hover { background: var(--surface-2); color: var(--txt); }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--txt-3); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding-inline: 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--txt);
}
.btn-ghost:hover { border-color: var(--txt-3); background: var(--surface); }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 13.5px; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- 7. Hero ---------- */
.hero {
  padding-top: clamp(120px, 17vh, 172px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 26px;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.h1 .ln { display: block; overflow: hidden; }
.h1 .ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.is-ready .h1 .ln > span { transform: translateY(0); }
.is-ready .h1 .ln:nth-child(2) > span { transition-delay: .09s; }
.is-ready .h1 .ln:nth-child(3) > span { transition-delay: .18s; }

.hero-sub {
  margin: 26px 0 32px;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  color: var(--txt-2);
  max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-meta {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.metric { min-width: 0; }
.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.metric > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-top: 6px;
}
.metric strong span {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* Сигнатура: журнал системы */
.console {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.8);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.console-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.console-bar .spacer { margin-left: auto; }

.log {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.5;
  min-height: 296px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.log-line {
  display: grid;
  grid-template-columns: 46px 14px 1fr;
  gap: 9px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(6px);
  animation: logIn .5s var(--ease) forwards;
}
@keyframes logIn { to { opacity: 1; transform: translateY(0); } }
.log-time { color: var(--txt-3); }
.log-ico  { color: var(--accent); }
.log-txt  { color: var(--txt-2); }
.log-txt b { color: var(--txt); font-weight: 500; }
.log-line.ok   .log-ico { color: var(--ok); }
.log-line.wait .log-ico { color: var(--wait); }

.console-foot {
  border-top: 1px solid var(--line);
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--txt-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 8. Тикер ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding-block: 15px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding-inline: 26px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 26px;
}
.ticker-item::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ---------- 9. Карточки / общие блоки ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 14px;
}
.card p { font-size: 14.6px; color: var(--txt-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.sec-grid > *, .hero-grid > * { min-width: 0; }

/* Ниши */
.niche {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.niche-card {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .4s var(--ease), background .4s;
  position: relative;
  overflow: hidden;
}
.niche-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
}
.niche-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.niche-card:hover::after { transform: scaleY(1); }
.niche-side { display: flex; flex-direction: column; gap: 10px; }
.niche-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--line);
  transition: color .4s var(--ease);
}
.niche-card:hover .niche-num { color: var(--accent); }
.niche-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.niche-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.niche-card li {
  font-size: 14px;
  color: var(--txt-2);
  padding-left: 18px;
  position: relative;
}
.niche-card li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 12px;
}
.niche-go {
  align-self: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--txt-2);
  transition: all .35s var(--ease);
  flex: none;
}
.niche-card:hover .niche-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* Кейс */
.case-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
}
.chip.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

.steps { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step-n {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .08em;
}
.step h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.step p { font-size: 14px; color: var(--txt-2); margin: 0; }

.guard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.guard-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px;
}
.guard-card .ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.guard-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.guard-card p { font-size: 13.8px; color: var(--txt-2); margin: 0; }

/* Телефон-мокап */
.phone {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 14px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.phone-top {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  flex: none;
}
.phone-top b { font-size: 14px; font-weight: 600; display: block; letter-spacing: -.015em; }
.phone-top small { font-family: var(--font-mono); font-size: 10px; color: var(--ok); letter-spacing: .1em; }
.msgs { display: grid; gap: 9px; }
.msg {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.6px;
  line-height: 1.45;
  max-width: 88%;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.msg.out {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.msg .t {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--txt-3);
  margin-top: 6px;
  letter-spacing: .08em;
}
.msg.out .t { color: rgba(255,255,255,.7); }
.msg table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 11.5px; margin-top: 6px; }
.msg td { padding: 3px 0; color: var(--txt-2); }
.msg td:last-child { text-align: right; color: var(--txt); }

/* Сводка владельца */
.digest { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.digest-top {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3);
}
.digest-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.digest-stats div {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.digest-stats div:last-child { border-right: 0; }
.digest-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em;
}
.digest-stats div > span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); }
.digest-stats b span { font: inherit; color: inherit; letter-spacing: inherit; }
.digest-body { padding: 18px; display: grid; gap: 16px; }
.digest-ask { border: 1px solid color-mix(in srgb, var(--wait) 34%, var(--line)); border-radius: 11px; padding: 14px; }
.digest-ask .mono { color: var(--wait); margin-bottom: 8px; display: block; }
.digest-ask p { font-size: 14px; margin: 0 0 12px; }
.digest-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.digest-btns button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--txt-2);
  transition: all .25s;
}
.digest-btns button:hover { border-color: var(--accent); color: var(--accent); }
.digest-done { font-size: 13.6px; color: var(--txt-2); display: flex; gap: 9px; }
.digest-done .ok { color: var(--ok); flex: none; }

/* Процесс */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.flow-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 26px; position: relative; }
.flow-card .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: .1em; display: block; margin-bottom: 16px;
}
.flow-card p { font-size: 14.2px; color: var(--txt-2); margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding-block: 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .plus {
  margin-left: auto;
  flex: none;
  width: 20px; height: 20px;
  position: relative;
  transition: transform .35s var(--ease);
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq summary .plus::before { width: 13px; height: 1.5px; }
.faq summary .plus::after  { width: 1.5px; height: 13px; transition: opacity .3s; }
.faq details[open] summary .plus { transform: rotate(90deg); }
.faq details[open] summary .plus::after { opacity: 0; }
.faq .answer { padding: 0 38px 24px 0; color: var(--txt-2); font-size: 15px; max-width: 76ch; }

/* Финальный CTA */
.final {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(34px, 6vw, 76px);
  background:
    radial-gradient(700px circle at 15% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.final .h2 { max-width: 20ch; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding-block: 46px 34px; margin-top: clamp(60px, 9vh, 100px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.foot h5 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--txt-3); margin: 0 0 14px; font-weight: 400;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { font-size: 14px; color: var(--txt-2); transition: color .25s; }
.foot a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--txt-3);
}

/* ---------- 10. Появление по скроллу ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; }
.rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; }
.rv-d4 { transition-delay: .28s; }

.rule-rv { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.rule-rv.in { transform: scaleX(1); }

/* ---------- 12. Полоса прогресса чтения ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--accent);
  z-index: 70;
}

/* ---------- 13. Мобильное меню ---------- */
.burger { display: none; }
.m-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 80;
  padding: 90px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.m-menu.is-open { transform: translateY(0); }
.m-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.m-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- 14. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-label { position: static; margin-bottom: 6px; }
  .niche-card { grid-template-columns: 1fr auto; }
  .niche-card .niche-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
  }
  .niche-num { font-size: 1.5rem; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .guard, .flow, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .head-in { gap: 8px; height: 60px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .icon-btn, .lang-btn { height: 32px; }
  .icon-btn { width: 32px; }
  .lang-btn { padding-inline: 9px; }
  .head-tools > .btn-primary { display: none; }   /* CTA живёт в бургер-меню */
  .hero-meta { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .metric:last-child { grid-column: 1 / -1; }
  .phone { margin-inline: auto; }
  .final { border-radius: 16px; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .digest-stats { grid-template-columns: repeat(2, 1fr); }
  .digest-stats div:nth-child(2) { border-right: 0; }
  .digest-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-meta { gap: 20px 26px; }
  .step { grid-template-columns: 34px 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .log { font-size: 11.4px; }
  .log-line { grid-template-columns: 42px 12px 1fr; gap: 7px; }
}

/* ---------- 15. Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .h1 .ln > span { transform: none; }
  .rule-rv { transform: none; }
}

/* Совсем узкие экраны: оставляем только знак логотипа */
@media (max-width: 400px) {
  .brand span { display: none; }
}
