/* =========================================================
   SK Studio — Design System
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS & RESET
   --------------------------------------------------------- */
:root {
  --bg:       #0b0f17;
  --surface:  #121927;
  --surface2: #1a2333;
  --text:     #f2f5fa;
  --muted:    #9aa6b8;
  --border:   rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.14);

  --brand-grad: linear-gradient(120deg, #34d399, #60a5fa);
  --brand-glow: rgba(52,211,153,.18);

  /* line accent colours */
  --c-TEXT:      #34d399;
  --c-CODE:      #60a5fa;
  --c-ANALYTICS: #f59e0b;
  --c-SHEETS:    #22c55e;
  --c-PLATFORM:  #f472b6;
  --c-DOC:       #a78bfa;
  --c-EMAIL:     #38bdf8;
  --c-DATA:      #fb923c;

  --radius-card: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.5);

  --topbar-h: 64px;
  --transition: .25s ease;

  --font: system-ui, "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------
   2. LAYOUT HELPERS
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: 96px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
}

/* ---------------------------------------------------------
   3. REVEAL ANIMATIONS
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease calc(var(--delay, 0s)), transform .5s ease calc(var(--delay, 0s));
}

/* ---------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition),
              opacity var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-grad);
  color: #0b0f17;
}
.btn-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(52,211,153,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: var(--surface2);
  border-color: rgba(255,255,255,.22);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------------------------------------------------------
   5. TOPBAR
   --------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--topbar-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,15,23,.7);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.topbar-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}
.topbar-nav a:hover { color: var(--text); }

.topbar-cta { margin-left: auto; }

.topbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.topbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.topbar-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.topbar-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--topbar-h);
  inset-inline: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  gap: 20px;
  z-index: 99;
}

/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--topbar-h) + 48px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(52,211,153,.12) 0%, rgba(96,165,250,.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

#hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  max-width: 780px;
  background: linear-gradient(135deg, #f2f5fa 0%, #c8d4e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   7. HOW IT WORKS
   --------------------------------------------------------- */
#how {
  background: var(--surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity var(--transition);
}
.step:hover {
  border-color: rgba(52,211,153,.25);
  transform: translateY(-3px);
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.safe-deal-banner {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface2);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}

.safe-deal-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.safe-deal-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   8. LINES GRID
   --------------------------------------------------------- */
#lines {
  padding-block: 96px;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.line-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.line-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}

.line-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Per-line accent on hover */
.line-card[data-line="TEXT"]:hover  { box-shadow: 0 12px 40px rgba(52,211,153,.18); }
.line-card[data-line="TEXT"]:hover::after  { border-color: rgba(52,211,153,.35); }
.line-card[data-line="CODE"]:hover  { box-shadow: 0 12px 40px rgba(96,165,250,.18); }
.line-card[data-line="CODE"]:hover::after  { border-color: rgba(96,165,250,.35); }
.line-card[data-line="ANALYTICS"]:hover { box-shadow: 0 12px 40px rgba(245,158,11,.18); }
.line-card[data-line="ANALYTICS"]:hover::after { border-color: rgba(245,158,11,.35); }
.line-card[data-line="SHEETS"]:hover { box-shadow: 0 12px 40px rgba(34,197,94,.18); }
.line-card[data-line="SHEETS"]:hover::after { border-color: rgba(34,197,94,.35); }
.line-card[data-line="PLATFORM"]:hover { box-shadow: 0 12px 40px rgba(244,114,182,.18); }
.line-card[data-line="PLATFORM"]:hover::after { border-color: rgba(244,114,182,.35); }
.line-card[data-line="DOC"]:hover { box-shadow: 0 12px 40px rgba(167,139,250,.18); }
.line-card[data-line="DOC"]:hover::after { border-color: rgba(167,139,250,.35); }
.line-card[data-line="EMAIL"]:hover { box-shadow: 0 12px 40px rgba(56,189,248,.18); }
.line-card[data-line="EMAIL"]:hover::after { border-color: rgba(56,189,248,.35); }
.line-card[data-line="DATA"]:hover { box-shadow: 0 12px 40px rgba(251,146,60,.18); }
.line-card[data-line="DATA"]:hover::after { border-color: rgba(251,146,60,.35); }

.line-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.line-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
}

.line-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Per-line badge accent colours */
.line-card[data-line="TEXT"]      .line-badge { color: var(--c-TEXT);      background: rgba(52,211,153,.12); }
.line-card[data-line="CODE"]      .line-badge { color: var(--c-CODE);      background: rgba(96,165,250,.12); }
.line-card[data-line="ANALYTICS"] .line-badge { color: var(--c-ANALYTICS); background: rgba(245,158,11,.12); }
.line-card[data-line="SHEETS"]    .line-badge { color: var(--c-SHEETS);    background: rgba(34,197,94,.12); }
.line-card[data-line="PLATFORM"]  .line-badge { color: var(--c-PLATFORM);  background: rgba(244,114,182,.12); }
.line-card[data-line="DOC"]       .line-badge { color: var(--c-DOC);       background: rgba(167,139,250,.12); }
.line-card[data-line="EMAIL"]     .line-badge { color: var(--c-EMAIL);     background: rgba(56,189,248,.12); }
.line-card[data-line="DATA"]      .line-badge { color: var(--c-DATA);      background: rgba(251,146,60,.12); }

