/* ==========================================================================
   textbee.online — landing stylesheet
   Wave 1 (2026-07-10): 7 sections per ТЗ v1.1
   Palette + fonts are FROZEN (yuzer 10.07): do not change without approval.
   ========================================================================== */

:root {
  /* Palette — bee amber + forest green, do not change */
  --primary:       #c97b3f;
  --primary-dark:  #a35d28;
  --accent:        #2f6f5e;
  --bg:            #f7f5f0;
  --surface:       #ffffff;
  --surface-2:     #fbf9f3;
  --border:        #e9e3d6;
  --line-soft:     #ecead9;
  --text:          #14171e;
  --text-soft:     #3a4256;
  --muted:         #7c7a72;
  --shadow-sm:     0 1px 3px rgba(20, 23, 30, 0.06);
  --shadow-md:     0 8px 24px rgba(20, 23, 30, 0.08);
  --shadow-lg:     0 16px 48px rgba(20, 23, 30, 0.12);
  --max:           1180px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;

  /* Dark theme overrides — applied via [data-theme="dark"] on <html> */
  --bg-dark:           #0f172a;
  --surface-dark:      #111c2e;
  --surface-2-dark:    #0c1424;
  --border-dark:       #1e2c46;
  --text-dark:         #e6ebf3;
  --text-soft-dark:    #aab5c8;
  --muted-dark:        #6c7a93;
}

[data-theme="dark"] {
  --bg:        var(--bg-dark);
  --surface:   var(--surface-dark);
  --surface-2: var(--surface-2-dark);
  --border:    var(--border-dark);
  --text:      var(--text-dark);
  --text-soft: var(--text-soft-dark);
  --muted:     var(--muted-dark);
}

/* ---------- reset & base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

/* Subtle radial accents in body corners — current brand atmosphere */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  z-index: -1;
  pointer-events: none;
}
body::before {
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(201, 123, 63, 0.06) 0%, transparent 70%);
}
body::after {
  bottom: -200px; left: -200px;
  background: radial-gradient(circle, rgba(47, 111, 94, 0.05) 0%, transparent 70%);
}

/* ---------- container ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(34px, 5.5vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 1.1rem; font-family: 'Manrope', sans-serif; font-weight: 600; }
h4 { font-size: 1rem; font-family: 'Manrope', sans-serif; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(201, 123, 63, 0.10);
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* ---------- promo bar ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
  font-weight: 500;
}
.promo-bar a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 8px;
}
.promo-bar a:hover { color: #fff5e8; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s;
}
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}
.logo .sub {
  font-size: 12px;
  color: var(--muted);
  margin-left: 2px;
  letter-spacing: 0;
  font-family: 'Manrope', sans-serif;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .mobile-only { display: none; } /* shown only on mobile via media query below */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.theme-toggle {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: all 0.15s;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn-link {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.15s;
}
.btn-link:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.18s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--primary); }

