/* ============================================================
   DEFEND24 — Design System
   Бордо / золото / крем. Mobile-first.
   ============================================================ */

:root {
  /* Brand palette */
  --bordeaux-900: #2A080D;
  --bordeaux-800: #3D0F16;
  --bordeaux-700: #4E1118;
  --bordeaux-600: #5A1A22;
  --bordeaux-500: #6E2630;
  --wine:         #8B3A43;

  --gold-500: #C9A24B;
  --gold-400: #D8B662;
  --gold-300: #E6CF93;

  --cream:   #F4ECE2;
  --cream-2: #EADFD0;
  --muted:   #C9B7A8;
  --muted-2: #9C8576;

  --ok:    #4BB07A;
  --warn:  #D9A441;
  --danger:#C8553D;

  /* Surfaces */
  --bg:       #1E060A;
  --surface:  #2C0B11;
  --surface-2:#370E16;
  --line:     rgba(201,162,75,0.18);
  --line-2:   rgba(244,236,226,0.10);

  /* Type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --shadow-gold: 0 10px 40px rgba(201,162,75,0.18);

  --t: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 600; margin-bottom: 16px;
}
.eyebrow::before { content: "—"; margin-right: 10px; color: var(--gold-500); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lead { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--cream-2); }
.text-muted { color: var(--muted); }
.gold { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #2A080D; box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(201,162,75,0.32); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(244,236,226,0.03); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-300); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t), border-color var(--t), padding var(--t);
  border-bottom: 1px solid transparent; padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(20,4,7,0.86); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg, .brand img { height: 38px; width: auto; }
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-size: .96rem; color: var(--cream-2); transition: color var(--t); position: relative; }
.nav-links a:hover { color: var(--gold-300); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch */
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  padding: 7px 13px; font-size: .82rem; font-weight: 600; color: var(--muted);
  transition: background var(--t), color var(--t);
}
.lang-switch button.active { background: var(--gold-500); color: #2A080D; }

/* Burger */
.burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 0; top: 0; background: var(--bordeaux-900);
  z-index: 99; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  transform: translateX(100%); transition: transform var(--t); padding: 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); }
.mobile-menu a:hover { color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px;
  background:
    radial-gradient(1100px 600px at 75% 18%, rgba(139,58,67,0.55), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(201,162,75,0.10), transparent 60%),
    linear-gradient(180deg, var(--bordeaux-900), var(--bg));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(201,162,75,0.06); font-size: .85rem; color: var(--gold-300);
  margin-bottom: 26px; font-weight: 500;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ok);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-400); }
.hero p.lead { margin-bottom: 34px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); line-height: 1; }
.hero-stats .stat .lbl { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Hero visual — shield + signal */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.shield-card {
  position: relative; width: min(340px, 80vw); aspect-ratio: 1; border-radius: 28px;
  background: linear-gradient(160deg, var(--bordeaux-600), var(--bordeaux-800));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.signal-ring { position: absolute; border: 1.5px solid var(--gold-500); border-radius: 50%; opacity: 0; }
.signal-ring.r1 { width: 38%; height: 38%; animation: ring 3s ease-out infinite; }
.signal-ring.r2 { width: 60%; height: 60%; animation: ring 3s ease-out infinite .6s; }
.signal-ring.r3 { width: 82%; height: 82%; animation: ring 3s ease-out infinite 1.2s; }
@keyframes ring { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.1); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,75,0.10); border: 1px solid var(--line); margin-bottom: 20px; color: var(--gold-400);
}
.card h3 { margin-bottom: 10px; color: var(--cream); }
.card p { color: var(--muted); font-size: .96rem; }

/* Problem section */
.problem { background: linear-gradient(180deg, var(--bg), var(--bordeaux-900)); }
.quote-block {
  text-align: center; max-width: 820px; margin: 0 auto;
}
.quote-block .big {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 2.8rem); line-height: 1.25; color: var(--cream);
}
.quote-block .big em { color: var(--gold-400); font-style: normal; }