.line-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

/* ---------------------------------------------------------
   9. CATALOG
   --------------------------------------------------------- */
#catalog {
  background: var(--surface);
  padding-block: 96px;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.catalog-search-wrap {
  position: relative;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

#search {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 16px 11px 42px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#search:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}
#search::placeholder { color: var(--muted); }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.filter-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-hover);
}
.filter-btn.active {
  background: var(--brand-grad);
  color: #0b0f17;
  border-color: transparent;
}

/* Per-line active state */
.filter-btn[data-line="TEXT"].active    { background: var(--c-TEXT);      }
.filter-btn[data-line="CODE"].active    { background: var(--c-CODE);      }
.filter-btn[data-line="ANALYTICS"].active { background: var(--c-ANALYTICS); }
.filter-btn[data-line="SHEETS"].active  { background: var(--c-SHEETS);    }
.filter-btn[data-line="PLATFORM"].active { background: var(--c-PLATFORM); }
.filter-btn[data-line="DOC"].active     { background: var(--c-DOC);       }
.filter-btn[data-line="EMAIL"].active   { background: var(--c-EMAIL);     }
.filter-btn[data-line="DATA"].active    { background: var(--c-DATA);      }

.services-grid {
  column-count: 4;
  column-gap: 20px;
}

/* SERVICE CARD (rendered by JS, styled here) — masonry tile */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card[data-line="TEXT"]:hover    { border-color: rgba(52,211,153,.3);  box-shadow: 0 12px 36px rgba(52,211,153,.12); }
.service-card[data-line="CODE"]:hover    { border-color: rgba(96,165,250,.3);  box-shadow: 0 12px 36px rgba(96,165,250,.12); }
.service-card[data-line="ANALYTICS"]:hover { border-color: rgba(245,158,11,.3); box-shadow: 0 12px 36px rgba(245,158,11,.12); }
.service-card[data-line="SHEETS"]:hover  { border-color: rgba(34,197,94,.3);   box-shadow: 0 12px 36px rgba(34,197,94,.12); }
.service-card[data-line="PLATFORM"]:hover { border-color: rgba(244,114,182,.3); box-shadow: 0 12px 36px rgba(244,114,182,.12); }
.service-card[data-line="DOC"]:hover     { border-color: rgba(167,139,250,.3); box-shadow: 0 12px 36px rgba(167,139,250,.12); }
.service-card[data-line="EMAIL"]:hover   { border-color: rgba(56,189,248,.3);  box-shadow: 0 12px 36px rgba(56,189,248,.12); }
.service-card[data-line="DATA"]:hover    { border-color: rgba(251,146,60,.3);  box-shadow: 0 12px 36px rgba(251,146,60,.12); }

.service-cover-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}
.service-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-cover { transform: scale(1.04); }

.service-card-body {
  padding: 18px;
}

.service-line-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 16, 24, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}

.service-card[data-line="TEXT"]      .service-line-badge { color: var(--c-TEXT); }
.service-card[data-line="CODE"]      .service-line-badge { color: var(--c-CODE); }
.service-card[data-line="ANALYTICS"] .service-line-badge { color: var(--c-ANALYTICS); }
.service-card[data-line="SHEETS"]    .service-line-badge { color: var(--c-SHEETS); }
.service-card[data-line="PLATFORM"]  .service-line-badge { color: var(--c-PLATFORM); }
.service-card[data-line="DOC"]       .service-line-badge { color: var(--c-DOC); }
.service-card[data-line="EMAIL"]     .service-line-badge { color: var(--c-EMAIL); }
.service-card[data-line="DATA"]      .service-line-badge { color: var(--c-DATA); }

.service-problem {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

.service-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.service-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.service-card-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

/* No cover fallback gradient */
.service-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.service-card[data-line="TEXT"]      .service-cover-placeholder { background: linear-gradient(135deg, rgba(52,211,153,.15), rgba(52,211,153,.05)); }
.service-card[data-line="CODE"]      .service-cover-placeholder { background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(96,165,250,.05)); }
.service-card[data-line="ANALYTICS"] .service-cover-placeholder { background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(245,158,11,.05)); }
.service-card[data-line="SHEETS"]    .service-cover-placeholder { background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.05)); }
.service-card[data-line="PLATFORM"]  .service-cover-placeholder { background: linear-gradient(135deg, rgba(244,114,182,.15), rgba(244,114,182,.05)); }
.service-card[data-line="DOC"]       .service-cover-placeholder { background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(167,139,250,.05)); }
.service-card[data-line="EMAIL"]     .service-cover-placeholder { background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(56,189,248,.05)); }
.service-card[data-line="DATA"]      .service-cover-placeholder { background: linear-gradient(135deg, rgba(251,146,60,.15), rgba(251,146,60,.05)); }

