/* ========================================================
   AWG Shield - Premium Design System (Teal Trust, 2026)
   Единые токены, типографика, компоненты для всех публичных страниц.
   Light + Dark тема, premium editorial typography.
   Lighthouse-friendly, A11y, prefers-reduced-motion.
   ======================================================== */

/* ========== Tokens (light by default) ========== */
:root {
  /* Палитра Teal Trust */
  --bg: #F0FDFA;
  --bg-2: #E0FAF4;
  --surface: #FFFFFF;
  --surface-2: #F8FFFD;

  --ink: #042F2E;
  --ink-mid: #475569;
  --ink-soft: #94A3B8;
  --ink-faint: #CBD5E1;

  --accent: #0F766E;
  --accent-bright: #14B8A6;
  --accent-deep: #115E59;
  --accent-bg: rgba(15, 118, 110, 0.08);
  --accent-glow: rgba(20, 184, 166, 0.18);

  --good: #059669;
  --good-bg: rgba(5, 150, 105, 0.08);
  --bad: #DC2626;
  --bad-bg: rgba(220, 38, 38, 0.08);
  --warn: #D97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
  --info: #2563EB;
  --info-bg: rgba(37, 99, 235, 0.08);

  --border: rgba(4, 47, 46, 0.08);
  --border-strong: rgba(4, 47, 46, 0.14);
  --border-glow: rgba(20, 184, 166, 0.22);

  --shadow-sm: 0 1px 2px rgba(4, 47, 46, 0.04), 0 1px 3px rgba(4, 47, 46, 0.06);
  --shadow-md: 0 4px 14px rgba(4, 47, 46, 0.06), 0 2px 4px rgba(4, 47, 46, 0.04);
  --shadow-lg: 0 16px 40px rgba(4, 47, 46, 0.08), 0 4px 12px rgba(4, 47, 46, 0.06);
  --shadow-xl: 0 24px 56px rgba(4, 47, 46, 0.12), 0 8px 16px rgba(4, 47, 46, 0.08);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --max-w: 1200px;
  --max-w-narrow: 860px;
  --header-h: 68px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;

  color-scheme: light;
}

/* ========== Dark theme ========== */
html[data-theme="dark"] {
  --bg: #0A1716;
  --bg-2: #0F1F1D;
  --surface: #122625;
  --surface-2: #0F1F1D;

  --ink: #F0FDFA;
  --ink-mid: #94A3B8;
  --ink-soft: #64748B;
  --ink-faint: #475569;

  --accent: #14B8A6;
  --accent-bright: #5EEAD4;
  --accent-deep: #0F766E;
  --accent-bg: rgba(20, 184, 166, 0.10);
  --accent-glow: rgba(94, 234, 212, 0.24);

  --good: #10B981;
  --good-bg: rgba(16, 185, 129, 0.10);
  --bad: #F87171;
  --bad-bg: rgba(248, 113, 113, 0.10);
  --warn: #FBBF24;
  --warn-bg: rgba(251, 191, 36, 0.10);
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.10);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(20, 184, 166, 0.30);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30), 0 1px 3px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.50), 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.60), 0 8px 16px rgba(0, 0, 0, 0.40);

  color-scheme: dark;
}

html { transition: background-color 0.4s ease, color 0.4s ease; }

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* Safety net: SVG без явных размеров в карточках/инлайн-контенте не должен растянуться на весь контейнер */
.f-card svg, .step-card svg, .price-card svg, .review-card svg,
.blog-card svg, .post-card svg, .stat-card svg, .compare-card svg,
.contact-card svg, .nav svg, .badge svg, .trust-item svg, .pb-item svg,
.faq-item svg, .footer-col svg, .breadcrumb svg, .meta svg, .post-arrow svg,
.fc-read svg, .fc-badge svg, .back-link svg {
  width: 16px;
  height: 16px;
}
.f-card .f-icon svg { width: 22px; height: 22px; }
.pb-item svg { width: 20px; height: 20px; }
.btn-hero svg, .btn-tg svg, .btn-accent svg, .btn-outline svg,
.nav-tg svg, .nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-deep); }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