/* How it works — steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: flex; gap: 22px; align-items: flex-start; padding: 26px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--line); transform: translateX(4px); }
.step .step-num {
  counter-increment: step; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem;
  color: var(--gold-400); border: 1px solid var(--gold-500); background: rgba(201,162,75,0.07);
}
.step .step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { color: var(--cream); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Flows */
.flow-card { text-align: center; }
.flow-card img { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 18px; }

/* Pricing */
.pricing { background: linear-gradient(180deg, var(--bordeaux-900), var(--bg)); }
.plans { display: grid; gap: 24px; grid-template-columns: 1fr; }
.plan {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 30px; position: relative;
  display: flex; flex-direction: column; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.plan:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--gold-500); box-shadow: var(--shadow-gold); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #2A080D;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.plan .plan-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-300); margin-bottom: 6px; }
.plan .plan-desc { font-size: .9rem; color: var(--muted); min-height: 42px; margin-bottom: 18px; }
.plan .price { font-family: var(--font-display); font-size: 2.4rem; color: var(--cream); line-height: 1; }
.plan .price { margin-top: 6px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-family: var(--font); }
.plan .plan-unit { font-size: .76rem; color: var(--muted-2); margin-top: 8px; }
.plan ul.features { margin: 20px 0 14px; display: grid; gap: 12px; }
.plan .plan-extra { font-size: .8rem; color: var(--gold-300); border-top: 1px dashed var(--line);
  padding-top: 12px; margin-bottom: 18px; }
.plan ul.features li { display: flex; gap: 11px; font-size: .94rem; color: var(--cream-2); align-items: flex-start; }
.plan ul.features li svg { flex: 0 0 auto; margin-top: 3px; color: var(--gold-400); }
.plan .btn { margin-top: auto; }

/* Calculator */
.calc { background: linear-gradient(160deg, var(--surface), var(--bordeaux-800)); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(26px, 4vw, 46px); max-width: 860px; margin: 0 auto; }
.calc-q { margin-bottom: 22px; }
.calc-q p { font-weight: 600; margin-bottom: 12px; color: var(--cream); }
.calc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-opt {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream-2);
  font-size: .92rem; transition: var(--t);
}
.calc-opt:hover { border-color: var(--gold-500); }
.calc-opt.selected { background: var(--gold-500); color: #2A080D; border-color: var(--gold-500); font-weight: 600; }
.calc-result {
  margin-top: 28px; padding: 26px; border-radius: var(--radius); text-align: center;
  background: rgba(201,162,75,0.06); border: 1px solid var(--line); display: none;
}
.calc-result.show { display: block; animation: fadeUp .5s ease; }
.calc-meter { height: 12px; border-radius: 999px; background: rgba(0,0,0,0.35); overflow: hidden; margin: 18px 0; }
.calc-meter > span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), var(--warn), var(--danger)); transition: width 1s ease; }
.calc-score { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-400); line-height: 1; }

