/* Willo Retail CRM — сайт. Токены цвета: светлая тема в :root, тёмная в :root[data-theme="dark"]; дальше база, шапка, подвал и страницы.
   Цвета в правилах берутся только из токенов, чтобы тема переключалась целиком. */
:root {
  color-scheme: light;
  --bg: #f7fbf8;
  --bg-glow: rgba(29, 179, 107, .13);
  --surface: #ffffff;
  --surface-2: #f3faf6;
  --ink: #0e1a14;
  --muted: #55665d;
  --line: #dbe8e0;
  --placeholder: #7a8a82;
  --accent: #138a53;              /* зелёный текст и значки */
  --accent-strong: #0d5c3b;       /* зелёный текст на светлых плашках и обводка кнопок */
  --accent-soft: #e3f5ea;         /* фон плашек */
  --accent-tint: #f3faf6;         /* лёгкий зелёный фон блоков */
  --accent-line: #bfe8d0;         /* зелёные границы */
  --dot: #1db36b;                 /* точки, кольцо фокуса */
  --btn-bg: #0d5c3b;
  --btn-ink: #ffffff;
  --btn-hover: #0b3d2a;
  --btn-shadow: 0 6px 16px rgba(13, 92, 59, .25);
  --ring: rgba(29, 179, 107, .18);
  --header-bg: rgba(255, 255, 255, .88);
  --footer-bg: #072a1c;
  --footer-bg-2: #0b3a27;
  --footer-ink: #e6f2eb;
  --footer-muted: #9db8a9;
  --cta-from: #072a1c;
  --cta-to: #0d5c3b;
  --metal-1: #dbe3de;
  --metal-2: #a9b7af;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b42318;
  --red-bg: #fee4e2;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(13, 92, 59, .10);
  --shadow-soft: 0 6px 18px rgba(13, 92, 59, .06);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050907;
  --bg-glow: rgba(46, 226, 124, .16);
  --surface: #0c1310;
  --surface-2: #101a15;
  --ink: #ecf4ee;
  --muted: #93a79b;
  --line: #1b2b22;
  --placeholder: #6f8478;
  --accent: #34e08a;
  --accent-strong: #3ee890;
  --accent-soft: #10281c;
  --accent-tint: #0a1710;
  --accent-line: #1d4a32;
  --dot: #34e08a;
  --btn-bg: #2ee27c;
  --btn-ink: #03150a;
  --btn-hover: #5bf09b;
  --btn-shadow: 0 6px 22px rgba(46, 226, 124, .28);
  --ring: rgba(46, 226, 124, .28);
  --header-bg: rgba(6, 10, 8, .82);
  --footer-bg: #030705;
  --footer-bg-2: #07130d;
  --footer-ink: #dbe9e0;
  --footer-muted: #8aa598;
  --cta-from: #06150d;
  --cta-to: #0f5a35;
  --metal-1: #3a4540;
  --metal-2: #1f2824;
  --amber: #fbbf24;
  --amber-bg: #3a2a07;
  --red: #ff7b72;
  --red-bg: #3a1512;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg) radial-gradient(900px 500px at 85% -5%, var(--bg-glow), transparent 60%);
  background-repeat: no-repeat; overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;   /* короткие страницы: подвал внизу экрана */
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.015em; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.green { color: var(--accent); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--dot); outline-offset: 2px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1.5px solid transparent; font: 700 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--accent-strong); color: var(--accent-strong); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-light { background: #fff; color: #0b3d2a; }
.btn-light:hover { background: #e3f5ea; }
.btn-ghost { color: var(--accent-strong); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; position: relative; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: flex-start; }
.logo i { width: 7px; height: 7px; margin: 5px 0 0 2px; border-radius: 50%; background: var(--dot); }
.logo-light { color: #fff; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--accent-strong); background: var(--accent-tint); }
.nav-login { display: none; }
.bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .bar-actions { margin-left: 0; }
.theme-toggle, .burger { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; display: inline-grid; place-items: center; transition: border-color .15s, background .15s; }
.theme-toggle:hover, .burger:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- подвал ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 40px; background-color: var(--footer-bg); background-image: linear-gradient(120deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%); color: var(--footer-ink); }
.foot-cube { position: absolute; z-index: 0; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.foot-cube-l { left: -52px; bottom: -40px; width: 150px; height: 150px; opacity: .92; }
.foot-cube-r { right: -38px; top: -34px; width: 110px; height: 110px; opacity: .8; }
.foot-top { position: relative; z-index: 1; display: grid; gap: 22px 36px; align-items: center; padding-top: 40px; padding-bottom: 28px; grid-template-areas: "brand" "nav" "social"; }
.foot-brand { grid-area: brand; }
.foot-brand p { margin: 6px 0 0; font-size: 13.5px; color: var(--footer-muted); }
.foot-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-nav a { font-size: 14.5px; font-weight: 600; color: var(--footer-ink); }
.foot-nav a:hover, .foot-bottom a:hover { color: var(--dot); }
.foot-social { grid-area: social; display: flex; flex-wrap: wrap; gap: 10px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--footer-ink); transition: background .15s, color .15s; }
.foot-social a:hover { background: var(--dot); color: #03150a; }
.foot-social svg { width: 20px; height: 20px; }
.foot-bottom-wrap { position: relative; z-index: 1; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: var(--footer-muted); }
.foot-bottom a { color: var(--footer-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- заглушки страниц ---------- */
.stub { padding: 64px 0 24px; }

/* ---------- лендинг ---------- */
.arr { flex: none; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.cube { position: absolute; z-index: 2; width: 56px; height: 56px; filter: drop-shadow(0 12px 14px rgba(13, 92, 59, .25)); pointer-events: none; }

.hero { padding: 36px 0 12px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.facts li, .plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.facts li::before, .plan-list li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.hero-visual { position: relative; padding: 18px 0 34px; }
.laptop { position: relative; max-width: 640px; margin: 0 auto; }
.laptop-screen { border: 9px solid #17231d; border-bottom-width: 12px; border-radius: 18px 18px 4px 4px; background: #000; overflow: hidden; box-shadow: 0 30px 60px rgba(7, 42, 28, .28); }
.laptop-screen img { width: 100%; height: auto; }
.laptop::after { content: ''; display: block; height: 14px; margin: 0 -4%; border-radius: 0 0 22px 22px; background: linear-gradient(var(--metal-1), var(--metal-2)); box-shadow: 0 12px 20px rgba(7, 42, 28, .18); }
.phone { position: absolute; left: 0; bottom: 6px; width: min(24%, 150px); border: 6px solid #111915; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 20px 40px rgba(7, 42, 28, .35); }
.phone img { width: 100%; height: auto; }
.cube-a { top: -4px; right: 0; width: 64px; height: 64px; }
.cube-b { bottom: 40px; right: 0; width: 46px; height: 46px; transform: rotate(14deg); }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; border: 1px solid var(--line); }
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.chip-a { top: 4px; left: 6%; }
.chip-b { bottom: 0; right: 6%; }

.brands-section { padding: 28px 0; }
.brands-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.brands-title { margin: 0; font-weight: 700; color: var(--muted); }
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; color: var(--ink); }

.split { display: grid; gap: 28px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-soft); }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 12px; }
.ico svg { width: 22px; height: 22px; }
.also { margin: 22px 0 0; color: var(--muted); font-weight: 600; }

.how-card { position: relative; display: grid; gap: 28px; align-items: center; padding: 28px 22px; border-radius: 28px; background: var(--accent-tint); border: 1px solid var(--accent-line); overflow: hidden; }
.how-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.phone.phone-big { position: relative; z-index: 1; left: auto; bottom: auto; width: min(72vw, 300px); border-width: 8px; border-radius: 30px; }
.cube-c { top: 0; right: 4%; z-index: 0; width: 52px; height: 52px; }
.steps { list-style: none; margin: 22px 0; padding: 0; }
.step { display: flex; gap: 14px; padding: 10px 0; }
.step h3 { margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: grid; place-items: center; font-weight: 800; flex: none; }

.pricing-head { max-width: 640px; margin-bottom: 28px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; }
.plan-card.popular { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: 12px; font-weight: 700; }
.plan-for { margin: 0; color: var(--muted); font-size: 14px; }
.plan-price { margin: 12px 0 6px; }
.plan-price b { font-size: 34px; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-list { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 8px; font-size: 14.5px; flex: 1; align-content: start; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.plans-loading, .plans-fallback { padding: 28px; background: var(--surface); border: 1.5px dashed var(--accent-line); border-radius: 22px; color: var(--muted); }
.plans-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; grid-column: 1 / -1; }
.plans-fallback p { margin: 0; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--accent); flex: none; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); }

.cta { position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; padding: 36px 24px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: #cfe8da; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta > div:first-of-type { position: relative; z-index: 1; }
.cube-d { right: 22px; top: 18px; width: 70px; height: 70px; opacity: .9; }

@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  .how-card { padding: 40px; }
  .cta { padding: 44px 48px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; }
  .split { grid-template-columns: 1fr 1.6fr; gap: 48px; }
  .how-card { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .cta { grid-template-columns: 1fr auto; }
  .phone.phone-big { width: 230px; }
}
@media (max-width: 520px) {
  .phone { width: 27%; border-width: 4px; border-radius: 16px; }
  .float-chip { font-size: 12px; padding: 7px 10px; }
  .cube-d { display: none; }
}

/* ---------- регистрация ---------- */
.signup { padding-top: 32px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 13px; }
.stepper .done { color: var(--accent-strong); }
.stepper .done b { background: var(--btn-bg); color: var(--btn-ink); }
.signup-grid { display: grid; gap: 22px; margin-top: 26px; align-items: start; }
.block { margin: 0 0 18px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; min-width: 0; }
.block legend { padding: 0 8px; margin-left: -8px; font-weight: 800; font-size: 17px; }
.plan-options { display: grid; gap: 10px; }
.plan-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.plan-option:hover { border-color: var(--accent-line); }
.plan-option:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px var(--ring); }
.plan-option input { accent-color: var(--btn-bg); width: 18px; height: 18px; flex: none; }
.po-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.po-body b { font-size: 16px; }
.po-body i { font-style: normal; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.po-body em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.po-price { font-weight: 800; font-size: 17px; text-align: right; white-space: nowrap; }
.po-price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: 500 16px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.field-error, .form-error { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--red); }
.form-error { padding: 10px 12px; border-radius: 12px; background: var(--red-bg); margin-top: 12px; }
.pw { position: relative; }
.pw input { padding-right: 92px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--accent-tint); color: var(--accent-strong); font: 700 13px var(--font); cursor: pointer; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.summary { padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; font-size: 14.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin-bottom: 16px; border-top: 1px dashed var(--line); font-weight: 700; }
.sum-total b { font-size: 26px; letter-spacing: -.02em; }
.sum-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- оплата ---------- */
.pay { padding-top: 32px; }
.pay-wrap { max-width: 920px; }
.net-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: 14px; }
.pay-card { margin-top: 22px; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.pay-card h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.pay-grid { display: grid; gap: 24px; margin-top: 22px; align-items: start; }
.pay-qr { text-align: center; padding: 16px; border: 1px dashed var(--accent-line); border-radius: 20px; background: var(--accent-tint); }
.pay-qr img { width: min(240px, 100%); height: auto; margin: 0 auto; border-radius: 12px; background: #fff; }
.pay-qr p { margin: 10px 0 0; font-weight: 700; color: var(--muted); font-size: 14px; }
.pay-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-row span { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.pay-row b { font-size: 26px; letter-spacing: -.01em; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .04em; }
.copy { height: 36px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--accent-strong); font: 700 13px var(--font); cursor: pointer; }
.copy:hover { background: var(--accent-tint); border-color: var(--accent-line); }
.pay-steps { margin: 16px 0 20px; padding-left: 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.pay-steps b { color: var(--ink); white-space: nowrap; }
.pay-big { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--accent-tint); font-size: 17px; font-weight: 600; }
.pay-rejected .pay-big { background: var(--red-bg); color: var(--red); }
.pay-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--accent-strong); }
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--accent-line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- обучение ---------- */
.learn { padding-top: 40px; }
.video-grid { display: grid; gap: 18px; margin-top: 30px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.video-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #072a1c, #0d5c3b); }
.vnum { font-size: 64px; font-weight: 800; opacity: .22; letter-spacing: -.04em; }
.vdur { position: absolute; right: 12px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, .45); font-size: 12.5px; font-weight: 700; }
.soon { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; background: #fff; color: #0b3d2a; font-size: 12px; font-weight: 800; }
.video-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.video-body h3 { margin: 0; }
.who { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 700; }
.video-body p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; flex: 1; }
.video-body .btn { align-self: flex-start; }
.video-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(7, 42, 28, .74); }
.vm-box { width: min(960px, 100%); overflow: hidden; border-radius: 20px; background: #0e1a14; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; }
.vm-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; cursor: pointer; }
.vm-close:hover { background: rgba(255, 255, 255, .22); }
.vm-stage { aspect-ratio: 16 / 9; background: #000; }
.vm-stage video, .vm-stage iframe { width: 100%; height: 100%; border: 0; }

/* ---------- общие мелочи ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- страница «Тарифы» ---------- */
.page-hero { position: relative; padding: 36px 0 12px; }
.page-hero .cube-a { top: 64px; right: 3%; }
.cube-desk { display: none; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-self: center; }
.perks li { display: flex; flex-direction: column; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.perks b { font-size: 16px; }
.perks span { color: var(--muted); font-size: 14px; }
.pricing-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.pricing-top .pricing-head { margin-bottom: 0; }
.period-toggle { display: inline-flex; padding: 4px; gap: 2px; background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 14px; }
.period-toggle[hidden] { display: none !important; }
.period-toggle button { height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 700 14px var(--font); cursor: pointer; white-space: nowrap; }
.period-toggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.period-toggle i { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
.period-toggle button[aria-pressed="true"] i { background: rgba(255, 255, 255, .22); color: inherit; }
.plan-sub { margin: -2px 0 6px; color: var(--muted); font-size: 13.5px; }
.block .period-toggle { margin-bottom: 14px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-size: 15px; font-weight: 800; }
.compare-table tbody th { text-align: left; font-weight: 600; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table th:first-child { width: 42%; text-align: left; }
.compare-table .pop { background: var(--accent-tint); }
.compare-table thead th.pop { color: var(--accent-strong); }
.compare-table .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.compare-table .yes svg { width: 14px; height: 14px; }
.compare-table .no { color: var(--muted); }
.compare-table .inf { font-size: 22px; line-height: 1; color: var(--accent-strong); font-weight: 800; }

/* ---------- «Как работает» ---------- */
.how-hero .laptop { max-width: 560px; }
.steps4 { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.step4 { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); }
.step4-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step4-n { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 13px; }
.step4 .ico { margin-bottom: 0; }
.step4 p { margin: 0; color: var(--muted); font-size: 14.5px; }
.video-split { display: grid; gap: 18px; }
.demo-block { position: relative; overflow: hidden; padding: 34px 28px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); }
.demo-block h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 10px; max-width: 18ch; }
.demo-block p { margin: 0 0 20px; color: #cfe8da; max-width: 36ch; }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px 24px; box-shadow: var(--shadow-soft); }
.learn-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.learn-card-h h3 { margin: 0; }
.learn-list { list-style: none; margin: 0; padding: 0; }
.learn-list li { border-top: 1px solid var(--line); }
.li-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; background: none; border: 0; color: var(--ink); font: 600 15px var(--font); text-align: left; cursor: default; }
button.li-row { cursor: pointer; }
button.li-row:hover .li-title { color: var(--accent-strong); text-decoration: underline; }
.li-num { color: var(--accent); font-weight: 800; min-width: 26px; }
.li-title { flex: 1; }
.li-dur { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- FAQ ---------- */
.bubbles { position: relative; min-height: 190px; display: none; }
.bubble { position: absolute; border-radius: 30px; background: linear-gradient(135deg, var(--btn-bg), var(--accent-strong)); box-shadow: var(--shadow); }
.bubble.b1 { width: 200px; height: 150px; left: 18%; top: 6px; display: grid; place-items: center; color: var(--btn-ink); font-size: 88px; font-weight: 800; }
.bubble.b2 { width: 170px; height: 104px; right: 8%; top: 84px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface); border: 1px solid var(--accent-line); }
.bubble.b2 i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.faq-section { padding-top: 32px; }
.faq-layout { display: grid; gap: 24px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.faq-cats button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 14.5px var(--font); text-align: left; cursor: pointer; }
.faq-cats button span { color: var(--muted); font-size: 12.5px; }
.faq-cats button.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.faq-cats button:hover { border-color: var(--accent-line); }
.faq-help { padding: 20px; border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-line); }
.faq-help p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.faq-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; margin-bottom: 18px; }
.faq-top h2 { margin: 0; }
.faq-search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.faq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.faq-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 15px var(--font); }
.faq-search input::placeholder { color: var(--placeholder); }
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.faq-empty { padding: 22px; border: 1.5px dashed var(--accent-line); border-radius: 16px; color: var(--muted); }

@media (min-width: 720px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .bubbles { display: block; }
  .video-split.with-demo { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
  .faq-cats { flex-direction: column; flex-wrap: nowrap; }
  .faq-cats button { width: 100%; }
}
@media (min-width: 1100px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Контакты ---------- */
.contact-section { padding-top: 32px; }
.contact-layout { display: grid; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); min-width: 0; }
.contact-card .ico { margin-bottom: 0; flex: none; }
.contact-card > div { min-width: 0; }
.contact-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 700; }
.contact-value { font-weight: 700; overflow-wrap: anywhere; }
.contact-value a { color: var(--ink); }
.contact-value a:hover { color: var(--accent-strong); text-decoration: underline; }
.lead-card { padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-soft); min-width: 0; }
.lead-card h2 { margin: 0 0 6px; font-size: 24px; }
.lead-card form > .muted { margin: 0 0 18px; }
.privacy-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.privacy-note:empty { display: none; }
.lead-done { padding: 28px 8px; text-align: center; }
.lead-done .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; }
.lead-done .ico svg { width: 28px; height: 28px; }
.lead-done p { margin: 0 0 20px; }

