/* SetupAi design tokens. Aeonik Pro: add @font-face in ../fonts/ and set --font-display if licensed. */
:root {
  --bg-deep: #000000;
  --bg-section: #181815;
  --bg-section-alt: #0d0d0d;
  --bg-card: #1e1e1e;
  --bg-card-alt: #1a1a1a;
  --bg-card-2: #222222;
  --accent: #2AABEE;
  --accent-2: #0088CC;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-body: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.2);
  --surface-raised: #252525;
  --surface-soft: #232323;
  --surface-accent: #1f2c33;
  --surface-accent-soft: #243038;
  --surface-success: #223128;
  --surface-danger: #342626;
  --surface-metric: #121212;
  --surface-bubble: #252525;
  --surface-blue: #2AABEE;
  --surface-dark: #141414;
  --surface-panel: #242424;
  --surface-article: #232323;
  --surface-article-soft: #262626;
  --surface-inline-good: #1a2c36;
  --surface-inline-bad: #1a2433;
  --surface-row-alt: #292929;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-pill: 9999px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.28);
  --header-scrolled-bg: rgba(24, 24, 21, 0.72);
  --header-nav-mobile-bg: rgba(10, 10, 10, 0.98);
  --header-nav-mobile-scrolled: rgba(18, 18, 17, 0.94);
  --pill-border: rgba(255, 255, 255, 0.14);
  --pill-bg: rgba(255, 255, 255, 0.04);
  --pill-text: rgba(255, 255, 255, 0.75);
  --nav-link: rgba(255, 255, 255, 0.88);
  --grid-line: rgba(255, 255, 255, 0.02);
  --logo-setup: #ffffff;
  --btn-outline-border: rgba(255, 255, 255, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-deep: #f6f7f9;
  --bg-section: #ffffff;
  --bg-section-alt: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f3f6;
  --bg-card-2: #e9ecf1;
  --text: #12141a;
  --text-muted: rgba(18, 20, 26, 0.58);
  --text-body: rgba(18, 20, 26, 0.74);
  --border-subtle: rgba(18, 20, 26, 0.1);
  --border-input: rgba(18, 20, 26, 0.22);
  --surface-raised: #eef0f4;
  --surface-soft: #e8ebf0;
  --surface-accent: #e5f4fc;
  --surface-accent-soft: #d8edf9;
  --surface-success: #e6f4ea;
  --surface-danger: #fce8e8;
  --surface-metric: #f3f5f8;
  --surface-bubble: #eef1f5;
  --surface-dark: #e4e7ec;
  --surface-panel: #ffffff;
  --surface-article: #ffffff;
  --surface-article-soft: #f6f7f9;
  --surface-inline-good: #dff0fa;
  --surface-inline-bad: #e4eaf3;
  --surface-row-alt: #f0f2f6;
  --shadow-soft: rgba(18, 20, 26, 0.08);
  --shadow-medium: rgba(18, 20, 26, 0.12);
  --header-scrolled-bg: rgba(255, 255, 255, 0.88);
  --header-nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --header-nav-mobile-scrolled: rgba(255, 255, 255, 0.96);
  --pill-border: rgba(18, 20, 26, 0.14);
  --pill-bg: rgba(18, 20, 26, 0.04);
  --pill-text: rgba(18, 20, 26, 0.68);
  --nav-link: rgba(18, 20, 26, 0.82);
  --grid-line: rgba(18, 20, 26, 0.05);
  --logo-setup: #12141a;
  --btn-outline-border: rgba(18, 20, 26, 0.28);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Якоря из меню не прячутся под фиксированную шапку */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

pre,
code,
kbd,
samp {
  overflow-wrap: normal;
  word-break: normal;
}

pre {
  overflow-x: auto;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  opacity: 0.5;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Шапка: больше горизонтального места под навигацию и CTA, чем у основного контента */
.site-header > .container {
  width: min(1320px, 100% - 32px);
}

.container-narrow {
  width: min(560px, 100% - 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-body);
}

.text-center {
  text-align: center;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 16px;
  overflow: visible;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--pill-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out), border-color 0.2s, color 0.2s, box-shadow 0.2s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: rgba(42, 171, 238, 0.45);
  box-shadow: 0 8px 22px rgba(42, 171, 238, 0.12);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.theme-toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.theme-toggle-icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle-icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle-icon--moon {
  display: block;
}

.theme-toggle--floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pill-text);
  transition: background 0.2s var(--ease-out), color 0.2s, box-shadow 0.2s var(--ease-out);
}

.lang-pill-btn:hover {
  color: var(--text);
}

.lang-pill-btn.is-active {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.95), rgba(0, 105, 160, 0.98));
  color: #fff;
  box-shadow: 0 10px 26px rgba(42, 171, 238, 0.25);
}

.lang-pill:focus-within {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.logo-text-setup {
  color: var(--logo-setup);
}

.logo-text-ai {
  color: var(--accent);
}

.logo--footer .logo-img {
  height: 34px;
  max-width: 38px;
  opacity: 0.95;
}

.logo--footer .logo-text {
  font-size: 1.05rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.site-header.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.main-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--nav-link);
  padding: 8px 4px;
  transition: color 0.2s;
}

.main-nav a:not(.btn):hover {
  color: var(--accent-2);
}

.btn-nav {
  margin-left: 8px;
}

