/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page:       #F7FAFC;
  --bg-card:       #FFFFFF;
  --text-primary:  #1F2937;
  --text-secondary:#4B5563;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --accent-secondary: #10B981;
  --success:       #16A34A;
  --warning:       #F59E0B;
  --shadow:        0 2px 12px rgba(15,23,42,0.08);
  --shadow-lg:     0 12px 32px rgba(37, 99, 235, 0.12);
  --radius-card:   16px;
  --radius-btn:    10px;
  --max-width:     1080px;
  --bg-soft:       #F1F5F9;
  --bg-pain:       #FFF7ED;
  --border-pain:   #FED7AA;
  --hero-gradient-end: #EEF4FB;
}

:root[data-theme="dark"] {
  --bg-page:       #0F172A; 
  --bg-card:       #1E293B; 
  --text-primary:  #F8FAFC;
  --text-secondary:#94A3B8;
  --text-muted:    #64748B;
  --border:        #334155;
  --accent:        #3B82F6; 
  --accent-hover:  #60A5FA;
  --accent-secondary: #34D399; 
  --success:       #22C55E;
  --warning:       #FBBF24;
  --shadow:        0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 12px 32px rgba(0, 0, 0, 0.5);
  --bg-soft:       #162032;  
  --bg-pain:       #1E293B; 
  --border-pain:   #334155; 
  --hero-gradient-end: #172554;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}

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

/* === TYPOGRAPHY === */
h1 { font-size: 40px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-secondary); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-page);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
  }
  .site-nav {
    justify-content: space-between;
    gap: 12px 16px;
  }
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1;
}
.site-header .logo-icon {
  height: 28px;
  width: auto;
  display: block;
}
.site-header .logo span {
  display: block;
  transform: translateY(1px); /* Slight visual optical correction */
}
.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 180ms ease-out;
}
.site-nav a:hover { color: var(--accent); }

/* === HERO === */
.hero {
  position: relative;
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(37, 99, 235, 0.10) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-page) 0%, var(--hero-gradient-end) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: 100%;
}
.hero-content {
  flex: 1 1 50%;
  max-width: 540px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: hero-pulse 2s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08); }
}
.hero h1 {
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: 46px;
}
.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.hero-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-secondary);
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}
.hero-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
  filter: blur(24px);
  z-index: 0;
}
.hero-image img {
  position: relative;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.08);
  z-index: 1;
}
@media (max-width: 767px) {
  .hero {
    min-height: calc(100vh - 113px);
    min-height: calc(100svh - 113px);
    padding: 32px 0 40px;
    display: flex;
    align-items: stretch;
    background: transparent;
    position: relative;
    z-index: 1;
  }
  .hero::before {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('images/hero.png') center top / cover no-repeat;
    mask-image: none;
    -webkit-mask-image: none;
  }
  :root[data-theme="dark"] .hero::before {
    filter: invert(0.92) hue-rotate(180deg) brightness(1.15);
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.78) 0%, rgba(247, 250, 252, 0.92) 55%, rgba(247, 250, 252, 0.98) 100%);
  }
  :root[data-theme="dark"] .hero::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(15, 23, 42, 0.99) 100%);
  }
  .hero .container {
    flex-direction: column;
    text-align: left;
    gap: 0;
    justify-content: space-between;
    flex: 1;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-image { display: none; }
  .hero-eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
  }
  .hero h1 br { display: none; }
  .hero .subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero-bullets {
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
  }
  .hero-bullets li {
    font-size: 13.5px;
    line-height: 1.4;
  }
}

/* === MOBILE TYPOGRAPHY === */
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 17px; }
  body { font-size: 15px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 12px; }
  .section-lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .contacts-section { padding: 28px 20px; }
  .contacts-section h2 { font-size: 20px; line-height: 1.3; }
  .contacts-section p  { font-size: 15px; }
  .contacts-ctas { flex-direction: column; }
  .contacts-ctas .btn { width: 100%; text-align: center; }
  .card h3 { font-size: 18px; }
  .card-price { font-size: 22px; }
  .faq-item summary { font-size: 15px; padding: 16px 48px 16px 18px; }
  .faq-item p { padding: 0 18px 16px; font-size: 14px; }
}

