/* ============================================================
   СНТерра — статичный лендинг
   Только HTML + CSS + JS. Никаких сборщиков и зависимостей.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  --bg: #fcfefc;
  --fg: #141d16;
  --card: #ffffff;
  --muted: #f0f5f1;
  --muted-fg: #59685c;
  --accent: #e0f5e5;
  --primary: #238744;
  --primary-fg: #f6fcf7;
  --border: #dbe5dd;
  --border-soft: #e8efe9;
  --bg-alt: #f7faf8;
  --shadow-card: 0 16px 32px -16px rgba(35, 135, 68, 0.25);
  --shadow-mock: 0 24px 48px -24px rgba(35, 135, 68, 0.35);

  --emerald: #059669;
  --rose: #e11d48;
  --amber: #d97706;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0d120e;
  --fg: #ebf0ec;
  --card: #161d17;
  --muted: #202621;
  --muted-fg: #a1aba3;
  --accent: #203325;
  --primary: #53be70;
  --primary-fg: #011c0a;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --bg-alt: #151a16;

  --emerald: #34d399;
  --rose: #fb7185;
  --amber: #fbbf24;
}

/* ---------- База ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 768px;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Иконки ---------- */
.ic {
  display: inline-flex;
  flex: none;
}

.ic svg {
  width: 22px;
  height: 22px;
}

.btn-ic svg {
  width: 18px;
  height: 18px;
}

.prep-ic svg {
  width: 16px;
  height: 16px;
}

.tb-check svg {
  width: 24px;
  height: 24px;
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  padding: 10px 18px;
  min-height: 44px;
  text-decoration: none;
  transition: filter 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--border);
  background: var(--card);
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-light {
  background: var(--primary-fg);
  color: var(--primary);
}

.btn-light:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
  min-height: 48px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--muted);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  border-radius: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-bg {
  fill: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.main-nav {
  display: none;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--muted);
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-register {
  display: none;
}

.burger {
  display: inline-flex;
}

[data-theme="light"] .ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: none; }

@media (min-width: 640px) {
  .btn-header-register { display: inline-flex; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .burger { display: none; }
}

/* ---------- Секции ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  font-size: 1.875rem;
  font-weight: 800;
  max-width: 42rem;
  text-wrap: balance;
}

.section-desc {
  color: var(--muted-fg);
  max-width: 42rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .section-head h2 { font-size: 2.25rem; }
  .section-desc { font-size: 1.125rem; }
}

/* ---------- Карточки и сетки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--muted);
  color: var(--muted-fg);
}

.card-ic svg {
  width: 22px;
  height: 22px;
}

.tint-primary-bg {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

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

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  top: -128px;
  right: -8%;
  width: 448px;
  height: 448px;
  background: var(--primary);
  opacity: 0.1;
  filter: blur(64px);
}

.blob-2 {
  bottom: -30%;
  left: -12%;
  width: 416px;
  height: 416px;
  background: var(--accent);
  opacity: 0.55;
  filter: blur(64px);
}

.hero-grid {
  display: grid;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 112px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill .ic svg {
  width: 14px;
  height: 14px;
}

.hero-copy h1 {
  font-size: 2.25rem;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  color: var(--muted-fg);
  max-width: 36rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .hero-copy h1 { font-size: 3rem; }
  .lead { font-size: 1.125rem; }
}

@media (min-width: 1024px) {
  .hero-copy h1 { font-size: 3.4rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
  }
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Макет кабинета (hero) ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-visual { max-width: none; }
}

.mock {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
  box-shadow: var(--shadow-mock);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

.mock-dot.r { background: #fda4af; }
.mock-dot.a { background: #fcd34d; }
.mock-dot.e { background: #6ee7b7; }

.mock-title {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  background: var(--muted);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .stat b { font-size: 1.5rem; }
  .stat span { font-size: 0.75rem; }
}

.mock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-radius: 12px;
  padding: 12px;
}

.mock-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}

.mock-ic svg {
  width: 18px;
  height: 18px;
}

.tint-primary {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.tint-emerald {
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  color: var(--emerald);
}

.tint-rose {
  background: color-mix(in srgb, var(--rose) 12%, transparent);
  color: var(--rose);
}

.tint-amber {
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
}

.mock-text {
  min-width: 0;
  flex: 1;
}

.mock-text b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.badge {
  flex: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ---------- Плавающие карточки ---------- */
.float-card {
  position: absolute;
  display: none;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  width: 224px;
  box-shadow: var(--shadow-card);
}

.float-card b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.float-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--muted-fg);
}

.float-1 {
  top: -28px;
  right: -24px;
  animation: float 6s ease-in-out infinite;
}

.float-2 {
  bottom: -28px;
  left: -24px;
  animation: float 7.5s ease-in-out 1.2s infinite;
}

@media (min-width: 640px) {
  .float-card { display: flex; }
}

