/* ============================================================
   DESIGN SYSTEM — Людмила Куликова · Налоговый консультант
   Direction: Refined minimalism · Forest green accent
   Fonts: Instrument Serif (display) + Hanken Grotesk (body)
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* === TOKENS === */
:root {
  --bg:          #FAFAF7;
  --bg-alt:      #F2EDE2;
  --bg-alt2:     #E8E0CE;
  --surface:     #FFFFFF;

  --text:        #1C1A18;
  --text-muted:  #6A6460;
  --text-dim:    #A09C98;

  --accent:      #1A3D2B;
  --accent-mid:  #2D5E44;
  --accent-soft: rgba(26, 61, 43, 0.08);
  --accent-light:#ECF3EE;

  --warm:        #B86240;
  --warm-soft:   rgba(184, 98, 64, 0.08);

  --border:      rgba(28, 26, 24, 0.1);
  --border-mid:  rgba(28, 26, 24, 0.18);

  --font-d: 'Instrument Serif', Georgia, serif;
  --font-b: 'Hanken Grotesk', system-ui, sans-serif;

  --ease:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 32px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05), 0 2px 10px rgba(0,0,0,0.04);
  --shadow:    0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 56px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);

  --container: 1160px;
  --pad: clamp(20px, 5vw, 40px);
}

/* === BASE === */
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-enter 0.5s var(--ease) backwards;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; }
}
@keyframes page-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
body.is-leaving {
  animation: page-exit 0.22s var(--ease) forwards;
  pointer-events: none;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

/* === SCROLL REVEALS === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.13s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.21s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.29s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.37s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.45s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo small {
  display: block;
  font-family: var(--font-b);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 61, 43, 0.28);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(24px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: var(--text);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  display: inline-flex !important;
  font-family: var(--font-b);
  font-size: 1rem;
  padding: 14px 36px;
}

/* ============================================================
   COMMON SECTION STYLES
   ============================================================ */
section { padding: 96px 0; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  padding: 13px 28px;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-mid);
  box-shadow: 0 8px 28px rgba(26, 61, 43, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-mid);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
  gap: 6px;
}
.btn-ghost:hover { transform: translateX(4px) translateY(0); }
.btn-ghost .arrow {
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover {
  background: #f5f5f0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-pulse 2.8s ease infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 61, 43, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(26, 61, 43, 0); }
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 61, 43, 0.18);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.process-step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
}
.process-step:first-child { border-radius: var(--r) 0 0 var(--r); }
.process-step:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 38px;
  font-size: 1rem;
  color: var(--text-dim);
  z-index: 2;
}
.step-num {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--bg-alt2);
  line-height: 1;
  margin-bottom: 20px;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testi-stars {
  display: flex;
  gap: 3px;
  color: #F5A623;
}
.testi-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.72;
  flex: 1;
}
.testi-text strong { color: var(--text); font-weight: 500; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.testi-name  { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.testi-detail { font-size: 0.78rem; color: var(--text-dim); margin-top: 1px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-io);
}
.faq-body-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-body { max-height: 500px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-card {
  background: var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.form-card::after { display: none; } /* disable noise on this el */
.form-card .section-eyebrow { color: rgba(255,255,255,0.55); }
.form-card .section-title   { color: #fff; }
.form-card .section-sub     { color: rgba(255,255,255,0.65); }
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  color: #fff;
  font-size: 0.93rem;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.45);
}
.form-field select option { background: #fff; color: var(--text); }
.form-field textarea { resize: none; min-height: 88px; }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 220px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  z-index: 9998;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(26, 61, 43, 0.35);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   CONSENT CHECKBOX (contact form, on accent card)
   ============================================================ */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.form-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, border-color 0.18s;
}
.form-consent input:checked { background: #fff; border-color: #fff; }
.form-consent input:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-consent a { color: #fff; text-decoration: underline; }
.form-consent.error input { border-color: #ffb4a0; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 400;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(150%);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.cookie-text a { color: var(--accent); font-weight: 500; }
.cookie-actions { flex-shrink: 0; display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-b);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--accent-mid); }
.cookie-btn-decline { background: var(--bg-alt); color: var(--text-muted); }
.cookie-btn-decline:hover { background: var(--bg-alt2); }

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 84px;
    padding: 18px 20px;
  }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand {}
.footer-logo {
  font-family: var(--font-d);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 220px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   PAGE HEROES
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(800px 600px at 80% -20%, rgba(26, 61, 43, 0.07), transparent 55%),
    radial-gradient(600px 500px at -10% 90%, rgba(184, 98, 64, 0.05), transparent 55%),
    var(--bg);
  position: relative;
}
.page-hero-inner {
  max-width: 700px;
}
.page-hero .badge { margin-bottom: 28px; }
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-text .section-eyebrow { color: rgba(255,255,255,0.5); }
.cta-banner-text .section-title   { color: #fff; margin-bottom: 8px; }
.cta-banner-text .section-sub     { color: rgba(255,255,255,0.65); max-width: 420px; }
.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}

/* ============================================================
   BOTTOM NAV (mobile only)
   ============================================================ */
.nav-bottom { display: none; }
.nav-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.67rem;
  font-family: var(--font-b);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 4px 8px;
  flex: 1;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-bottom-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  transition: transform 0.2s var(--ease);
}
.nav-bottom-item.active::before { transform: translateX(-50%) scaleX(1); }
.nav-bottom-item svg { width: 24px; height: 24px; }
.nav-bottom-item.active { color: var(--accent); }
.nav-bottom-item:hover  { color: var(--accent-mid); }

@media (max-width: 768px) {
  :root { --pad: 20px; }
  section { padding: 64px 0; }

  .nav-links, .nav-cta { display: none !important; }
  .nav-burger { display: none; }

  body { padding-bottom: 68px; }

  .nav-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.07);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stat { border-right: none; }
  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
    padding-right: 24px;
  }

  .process-grid { grid-template-columns: 1fr; gap: 2px; }
  .process-step:first-child { border-radius: var(--r) var(--r) 0 0; }
  .process-step:last-child  { border-radius: 0 0 var(--r) var(--r); }
  .process-step::after { display: none !important; }

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

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
  .footer-legal a { white-space: nowrap; }

  .page-hero { padding: 96px 0 40px; }

  .cta-banner { flex-direction: column; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