.catalog-empty {
  text-align: center;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.catalog-empty-text {
  color: var(--muted);
  font-size: 16px;
}

/* ---------------------------------------------------------
   10. QUIZ
   --------------------------------------------------------- */
#quiz {
  padding-block: 96px;
}

.quiz-header {
  text-align: center;
  margin-bottom: 48px;
}
.quiz-header .section-sub {
  margin-inline: auto;
}

.quiz-box {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

/* Progress dots (rendered by JS but styled here) */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border-hover);
  transition: background var(--transition), transform var(--transition);
}
.quiz-dot.active {
  background: var(--brand-grad);
  background: #34d399;
  border-color: transparent;
  transform: scale(1.25);
}
.quiz-dot.done {
  background: rgba(52,211,153,.4);
  border-color: transparent;
}

.quiz-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.quiz-question-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.quiz-option:hover {
  border-color: var(--border-hover);
  background: var(--bg);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: #34d399;
  background: rgba(52,211,153,.07);
}
.quiz-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.quiz-option.selected .quiz-option-dot {
  border-color: #34d399;
  background: #34d399;
}

/* Quiz contact step */
.quiz-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 16px;
}
.quiz-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}
.quiz-input::placeholder { color: var(--muted); }

.quiz-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.quiz-back {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  transition: color var(--transition);
}
.quiz-back:hover { color: var(--text); }

/* Done state */
.quiz-done {
  text-align: center;
  padding: 16px 0;
}
.quiz-done-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.quiz-done-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   11. ABOUT
   --------------------------------------------------------- */
#about {
  background: var(--surface);
  padding-block: 96px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 24px;
}

.about-facts-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 80px;
}

.about-fact {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  border-left: 3px solid;
  border-image: var(--brand-grad) 1;
}

.about-fact-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.about-fact-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------------------------------------------------------
   12. FAQ
   --------------------------------------------------------- */
#faq {
  padding-block: 96px;
}

.faq-container .section-title {
  margin-bottom: 40px;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: rgba(52,211,153,.25);
}
.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
  user-select: none;
}

.faq-q::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239aa6b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition);
}

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

.faq-a {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   13. LEAD FORM
   --------------------------------------------------------- */
#lead {
  background: var(--surface);
  padding-block: 96px;
}

.lead-container {
  max-width: 700px;
}

.lead-header {
  margin-bottom: 40px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .2px;
}

.form-input,
.form-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.14);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.lead-status {
  font-size: 14px;
  line-height: 1.55;
  min-height: 20px;
}
.lead-status.ok    { color: #34d399; }
.lead-status.error { color: #f87171; }

/* ---------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 800;
  font-size: 16px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   15. SERVICE MODAL
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,10,17,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.service-modal[open] { display: flex; pointer-events: auto; }

body.modal-open { overflow: hidden; }

.modal-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.12); }

.modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-scroll::-webkit-scrollbar { width: 4px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }

.modal-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-line-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
  color: var(--muted);
}

.modal-price {
  font-size: 16px;
  font-weight: 700;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.modal-desc,
.modal-volume {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.package-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition);
}
.package-card:hover { border-color: var(--border-hover); }
.package-name {
  font-size: 13px;
  font-weight: 700;
}
.package-price {
  font-size: 18px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.package-days {
  font-size: 12px;
  color: var(--muted);
}
.package-includes {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.extras-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.extras-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}

.modal-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-faq-q {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.modal-faq-a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ---------------------------------------------------------
   16. FAB
   --------------------------------------------------------- */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-grad);
  color: #0b0f17;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px 13px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(52,211,153,.3);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(52,211,153,.42);
}
.fab:active { transform: translateY(0); }

/* Hide FAB when quiz is in viewport */
.fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ---------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------- */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .steps-grid     { grid-template-columns: repeat(2, 1fr); }
  .lines-grid     { grid-template-columns: repeat(4, 1fr); }
  .services-grid  { column-count: 3; }
  .about-inner    { grid-template-columns: 1fr; gap: 40px; }
  .about-facts-col { padding-top: 0; flex-direction: row; gap: 16px; }
  .about-fact     { flex: 1; }
  .packages-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .lines-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid { column-count: 2; }
  .topbar-nav    { display: none; }
  .topbar-cta    { display: none; }
  .topbar-burger { display: flex; }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
  section { padding-block: 64px; }

  .topbar-inner { gap: 12px; }

  #hero { min-height: auto; padding-top: calc(var(--topbar-h) + 32px); padding-bottom: 56px; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

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

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  .services-grid { column-count: 1; }

  .quiz-box { padding: 24px 20px; }

  .about-facts-col { flex-direction: column; }
  .about-fact      { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .packages-grid { grid-template-columns: 1fr; }

  .modal-body { padding: 20px 20px 24px; }

  .fab { bottom: 20px; right: 16px; }
  .fab span { display: none; }
  .fab { padding: 14px; border-radius: 50%; }

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