/* ========== Typography (premium editorial) ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.024em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }
em {
  font-family: var(--font-serif);
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
strong { font-weight: 600; color: var(--ink); }
p { color: var(--ink-mid); margin-bottom: 14px; }
small { font-size: 13px; color: var(--ink-soft); }

/* ========== A11y ========== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Layout ========== */
.container, .w {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.w { max-width: var(--max-w-narrow); padding: 96px 24px 80px; }
.section { padding: 88px 0; position: relative; }
.sdivider { height: 1px; background: var(--border); margin: 0; }
.text-center { text-align: center; }

/* Section labels (eyebrow text) */
.slabel {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--accent-bg);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
}
.section-h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-mid);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* ========== Header / Nav (sticky glass) ========== */
.nav, .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(240, 253, 250, 0.78) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.nav[data-scrolled="true"], .site-header[data-scrolled="true"] {
  background: rgba(240, 253, 250, 0.92) !important;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .nav,
html[data-theme="dark"] .site-header {
  background: rgba(10, 23, 22, 0.78) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .nav[data-scrolled="true"],
html[data-theme="dark"] .site-header[data-scrolled="true"] {
  background: rgba(10, 23, 22, 0.92) !important;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo svg {
  width: 22px; height: 22px;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo:hover svg { transform: rotate(-6deg) scale(1.08); }
.nav-logo:hover { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active {
  color: var(--accent);
}
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}
.nav-tg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.nav-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
html[data-theme="dark"] .nav-cta {
  color: var(--bg);
}
html[data-theme="dark"] .nav-cta:hover {
  color: var(--bg);
}
.nav-mob-cta { display: none; }

/* ========== Theme toggle ========== */
.theme-toggle {
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ========== Burger menu (mobile) ========== */
.site-burger {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.site-burger svg { width: 20px; height: 20px; }
.site-burger .icon-close { display: none; }
.site-burger[aria-expanded="true"] .icon-open { display: none; }
.site-burger[aria-expanded="true"] .icon-close { display: block; }

/* ========== Hero ========== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-orb {
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 55%);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero-dots, .bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in oklab, var(--ink) 12%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.bg-dots { position: fixed; opacity: 0.35; }
.bg-orb {
  position: fixed;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 620px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-mid);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-trust span,
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mid);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

.hero-visual {
  flex: 0 0 380px;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .hero { flex-direction: column; padding: 100px 20px 40px; gap: 32px; }
  .hero-visual { flex: 0 0 auto; width: 100%; max-width: 420px; }
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  background: var(--accent-bg);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 26px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Buttons ========== */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  letter-spacing: -0.01em;
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero:hover {
  background: var(--accent-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
html[data-theme="dark"] .btn-hero,
html[data-theme="dark"] .btn-hero:hover {
  color: var(--bg);
}
.btn-tg, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.btn-tg:hover, .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.btn-accent:hover {
  background: var(--accent-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
html[data-theme="dark"] .btn-accent,
html[data-theme="dark"] .btn-accent:hover { color: var(--bg); }

/* Article CTA */
.cta {
  display: block;
  text-align: center;
  padding: 18px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  margin: 36px 0;
  transition: all 0.25s;
  border: none;
}
.cta:hover {
  background: var(--accent-bright);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
html[data-theme="dark"] .cta,
html[data-theme="dark"] .cta:hover { color: var(--bg) !important; }

/* ========== Status card (hero visual) ========== */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.status-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
}
.sc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.sc-status-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}
.sc-ip {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.sc-ip-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.sc-metric {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.sc-metric-label {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 600;
}
.sc-metric-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}
.sc-metric-val.green { color: var(--accent); }
.sc-protocol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--accent-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.sc-proto-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-sans);
}
.sc-proto-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
}
.sc-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sc-plat {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--bg-2);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ========== Platform bar ========== */
.platform-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.platform-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.pb-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.pb-items {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}
.pb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.pb-item:hover { opacity: 1; }
.pb-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ========== Stats grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 64px 0;
}
@media (max-width: 740px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.s-item {
  text-align: center;
  padding: 24px 12px;
}
.s-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.s-num b {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s-sub {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Stat card variant */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  transition: all 0.25s;
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-mid);
  font-weight: 500;
}

/* ========== Feature grid (f-card) ========== */
.f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .f-grid { grid-template-columns: 1fr; } }
.f-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.f-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.f-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.f-icon svg { width: 22px; height: 22px; }
.f-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.f-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}
.f-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
}

/* ========== Comparison table ========== */
.comp-section {
  padding: 88px 0;
  background: var(--surface-2);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.comp-table th, .comp-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comp-table th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}
.comp-table td { color: var(--ink-mid); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr.us { background: var(--accent-bg); }
.comp-table tr.us td { color: var(--ink); font-weight: 600; }
.proto-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-sans);
}
.proto-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 400;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good);
  font-weight: 700;
}
.cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bad-bg);
  color: var(--bad);
  font-weight: 700;
}