/* Calculator v2 */
.calc-progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.3); overflow: hidden; margin-bottom: 10px; }
.calc-progress > span { display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width .4s ease; }
.calc-progress-label { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.calc-progress-label b { color: var(--gold-300); }
.calc-questions { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 26px; }
.calc-q p { display: flex; gap: 10px; align-items: baseline; }
.calc-qn { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(201,162,75,0.14);
  color: var(--gold-300); font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.calc-q.answered .calc-qn { background: var(--gold-500); color: #2A080D; }
.calc-warn { display: none; color: var(--danger); font-size: .86rem; margin-top: 12px; text-align: center; }
.calc-warn.show { display: block; }

.calc-result2 { display: none; margin-top: 30px; padding: clamp(22px,3vw,32px); border-radius: var(--radius);
  background: rgba(201,162,75,0.06); border: 1px solid var(--line); }
.calc-result2.show { display: block; animation: fadeUp .5s ease; }
.calc-result-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.gauge-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.gauge { width: 180px; height: 180px; }
.gauge-track { fill: none; stroke: rgba(0,0,0,0.28); stroke-width: 12; }
.gauge-prog { fill: none; stroke: var(--gold-400); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1), stroke .6s; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-pct { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--cream); }
.gauge-sub { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.calc-level { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 14px; }
.calc-level.low { color: var(--ok); } .calc-level.mid { color: var(--warn); } .calc-level.high { color: var(--danger); }
.calc-rec-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 10px; }
.calc-plan-badge { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #2A080D;
  font-weight: 700; padding: 5px 16px; border-radius: 999px; font-size: .95rem; }
.calc-reason { color: var(--cream-2); font-size: .96rem; margin-bottom: 16px; }
.calc-factors-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
#calc-factors { display: grid; gap: 7px; margin-bottom: 20px; }
#calc-factors li { display: flex; gap: 9px; font-size: .9rem; color: var(--cream-2); }
#calc-factors li::before { content: "▹"; color: var(--gold-400); }
.calc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 720px) {
  .calc-questions { grid-template-columns: 1fr 1fr; }
  .calc-result-grid { grid-template-columns: 200px 1fr; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity:1; transform: none;} }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; font-weight: 600; font-size: 1.02rem; color: var(--cream); transition: color var(--t);
}
.faq-q:hover { color: var(--gold-300); }
.faq-q .chev { flex: 0 0 auto; transition: transform var(--t); color: var(--gold-400); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq-a div { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* CTA / form */
.cta { background:
  radial-gradient(700px 400px at 80% 20%, rgba(139,58,67,0.5), transparent 60%),
  linear-gradient(180deg, var(--bg), var(--bordeaux-900)); }
.cta-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.form-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.28);
  border: 1px solid var(--line-2); color: var(--cream); font-family: inherit; font-size: 1rem; transition: border-color var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field.error input, .field.error select { border-color: var(--danger); }
.field .err-msg { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 4px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; animation: fadeUp .5s ease; }
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(75,176,122,0.15);
  border: 1px solid var(--ok); display: flex; align-items: center; justify-content: center; color: var(--ok);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bordeaux-900); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 38px; margin-bottom: 40px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: .94rem; margin-bottom: 10px; transition: color var(--t); }
.footer-col a:hover { color: var(--gold-300); }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 320px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line-2); padding-top: 24px; display: flex; flex-direction: column; gap: 14px;
  align-items: center; text-align: center; color: var(--muted-2); font-size: .85rem;
}