@media (max-width: 900px) {
  /*
   * Safari/iOS: backdrop-filter на шапке создаёт containing block для position:fixed
   * у потомков — меню оказывается «внутри» полоски хедера и ломается при скролле (.is-scrolled).
   */
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--header-nav-mobile-scrolled);
  }

  .site-header.nav-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--header-nav-mobile-bg);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: flex-start;
    padding: 24px 20px 40px;
    background: var(--header-nav-mobile-bg);
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease-out);
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .btn-nav {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
  }

  .main-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px 12px;
  }

  .site-header .btn-nav {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(42, 171, 238, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--btn-outline-border);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-block {
  width: 100%;
}

.icon-inline {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Section typography */
.section-label {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.section-head {
  margin-bottom: 48px;
  max-width: 800px;
}

.section {
  padding-block: 96px;
  background: var(--bg-section);
}

.section:nth-of-type(even) {
  background: var(--bg-section-alt);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
  background: var(--bg-deep);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 42%, rgba(42, 171, 238, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco--1 {
  width: min(55vw, 420px);
  right: -5%;
  top: 15%;
  opacity: 0.9;
}

.hero-deco--2 {
  width: min(90vw, 700px);
  left: -10%;
  bottom: 10%;
  opacity: 0.7;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-style: normal;
  text-wrap: balance;
}

.hero-title-line1 {
  display: inline;
}

@media (max-width: 640px) {
  .hero-title .hero-title-br {
    display: none;
  }
}

.hero-lead-wrap {
  margin: 0 0 36px;
  max-width: 480px;
}

.hero-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.55;
}

.hero-lead-accent {
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbit {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ring--a {
  inset: 0;
  border-color: rgba(42, 171, 238, 0.2);
  animation: spin-slow 28s linear infinite;
}

.hero-ring--b {
  inset: 12%;
  border-color: rgba(0, 136, 204, 0.15);
  animation: spin-slow 22s linear infinite reverse;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-icon-stack {
  position: relative;
  z-index: 2;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(42, 171, 238, 0.15);
}

.hero-main-icon {
  width: 48%;
  height: 48%;
  color: var(--accent);
  stroke-width: 1.25;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s, transform 0.3s var(--ease-out);
}

.card:hover {
  box-shadow: 0 0 40px rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.25);
}

/* Pain */
.pain-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-pain {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-pain p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.card-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-2);
  stroke-width: 2;
}

.pain-footnote {
  max-width: 640px;
  margin-inline: auto;
  font-size: 16px;
}

.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.blog-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: stretch;
  }
}

.blog-feature {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.blog-feature--index {
  margin-top: 0;
}

.blog-feature--index.article-card {
  padding: clamp(22px, 3.5vw, 40px);
}

.blog-feature--index .blog-feature-title,
.blog-feature--index .blog-feature-text {
  max-width: 52rem;
}

.blog-feature--index .blog-feature-title {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.blog-feature--index .blog-feature-text {
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.blog-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(42, 171, 238, 0.16) 0%, transparent 35%);
  pointer-events: none;
}

.blog-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.15);
  border-color: rgba(42, 171, 238, 0.26);
}

.blog-feature > * {
  position: relative;
  z-index: 1;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-feature-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.blog-feature-text {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.blog-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.blog-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.55;
}

.blog-point-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-2);
  margin-top: 2px;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-side {
  display: grid;
  gap: 16px;
}

.blog-mini-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-side h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-side p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.card-service {
  position: relative;
  min-height: 180px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card-title-accent {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-service p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 100%;
  text-align: start;
  text-wrap: pretty;
  padding-right: 40px;
  box-sizing: border-box;
}

.card-service .card-title-accent {
  max-width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Flip service cards: обертається весь блок картки; приклад ззаду — по hover */
.card.card-service.card-service--flip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0;
}

.card.card-service.card-service--flip:hover {
  box-shadow: none !important;
  border-color: transparent !important;
}

.card-service--flip {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 0 !important;
}

.card-service-flip-root {
  flex: 1 1 auto;
  width: 100%;
  min-height: 240px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.card-service-flip-inner {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  min-height: 240px;
  height: 100%;
  transform-style: preserve-3d;
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s ease,
    box-shadow 0.55s ease;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transform-origin: center center;
}

.card-service-face {
  --card-service-hint-inset: 18px;
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  min-height: 100%;
  padding: 22px 48px 52px 22px;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-service-face--front {
  transform: rotateY(0deg) translateZ(1px);
}

.card-service-face--back {
  transform: rotateY(180deg) translateZ(1px);
}

.card-service--flip .card-service-lead {
  flex: 1 1 auto;
}

.card-service-example {
  flex: 1 1 auto;
  margin: 0;
  line-height: 1.55;
  padding-right: 40px;
  box-sizing: border-box;
}

.card-service-example-label {
  display: inline;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.25em;
}

.card-service-hint {
  position: absolute;
  right: var(--card-service-hint-inset);
  bottom: var(--card-service-hint-inset);
  left: auto;
  top: auto;
  width: 36px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  flex-shrink: 0;
}

.card-service-hint .icon-inline {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .card-service-flip-root:not(:hover) .card-service-face--back {
    pointer-events: none;
  }

  .card-service-flip-root:hover .card-service-face--front {
    pointer-events: none;
  }

  .card-service-flip-root:hover .card-service-flip-inner {
    transform: rotateY(180deg);
    border-color: rgba(42, 171, 238, 0.25);
    box-shadow: 0 0 40px rgba(42, 171, 238, 0.18);
  }
}

/* Без fine pointer / без hover / зменшена анімація — обидві сторони стовпчиком, без 3D */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .card-service-flip-root {
    perspective: none;
    min-height: 0;
  }

  .card-service-flip-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: none !important;
    transition: none;
    min-height: 0;
    height: auto;
  }

  .card-service-face {
    grid-area: auto;
    position: relative;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    pointer-events: auto !important;
  }

  .card-service-face--back {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card-service-hint {
    display: none;
  }
}

.card-more {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

.card-more .icon-inline {
  width: 16px;
  height: 16px;
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 900px) {
  .process-list {
    gap: 48px;
  }
}

.process-step {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .process-step {
    grid-template-columns: min(140px, 28%) 1fr;
    align-items: start;
    gap: 32px;
  }
}

.process-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* Градиент на внутреннем span: так корректнее работает background-clip: text в Safari/iOS */
.process-num-inner {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* У предка с transform градиентный clip в WebKit даёт сплошной цвет — только opacity */
.process-list > .process-step.reveal {
  transform: none;
  transition: opacity 0.7s var(--ease-out);
}

html.reveal-js .process-list > .process-step.reveal:not(.is-visible) {
  transform: none;
}

.process-list > .process-step.reveal.is-visible {
  transform: none;
}

.process-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.process-body p {
  margin: 0;
  font-size: 16px;
}

/* Pricing */
.section-pricing {
  position: relative;
  padding-block: clamp(64px, 8vw, 84px);
}

.section-pricing .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-pricing .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-pricing .section-sub {
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
}

@media (max-width: 640px) {
  .section-pricing {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-pricing .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-pricing .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }
}

.pricing-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.card-pricing {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-height: 100%;
  height: 100%;
  padding: 22px 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 899px) {
  .card-pricing {
    grid-template-rows: auto auto auto;
    height: auto;
  }
}

.card-pricing:hover {
  border-color: rgba(42, 171, 238, 0.22);
  box-shadow: 0 0 44px rgba(42, 171, 238, 0.12);
}

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.pricing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface-inline-good);
  border: 1px solid rgba(0, 136, 204, 0.28);
  color: var(--accent-2);
}

.pricing-icon--accent {
  background: var(--surface-accent);
  border-color: rgba(42, 171, 238, 0.28);
  color: var(--accent);
}

.pricing-icon--soft {
  background: var(--surface-soft);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.pricing-icon i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.pricing-step {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.card-pricing .card-title-accent {
  text-wrap: balance;
  line-height: 1.35;
  align-self: start;
  margin: 0;
}

.card-pricing p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  align-self: start;
}

.pricing-foot {
  border-radius: 16px;
  padding: 22px clamp(18px, 4vw, 32px);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

.pricing-foot-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  text-wrap: balance;
  text-align: center;
}

/* FAQ */
.section-faq {
  padding-block: clamp(64px, 8vw, 84px);
}

.section-head--faq {
  margin-inline: auto;
  margin-bottom: clamp(22px, 3.2vw, 32px);
  max-width: 720px;
  text-align: center;
}

.section-head--faq .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
  text-wrap: balance;
}

@media (max-width: 640px) {
  .section-faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-head--faq .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }
}

.faq-list {
  width: min(720px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.faq-item:hover {
  border-color: rgba(42, 171, 238, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.faq-item[open] {
  border-color: rgba(42, 171, 238, 0.35);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(42, 171, 238, 0.12);
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-card-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.faq-item:hover .faq-icon-wrap {
  border-color: rgba(42, 171, 238, 0.28);
  background: var(--surface-raised);
}

.faq-item[open] .faq-icon-wrap {
  border-color: rgba(42, 171, 238, 0.4);
  background: var(--surface-accent);
  box-shadow: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 2.1px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  content: "";
}

.faq-q {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: left;
}

.faq-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.faq-item:hover .faq-toggle {
  border-color: rgba(42, 171, 238, 0.35);
  background: var(--surface-accent);
}

.faq-item[open] .faq-toggle {
  border-color: rgba(42, 171, 238, 0.45);
  background: var(--surface-accent-soft);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 2.25px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-2);
}

/* Blog article */
.article-shell {
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 56px;
  background: radial-gradient(ellipse 90% 70% at 85% 20%, rgba(20, 60, 120, 0.28) 0%, transparent 55%), var(--bg-deep);
}

.article-wrap {
  width: min(900px, 100% - 40px);
  margin-inline: auto;
}

.article-header {
  min-width: 0;
}

.article-wrap > .hero-title,
.article-wrap > .section-label,
.article-wrap > .article-intro,
.article-wrap > .article-meta,
.article-header .hero-title,
.article-header .section-label,
.article-header .article-intro,
.article-header .article-meta {
  max-width: 760px;
}

.article-wrap > .section-label,
.article-header .section-label {
  margin-bottom: 10px;
}

.article-wrap > .hero-title,
.article-header .hero-title {
  margin-bottom: 18px;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.article-wrap > .article-intro,
.article-header .article-intro {
  margin-bottom: 0;
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.article-wrap > .article-meta,
.article-header .article-meta {
  margin-top: 18px;
}

.article-wrap > .hero-title:last-child {
  margin-bottom: 0;
}


.article-figure + .article-figure {
  margin-top: 22px;
}

.article-figure-compare,
.article-figure-priority {
  padding: clamp(16px, 3vw, 28px);
}

/* Сравнение «ручной / AI»: таблица, обе колонки слева — проще читать русский текст */
.compare-flow {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--surface-panel);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.compare-flow-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-flow-table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  hyphens: none;
  -webkit-hyphens: none;
}

.compare-flow-table thead {
  background: rgba(0, 0, 0, 0.42);
}

.compare-flow-table th {
  padding: 14px 12px 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  hyphens: none;
  -webkit-hyphens: none;
}

.compare-flow-table th:first-child {
  width: 50%;
  color: rgba(200, 220, 255, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-accent);
}

.compare-flow-table th:last-child {
  color: rgba(200, 220, 255, 0.98);
  text-align: left;
  padding-left: 14px;
  background: var(--surface-inline-good);
}

.compare-flow-table tbody tr:nth-child(odd) {
  background: var(--surface-soft);
}

.compare-flow-table tbody tr:nth-child(even) {
  background: var(--surface-row-alt);
}

.compare-flow-table td {
  padding: 15px 12px;
  vertical-align: top;
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.compare-flow-table tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 17px;
}

.compare-flow-table td:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-flow-table td:last-child {
  text-align: left;
  padding-left: 14px;
}

.compare-flow-table td.compare-flow-td--manual {
  color: #c9dcff;
  font-weight: 600;
}

.compare-flow-table td.compare-flow-td--ai {
  color: #d0e2ff;
  font-weight: 600;
}

.article-figure-compare figcaption {
  margin-top: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 1.4vw, 15px);
}

@media (min-width: 600px) {
  .compare-flow-table {
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.6;
  }

  .compare-flow-table th {
    padding: 16px 18px 18px;
    font-size: 12px;
  }

  .compare-flow-table th:last-child {
    padding-left: 20px;
  }

  .compare-flow-table td {
    padding: 17px 18px;
  }

  .compare-flow-table td:last-child {
    padding-left: 22px;
  }
}

.priority-card h3,
.priority-summary h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.15;
}

.priority-card p,
.priority-summary p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.priority-card {
  min-width: 0;
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.priority-card--accent-1 {
  background: #1a2433;
}

.priority-card--accent-2 {
  background: #20262f;
}

.priority-card p {
  font-size: clamp(15px, 1.8vw, 18px);
}

.priority-summary {
  margin-top: 24px;
  text-align: center;
}

.priority-summary h3 {
  margin-bottom: 10px;
}

.priority-summary p {
  font-size: clamp(17px, 2.2vw, 22px);
}

.article-inline-grid {
  display: grid;
  gap: 20px;
}

.article-inline-grid > .article-figure {
  margin: 0;
}

@media (min-width: 860px) {
  .article-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 820px) {
  .article-figure svg {
    aspect-ratio: 1 / 1.1;
  }
}

@media (max-width: 640px) {
  .article-shell {
    padding-top: calc(var(--header-h) + 16px);
  }

  .article-wrap.article-wrap--blog-index {
    width: min(1120px, 100% - 40px);
  }

  .article-wrap {
    width: min(100% - 24px, 900px);
  }

  .article-wrap > .hero-title,
  .article-header .hero-title {
    margin-bottom: 14px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    text-wrap: pretty;
  }

  .article-wrap > .section-label {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .article-wrap > .article-intro,
  .article-wrap > .article-meta,
  .article-header .article-intro,
  .article-header .article-meta {
    max-width: none;
  }

  .article-meta {
    row-gap: 4px;
  }

  .article-inline-grid {
    gap: 16px;
  }

  .article-inline-cards {
    gap: 16px;
  }

  .article-summary-board,
  .article-table-card,
  .article-checklist-card,
  .mistakes-panel {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .priority-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .priority-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .priority-summary {
    margin-top: 18px;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .article-figure {
    padding: 12px;
  }

  .article-figure svg {
    aspect-ratio: 1 / 1.22;
  }
}

@media (max-width: 460px) {
  .article-wrap.article-wrap--blog-index {
    width: min(1120px, 100% - 40px);
  }

  .article-wrap {
    width: min(100% - 20px, 900px);
  }

  .article-wrap > .hero-title,
  .article-header .hero-title {
    font-size: clamp(26px, 8.6vw, 34px);
  }

  .blog-index-head .hero-title {
    font-size: clamp(26px, 8.6vw, 34px);
  }

  .article-figure {
    padding: 10px;
  }

  .article-figure figcaption {
    font-size: 13px;
  }

  .priority-card h3,
  .priority-summary h3,
  .article-table-card h3,
  .article-checklist-card h3,
  .mistakes-panel h3,
  .summary-board-card strong,
  .decision-matrix-head h2 {
    font-size: 18px;
  }

  .priority-card p,
  .priority-summary p,
  .summary-board-card p,
  .article-checklist-card li,
  .mistakes-panel li,
  .article-table th,
  .article-table td,
  .decision-matrix-head p {
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (max-width: 400px) {
  .article-figure svg {
    aspect-ratio: 1 / 1.3;
  }
}

@media (max-width: 900px) {
  .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-wrap--blog-index {
  display: grid;
  grid-template-areas:
    "head"
    "intro"
    "card";
  row-gap: clamp(18px, 2.8vw, 28px);
  align-content: start;
}

.blog-index-head {
  grid-area: head;
  margin: 0;
  max-width: 760px;
}

.blog-index-head .hero-title {
  margin: 0;
  max-width: 760px;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.article-intro--blog-index {
  grid-area: intro;
  margin: 0;
  max-width: 760px;
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.article-wrap--blog-index > .blog-feature--index {
  grid-area: card;
  margin: 0;
  min-width: 0;
}

.article-wrap--wide {
  width: min(1120px, 100% - 40px);
}

.article-card {
  background: var(--surface-article);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.article-toc {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-soft);
}

.article-toc-head {
  margin-bottom: 14px;
}

.article-toc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-toc-caption {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.5;
}

.article-toc-list,
.article-toc-list ol {
  margin: 0;
  padding-left: 0;
}

.article-toc-list {
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: toc;
}

.article-toc-list--compact {
  gap: 8px;
}

.article-toc-list > li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  overflow-wrap: break-word;
  min-width: 0;
}

.article-toc-list > li::before {
  content: counter(toc);
  counter-increment: toc;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: right;
  line-height: 1.35;
}

.article-toc-list a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.article-toc-list a:link,
.article-toc-list a:visited {
  color: rgba(255, 255, 255, 0.94);
}

.article-toc-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-toc-list > li > a {
  font-weight: 600;
}

.article-toc-list > li > a:hover {
  color: var(--accent);
}

.article-toc-list ol a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.article-toc-list a:focus-visible {
  outline: 2px solid rgba(0, 136, 204, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

.article-toc-branch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.article-toc-list > li > .article-toc-branch > a {
  font-weight: 600;
}

.article-toc-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 2px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
}

.article-toc-sub li {
  margin: 0;
}

.article-toc-sub a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.article-toc-sub a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Оглавление статьи: больше воздуха, чётче уровни (не «куча» на мобильных) */
.article-toc-list--tree {
  gap: clamp(14px, 2.5vw, 20px);
}

.article-toc-list--tree > li {
  align-items: start;
  gap: 14px;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  line-height: 1.5;
}

.article-toc-list--tree > li::before {
  font-size: 14px;
  line-height: 1.4;
  padding-top: 3px;
}

.article-toc-list--tree > li > a,
.article-toc-list--tree > li > .article-toc-branch > a {
  display: inline-block;
  line-height: 1.5;
  max-width: 100%;
}

.article-toc-list--tree .article-toc-branch {
  gap: 14px;
}

.article-toc-list--tree .article-toc-sub {
  margin-top: 2px;
  padding: 12px 14px 14px 18px;
  border-radius: 0 14px 14px 0;
  background: rgba(0, 0, 0, 0.22);
  border-left: 2px solid rgba(42, 171, 238, 0.28);
  gap: 11px;
}

.article-toc-list--tree .article-toc-sub a {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

.article-toc:has(.article-toc-list--tree) {
  padding: 18px 18px 20px;
}

.article-intro {
  color: var(--text-body);
  max-width: 760px;
  font-size: 18px;
}


.article-content h2,
.article-content h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-content h2 {
  margin: 42px 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 24px 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

.article-content p,
.article-content li {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content :is(figcaption, .article-faq-item summary) {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content strong {
  color: var(--text);
}

.article-content a:not(.btn) {
  color: #9ec1ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-figure {
  margin: 28px 0;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-soft);
}

.article-figure svg {
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--surface-accent);
}

.article-note p {
  margin: 0;
}

.article-inline-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 24px);
  margin: 28px 0 32px;
  max-width: 100%;
}


.article-table-card,
.article-checklist-card,
.mistakes-panel {
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-soft);
  border-radius: 18px;
}

.article-checklist-card,
.mistakes-panel {
  padding: 18px;
}

.article-inline-card {
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.8vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.article-inline-cards--payoff .article-inline-card {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.article-inline-cards--payoff .article-inline-card-label {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.35;
}

.article-inline-cards--payoff .article-inline-card--good .article-inline-card-label {
  color: #d3e4ff;
}

.article-inline-cards--payoff .article-inline-card--bad .article-inline-card-label {
  color: #c9dcff;
}

.article-inline-cards--payoff .article-inline-card--good {
  background: var(--surface-inline-good);
  border-left: 4px solid rgba(0, 136, 204, 0.75);
}

.article-inline-cards--payoff .article-inline-card--bad {
  background: var(--surface-inline-bad);
  border-left: 4px solid rgba(42, 171, 238, 0.7);
}

.article-inline-cards--payoff .article-inline-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.article-inline-cards--payoff .article-inline-card li {
  margin: 0 0 11px;
  padding-left: 2px;
  font-size: clamp(15px, 1.45vw, 16px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
}

.article-inline-cards--payoff .article-inline-card li:last-child {
  margin-bottom: 0;
}

/* Краткая выжимка: один контейнер, пункты столбиком — без узких колонок и «коробки в коробке» */
.article-summary-board {
  margin: 10px 0 32px;
  padding: clamp(20px, 3.2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: var(--surface-article-soft);
}

.article-table-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.article-table-card-head p,
.article-checklist-card p {
  margin: 0;
}

.article-inline-card-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-board-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 20px);
}

.summary-board-card {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) clamp(18px, 2.8vw, 26px);
  border: none;
  border-radius: 14px;
  border-left: 3px solid rgba(42, 171, 238, 0.65);
  background: var(--surface-raised);
  box-shadow: none;
  hyphens: none;
  -webkit-hyphens: none;
}

.summary-board-card strong,
.article-inline-card strong {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.65vw, 18px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.98);
}

.summary-board-card p,
.article-inline-card p {
  margin: 0;
}

.summary-board-card p {
  font-size: clamp(15px, 1.45vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.article-inline-card strong {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: normal;
  color: inherit;
}

.article-table-card {
  margin: 30px 0;
  padding: 24px;
}

.article-table-card h3,
.article-checklist-card h3,
.mistakes-panel h3,
.decision-matrix-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
}

.mistakes-panel.mistakes-panel--callout h3,
.article-checklist-card.article-checklist-card--callout h3 {
  margin: 0 0 clamp(14px, 2vw, 18px);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table-wrap--stacked {
  margin-inline: 0;
  border-radius: 14px;
}

.article-table {
  width: 100%;
  min-width: min(720px, 100%);
  border-collapse: collapse;
}

@media (min-width: 1025px) {
  .article-table--editorial {
    table-layout: fixed;
  }

  .article-table--editorial th:nth-child(1),
  .article-table--editorial td:nth-child(1) {
    width: 22%;
  }

  .article-table--editorial th:nth-child(2),
  .article-table--editorial td:nth-child(2),
  .article-table--editorial th:nth-child(3),
  .article-table--editorial td:nth-child(3) {
    width: 39%;
  }

  .article-table--priority {
    table-layout: fixed;
  }

  .article-table--priority th:nth-child(1),
  .article-table--priority td:nth-child(1) {
    width: 20%;
  }

  .article-table--priority th:nth-child(2),
  .article-table--priority td:nth-child(2) {
    width: 34%;
  }

  .article-table--priority th:nth-child(3),
  .article-table--priority td:nth-child(3),
  .article-table--priority th:nth-child(4),
  .article-table--priority td:nth-child(4) {
    width: 23%;
  }
}

.article-table th,
.article-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
}

.article-table thead th {
  border-top: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-matrix-head p {
  color: var(--text-body);
}

.article-table-card--compact {
  margin-top: 20px;
}

.article-table-card--editorial,
.article-table-card--priority-board {
  background: var(--surface-raised);
}

.article-table--editorial td:first-child,
.article-table--priority td:first-child {
  color: var(--text);
}

.article-table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

.article-table-badge--easy {
  background: var(--surface-inline-good);
  color: #c9dcff;
}

.article-table-badge--medium {
  background: var(--surface-raised);
  color: rgba(255,255,255,0.88);
}

.article-table-badge--strong {
  background: var(--surface-accent-soft);
  color: #9ec1ff;
}

.article-inline-card ul,
.article-checklist-card ul,
.mistakes-panel ul {
  margin: 0;
  padding-left: 18px;
}

.mistakes-panel.mistakes-panel--callout ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 14px);
}

.article-inline-card li,
.article-checklist-card li,
.mistakes-panel li {
  margin: 0;
}

.mistakes-panel.mistakes-panel--callout li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
}

.mistakes-panel.mistakes-panel--callout li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.08);
}

.article-checklist-card {
  margin: 26px 0 0;
}

.article-steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.article-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-soft);
}

.article-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-accent-soft);
  color: #fff;
  font-weight: 700;
}

.article-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.article-step p {
  margin: 0;
}

/* Одна карточка без «рамки вокруг рамки»: базовый .article-figure даёт border/bg — здесь отключаем */
.article-figure.article-figure-mistakes {
  display: block;
  margin: clamp(22px, 3.5vw, 34px) 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.article-figure.article-figure-mistakes .mistakes-panel.mistakes-panel--callout {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.article-figure.article-figure-mistakes figcaption {
  display: block;
  width: 100%;
  margin: clamp(12px, 2vw, 16px) 0 0;
  padding: 0 2px 2px;
  box-sizing: border-box;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.mistakes-panel.mistakes-panel--callout {
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid rgba(42, 171, 238, 0.68);
  border-radius: 18px;
  background: var(--surface-accent);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

/* Чеклист «быстрый фильтр»: тот же акцент, что на сайте (--accent), без синего; фон чуть светлее блока «ошибки» */
.article-checklist-card.article-checklist-card--callout {
  margin: clamp(18px, 2.5vw, 26px) 0 clamp(22px, 3vw, 32px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid rgba(42, 171, 238, 0.52);
  border-radius: 18px;
  background: var(--surface-accent-soft);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.article-checklist-card.article-checklist-card--callout ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 14px);
}

.article-checklist-card.article-checklist-card--callout li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.article-checklist-card.article-checklist-card--callout li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.08);
}

.mistakes-panel:not(.mistakes-panel--callout) {
  background: var(--surface-soft);
}

.mistakes-panel:not(.mistakes-panel--callout) li::marker {
  color: var(--accent);
}

.article-faq-block {
  margin-top: 34px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-raised);
}

.article-faq-head {
  margin-bottom: 18px;
}

.article-faq-head p {
  margin: 8px 0 0;
}

.article-faq-list {
  display: grid;
  gap: 12px;
}

.article-faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
}

.article-faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 20px;
  padding-inline-end: clamp(2.75rem, 7vw, 3.25rem);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  color: var(--text);
}

.article-faq-item summary::-webkit-details-marker {
  display: none;
}

.article-faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 20px;
  top: 18px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.article-faq-item[open] summary::after {
  content: "−";
}

.article-faq-answer {
  padding: 0 20px 18px;
}

.article-faq-answer p {
  margin: 0;
}

.article-cta {
  margin-top: 36px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-accent-soft);
  border: 1px solid rgba(255,255,255,0.1);
}

.article-cta-title {
  margin-top: 0;
}

.article-cta p:last-child {
  margin-bottom: 0;
}

.article-sources {
  margin-top: 48px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-sources > h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.article-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.article-sources-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-word;
}

.article-sources-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.65);
}

.article-sources-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-sources-list a:hover {
  color: #fff;
  text-decoration-color: rgba(42, 171, 238, 0.8);
}

.article-ref {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42, 171, 238, 0.55);
}

.article-ref:hover {
  text-decoration-style: solid;
  text-decoration-color: rgba(42, 171, 238, 0.9);
}

@media (max-width: 640px) {
  .article-sources {
    padding: 20px;
  }
}

/* Article tables: card layout on tablet/phone (no horizontal scroll) */
@media (max-width: 1024px) {
  .article-table-wrap--stacked {
    overflow-x: hidden;
    border-radius: 16px;
  }

  .article-table,
  .article-table--editorial,
  .article-table--priority {
    min-width: 0;
    width: 100%;
  }

  .article-table--editorial thead,
  .article-table--priority thead {
    display: none;
  }

  .article-table--editorial tbody,
  .article-table--priority tbody {
    display: block;
  }

  .article-table--editorial tr,
  .article-table--priority tr {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .article-table--editorial tbody tr:last-child,
  .article-table--priority tbody tr:last-child {
    margin-bottom: 0;
  }

  .article-table--editorial td,
  .article-table--priority td {
    display: block;
    width: 100%;
    border-top: none;
    padding: 0;
  }

  .article-table--editorial td + td,
  .article-table--priority td + td {
    margin-top: 12px;
  }

  .article-table--editorial td::before,
  .article-table--priority td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .article-table-card--editorial,
  .article-table-card--priority-board {
    padding: 18px 14px;
  }

  .article-table-card--editorial .article-table-card-head,
  .article-table-card--priority-board .article-table-card-head {
    margin-bottom: 12px;
  }
}

@media (max-width: 700px) {
  .article-shell {
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 28px;
  }

  .article-wrap--blog-index {
    row-gap: clamp(14px, 3vw, 22px);
  }

  .blog-index-head .hero-title {
    font-size: clamp(26px, 7.2vw, 36px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .article-intro--blog-index {
    font-size: 16px;
    line-height: 1.65;
  }

  .article-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .blog-feature--index.article-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .blog-feature--index .blog-feature-title {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.15;
  }

  .blog-feature--index .blog-feature-text {
    font-size: 15px;
    line-height: 1.65;
  }

  .article-meta {
    gap: 8px;
    font-size: 13px;
  }

  .article-toc {
    padding: 14px;
    border-radius: 16px;
  }

  .article-toc-head {
    margin-bottom: 10px;
  }

  .article-toc-caption {
    font-size: 13px;
    line-height: 1.45;
  }

  .article-toc-list,
  .article-toc-list ol {
    padding-left: 0;
  }

  .article-toc-list:not(.article-toc-list--tree),
  .article-toc-list--compact {
    gap: 6px;
  }

  .article-toc-list--tree {
    gap: 12px;
  }

  .article-toc-list--tree > li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 12px;
  }

  .article-toc-list--tree .article-toc-sub {
    padding: 10px 12px 12px 14px;
  }

  .article-toc-list:not(.article-toc-list--tree) > li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 10px;
  }

  .article-toc-list:not(.article-toc-list--tree) > li::before {
    font-size: 12px;
  }

  .article-toc-list--tree > li::before {
    font-size: 13px;
  }

  .article-intro {
    font-size: 16px;
    line-height: 1.65;
  }


  .article-content p,
  .article-content li {
    font-size: 16px;
    line-height: 1.62;
  }

  .article-content h2 {
    margin: 34px 0 12px;
    font-size: 28px;
  }

  .article-content > h2:first-child {
    margin-top: 0;
  }

  .article-content h3 {
    margin: 20px 0 10px;
    font-size: 20px;
  }

  .article-content ul,
  .article-content ol {
    margin-left: 18px;
  }

  .article-figure {
    padding: 14px;
    border-radius: 16px;
  }

  .article-figure.article-figure-mistakes {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .article-table--editorial tr,
  .article-table--priority tr {
    padding: 14px 12px;
  }

  .article-note,
  .article-cta,
  .article-step,
  .article-faq-block,
  .article-faq-item summary,
  .article-faq-answer,
  .article-table-card,
  .article-checklist-card,
  .mistakes-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .mistakes-panel.mistakes-panel--callout,
  .article-checklist-card.article-checklist-card--callout {
    padding: 15px 14px 16px 16px;
  }

  .summary-board-card {
    padding: 15px 15px 15px 18px;
    border-radius: 12px;
  }

  .article-faq-item summary {
    font-size: 17px;
    padding-inline-end: clamp(2.6rem, 10vw, 3rem);
  }

  .article-faq-item summary::after {
    inset-inline-end: 14px;
    top: 14px;
  }

  .article-faq-answer {
    padding-top: 0;
  }

  .summary-board-grid {
    gap: 12px;
  }

  .article-inline-cards {
    gap: 14px;
  }

  .blog-actions {
    flex-direction: column;
  }

  .blog-actions .btn {
    width: 100%;
  }
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.42s var(--ease-out), opacity 0.3s var(--ease-out), border-color 0.25s var(--ease-out);
}

.faq-item[open] .faq-panel {
  max-height: 28rem;
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-a {
  margin: 0;
  padding: 14px 18px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel {
    transition: none;
  }

  .faq-chevron {
    transition: none;
  }
}

/* About */
.section-about {
  position: relative;
  overflow: hidden;
}

.section-curve {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  width: 100%;
  height: 200px;
  opacity: 0.6;
  pointer-events: none;
}

.about-split {
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.about-text {
  margin: 0 0 16px;
  font-size: 16px;
}

.about-cta {
  margin-top: 28px;
}

/* Contact */
.section-contact {
  padding-block: clamp(64px, 8vw, 84px);
}

.section-contact .section-head {
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(22px, 3.2vw, 32px);
}

.section-contact .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-contact .contact-sublead {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 640px) {
  .section-contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-contact .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.turnstile-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.form-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(42, 171, 238, 0.35);
  background: var(--surface-accent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.form-error a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}

.form-error a:hover {
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-tg-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.form-tg-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.15);
}

.form-tg-at {
  padding: 0 4px 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
  flex-shrink: 0;
}

.form-tg-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px !important;
  border-radius: 0 !important;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-row--top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Внутренние страницы (юридические) */
.site-header--sub .header-inner {
  justify-content: space-between;
}

.site-header--sub .btn-nav {
  margin-left: 0;
}

.page-legal {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 88px;
  background: var(--bg-section);
  min-height: 100vh;
  min-height: 100dvh;
}

.page-thanks {
  padding-top: 72px;
  padding-bottom: 88px;
  background: radial-gradient(ellipse 90% 70% at 70% 10%, rgba(42, 171, 238, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 20% 40%, rgba(0, 136, 204, 0.08) 0%, transparent 55%),
    var(--bg-section);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.thanks-card {
  width: min(920px, 100%);
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(42, 171, 238, 0.10);
  padding: 34px;
}

@media (min-width: 700px) {
  .thanks-card {
    padding: 44px;
  }
}

.thanks-kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.thanks-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.thanks-text {
  margin: 0;
  max-width: 46rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.thanks-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-legal-inner {
  width: min(720px, 100% - 40px);
  margin-inline: auto;
}

.page-legal h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-legal-lead {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);
}

.page-legal h2 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.page-legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-legal a:hover {
  color: var(--accent);
}

.page-legal .btn {
  text-decoration: none;
}

.page-legal .btn.btn-primary {
  color: #fff;
}

.page-legal p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

.page-legal ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
  color: var(--text-body);
}

.page-legal li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.page-legal-meta {
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-legal-back {
  margin-top: 36px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 24px;
  overflow-x: auto;
  display: block;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.legal-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.legal-table code {
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-social {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  border: none;
  padding: 0;
  line-height: 0;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.footer-social:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.35);
}

.footer-social svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.footer-social img {
  width: 48px;
  height: 48px;
  max-width: none;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

/*
 * Reveal: без JS контент виден сразу (SEO). Класс `reveal-js` на <html> ставит inline-скрипт в head;
 * пока немає .is-visible — приховуємо лише з JS (як раніше по анімації).
 */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.reveal-js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

html.reveal-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SetupAi product layout — Hero chat, audience, problem, comparison,
   capabilities, context, reactivation, training, process aside,
   plans, security, demo chat
   ============================================================ */

/* Section subtitle */
.section-sub {
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

/* Blocks 1–8: единый ритм, без разрыва цифр */
#hero.hero--centered,
#audience.section,
#problem.section,
#comparison.section,
#capabilities.section,
#context.section,
#reactivation.section,
#training.section {
  padding-block: clamp(64px, 8vw, 84px);
}

#hero.hero--centered {
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: clamp(48px, 6vw, 60px);
}

#audience .section-head,
#problem .section-head,
#comparison .section-head,
#capabilities .section-head,
#context .section-head,
#reactivation .section-head,
#training .section-head {
  margin-bottom: clamp(22px, 3.2vw, 32px);
}

#hero.hero--centered .hero-title {
  margin-bottom: 18px;
}

#hero.hero--centered .hero-actions {
  margin-top: 22px;
}

.hero-metrics {
  margin-top: 20px;
}

.stat-big-num,
.hero-metric-num,
.reactivation-feature-num,
.training-table tbody td:last-child,
.keep-inline,
.cell-nowrap {
  white-space: nowrap;
}

.section-title,
.stat-big-title,
.hero--centered .hero-title,
.context-card-title,
.reactivation-card-title,
.training-card-title {
  text-wrap: balance;
}

.comparison-table thead th,
.comparison-table tbody td.cell-nowrap {
  white-space: nowrap;
}

@media (max-width: 640px) {
  #audience .section-head,
  #problem .section-head,
  #comparison .section-head,
  #capabilities .section-head,
  #context .section-head,
  #reactivation .section-head,
  #training .section-head {
    margin-bottom: 20px;
  }

  #hero.hero--centered {
    padding-bottom: 48px;
  }
}

/* HERO — chat layout */
/* Centered hero layout (replaces old chat two-column) */
.hero--centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero--centered .hero-copy {
  text-align: center;
  max-width: 780px;
  width: 100%;
}

.hero--centered .hero-title {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero--centered .hero-lead-wrap {
  max-width: 540px;
  margin-inline: auto;
}

.hero--centered .hero-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}

.hero--centered .hero-actions {
  justify-content: center;
  margin-top: 22px;
}

.hero--centered .hero-actions .btn {
  padding: 16px 32px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .hero--centered .hero-title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .hero--centered .hero-actions {
    gap: 12px;
  }

  .hero--centered .hero-actions .btn {
    padding: 16px 26px;
    font-size: 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-metric {
    text-align: left;
  }

  .hero-metric-label {
    font-size: 14px;
  }
}

.hero--centered .hero-metrics {
  max-width: 480px;
  margin-inline: auto;
}

.hero-metrics {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-metric);
  text-align: center;
}

.hero-metric-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--accent);
  line-height: 1.1;
}

.hero-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero chat window (static mockup) */
.hero-chat {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-chat-window {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(42, 171, 238, 0.08);
  overflow: hidden;
}

.hero-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface-accent);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.hero-chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.hero-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bg-card-alt);
  min-height: 320px;
}