/* ========== Steps grid ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border-glow);
}
.step-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}
.step-bg-num {
  position: absolute;
  bottom: -22px; right: 8px;
  font-family: var(--font-serif);
  font-size: 110px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-bg);
}
.price-card.featured:hover { transform: translateY(-3px); }
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}
html[data-theme="dark"] .price-badge { color: var(--bg); }
.price-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-mid);
  vertical-align: super;
  margin-right: 4px;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--ink-mid);
  margin: 8px 0 24px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 10px;
  line-height: 1.5;
}
.price-features li svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.price-btn {
  width: 100%;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.price-btn-accent {
  background: var(--accent);
  color: #fff;
}
.price-btn-accent:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--accent-glow);
}
html[data-theme="dark"] .price-btn-accent,
html[data-theme="dark"] .price-btn-accent:hover { color: var(--bg); }
.price-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.price-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ========== Reviews ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: #F59E0B;
}
.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.review-text {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
html[data-theme="dark"] .review-avatar { color: var(--bg); }
.review-author { flex: 1; }
.review-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ========== Blog cards ========== */
.blog-grid, .post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-grid, .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid, .post-grid { grid-template-columns: 1fr; } }
.blog-card, .post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  display: block;
  position: relative;
}
.blog-card:hover, .post-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-cat, .post-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  border: 1px solid var(--border-glow);
}
.blog-card h3, .post-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-card p, .post-card p, .post-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0;
}
.post-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.post-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Featured blog card */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.featured-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
@media (max-width: 800px) { .featured-card { grid-template-columns: 1fr; } }
.fc-content { padding: 36px 32px; }
.fc-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
}
.fc-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.fc-content h2,
.featured-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.fc-content p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.fc-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.fc-visual {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.fc-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.fc-visual-inner {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
html[data-theme="dark"] .fc-visual-inner { color: var(--bg); }
.fc-big-num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fc-big-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  opacity: 0.85;
}

/* Blog hero (top of blog index) */
.blog-hero {
  padding: 130px 0 60px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-mid);
  max-width: 640px;
  margin: 0 auto;
}
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Blog category tags (cat-*) */
.cat-green { color: var(--good); background: var(--good-bg); border: 1px solid color-mix(in oklab, var(--good) 25%, transparent); }
.cat-blue  { color: var(--info); background: var(--info-bg); border: 1px solid color-mix(in oklab, var(--info) 25%, transparent); }
.cat-purple { color: #8B5CF6; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.25); }
.cat-orange, .cat-red { color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in oklab, var(--warn) 25%, transparent); }

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item, .faq-block .faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  padding: 18px 22px;
  overflow: hidden;
  transition: border-color 0.2s;
}
/* faq-item with .faq-q button inside (accordion style) - убрать padding с обёртки */
.faq-item:has(.faq-q),
.faq-list .faq-item { padding: 0; }
/* h3 внутри faq-item: фиксируем чтобы article h3 не ломал */
.faq-item h3, .faq-block .faq-item h3 {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border-top: none !important;
  letter-spacing: -0.005em !important;
}
.faq-item h3::before, .faq-block .faq-item h3::before { display: none !important; }
.faq-item p, .faq-block .faq-item p {
  margin: 0 !important;
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
}
.faq-item p + p { margin-top: 8px !important; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.active, .faq-item.open {
  border-color: var(--accent);
  background: var(--surface-2);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon, .faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
html[data-theme="dark"] .faq-item.active .faq-icon,
html[data-theme="dark"] .faq-item.open .faq-icon { color: var(--bg); }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}
.faq-item.active .faq-a, .faq-item.open .faq-a {
  padding: 0 22px 20px;
  max-height: 600px;
}

/* Static FAQ blocks (article style) */
.faq-block {
  margin-top: 24px;
}
.faq-block .faq-item {
  padding: 18px 22px;
}
.faq-block .faq-item h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.faq-block .faq-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ========== Final CTA / cta-block ========== */
.final-cta, .cta-block {
  position: relative;
  margin: 80px auto;
  max-width: 980px;
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .final-cta,
html[data-theme="dark"] .cta-block { color: var(--bg); }
.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.final-cta h2, .cta-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: inherit;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.final-cta p, .cta-block p {
  font-size: clamp(15px, 1.7vw, 18px);
  color: inherit;
  opacity: 0.92;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.final-btns, .cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.final-cta .btn-hero, .cta-block .btn-hero {
  background: #fff;
  color: var(--accent);
}
.final-cta .btn-hero:hover, .cta-block .btn-hero:hover {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.final-cta .btn-tg, .cta-block .btn-tg,
.final-cta .btn-outline, .cta-block .btn-outline {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.30) !important;
  backdrop-filter: blur(8px);
}
.final-cta .btn-tg:hover, .cta-block .btn-tg:hover,
.final-cta .btn-outline:hover, .cta-block .btn-outline:hover {
  background: rgba(255,255,255,0.24) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.50) !important;
  transform: translateY(-1px);
}
.final-cta .btn-tg svg, .cta-block .btn-tg svg,
.final-cta .btn-outline svg, .cta-block .btn-outline svg { color: #fff; }

/* ========== Footer (всегда тёмный) ========== */
.site-footer, footer {
  background: #04201F;
  color: #94A3B8;
  padding: 64px 0 32px;
  margin-top: 100px;
  font-size: 14px;
  border-top: 1px solid rgba(20, 184, 166, 0.10);
}
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] footer {
  background: #061514;
  border-top: 1px solid rgba(20, 184, 166, 0.06);
}
.site-footer .container, .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p {
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-logo svg { width: 18px; height: 18px; color: var(--accent-bright); }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-links {
  display: contents;
}
@media (max-width: 540px) {
  .footer-links { display: flex; flex-direction: column; gap: 24px; }
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748B;
}
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: var(--accent-bright); }
.footer-bottom p { color: inherit; margin: 0; }

/* ========== Article ========== */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent-deep); }
.meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lead {
  font-size: 18px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
article p, article ul, article ol {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
article ul, article ol { padding-left: 22px; }
article h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.018em;
  position: relative;
}
article h2::before {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 16px;
  border-radius: 2px;
}
article h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

/* TL;DR block */
.tldr {
  background: var(--accent-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 28px 0;
}
.tldr-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.tldr ul {
  margin: 0;
  padding-left: 22px;
}
.tldr li {
  color: var(--ink-mid);
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.55;
}
.tldr strong { color: var(--ink); font-weight: 600; }

/* Highlight box */
.highlight {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
}
.highlight p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

/* Compare cards (in article) */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}
.compare-card h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}
.compare-card.bad { border-color: color-mix(in oklab, var(--bad) 35%, transparent); background: var(--bad-bg); }
.compare-card.bad h3 { color: var(--bad); }
.compare-card.good { border-color: color-mix(in oklab, var(--good) 35%, transparent); background: var(--good-bg); }
.compare-card.good h3 { color: var(--good); }
.compare-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-mid);
}
.compare-card li { margin-bottom: 4px; }

