/* ============================================================================
   ALTGRAM.RU — design system «Сигнал на графите»
   Fonts: Unbounded (display) · Manrope (body) · JetBrains Mono (signal)
   ========================================================================== */

/* ---------------------------------- tokens ------------------------------- */
:root {
  --accent:        #FF7A1E;
  --accent-2:      #FF9448;
  --accent-deep:   #C2500A;
  --accent-glow:   rgba(255, 122, 30, .30);
  --accent-soft:   rgba(255, 122, 30, .12);

  --bg:            #111114;
  --bg-2:          #0C0C0F;
  --surface:       #18181D;
  --surface-2:     #1E1E24;
  --text:          #F5F4F1;
  --muted:         #A2A3AB;
  --faint:         #74757D;
  --hair:          rgba(255,255,255,.07);
  --line:          rgba(255,255,255,.10);
  --chip:          rgba(255,255,255,.04);
  --chip-hover:    rgba(255,255,255,.08);
  --grid:          rgba(255,255,255,.035);
  --header-bg:     rgba(17,17,20,.74);
  --shadow:        0 20px 60px rgba(0,0,0,.45);
  --shadow-soft:   0 10px 30px rgba(0,0,0,.30);
  --tile-grad:     radial-gradient(circle at 50% 130%, var(--accent-deep), #1A1519);
  --btn-ink:       #140B05;
  --ok:            #34C77B;

  --font-display:  'Unbounded', sans-serif;
  --font-body:     'Manrope', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --container: 1180px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --accent:        #F06A0E;
  --accent-2:      #FF8B3D;
  --accent-deep:   #C2500A;
  --accent-glow:   rgba(240, 106, 14, .22);
  --accent-soft:   rgba(240, 106, 14, .10);

  --bg:            #F7F6F3;
  --bg-2:          #EFEDE8;
  --surface:       #FFFFFF;
  --surface-2:     #FBFAF8;
  --text:          #1B1B1F;
  --muted:         #585962;
  --faint:         #8B8C94;
  --hair:          rgba(20,20,28,.08);
  --line:          rgba(20,20,28,.12);
  --chip:          rgba(20,20,28,.04);
  --chip-hover:    rgba(20,20,28,.08);
  --grid:          rgba(20,20,28,.05);
  --header-bg:     rgba(247,246,243,.78);
  --shadow:        0 20px 60px rgba(35,25,15,.14);
  --shadow-soft:   0 10px 30px rgba(35,25,15,.10);
  --tile-grad:     radial-gradient(circle at 50% 130%, var(--accent-deep), #2A2026);
  --btn-ink:       #FFF7F0;
  color-scheme: light;
}

/* ---------------------------------- base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(255,122,30,.35); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

@keyframes floatDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink      { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes glowPulse  { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes spinSlow   { to { transform: rotate(360deg); } }
@keyframes typing     { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes waveBar    { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes msgIn      { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ringPulse  { 0% { transform: scale(.85); opacity: .7; } 80% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------- header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--hair);
}
.header-in {
  max-width: var(--container); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-tile {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: url(favicon.svg) center/100% 100% no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.brand-tile svg { display: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-name span {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .46em; color: var(--accent); margin-top: 3px; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.main-nav a { text-decoration: none; transition: color .15s ease; padding: 6px 0; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--chip); border: 1px solid var(--hair); color: var(--text);
  cursor: pointer; transition: background .2s ease;
}
.icon-btn:hover { background: var(--chip-hover); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent); color: var(--btn-ink);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost {
  background: var(--chip); color: var(--text); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--chip-hover); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* language switcher (RU/EN pill) */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: var(--chip); border: 1px solid var(--hair);
  border-radius: 11px; padding: 3px;
}
.ls-btn {
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--faint); transition: color .15s ease;
}
.ls-btn:not(.active):hover { color: var(--text); }
.ls-btn.active { background: var(--accent); color: var(--btn-ink); pointer-events: none; }

.burger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: grid; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 22px 20px; border-top: 1px solid var(--hair);
    background: var(--header-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-menu a {
    padding: 14px 4px; text-decoration: none; font-weight: 600; font-size: 17px;
    border-bottom: 1px solid var(--hair);
  }
  .mobile-menu a.active { color: var(--accent); }
  .mobile-menu .btn { margin-top: 14px; }
}