/* ---------- Article / knowledge base ---------- */
.page-hero { padding-top: 150px; padding-bottom: 50px; background: linear-gradient(180deg, var(--bordeaux-900), var(--bg)); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-300); }
.kb-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.kb-card { display: flex; flex-direction: column; }
.kb-card .tag { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 12px; }
.kb-card .read { margin-top: 16px; color: var(--gold-300); font-size: .9rem; font-weight: 600; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin: 40px 0 16px; color: var(--gold-300); }
.article h3 { margin: 28px 0 12px; color: var(--cream); }
.article p { margin-bottom: 18px; color: var(--cream-2); }
.article ul.bullets { margin: 0 0 20px; padding-left: 4px; display: grid; gap: 10px; }
.article ul.bullets li { display: flex; gap: 12px; color: var(--cream-2); }
.article ul.bullets li::before { content: "▸"; color: var(--gold-400); flex: 0 0 auto; }
.article .callout {
  border-left: 3px solid var(--gold-500); background: rgba(201,162,75,0.07);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; color: var(--cream);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
[hidden] { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cta-wrap { grid-template-columns: 1fr 1fr; }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .kb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) {
  .mobile-only-hide { display: none; }
}

/* ---------- Theme switch UI (shared) ---------- */
.theme-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.theme-switch button { padding: 7px 11px; font-size: .9rem; line-height: 1; color: var(--muted); transition: background var(--t), color var(--t); }
.theme-switch button.active { background: var(--gold-500); color: #2A080D; }

/* ============================================================
   THEME B — «Яскрава енергійна» (light)
   Activated via <html data-theme="bright">
   ============================================================ */
html[data-theme="bright"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff6f5;
  --cream: #1c1c1e;
  --cream-2: #3c3c40;
  --muted: #6a6a70;
  --muted-2: #9a9aa0;
  --line: rgba(0,0,0,0.10);
  --line-2: rgba(0,0,0,0.07);
  --gold-500: #C9A24B;
  --gold-400: #B8862F;
  --gold-300: #9c6f1f;
  --bordeaux-900: #ffffff;
  --bordeaux-800: #9e1622;
  --bordeaux-700: #b81824;
  --bordeaux-600: #E11D2A;
  --wine: #E11D2A;
  --shadow: 0 18px 50px rgba(180,30,40,0.12);
  --shadow-gold: 0 12px 36px rgba(225,29,42,0.22);
}
html[data-theme="bright"] body { background: #ffffff; }

html[data-theme="bright"] .hero {
  background:
    radial-gradient(1100px 600px at 75% 16%, rgba(225,29,42,0.13), transparent 60%),
    radial-gradient(800px 520px at 8% 92%, rgba(201,162,75,0.12), transparent 60%),
    #ffffff;
}
html[data-theme="bright"] .problem { background: linear-gradient(180deg, #ffffff, #fff5f4); }
html[data-theme="bright"] .pricing { background: linear-gradient(180deg, #fff5f4, #ffffff); }
html[data-theme="bright"] .cta {
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(225,29,42,0.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #fff5f4);
}
html[data-theme="bright"] .page-hero { background: linear-gradient(180deg, #fff5f4, #ffffff); }
html[data-theme="bright"] .site-header.scrolled {
  background: rgba(255,255,255,0.88); border-bottom-color: var(--line);
}
html[data-theme="bright"] .mobile-menu { background: #ffffff; }
html[data-theme="bright"] .burger span { background: #1c1c1e; }
html[data-theme="bright"] .site-footer { background: #fbf3f2; border-top-color: var(--line); }

html[data-theme="bright"] .btn-primary {
  background: linear-gradient(135deg, #E11D2A, #9e1622); color: #ffffff;
  box-shadow: 0 12px 30px rgba(225,29,42,0.30);
}
html[data-theme="bright"] .btn-primary:hover { box-shadow: 0 16px 44px rgba(225,29,42,0.42); }
html[data-theme="bright"] .btn-ghost { border-color: rgba(0,0,0,0.16); color: #1c1c1e; background: transparent; }
html[data-theme="bright"] .btn-ghost:hover { border-color: #E11D2A; color: #9e1622; }

html[data-theme="bright"] .hero h1 .accent {
  background: linear-gradient(120deg, #E11D2A, #7A1F2B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="bright"] .shield-card {
  background: linear-gradient(160deg, #E11D2A, #7A1F2B); border-color: rgba(0,0,0,0.06);
}
html[data-theme="bright"] .calc { background: linear-gradient(160deg, #ffffff, #fff5f4); border-color: var(--line); }
html[data-theme="bright"] .calc-result { background: rgba(225,29,42,0.05); }

html[data-theme="bright"] .field input,
html[data-theme="bright"] .field select,
html[data-theme="bright"] .field textarea {
  background: #ffffff; border-color: rgba(0,0,0,0.14); color: #1c1c1e;
}
html[data-theme="bright"] .field input::placeholder,
html[data-theme="bright"] .field textarea::placeholder { color: #a3a3a9; }
html[data-theme="bright"] .card,
html[data-theme="bright"] .step,
html[data-theme="bright"] .plan,
html[data-theme="bright"] .faq-item,
html[data-theme="bright"] .form-card { box-shadow: 0 8px 30px rgba(120,20,28,0.06); }
html[data-theme="bright"] .theme-switch button.active,
html[data-theme="bright"] .lang-switch button.active { background: #E11D2A; color: #ffffff; }