/* === SECTION === */
.section {
  padding: 48px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 32px;
}
@media (max-width: 1023px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid .card:last-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 767px) {
  .cards-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .card.featured { transform: none; }
  .card.featured:hover { transform: translateY(-4px); }
}

/* === CARD === */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: var(--border);
  transition: background 220ms ease-out;
}
.card:nth-child(1)::before { background: linear-gradient(90deg, rgba(37, 99, 235, 0.0), var(--accent), rgba(37, 99, 235, 0.0)); }
.card:nth-child(3)::before { background: linear-gradient(90deg, rgba(16, 185, 129, 0.0), var(--accent-secondary), rgba(16, 185, 129, 0.0)); }

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.card-icon svg {
  width: 26px !important;
  height: 26px !important;
}
.card-header h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

/* --- FEATURED --- */
.card.featured {
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.10),
    0 24px 56px rgba(37, 99, 235, 0.18),
    inset 0 0 0 1px rgba(37, 99, 235, 0.08);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
    var(--bg-card);
  transform: translateY(-12px);
}
.card.featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
}
.card.featured:hover {
  transform: translateY(-18px);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.12),
    0 32px 72px rgba(37, 99, 235, 0.24),
    inset 0 0 0 1px rgba(37, 99, 235, 0.10);
}
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--warning) 0%, #F97316 100%);
  color: #fff;
  padding: 6px 14px 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.badge-popular::before {
  content: "★";
  font-size: 11px;
  line-height: 1;
}

/* --- PRICE --- */
.card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-main small {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.price-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.card.featured .price-main { color: var(--accent); }

/* --- TAGLINE & FIT --- */
.card-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 14px;
}
.card-fit {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 12px 14px;
  margin-bottom: 20px;
}
.card-fit::before {
  content: "Кому подходит";
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.card.featured .card-fit {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.18);
}
.card.featured .card-fit::before { color: var(--accent); }

/* --- FEATURES LIST --- */
.card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card ul li {
  position: relative;
  padding: 0 0 0 28px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}
.card ul li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.card.featured ul li::before { background: rgba(37, 99, 235, 0.12); }
.card.featured ul li::after  { border-color: var(--accent); }

.card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 14px 20px;
  font-size: 15px;
}
.card.featured .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #3B82F6 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.card.featured .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

@media (max-width: 767px) {
  .card { padding: 28px 22px 24px; }
  .card-price { font-size: 28px; padding-bottom: 16px; margin-bottom: 16px; }
  .card.featured {
    padding-top: 52px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10), 0 16px 32px rgba(37, 99, 235, 0.14);
    border-top: 3px solid var(--accent);
  }
  .card::before, .card.featured::before { display: none; }
  .badge-popular {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 6px 14px 6px 12px;
  }
}


/* === STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  opacity: 0.2;
}
.step {
  text-align: center;
  padding: 48px 24px 32px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  position: relative;
  margin-top: 28px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--bg-card);
}
.step h3 { margin-bottom: 12px; font-size: 18px; }
.step p { font-size: 15px; margin: 0; }
@media (max-width: 767px) {
  .steps-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid::before {
    top: 10%; bottom: 10%; left: 50%; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-secondary) 100%);
    transform: translateX(-50%);
  }
}

/* === CONTACTS === */
.contacts-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contacts-section h2 { margin-bottom: 12px; }
.contacts-section p { margin-bottom: 24px; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* === LEGAL PAGES === */
.legal-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.legal-header .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}
.legal-revision {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
  display: flex;
  align-items: center;
}
.legal-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: gap 180ms ease-out;
}
.legal-header .back-link:hover { gap: 8px; }
.legal-header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 180ms, background 180ms;
}
.btn-pdf svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: color 180ms;
}
.btn-pdf:hover {
  color: var(--text-primary);
  background: var(--bg-soft);
}