.hero-chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.4;
}

.hero-chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.hero-chat-bubble--bot {
  align-self: flex-start;
  background: var(--surface-bubble);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 6px;
}

.hero-chat-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--surface-bubble);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}

.hero-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: heroTypingDot 1.2s infinite ease-in-out;
}

.hero-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes heroTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* AUDIENCE */
.section-audience {
  border-top: 1px solid #ffffff;
}

.section-audience .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-audience .section-sub {
  margin-inline: auto;
}

.section-audience .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-audience .section-sub {
  font-size: clamp(17px, 2.2vw, 20px);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}

.audience-tag--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.35);
}

.audience-tag--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.audience-tag--light {
  background: #fff;
  border-color: #fff;
  color: var(--accent-2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.audience-tag--ghost {
  background: var(--surface-accent);
  border-color: rgba(42, 171, 238, 0.45);
  color: var(--accent);
}

.audience-tag--tilt-1 { transform: rotate(-5deg); }
.audience-tag--tilt-2 { transform: rotate(4deg); }
.audience-tag--tilt-3 { transform: rotate(-3deg); }
.audience-tag--tilt-4 { transform: rotate(5deg); }
.audience-tag--tilt-5 { transform: rotate(-4deg); }
.audience-tag--tilt-6 { transform: rotate(3deg); }
.audience-tag--tilt-7 { transform: rotate(-2deg); }
.audience-tag--tilt-8 { transform: rotate(4deg); }

.audience-tag:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 0 28px rgba(42, 171, 238, 0.3);
  z-index: 1;
}

@media (max-width: 640px) {
  .section-audience {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-audience .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-audience .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .audience-tags {
    gap: 12px 14px;
  }

  .audience-tag {
    padding: 16px 22px;
    font-size: 15px;
    white-space: nowrap;
    text-align: center;
    max-width: 100%;
  }
}

/* Legacy card layout (UA page) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card-audience {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card-audience:hover {
  border-color: rgba(42, 171, 238, 0.25);
  box-shadow: 0 0 32px rgba(42, 171, 238, 0.12);
  transform: translateY(-2px);
}

.audience-emoji {
  font-size: 28px;
  line-height: 1;
}

.card-audience h3 {
  margin: 4px 0 2px;
}

.card-audience p {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* PROBLEM */
.section-problem .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-problem .section-sub {
  margin-inline: auto;
}

.section-problem .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-problem .section-sub {
  font-size: clamp(17px, 2.2vw, 20px);
}

/* PROBLEM — big stats */
#audience .section-sub,
#problem .section-sub,
#comparison .section-sub,
#capabilities .section-sub,
#context .section-sub,
#reactivation .section-sub,
#training .section-sub {
  margin-top: 10px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-stat-big {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(42, 171, 238, 0.2);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-big-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-big-title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.3;
  color: var(--text);
}

.card-stat-big p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
}

/* COMPARISON */
.section-comparison .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-comparison .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-comparison .section-sub {
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
}

@media (max-width: 640px) {
  .section-comparison {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-comparison .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-comparison .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 18px;
    font-size: 15px;
  }

  .comparison-table thead th {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .section-problem {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-problem .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-problem .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .card-stat-big {
    padding: 28px 22px;
  }

  .stat-big-num {
    font-size: clamp(52px, 16vw, 80px);
  }

  .card-stat-big p {
    font-size: 16px;
  }
}

/* COMPARISON table */
.section-comparison .comparison-wrap {
  max-width: 960px;
  margin-inline: auto;
}

.comparison-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  line-height: 1.45;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--surface-raised);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--text-muted);
}