/* ---------- Политика, «как оплатить» ---------- */
.policy-wrap { max-width: 820px; }
.policy-wrap h1 { margin-bottom: 18px; }
.policy p { margin: 0 0 16px; line-height: 1.7; }
.pay-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--accent-line); text-align: left; font-size: 14px; line-height: 1.55; }

@media (min-width: 720px) { .contact-cards { grid-template-columns: 1fr 1fr; } .lead-card { padding: 32px 34px; } }
@media (min-width: 960px) { .cube-desk { display: block; } .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 36px; } }

@media (min-width: 720px) { .foot-top { grid-template-columns: 1fr auto; grid-template-areas: "brand social" "nav nav"; } .foot-nav { justify-content: flex-start; } }
@media (min-width: 1100px) { .foot-top { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav social"; } .foot-nav { justify-content: center; } }
@media (max-width: 1099px) { .foot-cube-l { left: auto; right: -44px; bottom: -48px; width: 120px; height: 120px; } .foot-cube-r { top: -66px; } }   /* на узких экранах кубики уходят в правые углы, где нет текста */
@media (max-width: 719px) { .foot-cube-r { top: -50px; right: -30px; width: 90px; height: 90px; } }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } .section { padding: 80px 0; } .field-row { grid-template-columns: 1fr 1fr; } .block { padding: 26px 28px; } .pay-card { padding: 34px 36px; } .pay-grid { grid-template-columns: 280px 1fr; gap: 36px; } }
@media (min-width: 960px) { .page-hero .hero-grid { grid-template-columns: 1.2fr 1fr; } .signup-grid { grid-template-columns: 1fr 340px; gap: 28px; } .summary { position: sticky; top: 92px; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .btn-login { display: none; }
  .nav + .bar-actions { margin-left: auto; }
  .nav-open .nav {
    display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .nav-login { display: block; color: var(--accent-strong); }
}
@media (max-width: 400px) { .bar { gap: 10px; } .bar-actions { gap: 6px; } .bar-actions .btn { padding: 0 14px; } .logo { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
