:root {
  --bg: #0f1115;
  --bg-alt: #161a21;
  --card: #1c2129;
  --line: #2a313c;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #f97316;
  --accent-soft: #fdba74;
  --radius: 14px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; max-width: 34em; }

.draft-banner { background: #facc15; color: #111; text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; background: var(--accent); color: #111; font-weight: 600; border: 2px solid var(--accent); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--accent-soft); border-color: var(--accent-soft); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); border-color: var(--muted); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 21, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6em; font-weight: 700; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #4b5563, #1f2937); border: 1px solid var(--line); color: var(--accent); font-size: .95rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a:not(.btn) { color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 0; background: radial-gradient(900px 500px at 85% 20%, rgba(249, 115, 22, .12), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-bottom: 72px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 0; }
.stats strong { display: block; font-size: 1.8rem; color: var(--text); }
.stats span { font-size: .88rem; color: var(--muted); }
.hero__art { position: relative; }
.hero__svg { width: 100%; max-width: 420px; margin: 0 auto; }
.sparks { animation: flicker 1.6s infinite; transform-origin: 220px 200px; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 55% { opacity: .9; } }
.float-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: .85rem; }
.float-card strong { display: block; color: var(--text); }
.float-card span { color: var(--muted); }
.float-card--a { left: 0; bottom: 18%; }
.float-card--b { right: 0; top: 10%; }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { padding: 14px 28px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ticker__track span::before { content: "◆"; color: var(--accent); margin-right: 28px; font-size: .7em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.about__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.about__row:last-child { border-bottom: 0; }
.about__row span { color: var(--muted); }
.about__row strong { text-align: right; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(249, 115, 22, .5); transform: translateY(-3px); }
.card__icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: rgba(249, 115, 22, .12); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px; border-top: 2px solid var(--line); }
.steps li:hover { border-top-color: var(--accent); }
.steps__num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); opacity: .85; margin-bottom: 10px; }

.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.why__list { display: grid; gap: 22px; margin-top: 28px; }
.why__list h3 { margin-bottom: .25em; }
.why__list p { margin: 0; }
.why__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.why__panel ul { list-style: none; padding: 0; margin: 12px 0 0; }
.why__panel li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.why__panel li:last-child { border-bottom: 0; }
.why__panel li span { color: var(--muted); }

.cta { text-align: center; padding: 64px 32px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(600px 300px at 50% 0%, rgba(249, 115, 22, .18), transparent 70%), var(--card); }
.cta p { max-width: 36em; margin: 0 auto 28px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 24px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.footer a:not(.logo) { display: block; color: var(--muted); margin-bottom: 8px; }
.footer a:not(.logo):hover { color: var(--text); }
.logo--footer { margin-bottom: 14px; }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { color: var(--muted); }
.legal a { color: var(--accent); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .about, .why { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .btn { margin-top: 8px; }
  .grid--3, .steps, .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .sparks { animation: none; }
}
.footer__bottom a:not(.logo) { display: inline; margin: 0; }

/* App-workshop version */
.btn--disabled { opacity: .6; pointer-events: none; }
.section__lead { max-width: 40em; }
.about__title { margin: 16px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.key { animation: turn 6s ease-in-out infinite; transform-origin: 58px 300px; }
@keyframes turn { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(18px); } }
.company { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.company span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.company a, .footer p a { color: var(--text); }
.footer p a:not(.logo) { display: inline; margin: 0; }
@media (max-width: 960px) { .company { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .steps--6, .company { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .key { animation: none; } }
/* карточки не должны закрывать ключ внизу слева */
.float-card--a { top: 14%; bottom: auto; }
.float-card--b { top: auto; bottom: 16%; }