.comparison-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text);
  width: 36%;
}

.comparison-table td {
  color: var(--text-body);
  font-size: clamp(15px, 2vw, 17px);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-bot-col {
  background: var(--surface-accent);
  color: var(--text) !important;
  font-weight: 500;
}

.comparison-table thead .comparison-bot-col {
  color: var(--accent) !important;
}

.comparison-note {
  margin: 0;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  background: var(--surface-soft);
  border-top: 1px solid var(--border-subtle);
}

.comparison-note strong {
  color: var(--text);
}

/* CAPABILITIES */
.section-capabilities .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-capabilities .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-capabilities .section-sub {
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
}

.section-capabilities .capability-columns {
  max-width: 960px;
  margin-inline: auto;
}

/* CAPABILITY columns */
.capability-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 860px) {
  .capability-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.capability-col {
  padding: 28px 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.capability-head {
  margin: -28px -28px 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  text-align: center;
}

.capability-col--yes .capability-head {
  background: var(--surface-success);
  color: #86efac;
}

.capability-col--no .capability-head {
  background: var(--surface-danger);
  color: #fca5a5;
}

.capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-list li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .section-capabilities {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-capabilities .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-capabilities .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .capability-col {
    padding: 24px 22px 26px;
  }

  .capability-head {
    margin: -24px -22px 18px;
    padding: 14px 22px;
    font-size: 13px;
  }

  .capability-list li {
    font-size: 16px;
  }
}

.capability-col--yes .capability-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #86efac;
  font-weight: 700;
}

.capability-col--no .capability-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: #fca5a5;
  font-weight: 700;
}

