/* ============================================================
   JPEM Tax — styles.css
   Design direction: "Trust & Authority" (navy + gold, minimal)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0F172A;
  --blue: #1E3A8A;
  --gold: #CA8A04;
  --gold-hover: #A16D03;
  --bg: #F8FAFC;
  --ink: #020617;
  --muted: #475569;
  --accent: #4C1D95; /* dark violet, owner-approved optional accent */

  --white: #FFFFFF;
  --line: #E2E8F0;
  --card: #FFFFFF;

  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 34px rgba(15, 23, 42, .09);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-lift: 0 20px 44px rgba(15, 23, 42, .14);

  --maxw: 1180px;
  --gap: 24px;

  --font-head: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Inline icon default size (constrained sprites carry width="0"; sized icons win via specificity) */
svg:not([width]) { width: 20px; height: 20px; flex: none; }

/* ---------- Bilingual visibility ---------- */
/* Default RU. JS toggles <html class="ru"> / <html class="en">. */
html.en :lang(ru),
html.ru :lang(en),
html.en .i18n-ru,
html.ru .i18n-en { display: none !important; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none !important;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 22px rgba(202, 138, 4, .32);
  position: relative;
  overflow: hidden;
}
.btn--primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(202, 138, 4, .42); }
/* gold shimmer */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: none;
}
.btn--primary:hover::after { animation: shimmer 1.1s var(--ease); }
@keyframes shimmer { to { transform: translateX(120%); } }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); background: #fff; }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 6px 22px rgba(15, 23, 42, .08);
  border-bottom-color: var(--line);
  background: rgba(248, 250, 252, .96);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

/* Logo wordmark */
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none !important; margin-right: auto; }
.logo__mark { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.logo__mark .j { color: var(--navy); }
.logo__mark .t { color: var(--gold); }
.logo__sub { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* Primary nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }

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

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  padding: 8px 12px;
  min-height: 40px;
  color: var(--muted);
  cursor: pointer;
}
html.ru .lang-toggle button[data-lang="ru"],
html.en .lang-toggle button[data-lang="en"] { background: var(--navy); color: #fff; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
}

/* Burger */
.burger {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.burger svg { width: 24px; height: 24px; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 0 clamp(64px, 9vw, 116px);
}
.hero h1 { color: #fff; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__sub { font-size: 1.22rem; color: #cbd5e1; max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

/* Aurora blobs + grid texture */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.blob--navy { width: 460px; height: 460px; background: var(--blue); top: -120px; left: -80px; animation: drift1 22s var(--ease) infinite alternate; }
.blob--gold { width: 380px; height: 380px; background: var(--gold); bottom: -140px; right: -60px; opacity: .38; animation: drift2 26s var(--ease) infinite alternate; }
.blob--violet { width: 300px; height: 300px; background: var(--accent); top: 30%; right: 20%; opacity: .32; animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(60px, 50px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-50px, -40px) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-40px, 30px) scale(.9); } }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

/* Hero side card */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.1rem; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #cbd5e1; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(30, 58, 138, .28);
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #fff;
  box-shadow: 0 6px 16px rgba(202, 138, 4, .30);
}

/* ---------- Segment fork ---------- */
.fork-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ink);
}
.fork-card .icon-badge { margin-bottom: 20px; }
.fork-card h3 { font-size: 1.5rem; }
.fork-card p { color: var(--muted); flex: 1; }
.fork-card .fork-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--blue);
  margin-top: 8px;
}
.fork-card .fork-go svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.fork-card:hover .fork-go svg { transform: translateX(5px); }
.fork-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.fork-card:hover::before { transform: scaleX(1); }

/* ---------- Stats (count-up) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--gap); text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--navy);
  line-height: 1;
  min-height: clamp(2.4rem, 5vw, 3.4rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stat__num .suffix { color: var(--gold); }
/* Word-type stat (e.g. "тысячи" / "thousands") — smaller so it never overruns its column */
.stat__num--word { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -.01em; padding-bottom: .12em; }
.stat__label { color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ---------- Pain → solution ---------- */
.pain-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pain-item .pain {
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
}
.pain-item .pain small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.pain-item .arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--gold);
}
.pain-item .arrow svg { width: 22px; height: 22px; }
.pain-item .solve { color: var(--muted); }
.pain-item .solve strong { color: var(--blue); font-family: var(--font-head); }

/* ---------- Service list ---------- */
.service-item { display: flex; gap: 14px; align-items: flex-start; }
.service-item .icon-badge { margin-bottom: 0; width: 46px; height: 46px; }
.service-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.service-item p { color: var(--muted); margin: 0; font-size: .97rem; }
.tag {
  display: inline-block; margin-top: 18px; padding: 8px 16px;
  background: #fef9c3; color: var(--gold-hover);
  border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
}

/* Full-width benefit card under a services grid */
.benefit-wide {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  margin-top: var(--gap); border-left: 4px solid var(--gold);
}
.benefit-wide h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.benefit-wide p { color: var(--muted); margin: 0; }
.benefit-wide .portal-features { margin: 0; }
.benefit-wide .portal-features li { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step__num {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Proof cards ---------- */
.proof-card { border-left: 4px solid var(--gold); }
.proof-card .outcome { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.12rem; margin-bottom: 8px; }
.proof-card p { color: var(--muted); margin: 0; }
.placeholder-note {
  display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 700;
  color: var(--gold-hover); background: #fef9c3; padding: 3px 8px; border-radius: 6px;
}

/* ---------- Growth hook ---------- */
.hook {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 48px);
  position: relative; overflow: hidden;
}
.hook h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.hook p { color: #cbd5e1; max-width: 60ch; }
.hook .btn { margin-top: 10px; }
.hook::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(202,138,4,.5), transparent 70%); filter: blur(20px);
}