.legal-content {
  padding: 40px 0 64px;
}
.legal-content h1 { margin-bottom: 8px; }
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.legal-toc h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.legal-toc ol {
  padding-left: 20px;
}
.legal-toc li {
  margin-bottom: 4px;
}
.legal-toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.legal-toc a:hover { text-decoration: underline; }

.legal-body h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-body h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--text-primary);
}
.legal-body p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-body li {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 15px;
}
.legal-body strong {
  color: var(--text-primary);
}

/* === PAIN BLOCK === */
.section-pain {
  background: var(--bg-pain);
  border-top: 1px solid var(--border-pain);
  border-bottom: 1px solid var(--border-pain);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-item {
  background: var(--bg-card);
  border: 1px solid var(--border-pain);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.pain-icon {
  color: var(--warning);
  margin-bottom: 12px;
  line-height: 1;
  display: flex;
}
.pain-icon svg {
  width: 32px;
  height: 32px;
}
.pain-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}
.pain-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 1023px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pain-grid { grid-template-columns: 1fr; } }

/* === BENEFITS BLOCK === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16,185,129,0.12);
  color: var(--accent-secondary);
  margin-bottom: 12px;
}
.benefit-check svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.benefit h3 { margin-bottom: 6px; font-size: 17px; }
.benefit p  { font-size: 14px; margin: 0; }
@media (max-width: 1023px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .benefits-grid { grid-template-columns: 1fr; } }

/* === TARIFY EXTENSIONS === */
.section-tarify { background: var(--bg-soft); }
.card-tagline {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 12px;
}
.card-fit {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.card.featured .card-fit { border-left-color: var(--warning); }
.tarify-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.tarify-note a { color: var(--accent); text-decoration: none; }
.tarify-note a:hover { text-decoration: underline; }

/* === AUDIENCE BLOCK === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.audience-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow);
}
@media (max-width: 767px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .audience-grid { grid-template-columns: 1fr; } }

/* === TRUST BLOCK === */
.section-trust { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.trust-icon { color: var(--accent); margin-bottom: 10px; line-height: 1; display: flex; }
.trust-icon svg { width: 32px; height: 32px; }
.trust-item h3 { margin-bottom: 6px; font-size: 17px; }
.trust-item p  { font-size: 14px; margin: 0; }
@media (max-width: 1023px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .trust-grid { grid-template-columns: 1fr; } }

/* === FAQ === */
.section-faq { background: var(--bg-soft); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.3s ease-out;
}
.faq-item[open]:not(.is-closing) summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.faq-item[open]:not(.is-closing) p {
  opacity: 1;
}

/* === CONTACTS EXTENSIONS === */
.contacts-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.contacts-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.contacts-meta a { color: var(--accent); text-decoration: none; }
.contacts-meta a:hover { text-decoration: underline; }

/* === FOOTER EXTENSIONS === */
.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* === PRINT === */
@media print {
  .site-header, .legal-header, .btn, .legal-toc,
  .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .legal-body h2 { border-top: none; page-break-before: auto; }
  a { color: #000; text-decoration: none; }
  .container { max-width: 100%; padding: 0; }
}

/* === THEME TOGGLE === */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-soft);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .moon-icon { display: block; }
.theme-toggle .sun-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

/* === DARK MODE ADAPTATIONS === */
:root[data-theme="dark"] .logo-icon {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
  mix-blend-mode: screen;
}

:root[data-theme="dark"] .hero-image {
  filter: invert(0.92) hue-rotate(180deg) brightness(1.15);
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 0 40px rgba(37, 99, 235, 0.12); /* Subtle blue glow */
  padding: 16px 24px;
  border-radius: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
:root[data-theme="dark"] .cookie-banner {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(255, 255, 255, 0.35); /* Bright white glow for dark mode */
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.cookie-text a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: color 0.2s;
}
.cookie-text a:hover {
  color: var(--accent);
}
.cookie-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
}
@media (max-width: 767px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }
}