.capability-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
}

/* CONTEXT — cards layout (like reference) */
.section-context .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-context .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-context .section-sub {
  font-size: clamp(17px, 2.2vw, 20px);
}

.context-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.context-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

@media (min-width: 960px) {
  .context-cards-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
  }
}

.context-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 26px 26px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 960px) {
  .context-cards-row .context-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .context-card--dark .context-example {
    flex: 1;
  }
}

.context-card--light {
  background: #ffffff;
  color: #0b0d12;
  border-color: rgba(255, 255, 255, 0.7);
}

.context-card--light .context-card-lead,
.context-card--light .context-bullets li {
  color: rgba(10, 14, 20, 0.75);
}

.context-card--dark {
  background: var(--bg-card);
  border-color: rgba(42, 171, 238, 0.2);
}

.context-card--mini {
  background: var(--surface-soft);
  width: 100%;
  max-width: 560px;
}

.context-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title chip";
  align-items: start;
  column-gap: 14px;
  margin-bottom: 16px;
}

.context-card-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.15;
  color: inherit;
}

.context-chip {
  grid-area: chip;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  align-self: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.context-chip--accent {
  border-color: rgba(42, 171, 238, 0.35);
  color: var(--accent);
}

.context-card--light .context-chip {
  border-color: rgba(0, 0, 0, 0.12);
  background: #eaf7fd;
  color: #0b0d12;
}

.context-card-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);
}