/* ---------- Security block ---------- */
.security { background: var(--navy); color: #fff; }
.security h2 { color: #fff; }
.security .lede { color: #cbd5e1; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; }
.sec-item .icon-badge { background: rgba(255,255,255,.08); color: #fde68a; margin-bottom: 0; box-shadow: none; }
.sec-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.sec-item p { color: #cbd5e1; margin: 0; font-size: .95rem; }
.sec-inperson {
  margin-top: 26px; padding: 16px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: inline-flex; align-items: center; gap: 12px; color: #e2e8f0;
}
.sec-inperson svg { width: 22px; height: 22px; color: #fde68a; flex: none; }

/* ---------- Checklists (hero side cards) ---------- */
.portal-features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.portal-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.portal-features svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-line .icon-badge { width: 44px; height: 44px; margin-bottom: 0; }
.contact-line .c-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-line .c-value { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.contact-line a.c-value { color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }

.map-embed {
  border: 0; width: 100%; height: 240px; border-radius: var(--radius);
  margin-top: 8px; box-shadow: var(--shadow-sm); filter: grayscale(.15);
}

/* Form (Netlify Forms → email) */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.form-title { font-size: 1.3rem; margin-bottom: 6px; }
.form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.form-intro strong { color: var(--navy); word-break: break-word; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 4px 0 16px; }
.form-privacy svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.form-status { font-size: .92rem; margin-top: 12px; min-height: 1.2em; }
.form-status.is-error { color: #b91c1c; }
.form-status a { font-weight: 600; }
.form-success { text-align: center; padding: 12px 4px; }
.form-success .icon-badge { margin: 0 auto 16px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--muted); margin: 0; }
.lead-form button[disabled] { opacity: .7; cursor: progress; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,58,138,.15);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer .logo__sub { color: #94a3b8; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .86rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-disclaimer { font-size: .82rem; color: #64748b; margin-top: 14px; max-width: 70ch; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none;
  grid-template-columns: 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(15,23,42,.1);
}
.mobile-bar .btn { min-height: 50px; }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15,23,42,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
  background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .28s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__panel a { font-family: var(--font-head); font-weight: 600; color: var(--navy); padding: 14px 12px; border-radius: 10px; min-height: 48px; display: flex; align-items: center; gap: 10px; }
.mobile-nav__panel a:hover { background: var(--bg); text-decoration: none; }
.mobile-nav__close { align-self: flex-end; border: 0; background: var(--bg); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-nav__close svg { width: 24px; height: 24px; }

/* ---------- Hero numbers (accent block) ---------- */
.hero-stats { display: grid; gap: 4px; }
.hero-stat { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat:first-child { border-top: 0; }
.hero-stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff; line-height: 1; flex: none; }
.hero-stat .n .suffix { color: var(--gold); }
.hero-stat .l { color: #cbd5e1; font-weight: 600; }

/* ---------- v3.3 "spark" — accents ---------- */
.accent-gold { color: var(--gold); }
.mark-gold {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .30em;
  padding: 0 .05em;
  border-radius: 2px;
}

/* Promises / quotes block (replaces the duplicate facts block) */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 28px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.promise-card::before {
  content: "\201E"; /* „ */
  position: absolute; top: 2px; left: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: .55;
}
.promise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #cbd5e1; }
.promise-q {
  position: relative;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.2rem, 2.1vw, 1.42rem); line-height: 1.34;
  color: var(--navy); margin: 6px 0 16px;
}
.promise-cap { display: flex; gap: 8px; align-items: center; color: var(--gold-hover); font-weight: 700; font-size: .9rem; }
.promise-cap svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* Hero floating particles */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particles span {
  position: absolute; bottom: -10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: .5;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .55; }
  85% { opacity: .4; }
  100% { transform: translateY(-380px); opacity: 0; }
}

/* Count-up "spark" pulse on finish */
@keyframes countPulse {
  0% { box-shadow: 0 0 0 0 rgba(202,138,4,0); }
  35% { box-shadow: 0 0 24px 5px rgba(202,138,4,.45); }
  100% { box-shadow: 0 0 0 0 rgba(202,138,4,0); }
}
.stat__num.pulse { animation: countPulse .9s ease-out; border-radius: 14px; }

/* CTA gentle breathing glow (Call buttons) */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(202,138,4,.30); }
  50% { box-shadow: 0 10px 30px rgba(202,138,4,.55); }
}
.hero .btn--primary, .header-call.btn--primary { animation: ctaGlow 5.5s ease-in-out infinite; }

/* Spark divider between sections */
.spark-divider {
  position: relative; height: 1px; max-width: var(--maxw);
  margin: 0 auto; width: calc(100% - 40px);
  background: linear-gradient(90deg, transparent, rgba(202,138,4,.55), transparent);
}
.spark-divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold); box-shadow: 0 0 14px 2px rgba(202,138,4,.55);
}

/* Card tilt (JS sets transform on fine-pointer desktops) */
.card--lift.tilting { transition: transform .08s linear, box-shadow .22s var(--ease); will-change: transform; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: var(--d, 0ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-call { display: none; }
  .burger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .benefit-wide { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 74px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fork-card { min-height: auto; }
  .pain-item { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .pain-item .arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .header-actions { gap: 8px; }
  .hero__cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  /* Long wordmark must leave room for the RU/EN toggle and burger */
  .header-inner { gap: 10px; }
  .logo { min-width: 0; }
  .logo__mark { font-size: clamp(.92rem, 4.1vw, 1.12rem); white-space: nowrap; }
  .logo__sub { font-size: .5rem; letter-spacing: .12em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
  .particles { display: none; }
  .stat__num.pulse { animation: none; }
}

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.bg-white { background: #fff; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