/* ---------------------------------- hero shell --------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(46px, 7vw, 96px) 0 clamp(50px, 7vw, 96px);
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 74% 66% at 50% 32%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 74% 66% at 50% 32%, #000, transparent 78%);
}
.bg-glow {
  position: absolute; pointer-events: none; filter: blur(40px); opacity: .65;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  animation: glowPulse 8s ease-in-out infinite;
}
.orbit {
  position: absolute; border: 1px solid var(--hair); border-radius: 50%;
  pointer-events: none; animation: spinSlow 70s linear infinite;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--chip);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}

.h-display {
  font-weight: 700; font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05; margin-top: 22px;
}
.h-sub {
  color: var(--muted); font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65; margin-top: 22px; max-width: 560px;
}
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }
.trust-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--faint);
}
.trust-row .sep { opacity: .4; }
.trust-row .hl { color: var(--accent); font-weight: 600; }

/* ---------------------------------- sections ----------------------------- */
.section { position: relative; padding: clamp(52px, 7vw, 100px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.h-section {
  font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.14;
  margin-top: 14px; max-width: 700px;
}
.section-lead { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 640px; }

/* cards */
.grid { display: grid; gap: 16px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-soft); }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 9px; }
.card .mono-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  letter-spacing: .08em; margin-top: 14px; display: block;
}

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px;
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--surface); padding: 20px 22px;
}
.stat b { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--accent); }
.stat span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 30px; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--btn-ink); background: var(--accent);
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
}

/* terminal */
.terminal {
  border-radius: var(--r-lg); overflow: hidden;
  background: #101014; border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--shadow); color: #E8E7E3;
}
html[data-theme="light"] .terminal { background: #17171C; }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.terminal-bar i:first-child { background: #E5484D; }
.terminal-bar i:nth-child(2) { background: #E0A03A; }
.terminal-bar i:nth-child(3) { background: #34C77B; }
.terminal-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: #85868D; }
.terminal-body {
  padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2;
  overflow-x: auto; white-space: pre;
}
.terminal-body .c { color: #6f7077; }
.terminal-body .g { color: #34C77B; }
.terminal-body .o { color: var(--accent-2); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s step-end infinite; }

/* split layout */
.split { display: flex; gap: clamp(28px, 5vw, 64px); align-items: center; flex-wrap: wrap; }
.split > div { flex: 1 1 440px; min-width: 0; }

.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.checklist li .tick {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.checklist li span b { display: block; font-weight: 700; }
.checklist li span em { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 90% 130% at 85% -20%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, var(--accent-deep), var(--accent) 65%, var(--accent-2));
  color: #FFF7F0; padding: clamp(36px, 5vw, 64px);
  box-shadow: 0 26px 70px var(--accent-glow);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -.02em; max-width: 620px; }
.cta-band p { margin-top: 14px; font-size: 16.5px; opacity: .92; max-width: 560px; }
.cta-band .btn-primary { background: #17130F; color: #FFEFE2; box-shadow: 0 14px 34px rgba(20,10,0,.35); }
.cta-band .btn-primary:hover { background: #241D16; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* footer */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg-2); margin-top: clamp(56px, 7vw, 100px); }
.footer-in {
  max-width: var(--container); margin: 0 auto; padding: 46px 22px 30px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(30px, 6vw, 80px); flex-wrap: wrap; }
.footer-col b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-family: var(--font-mono); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 18px 22px 26px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px; font-family: var(--font-mono);
}

/* ------------------------------ chat mockup ------------------------------ */
.mockup {
  position: relative; width: 100%; max-width: 460px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mock-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--hair); background: var(--surface-2);
}
.mock-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.mock-head .mh-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.mock-head .mh-sub { font-size: 12px; color: var(--accent); }
.mock-head .mh-icons { margin-left: auto; display: flex; gap: 14px; color: var(--faint); }

.mock-stories { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hair); overflow: hidden; }
.mock-story { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.mock-story .ring {
  width: 44px; height: 44px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent));
}
.mock-story .ring.seen { background: var(--line); }
.mock-story .ring > i {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; border: 2px solid var(--surface);
  color: #fff; font-style: normal; font-weight: 700; font-size: 13px;
}

.mock-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.m-msg { max-width: 82%; padding: 9px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.45; animation: msgIn .5s ease both; }
.m-in  { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--hair); border-bottom-left-radius: 5px; }
.m-out { align-self: flex-end; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #FFF3E9; border-bottom-right-radius: 5px; }
.m-time { display: inline-block; font-size: 10px; opacity: .6; margin-left: 8px; }
.m-note {
  align-self: flex-start; width: 108px; height: 108px; border-radius: 50%;
  background: var(--tile-grad); border: 2.5px solid var(--accent);
  display: grid; place-items: center; color: var(--accent); animation: msgIn .5s ease both;
}
.m-voice { display: flex; align-items: center; gap: 9px; }
.m-voice .wave { display: flex; align-items: center; gap: 2.5px; height: 20px; }
.m-voice .wave i {
  width: 3px; border-radius: 2px; background: currentColor; height: 100%;
  transform-origin: center; animation: waveBar 1.1s ease-in-out infinite;
}
.m-voice .wave i:nth-child(2n)  { animation-delay: .15s; height: 65%; }
.m-voice .wave i:nth-child(3n)  { animation-delay: .3s;  height: 85%; }
.m-voice .wave i:nth-child(5n)  { animation-delay: .45s; height: 50%; }
.m-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 15px; }
.m-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1.2s ease-in-out infinite; }
.m-typing i:nth-child(2) { animation-delay: .18s; }
.m-typing i:nth-child(3) { animation-delay: .36s; }

.float-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); font-size: 13.5px; font-weight: 600;
  animation: floatDrift 6.5s ease-in-out infinite;
}
.float-chip .fc-ico {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none;
}
.float-chip small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; }