/* Article tables */
article table, table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
article th, table th {
  padding: 14px 16px;
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
article td, table td {
  padding: 12px 16px;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border);
}
article tr:last-child td, table tr:last-child td { border-bottom: none; }

/* Mobile: широкие таблицы скроллим горизонтально внутри своей рамки, не толкая страницу */
@media (max-width: 700px) {
  article table, table, .comp-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}
/* НЕ ставим overflow-x: hidden на html - это ломает position:fixed мобильного меню на iOS */

/* Param boxes (technical) */
.param-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
}
.param-box h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.param-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.param-box code, code {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border-glow);
}

/* Related links */
.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related li { margin-bottom: 10px; }
.related a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.related a:hover { color: var(--accent-deep); text-decoration: underline; }

/* Sources / Author / Newsflash */
.sources {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}
.sources ol { padding-left: 22px; margin-top: 8px; }
.sources a { color: var(--info); }
.author-box {
  margin-top: 36px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
html[data-theme="dark"] .author-avatar { color: var(--bg); }
.author-info { flex: 1; }
.author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.author-bio {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.55;
}

.newsflash {
  background: var(--warn-bg);
  border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.newsflash-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
html[data-theme="dark"] .newsflash-icon { color: var(--bg); }
.newsflash-content { flex: 1; }
.newsflash-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact card */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-value {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-note {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}

.legal-note {
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ========== Reading progress bar ========== */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ========== Back to top ========== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html[data-theme="dark"] .back-to-top:hover { color: var(--bg); }
.back-to-top svg { width: 18px; height: 18px; }

/* ========== Sub-nav ========== */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  backdrop-filter: blur(10px);
}
.sub-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sub-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.sub-nav-item:hover {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}
.sub-nav-item.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html[data-theme="dark"] .sub-nav-item.is-active { color: var(--bg); }

/* ========== Back link ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.back-link:hover svg { transform: translateX(-2px); }

/* ========== Payment modal (theme-aware) ========== */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pay-modal-fade 0.18s ease-out;
}
.pay-modal[hidden] { display: none !important; }

@keyframes pay-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pay-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.pay-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px -12px color-mix(in oklab, var(--ink) 40%, transparent),
              0 0 0 1px color-mix(in oklab, var(--accent) 8%, transparent);
  animation: pay-modal-pop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pay-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-modal-close:hover {
  background: var(--accent-bg);
  border-color: var(--border-strong);
  color: var(--ink);
}

.pay-modal h3.pay-modal-title,
.pay-modal-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 6px !important;
  font-style: normal !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
}

.pay-modal-sub {
  font-size: 14px;
  color: var(--ink-mid);
  margin: 0 0 22px;
  line-height: 1.5;
}

.pay-modal-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  box-sizing: border-box;
}
.pay-modal-input::placeholder { color: var(--ink-soft); }
.pay-modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.pay-modal-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}
[data-theme="dark"] .pay-modal-error { color: #fca5a5; }

.pay-modal-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.pay-modal-btn:hover:not(:disabled) {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
[data-theme="dark"] .pay-modal-btn { color: #042F2E; }
[data-theme="dark"] .pay-modal-btn:hover:not(:disabled) { background: var(--accent-bright); }
.pay-modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pay-modal-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: pay-modal-spin 0.6s linear infinite;
}
[data-theme="dark"] .pay-modal-spinner {
  border-color: rgba(4, 47, 46, 0.25);
  border-top-color: #042F2E;
}
@keyframes pay-modal-spin {
  to { transform: rotate(360deg); }
}

.pay-modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.pay-modal-divider::before,
.pay-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.pay-modal-divider span { padding: 0 4px; }

.pay-modal-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-mid);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
}
.pay-modal-tg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.pay-modal-fine {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 16px 0 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .pay-modal { padding: 16px; }
  .pay-modal-card { padding: 30px 22px 22px; border-radius: 18px; }
  .pay-modal-title { font-size: 20px !important; }
}

/* ========== Fade in on scroll ========== */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade.visible {
  opacity: 1;
  transform: none;
}

/* ========== Mobile responsive overrides ========== */
@media (max-width: 880px) {
  .nav {
    padding: 0 18px;
    /* Убираем backdrop-filter на мобильных - он создаёт containing block
       и ломает position:fixed дочернего .nav-links (меню не растягивалось на экран) */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 16px;
  }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active {
    background: var(--accent-bg);
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
  }
  .site-burger { display: inline-flex; }
  .nav-tg { display: none; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .nav-mob-cta {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
  }
  html[data-theme="dark"] .nav-mob-cta { color: var(--bg); }
}
@media (max-width: 540px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
}
/* Очень узкие экраны - убираем текст логотипа, оставляем только иконку, чтобы header не переполнялся */
@media (max-width: 440px) {
  .nav-logo { font-size: 0; }
  .nav-logo svg { width: 28px; height: 28px; }
  .nav-mob-cta { padding: 8px 14px; font-size: 12px; }
}

/* ========== Print ========== */
@media print {
  .nav, .site-header, .site-footer, footer, .back-to-top, .reading-progress, .breadcrumb, .sub-nav {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  a { color: inherit !important; text-decoration: underline; }
}