.context-card-subhead {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: inherit;
}

.context-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.context-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
}

.context-bullets li::before {
  content: "↘";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.context-card--light .context-bullets li::before {
  color: var(--accent-2);
}

.context-example {
  display: grid;
  gap: 14px;
}

.context-example-block {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 18px;
  background: #1a1a1a;
}

.context-example-block--bad {
  border-color: rgba(248, 113, 113, 0.28);
  background: #2a1c1c;
}

.context-example-block--good {
  border-color: rgba(42, 171, 238, 0.32);
  background: #18242c;
}

.context-example-head {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
}

.context-example-block--bad .context-example-head {
  color: #fca5a5;
}

.context-example-block--good .context-example-head {
  color: var(--accent);
}

.context-example-text {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
}

.context-example-text:last-child {
  margin-bottom: 0;
}

.context-example-text strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .section-context {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-context .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-context .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .context-card {
    padding: 22px 20px 24px;
    border-radius: 20px;
  }

  .context-card-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chip"
      "title";
    row-gap: 10px;
    justify-items: start;
  }

  .context-chip {
    height: 32px;
    align-self: start;
  }
}

/* REACTIVATION — mosaic cards (reference style, SetupAi theme) */
.section-reactivation .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-reactivation .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.reactivation-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (min-width: 960px) {
  .reactivation-mosaic {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 16px;
    align-items: stretch;
  }
}

.reactivation-feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: #ffffff;
  color: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.reactivation-feature-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.reactivation-feature-lead {
  margin: 14px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: rgba(10, 14, 20, 0.78);
}

.reactivation-feature-text {
  margin: 14px 0 0;
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.55;
  color: rgba(10, 14, 20, 0.68);
}

.reactivation-feature-visual {
  margin-top: auto;
  padding-top: 22px;
}

.reactivation-stack {
  position: relative;
  min-height: 132px;
}

.reactivation-stack-card {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f6f8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.reactivation-stack-card--back {
  top: 18px;
  height: 72px;
  transform: scale(0.92);
  opacity: 0.45;
}

.reactivation-stack-card--mid {
  top: 10px;
  height: 78px;
  transform: scale(0.96);
  opacity: 0.7;
}

.reactivation-stack-card--front {
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 18px 20px;
  background: #ffffff;
}

.reactivation-stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.reactivation-stack-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reactivation-stack-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.25;
  color: #0b0d12;
}

.reactivation-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .reactivation-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.reactivation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 22px 22px 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.reactivation-card--accent {
  background: var(--surface-blue);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.reactivation-card--dark {
  background: var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.reactivation-card--light {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  color: #0b0d12;
}

.reactivation-card-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
}

.reactivation-card-step {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.reactivation-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: inherit;
}

.reactivation-card-text {
  margin: 0;
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.55;
  opacity: 0.82;
}

.reactivation-card--light .reactivation-card-text {
  color: rgba(10, 14, 20, 0.72);
  opacity: 1;
}

.reactivation-card-icon {
  position: absolute;
  right: 14px;
  bottom: 10px;
  opacity: 0.95;
  pointer-events: none;
}

.reactivation-card-icon svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.75;
}

.reactivation-card--accent .reactivation-card-icon svg {
  stroke: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .section-reactivation {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-reactivation .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .reactivation-feature {
    padding: 24px 22px 22px;
    border-radius: 22px;
  }

  .reactivation-card {
    min-height: 190px;
    padding: 20px 68px 56px 20px;
    border-radius: 20px;
  }

  .reactivation-card-copy {
    max-width: 100%;
  }

  .reactivation-card-title {
    line-height: 1.2;
  }

  .reactivation-card-text {
    line-height: 1.5;
  }

  .reactivation-card-icon {
    right: 14px;
    bottom: 14px;
    transform: none;
  }

  .reactivation-card-icon svg,
  .reactivation-card-icon i {
    width: 52px;
    height: 52px;
  }

  /* Шаг 2: SVG чата визуально выше — выравниваем с остальными иконками */
  .reactivation-card--dark .reactivation-card-icon {
    bottom: 10px;
  }

  .reactivation-card--dark .reactivation-card-icon svg {
    transform: translateY(8px);
  }
}

/* Мобильный скролл: меньше дёрганий от reveal-transform и smooth-scroll */
@media (max-width: 900px) {
  html {
    scroll-behavior: auto;
  }

  html.reveal-js .reveal:not(.is-visible),
  html.reveal-js .process-showcase.reveal:not(.is-visible) {
    transform: none;
  }

  html.reveal-js .reveal.is-visible,
  html.reveal-js .process-showcase.reveal.is-visible {
    transform: none;
  }

  .reveal,
  html.reveal-js .reveal {
    transition: opacity 0.45s var(--ease-out);
  }

  .process-list > .process-step.reveal {
    transition: opacity 0.45s var(--ease-out);
  }
}

/* TRAINING */
.section-training .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-training .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.section-training .section-sub {
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
}

.section-training .training-grid,
.section-training .training-money {
  max-width: 1040px;
  margin-inline: auto;
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (min-width: 880px) {
  .training-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.training-card {
  padding: 28px 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.training-card-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.training-table {
  width: 100%;
  border-collapse: collapse;
}

.training-table th,
.training-table td {
  padding: 14px 12px;
  text-align: left;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.45;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.training-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--text-muted);
}

.training-table tbody td:last-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.training-table tbody tr:last-child th,
.training-table tbody tr:last-child td {
  border-bottom: none;
}

.training-note {
  margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.55;
  font-style: italic;
  color: var(--text-body);
}

.training-money {
  margin-top: 18px;
  padding: 22px 28px;
  border-radius: 22px;
  border: 1px solid rgba(42, 171, 238, 0.28);
  background: var(--surface-accent);
  text-align: center;
}

.training-money p {
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 640px) {
  .section-training {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-training .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }

  .section-training .section-sub {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .training-card {
    padding: 24px 22px 26px;
    border-radius: 20px;
  }

  .training-card-title {
    font-size: clamp(17px, 4.8vw, 20px);
  }

  .training-table th,
  .training-table td {
    padding: 12px 10px;
    font-size: 16px;
  }

  .training-table thead th {
    font-size: 12px;
  }

  .training-note {
    font-size: 16px;
  }

  .training-money {
    padding: 20px 22px;
    border-radius: 20px;
  }

  .training-money p {
    font-size: clamp(16px, 4.6vw, 18px);
  }
}

/* PROCESS — showcase + accordion (reference layout, dark theme) */
.section-process {
  padding-block: clamp(64px, 8vw, 84px);
}

.process-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .process-showcase {
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
    gap: 24px;
  }
}

.process-intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.process-intro-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

.process-intro-sub {
  margin: 12px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
}

.process-visual {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
}

.process-visual-blocks {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 10px);
  padding: 0 8px 18px;
}

.process-visual-block {
  position: relative;
  flex: 0 0 auto;
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  border-radius: 14px;
  background: linear-gradient(155deg, #5bc4ff 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow:
    0 10px 22px rgba(42, 171, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: rotate(-6deg);
}

.process-visual-block:nth-child(even) {
  transform: rotate(4deg) translateY(-6px);
}

.process-visual-block:nth-child(3) {
  transform: rotate(-2deg) translateY(-10px);
}

.process-visual-block-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 3vw, 24px);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.process-visual-base {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(42, 171, 238, 0.35) 0%, rgba(42, 171, 238, 0.08) 55%, transparent 72%);
  filter: blur(2px);
}

.process-accordion {
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.process-acc-item {
  border-bottom: 1px solid var(--border-subtle);
}

.process-acc-item:last-child {
  border-bottom: none;
}

.process-acc-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease-out);
}

.process-acc-summary::-webkit-details-marker {
  display: none;
}

.process-acc-summary::marker {
  content: "";
}

.process-acc-item[open] .process-acc-summary,
.process-acc-summary:hover {
  background: var(--surface-raised);
}

.process-acc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(42, 171, 238, 0.55);
  background: rgba(42, 171, 238, 0.08);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.process-acc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

.process-acc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(42, 171, 238, 0.1);
  transition: transform 0.25s var(--ease-out), background 0.2s;
  flex-shrink: 0;
}