/* ------------------------------ call mockup ------------------------------ */
.call-mock {
  border-radius: var(--r-xl); overflow: hidden; background: #131317;
  border: 1px solid rgba(255,255,255,.09); box-shadow: var(--shadow); padding: 16px;
}
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.call-tile {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
}
.call-tile .ct-name {
  position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 8px;
}
.call-tile .mock-ava { width: 52px; height: 52px; font-size: 19px; }
.call-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.call-controls i {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #E8E7E3;
}
.call-controls i.rec { background: rgba(229,72,77,.2); color: #FF8589; }
.call-controls i.end { background: #E5484D; color: #fff; }

/* gradient avatar palettes */
.g1 { background: linear-gradient(135deg,#FF8A6A,#E5484D); }
.g2 { background: linear-gradient(135deg,#FFCA48,#E0A03A); }
.g3 { background: linear-gradient(135deg,#63CF62,#2F8F3E); }
.g4 { background: linear-gradient(135deg,#57B6FF,#1C6FD0); }
.g5 { background: linear-gradient(135deg,#FF9448,#C2500A); }

/* ------------------------------ page hero (inner pages) ------------------ */
.page-hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0 clamp(30px, 4vw, 54px); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; line-height: 1.08; margin-top: 18px; }
.page-hero .h-sub { margin-top: 18px; }

/* split hero with an animated visual on the right (как на главной) */
.hero-split {
  position: relative; display: flex; gap: clamp(32px, 5vw, 56px);
  align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.hero-copy { flex: 1 1 440px; max-width: 640px; min-width: 0; }
.hero-visual { flex: 0 1 430px; position: relative; margin: 0 auto; min-width: 0; }
@media (max-width: 640px) { .hero-visual { flex-basis: 100%; } }
/* когда hero-split переносит визуал под текст — плавающие чипы встают в поток,
   чтобы не перекрывать заголовок/подзаголовок и не вылезать за экран */
@media (max-width: 960px) {
  .hero-visual .float-chip { position: static; width: max-content; max-width: 100%; margin: 14px 0; }
  .hero-visual .m-note { display: none; }
}

/* stacked floating cards (features) */
.stack-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  animation: floatDrift 7s ease-in-out infinite;
}
.stack-card + .stack-card { margin-top: 14px; }
.stack-card .sc-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.rx-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px; font-size: 13px;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.rx-pill b { font-size: 12px; color: var(--accent); }

/* mini admin dashboard (business) */
.mini-dash {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mini-dash .md-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--hair); background: var(--surface-2);
  font-weight: 700; font-size: 13.5px;
}
.mini-dash .md-head .mono { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.mini-dash .md-body { padding: 16px 18px 18px; }
.md-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.md-stat {
  border: 1px solid var(--hair); border-radius: 12px; padding: 11px 13px;
  background: var(--chip);
}
.md-stat b { font-family: var(--font-display); font-size: 19px; color: var(--accent); display: block; }
.md-stat span { font-size: 11px; color: var(--muted); }
.md-chart {
  display: flex; align-items: flex-end; gap: 7px; height: 96px;
  margin-top: 16px; padding: 12px 12px 0;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--chip);
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.md-chart i {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  transform-origin: bottom; animation: barGrow .9s cubic-bezier(.2,.8,.3,1) both;
}
.md-chart-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--faint);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; text-align: right;
}

/* staggered terminal lines (download) */
.term-line { opacity: 0; animation: msgIn .45s ease both; }

/* q&a mini chat (faq) */
.qa-mock {
  border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
}

/* prose blocks (faq, docs) */
.faq-item {
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--surface); margin-top: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--accent); font-size: 20px; transition: transform .2s ease; flex: none; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-item .faq-body code { font-family: var(--font-mono); font-size: 13px; background: var(--chip); border: 1px solid var(--hair); padding: 2px 7px; border-radius: 6px; }

/* table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.spec-table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.spec-table td:first-child { font-weight: 600; }
.spec-table td { color: var(--muted); }
.spec-table td:first-child { color: var(--text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