@media (min-width: 1024px) {
  .float-1 { right: -32px; }
  .float-2 { left: -32px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Боли ---------- */
.pains-note {
  margin-top: 40px;
  text-align: center;
  color: var(--muted-fg);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.pains-note strong {
  color: var(--fg);
}

@media (min-width: 640px) {
  .pains-note { font-size: 1.125rem; }
}

/* ---------- Возможности ---------- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--primary) 25%, transparent);
}

.feature-card p {
  line-height: 1.625;
}

.wide-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, transparent),
    var(--accent) 50%,
    transparent
  );
}

.wide-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  flex: none;
}

.wide-ic svg {
  width: 28px;
  height: 28px;
}

.wide-card h3 {
  font-size: 1.125rem;
  margin: 0 0 4px;
}

.wide-card p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .wide-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* ---------- Простота ---------- */
.simp-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .simp-grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
    align-items: center;
  }
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1.125rem;
  font-weight: 800;
  flex: none;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .step { padding: 24px; }
  .step h3 { font-size: 1.125rem; }
}

.simp-aside {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.phone-wrap {
  max-width: 240px;
  margin: 0 auto;
  background: var(--muted);
  border-radius: 24px;
  padding: 6px;
}

.phone {
  border-radius: 20px;
  background: var(--card);
  padding: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.phone-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.phone-input {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 10px 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.phone-code {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.phone-code span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 700;
}

.phone-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted-fg);
}

.simp-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.simp-notes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.625;
}

.n-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  flex: none;
}

.n-ic svg {
  width: 16px;
  height: 16px;
}

/* ---------- Доверие ---------- */
.trust-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

.journal {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.journal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.j-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  flex: none;
}

.j-ic svg {
  width: 18px;
  height: 18px;
}

.journal-head b {
  display: block;
  font-size: 0.875rem;
}

.journal-head small {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-radius: 12px;
  padding: 12px;
}

.tl-ic {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  flex: none;
}

.tl-ic svg {
  width: 16px;
  height: 16px;
}

.tl-item b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.tl-item small {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tb-check {
  color: var(--primary);
  margin-top: 2px;
}

.tb p {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.625;
  text-wrap: pretty;
}

.trust-example {
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-radius: 16px;
  padding: 20px;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--muted-fg);
  text-wrap: pretty;
}

.trust-example strong {
  color: var(--fg);
}

/* ---------- Для кого ---------- */
.aud-card p {
  line-height: 1.625;
}

.aud-card.accent {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: var(--shadow-card);
}

.accent-ic {
  background: var(--primary) !important;
  color: var(--primary-fg) !important;
}

.chips-block {
  margin-top: 48px;
}

.chips-title {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  border: 1px dashed var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

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

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.chev {
  display: inline-flex;
  color: var(--muted-fg);
  transition: transform 0.3s ease;
  flex: none;
}

.chev svg {
  width: 20px;
  height: 20px;
}

.faq-item[open] .chev {
  transform: rotate(180deg);
}

.faq-body {
  padding-bottom: 20px;
}

.faq-body p {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  max-width: 65ch;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .faq-item summary { font-size: 1.125rem; }
  .faq-body p { font-size: 1rem; }
}

/* ---------- CTA ---------- */
.cta-wrap {
  padding: 0 0 80px;
}

@media (min-width: 1024px) {
  .cta-wrap { padding: 0 0 96px; }
}

.cta {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
  color: var(--primary-fg);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-fg) 10%, transparent);
  filter: blur(40px);
}

.cta-blob.b1 {
  top: -80px;
  left: -80px;
  width: 256px;
  height: 256px;
}

.cta-blob.b2 {
  bottom: -96px;
  right: -64px;
  width: 288px;
  height: 288px;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 42rem;
  margin: 0 auto;
}

.cta h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: inherit;
  text-wrap: balance;
}

.cta p {
  color: var(--primary-fg);
  opacity: 0.85;
  text-wrap: pretty;
}

.cta small {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.7;
  color: var(--primary-fg);
}

@media (min-width: 640px) {
  .cta { padding: 80px 48px; }
  .cta h2 { font-size: 2.25rem; }
  .cta p { font-size: 1.125rem; }
}

/* ---------- Футер ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

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

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-desc {
  max-width: 20rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .footer-top { flex-direction: row; }
  .footer-bottom { flex-direction: row; align-items: center; }
}

/* ---------- Мобильное меню ---------- */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  padding: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(288px, 85vw);
  background: var(--card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: none;
  visibility: visible;
}

.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-menu a {
  padding: 12px;
  border-radius: 10px;
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--muted);
  color: var(--fg);
}

.mm-register {
  margin-top: 16px;
}

/* ---------- Диалог регистрации ---------- */
.dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  background: var(--card);
  color: var(--fg);
  max-width: min(28rem, calc(100vw - 32px));
  width: 100%;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.dialog-sprout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  margin: 0 auto;
}

.dialog-sprout svg {
  width: 28px;
  height: 28px;
}

.dialog h2 {
  text-align: center;
  font-size: 1.25rem;
}

.dialog-text {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.dialog-prep {
  background: var(--muted);
  border-radius: 12px;
  padding: 16px;
}

.dialog-prep > p {
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.dialog-prep ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialog-prep li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

.prep-ic {
  color: var(--primary);
  margin-top: 3px;
}

.dialog-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

@media (min-width: 640px) {
  .dialog-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- Доступность ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-1,
  .float-2 {
    animation: none;
  }
  .chev {
    transition: none;
  }
}