.process-acc-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.process-acc-item[open] .process-acc-toggle {
  transform: rotate(90deg);
  background: rgba(42, 171, 238, 0.18);
}

.process-acc-item[open] .process-acc-summary {
  padding-bottom: 16px;
}

.process-acc-panel {
  padding: 14px 22px 24px;
}

.process-acc-lead {
  margin: 0 0 16px;
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.55;
}

.process-acc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .process-acc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.process-acc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}

.process-acc-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(42, 171, 238, 0.12);
  color: var(--accent);
}

.process-acc-card-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.process-acc-card p {
  margin: 0;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.5;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .section-process {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .process-intro {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .process-intro-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
    text-align: center;
  }

  .process-intro-sub {
    text-align: center;
  }

  .process-accordion {
    border-radius: 22px;
  }

  .process-acc-summary {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 18px 16px;
  }

  .process-acc-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .process-acc-title {
    font-size: 17px;
  }

  .process-acc-item[open] .process-acc-summary {
    padding-bottom: 14px;
  }

  .process-acc-panel {
    padding: 12px 16px 20px;
  }
}

/* Legacy process timeline (UA page) */
.process-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

@media (min-width: 960px) {
  .process-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 36px;
  }
}

.process-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-aside-card {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.process-aside-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.process-aside-card p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.process-modes {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-modes li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-body);
}

.process-modes li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.7;
}

.process-modes strong {
  color: var(--text);
}

/* PRICING — plans */
.pricing-api-note {
  margin: 0 auto 28px;
  max-width: 760px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  text-align: center;
  font-size: 14.5px;
  line-height: 1.55;
}

.pricing-api-note strong {
  color: var(--text);
}

.pricing-grid--plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid--plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.card-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.card-plan:hover {
  border-color: rgba(42, 171, 238, 0.25);
  box-shadow: 0 0 56px rgba(42, 171, 238, 0.14), 0 16px 52px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.card-plan--starter {
  transform: rotate(-1deg);
}

.card-plan--talk {
  transform: rotate(1deg);
}

.card-plan--starter:hover,
.card-plan--talk:hover {
  transform: translateY(-2px) rotate(0deg);
}

.card-plan--popular {
  border-color: rgba(42, 171, 238, 0.4);
  background: var(--surface-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(42, 171, 238, 0.18);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 6px 14px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.4);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.24);
  color: var(--accent);
  flex-shrink: 0;
}

.plan-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.plan-icon--accent {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.plan-top-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-size: 13px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 52px);
  line-height: 1;
  color: var(--text);
}

.plan-price-unit {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-muted);
}

.plan-price-extra {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-talk {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.card-plan--popular .plan-talk {
  color: #ffffff;
}

.plan-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
}

.card-plan--popular .plan-divider {
  background: rgba(255, 255, 255, 0.18);
}

.plan-target {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.plan-features {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-plan--popular .plan-name,
.card-plan--popular .plan-price,
.card-plan--popular .plan-price-unit,
.card-plan--popular .plan-price-extra,
.card-plan--popular .plan-target,
.card-plan--popular .plan-features li {
  color: rgba(255, 255, 255, 0.88);
}

.card-plan--popular .plan-features li::before {
  color: #ffffff;
}

@media (max-width: 640px) {
  .card-plan--starter,
  .card-plan--talk {
    transform: none;
  }
}

/* SECURITY */
/* ABOUT */
.section-about {
  padding-block: clamp(64px, 8vw, 84px);
}

.section-about .section-head {
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(22px, 3.2vw, 32px);
}

.section-about .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-about {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.card-about:hover {
  border-color: rgba(42, 171, 238, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 2;
}

.about-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.3;
  color: var(--text);
}

.about-card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .section-about {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-about .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }
}

.section-security {
  padding-block: clamp(64px, 8vw, 84px);
}

.section-security .section-head {
  margin-inline: auto;
  text-align: center;
}

.section-security .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

@media (max-width: 640px) {
  .section-security {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-security .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-security {
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.card-security:hover {
  border-color: rgba(42, 171, 238, 0.25);
  box-shadow: 0 0 32px rgba(42, 171, 238, 0.12);
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-accent);
  border: 1px solid rgba(42, 171, 238, 0.28);
  color: var(--accent);
  margin-bottom: 14px;
}

.security-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.card-security h3 {
  margin: 0 0 8px;
}

.card-security p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.section-demo {
  padding-block: clamp(64px, 8vw, 84px);
}

.section-demo .section-head {
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(22px, 3.2vw, 32px);
}

.section-demo .section-title {
  font-size: clamp(30px, 5.4vw, 52px);
}

@media (max-width: 640px) {
  .section-demo {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-demo .section-title {
    font-size: clamp(28px, 8.6vw, 44px);
    line-height: 1.06;
  }
}

/* DEMO CHAT (live widget) */
.demo-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.demo-desc {
  max-width: 560px;
  text-align: center;
}

.demo-desc p {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
}

.demo-desc p + p {
  margin-top: 8px;
  font-size: clamp(13.5px, 1.8vw, 15px);
}

.demo-chat.tg-chat {
  width: 100%;
  max-width: 600px;
}

.demo-suggests {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 600px;
}

.demo-suggest {
  padding: 8px 16px;
  background: var(--surface-accent);
  border: 1px solid rgba(42, 171, 238, 0.22);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.demo-suggest:hover {
  background: var(--surface-accent-soft);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .demo-desc { font-size: 15px; }
  .demo-suggest { font-size: 13px; padding: 7px 13px; }
}

/* ── TELEGRAM-STYLE DEMO CHAT ── */
.tg-chat {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.06);
  min-height: 480px;
  /* Telegram dark wallpaper background */
  background: #0e1621;
}

/* ── Header ── */
.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #17212b;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tg-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #2AABEE;
  cursor: default;
  padding: 0;
  flex-shrink: 0;
}

.tg-head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.tg-head-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-head-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tg-head-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-head-status {
  font-size: 12.5px;
  color: #2AABEE;
}

.tg-head-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #aab5c0;
}

/* ── Chat body ── */
.tg-body.demo-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #0e1621;
  overflow-y: auto;
  max-height: 400px;
}

/* date divider inside chat */
.tg-body::before {
  content: "Сегодня";
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 4px auto 8px;
  align-self: center;
}

/* ── Bubbles ── */
.demo-bubble {
  max-width: 82%;
  padding: 8px 12px 10px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  position: relative;
}

.demo-bubble--user {
  align-self: flex-end;
  background: #2b5278;
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
}

.demo-bubble--user::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 10px;
  height: 14px;
  background: #2b5278;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 2px;
}

.demo-bubble--bot {
  align-self: flex-start;
  background: #182533;
  color: #e8eaed;
  border-radius: 14px 14px 14px 4px;
}

.demo-bubble--bot::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 10px;
  height: 14px;
  background: #182533;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 2px;
}

.demo-bubble--handoff {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(42, 171, 238, 0.45);
  background: rgba(42, 171, 238, 0.08);
  max-width: 90%;
}

.demo-bubble--handoff::after {
  display: none;
}

.demo-handoff-title {
  font-weight: 600;
  color: #2AABEE;
  font-size: 14px;
}

.demo-handoff-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.demo-handoff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #2AABEE;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
}

.demo-handoff-btn:hover {
  background: #0088CC;
  color: #fff;
}

.demo-chips {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  max-width: 95%;
}

.demo-chip {
  border: 1px solid rgba(42, 171, 238, 0.35);
  background: rgba(42, 171, 238, 0.1);
  color: #e8eaed;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s;
}

.demo-chip:hover {
  background: rgba(42, 171, 238, 0.22);
  border-color: rgba(42, 171, 238, 0.55);
}

.demo-lead-inline {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 95%;
  padding: 10px 12px;
  background: #182533;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-lead-hint {
  flex: 1 1 100%;
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #e8eaed;
}