.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
}
.hero h1 {
  margin: 8px 0 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .accent { color: var(--primary); font-style: italic; }
.hero-sub {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-cta .btn-text {
  background: transparent;
  color: var(--text-soft);
  padding: 12px 8px;
}
.hero-cta .btn-text:hover { color: var(--primary); }

.hero-code {
  max-width: 720px;
  margin: 0 auto;
  background: #1f2027;
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: left;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  overflow-x: auto;
}
.hero-code pre {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  color: #f5f5f0;
  margin: 0;
  line-height: 1.7;
  white-space: pre;
}
.hero-code .c-comment { color: #8a96a8; }
.hero-code .c-method  { color: #f5b400; }
.hero-code .c-url     { color: #6ee7b7; }
.hero-code .c-str     { color: #fbbf24; }
.hero-code .c-flag    { color: #93c5fd; }

/* ---------- metrics ---------- */
.metrics {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  margin-bottom: 64px;
}
.metrics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-md);
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.metric-icon {
  width: 44px; height: 44px;
  background: rgba(201, 123, 63, 0.10);
  color: var(--primary);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metric-icon svg { width: 22px; height: 22px; }
.metric-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* Словесные метрики — не цифра, поэтому не моноширинный */
.metric-value--word {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  letter-spacing: 0;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- features ---------- */
section.features-section { padding: 80px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 123, 63, 0.4);
}
.feature-card.large {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}
.feature-card.large:hover { box-shadow: 0 16px 40px rgba(201, 123, 63, 0.3); }
.feature-card.large h3 { color: white; font-size: 1.25rem; }
.feature-card.large p  { color: rgba(255, 255, 255, 0.92); }
.feature-card.large .feature-icon { background: rgba(255,255,255,0.18); color: white; }

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(201, 123, 63, 0.10);
  color: var(--primary);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.feature-card .feature-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.feature-card.large .feature-link { color: rgba(255,255,255,0.95); }
.feature-card .feature-link:hover { text-decoration: underline; }

.features-cta {
  text-align: center;
  margin-top: 36px;
}

/* ---------- how-it-works ---------- */
section.how-section {
  padding: 80px 0;
  background: var(--surface-2);
}
[data-theme="dark"] section.how-section { background: var(--surface-2-dark); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 32px;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.35;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 50px; height: 50px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 18px;
}
[data-theme="dark"] .step-num { background: var(--surface); }
.step-time {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(47, 111, 94, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---------- pricing ---------- */
section.pricing-section { padding: 80px 0; }

/* Переключатель периода оплаты — обработчик в main.js, [data-billing-toggle] */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 26px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.billing-toggle button:hover { color: var(--primary-dark); }
.billing-toggle button.active {
  background: var(--primary);
  color: #fff;
}
.billing-toggle button.active:hover { color: #fff; }
.billing-save {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 111, 94, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.billing-toggle button.active .billing-save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pricing-card.highlighted {
  border: 3px solid var(--accent);
  box-shadow: 0 12px 36px rgba(47, 111, 94, 0.18);
}
.pricing-card .badge-popular {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(201, 123, 63, 0.35);
}
.pricing-card .badge-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(47, 111, 94, 0.35);
}
.pricing-card .badge-self-hosted {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(47, 111, 94, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tier-name {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tier-price .amount {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  /* пробел-разделитель разрядов в моноширинном шрифте слишком широкий */
  word-spacing: -0.3em;
}
.tier-price .amount.free { color: var(--accent); }
.tier-price .currency { font-size: 18px; color: var(--muted); font-weight: 500; }
.tier-price .period { font-size: 13px; color: var(--muted); margin-left: 2px; }
.tier-price .from-prefix { font-size: 13px; color: var(--muted); margin-right: 2px; }
.tier-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
  min-height: 40px;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
}
.tier-features li {
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.tier-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.15s;
}
.tier-cta.primary {
  background: var(--primary);
  color: white;
}
.tier-cta.primary:hover { background: var(--primary-dark); color: white; }
.tier-cta.secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.tier-cta.secondary:hover { border-color: var(--primary); color: var(--primary); }
.tier-cta.accent {
  background: var(--accent);
  color: white;
}
.tier-cta.accent:hover { background: #245249; color: white; }
.tier-quote-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.pricing-foot {
  text-align: center;
  margin-top: 8px;
  padding: 0 8px;
}
.pricing-foot p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.55;
}
.pricing-foot p a { color: var(--primary-dark); border-bottom: 1px dashed var(--primary-dark); }
.pricing-foot p strong { color: var(--text-soft); font-weight: 600; }

/* «Нужно больше?» — блок под таблицей вместо тарифа Enterprise (ТЗ 22.07) */
.pricing-foot p.pricing-more {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 20px auto 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pricing-foot p.pricing-more strong { color: var(--text); }

.trust-marks {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.trust-marks span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 32px;
  margin-top: 32px;
  background: var(--surface);
}
[data-theme="dark"] .site-footer { background: var(--surface-2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-soft);
  font-size: 14.5px;
}
.footer-col a:hover { color: var(--primary); }
.footer-brand p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 16px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--bg);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: all 0.15s;
}
.footer-socials a:hover {
  background: var(--primary);
  color: white;
}
.footer-socials svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer-payments {
  font-size: 13px;
  color: var(--text-soft);
}
.footer-payments strong { color: var(--text); }

/* ---------- cookie banner (3 buttons) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}
.cookie-banner.show { display: block; animation: cookie-in 0.3s ease; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.cookie-banner p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.cookie-banner p a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
}
.cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.cookie-banner .btn-accept {
  background: var(--primary);
  color: white;
}
.cookie-banner .btn-accept:hover { background: var(--primary-dark); }
.cookie-banner .btn-required {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cookie-banner .btn-required:hover { border-color: var(--primary); color: var(--primary); }
.cookie-banner .btn-reject {
  background: transparent;
  color: var(--muted);
}
.cookie-banner .btn-reject:hover { color: var(--text); }

/* ---------- mobile menu overlay ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 49;
  display: none;
}
.mobile-menu-overlay.show { display: block; }

/* ---------- why-us: своя SIM против агрегатора ---------- */
.why-section {
  padding: 80px 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="dark"] .why-section { border-color: var(--border); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 44px;
}
.why-item {
  padding-left: 20px;
  border-left: 2px solid var(--primary);
}
.why-item h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.why-item p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.why-item .why-num {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ---------- audience: кому пишем ---------- */
.audience-section { padding: 80px 0; }
.aud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.aud-item { text-align: center; }
.aud-icon {
  width: 50px; height: 50px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(201, 123, 63, 0.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aud-icon svg { width: 24px; height: 24px; }
.aud-item h3 { margin-bottom: 8px; }
.aud-item p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- reliability: боли рынка ---------- */
.reliability-section { padding: 80px 0; }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}
.rel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 111, 94, 0.45);
}
.rel-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(47, 111, 94, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .rel-icon { background: rgba(47, 111, 94, 0.22); color: #6fbfa6; }
.rel-icon svg { width: 21px; height: 21px; }
.rel-card h3 { font-size: 1.06rem; }
.rel-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.rel-foot {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .rel-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .why-section, .reliability-section,
  .audience-section { padding: 56px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: 64px;            /* below header */
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    z-index: 50;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  [data-theme="dark"] .nav-links { background: var(--surface-dark); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  /* P0 fix: do NOT hide nav links when mobile menu is open */
  .nav-links a { display: block; }

  .nav-right .btn-link,
  .nav-right .nav-mobile-cta {
    display: none;
  }
  /* Show "Открыть дашборд" CTA inside the open mobile menu */
  .nav-links .mobile-only {
    display: block;
  }

  .hero { padding: 56px 0 40px; }
  .hero-code { padding: 18px 18px; }
  .hero-code pre { font-size: 12px; }
  .metrics-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px;
    gap: 18px;
  }
  .metrics { margin-top: -28px; margin-bottom: 40px; }

  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-card.highlighted { transform: none; }
  .pricing-card.highlighted:hover { transform: translateY(-3px); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .container { padding: 0 18px; }

  section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .metrics-card { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .metric-value { font-size: 18px; }
  .metric-value--word { font-size: 16px; }
  .cookie-banner {
    left: 8px; right: 8px; bottom: 8px;
    padding: 18px 18px;
  }
  .cookie-banner .actions { flex-direction: column; }
  .cookie-banner button { width: 100%; }
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .promo-bar, .early-access-banner { display: none; }
  body { background: white; color: black; }
}

/* ==========================================================================
   Wave 1+ (2026-07-14) — first users launch: 4 additions
   ========================================================================== */

/* ---------- early access banner ---------- */
.early-access-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 12px 0;
  font-size: 15px;
  position: relative;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.early-access-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.early-access-badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.early-access-text {
  flex: 1;
  text-align: center;
  min-width: 280px;
  line-height: 1.4;
}
.early-access-cta {
  background: white;
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.early-access-cta:hover {
  background: #f7f5f0;
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.early-access-close {
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
  line-height: 1;
  padding: 0 8px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.early-access-close:hover { opacity: 1; }

/* ---------- nav: download APK link + register rename ---------- */
.nav-download {
  color: var(--primary);
  font-weight: 700;
}
.nav-download:hover { color: var(--primary-dark); }
.nav-download::before {
  content: '⬇';
  margin-right: 4px;
  font-weight: 700;
}

/* ---------- hero: large download CTA ---------- */
.btn-large {
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
}
.btn-large .icon-download {
  width: 20px;
  height: 20px;
}

/* ---------- support section ---------- */
.support-section {
  padding: 64px 0 80px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.support-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.support-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.support-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}
.support-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.support-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}
.support-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.support-card:hover .support-link { color: var(--primary-dark); }

/* responsive — early access banner + hero download */
@media (max-width: 720px) {
  .early-access-inner { flex-direction: column; gap: 8px; text-align: center; }
  .early-access-text { text-align: center; }
  .btn-large { padding: 14px 20px; font-size: 16px; width: 100%; justify-content: center; }
  .nav-download { display: none; }
  .hero-cta .btn-large { order: -1; }
}