.demo-lead-input {
  flex: 1 1 140px;
  min-width: 120px;
  background: #242f3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #e8eaed;
  font-size: 14px;
}

.demo-lead-submit {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  background: #2AABEE;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.demo-lead-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-lead-status {
  flex: 1 1 100%;
  font-size: 12.5px;
  margin-top: 2px;
}

.demo-lead-status--ok { color: #6ee7a8; }
.demo-lead-status--err { color: #fca5a5; }

.turnstile-wrap--hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* ── Typing indicator ── */
.demo-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #182533;
  border-radius: 14px 14px 14px 4px;
}

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: heroTypingDot 1.2s infinite ease-in-out;
}

.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }

/* ── Footer / input ── */
.tg-footer {
  background: #17212b;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 8px 10px;
}

.tg-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #242f3d;
  border-radius: 22px;
  padding: 0 14px;
}

.tg-emoji-btn {
  background: none;
  border: none;
  color: #aab5c0;
  cursor: default;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.tg-input-wrap input[type="text"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 11px 0;
  color: #e8eaed;
  font-family: var(--font-body);
  font-size: 15px;
  caret-color: #2AABEE;
}

.tg-input-wrap input[type="text"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.tg-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #2AABEE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out), opacity 0.2s;
}

.tg-send-btn:hover { background: #0088CC; }
.tg-send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Keep old class selectors working for JS */
.demo-chat-send { display: none; }
.demo-chat-hint { display: none; }

@media (max-width: 640px) {
  .tg-chat { border-radius: 12px; min-height: 420px; }
  .tg-head { padding: 8px 12px; }
  .tg-head-name { font-size: 14px; }
  .tg-body.demo-chat-body { padding: 10px; max-height: 340px; }
  .demo-bubble { font-size: 14px; }
  .tg-footer { padding: 6px 8px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.reveal-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .hero-ring--a,
  .hero-ring--b {
    animation: none;
  }
}

/* Single post: same shell as blog index; prevent wide tables from breaking layout */
.article-shell .article-wrap--wide {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.article-shell .article-wrap--wide > .article-card {
  min-width: 0;
}

.article-shell .article-wrap--wide .article-content {
  min-width: 0;
  overflow-x: clip;
}

.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 860px;
  margin: 0 auto;
  z-index: 10000;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(14, 14, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.consent-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.consent-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42, 171, 238, 0.55);
  transition: text-decoration-color 0.2s ease;
}

.consent-banner-text a:hover {
  text-decoration-color: rgba(42, 171, 238, 0.95);
}

.consent-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.consent-btn:active {
  transform: translateY(1px);
}

.consent-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.consent-btn-accept {
  background: #2AABEE;
  border-color: #2AABEE;
}

.consent-btn-accept:hover {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px 18px;
    border-radius: 16px;
  }
  .consent-banner-text {
    font-size: 13px;
    flex-basis: 100%;
  }
  .consent-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ── Light theme: component overrides ── */
[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse 80% 55% at 50% 42%, rgba(42, 171, 238, 0.14) 0%, transparent 65%);
}

[data-theme="light"] .hero-ring {
  border-color: rgba(18, 20, 26, 0.08);
}

[data-theme="light"] .hero-chat-window {
  box-shadow: 0 18px 48px var(--shadow-medium), 0 0 0 1px rgba(42, 171, 238, 0.1);
}

[data-theme="light"] .card-audience,
[data-theme="light"] .card-pricing,
[data-theme="light"] .pricing-foot,
[data-theme="light"] .faq-item,
[data-theme="light"] .capability-col,
[data-theme="light"] .contact-form-wrap,
[data-theme="light"] .thanks-card,
[data-theme="light"] .process-intro {
  box-shadow: 0 8px 28px var(--shadow-soft);
}

[data-theme="light"] .pricing-icon--soft {
  border-color: var(--border-subtle);
  color: var(--text-body);
}

[data-theme="light"] .pricing-step {
  color: var(--text-muted);
}

[data-theme="light"] .card-plan--popular {
  border-color: rgba(42, 171, 238, 0.35);
  box-shadow: 0 12px 40px var(--shadow-soft), 0 0 0 1px rgba(42, 171, 238, 0.22);
}

[data-theme="light"] .card-plan--popular .plan-name {
  color: var(--accent-2);
}

[data-theme="light"] .card-plan--popular .plan-price {
  color: var(--text);
}

[data-theme="light"] .card-plan--popular .plan-price-unit,
[data-theme="light"] .card-plan--popular .plan-price-extra {
  color: var(--text-muted);
}

[data-theme="light"] .card-plan--popular .plan-target,
[data-theme="light"] .card-plan--popular .plan-features li {
  color: var(--text-body);
}

[data-theme="light"] .card-plan--popular .plan-features li::before {
  color: var(--accent-2);
}

[data-theme="light"] .card-plan--popular .plan-icon--accent {
  background: rgba(42, 171, 238, 0.14);
  border-color: rgba(42, 171, 238, 0.32);
  color: var(--accent-2);
}

[data-theme="light"] .card-plan--popular .plan-divider {
  background: rgba(18, 20, 26, 0.1);
}

[data-theme="light"] .card-plan--popular .plan-talk {
  color: var(--text);
}

[data-theme="light"] .section-audience {
  border-top-color: #12141a;
}

[data-theme="light"] .audience-tag--light {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--accent-2);
  box-shadow: 0 6px 20px var(--shadow-soft);
}

[data-theme="light"] .audience-tag--ghost {
  background: var(--surface-accent);
  border-color: rgba(42, 171, 238, 0.35);
}

[data-theme="light"] .context-card--dark {
  background: var(--bg-card);
  border-color: rgba(42, 171, 238, 0.22);
  color: var(--text);
}

[data-theme="light"] .context-card--light {
  background: var(--surface-accent);
  color: var(--text);
  border-color: rgba(42, 171, 238, 0.2);
}

[data-theme="light"] .context-card--light .context-card-lead,
[data-theme="light"] .context-card--light .context-bullets li {
  color: var(--text-body);
}

[data-theme="light"] .context-card--light .context-chip {
  border-color: var(--border-subtle);
  background: var(--bg-card);
  color: var(--text);
}

[data-theme="light"] .reactivation-card--dark {
  background: #1a1f26;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="light"] .reactivation-card--dark .reactivation-card-text {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

[data-theme="light"] .reactivation-card--light {
  background: var(--surface-accent);
  border-color: rgba(42, 171, 238, 0.2);
}

[data-theme="light"] .reactivation-card--light .reactivation-card-text {
  color: var(--text-body);
}

[data-theme="light"] .process-accordion {
  box-shadow: 0 12px 40px var(--shadow-soft);
}

[data-theme="light"] .site-footer {
  border-top-color: var(--border-subtle);
}

[data-theme="light"] .consent-banner {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: 0 16px 48px var(--shadow-medium);
}

[data-theme="light"] .consent-banner-text {
  color: var(--text-body);
}

[data-theme="light"] .consent-banner-text a {
  color: var(--accent-2);
}

[data-theme="light"] .consent-btn {
  border-color: var(--border-input);
  color: var(--text);
}

[data-theme="light"] .consent-btn-decline:hover {
  background: var(--surface-raised);
  border-color: var(--border-input);
}

[data-theme="light"] .page-legal-inner,
[data-theme="light"] .article-wrap {
  color: var(--text-body);
}

[data-theme="light"] .page-legal-inner h1,
[data-theme="light"] .page-legal-inner h2,
[data-theme="light"] .article-wrap h1,
[data-theme="light"] .article-wrap h2,
[data-theme="light"] .article-wrap h3 {
  color: var(--text);
}

[data-theme="light"] .legal-table th {
  background: var(--surface-raised);
  color: var(--text);
}

[data-theme="light"] .legal-table td {
  border-color: var(--border-subtle);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: var(--bg-card);
  color: var(--text);
}

[data-theme="light"] .capability-col--yes .capability-head {
  color: #166534;
}

[data-theme="light"] .capability-col--no .capability-head {
  color: #991b1b;
}

[data-theme="light"] .capability-col--yes .capability-list li::before {
  color: #15803d;
}

[data-theme="light"] .capability-col--no .capability-list li::before {
  color: #b91c1c;
}

[data-theme="light"] .context-example-block--bad .context-example-head {
  color: #b91c1b;
}

[data-theme="light"] .context-example-block--good .context-example-head {
  color: var(--accent-2);
}

/* Demo Telegram chat — always dark (native TG look) */
[data-theme="light"] .tg-chat {
  background: #0e1621;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(18, 20, 26, 0.08);
}

[data-theme="light"] .tg-head {
  background: #17212b;
}

[data-theme="light"] .tg-footer {
  background: #17212b;
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .tg-input-wrap {
  background: #242f3d;
  color: #e8eaed;
}

[data-theme="light"] .tg-input-wrap input[type="text"] {
  color: #e8eaed;
}

[data-theme="light"] .tg-input-wrap input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .thanks-card {
  border-color: var(--border-subtle);
  box-shadow: 0 18px 48px var(--shadow-medium), 0 0 0 1px rgba(42, 171, 238, 0.12);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .context-example-block {
  background: var(--surface-raised);
}

[data-theme="light"] .context-example-block--bad {
  background: var(--surface-danger);
}

[data-theme="light"] .context-example-block--good {
  background: var(--surface-inline-good);
}

[data-theme="light"] .legal-table th,
[data-theme="light"] .legal-table td {
  border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .legal-table code {
  background: var(--surface-raised);
}
