/* =========================================================
   LeoGart — Landing styles
   Mobile-first · Semantic · Accessible
   ========================================================= */

/* ───────── Design tokens ───────── */
:root {
  --ink: #0B0B0D;
  --carbon: #141418;
  --steel: #1F1F25;
  --line-dark: rgba(255,255,255,.08);
  --line: #E7E5DF;
  --paper: #F6F5F1;
  --paper-2: #ECEAE3;
  --cream: #FAF8F3;
  --text: #16161A;
  --muted: #6B6B72;
  --muted-2: #9A9AA1;
  --red: #E11D2A;
  --red-700: #B8141F;
  --red-soft: #FDECEE;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 0 rgba(11,11,13,.04), 0 8px 24px -12px rgba(11,11,13,.12);
  --shadow-2: 0 1px 0 rgba(11,11,13,.04), 0 30px 60px -28px rgba(11,11,13,.30);
  --shadow-dark: 0 30px 60px -30px rgba(225,29,42,.35), 0 2px 0 rgba(255,255,255,.04) inset;

  --header-h: 64px;
  --z-header: 50;
  --z-dropdown: 60;
  --z-overlay: 70;
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100dvh;
  position: relative;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
/* cursor: pointer для інтерактивних елементів (посилання й кнопки вже мають) */
label, [role="button"], summary { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ───────── Utility ───────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -1000px; top: 8px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}
@media (min-width: 720px) { .wrap { width: min(1240px, 100% - 48px); } }

/* honeypot — invisible but accessible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ───────── Typography ───────── */
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; margin: 0;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-right: 10px;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em; font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; }

/* делікатний scroll-reveal для заголовків (вмикається лише за наявності JS) */
.js h1,
.js h2:not(.visually-hidden) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
}
.js h1.is-visible,
.js h2.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js h1,
  .js h2:not(.visually-hidden) {
    opacity: 1; transform: none; transition: none;
  }
}

p { margin: 0; }
.lead { font-size: clamp(15px, 1.15vw, 18px); color: var(--muted); line-height: 1.6; max-width: 60ch; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; }
.accent-red, .red { color: var(--red); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 14.5px; letter-spacing: -.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(225,29,42,.6), 0 1px 0 rgba(255,255,255,.18) inset; }
.btn-red:hover { background: var(--red-700); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn .arr {
  width: 16px; height: 16px;
  animation: arrowNudge 1.6s ease-in-out infinite;
}
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

.btn[disabled],
.btn.is-loading { opacity: .6; pointer-events: none; }

/* ───────── Topbar ───────── */
.topbar {
  background: var(--ink); color: #fff;
  font-size: 12.5px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; gap: 14px;
}
.topbar .tick {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
}
.topbar .live {
  color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #5AD18A; box-shadow: 0 0 0 4px rgba(90,209,138,.18);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(90,209,138,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(90,209,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(90,209,138,0); }
}
.topbar .addr-line {
  display: inline-flex; flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-left: 16px; /* 14px gap у .tick + 16px = 30px між live та addr-line */
}
.topbar .addr-line a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7);
  transition: color .15s ease;
}
.topbar .addr-line a::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  flex: none;
  opacity: .55;
}
.topbar .addr-line a:hover { color: var(--red); }
@media (max-width: 820px) {
  .topbar .addr-line { display: none; }
  .topbar .tick:nth-child(2) { display: none; }
}

/* ───────── Header / Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid var(--line);
}
/* blur винесено у ::before, щоб backdrop-filter не робив .nav
   containing-block для position:fixed (інакше drawer прив'язується
   до хедера й не видно при прокрутці вниз) */
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(246,245,241,.85);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  z-index: -1;
  pointer-events: none;
}
.nav .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none; overflow: hidden;
  padding: 5px;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.brand-name { line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.brand-name .b1 { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.brand-name .b2 {
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}

/* Primary navigation */
.primary {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px;
}
.primary-list {
  display: flex; align-items: center; gap: 4px;
  margin-right: 30px; /* відступ між меню та телефоном/CTA */
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text); font-weight: 500;
  transition: background .15s ease;
  cursor: pointer;
  min-height: 38px;
}
.nav-link:hover,
.nav-link:focus-visible { background: rgba(11,11,13,.06); }

.nav-toggle .caret {
  width: 12px; height: 12px;
  transition: transform .2s ease;
  opacity: .6;
}
.has-dropdown[data-open="true"] .nav-toggle .caret { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: var(--z-dropdown);
}
.has-dropdown[data-open="true"] > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.dropdown a {
  display: block; padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text);
  transition: background .15s ease, color .15s ease;
  min-height: 40px;
  line-height: 1.4;
}
.dropdown a:hover,
.dropdown a:focus-visible { background: var(--red-soft); color: var(--red); }

/* Mobile nav extras (phone + CTA) */
.nav-mobile-extra {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.phone .ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line);
  flex: none;
}
.phone svg { width: 16px; height: 16px; stroke: var(--red); }

.btn-enroll { font-size: 13px; padding: 12px 18px; }

/* Burger toggle */
.burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 12px;
  position: relative;
  background: transparent;
  border: 1px solid var(--line);
  z-index: calc(var(--z-overlay) + 1);
}
.burger-line {
  position: absolute; left: 11px; right: 11px;
  height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger-line:nth-child(1) { top: 14px; }
.burger-line:nth-child(2) { top: 21px; }
.burger-line:nth-child(3) { top: 28px; }
/* коли меню відкрите — ховаємо бургер; закриття через .nav-close */
.burger[aria-expanded="true"] { display: none; }

/* Close (X) button — fixed до viewport, видима лише коли меню відкрите */
.nav-close { display: none; }

/* === Desktop nav (≥ 980px): inline === */
@media (min-width: 980px) {
  .phone-text { display: inline; }
}

/* === Tablet / mobile (< 980px): drawer === */
@media (max-width: 979.98px) {
  .burger { display: inline-flex; }

  body.nav-open .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: 16px;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    z-index: calc(var(--z-overlay) + 2);
  }
  .nav-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
  .nav-close svg { width: 20px; height: 20px; flex: none; }

  .primary {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 100vw);
    height: 100dvh;
    background: var(--paper);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: calc(var(--header-h) + 16px) 22px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: var(--z-overlay);
    display: flex; flex-direction: column; gap: 18px;
    margin: 0;
    box-shadow: -20px 0 60px -30px rgba(11,11,13,.5);
  }
  .primary[data-open="true"] { transform: translateX(0); }

  .primary-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin-right: 0; /* у drawer відступ не потрібен */
  }
  .primary-list > li { width: 100%; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    min-height: 48px;
  }
  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--red);
    border-radius: 0;
    margin: 0 0 0 12px;
    padding: 4px 0 4px 12px;
    display: none;
  }
  .has-dropdown[data-open="true"] > .dropdown { display: flex; }
  .dropdown a { padding: 12px 14px; min-height: 44px; }

  .nav-mobile-extra {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 16px 0 0;
    width: 100%;
  }
  .phone {
    background: #fff; border: 1px solid var(--line);
    padding: 12px 14px; border-radius: 12px;
    justify-content: flex-start;
    min-height: 48px;
  }
  .phone-text { display: inline; }
  .btn-enroll { width: 100%; }

  /* Backdrop — без z-index: header має власний stacking context (z-index:50),
     тож drawer лишається над backdrop, а сам backdrop перекриває контент сторінки */
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(11,11,13,.45);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
  }
}

/* ───────── Hero ───────── */
.hero {
  background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(225,29,42,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(225,29,42,.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding: 28px 0 0; }

.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.55);
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.crumbs a { color: rgba(255,255,255,.55); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .4; }
.crumbs .cur { color: #fff; }

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}
.hero-grid > .hero-copy { flex: 1 1 auto; }
.hero-grid > .hero-visual { flex: 1 1 auto; }
@media (min-width: 1040px) {
  .hero-grid { flex-direction: row; gap: 48px; align-items: flex-end; padding-bottom: 64px; }
  .hero-grid > .hero-copy { flex: 1.05 1 0; }
  .hero-grid > .hero-visual { flex: .95 1 0; }
}

.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { color: #fff; }
.hero h1 .red { color: var(--red); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 22px);
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin: 0;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0 6px;
}
.hbadge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500;
}
.hbadge .ic { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.hbadge .ic svg { width: 16px; height: 16px; }

.hero-desc {
  color: rgba(255,255,255,.72);
  font-size: 15px; line-height: 1.65; max-width: 46ch;
  margin: 6px 0 8px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
/* однакова ширина обох кнопок: рівна flex-база + рівний ріст */
.hero-cta .btn { flex: 1 1 240px; }

/* Hero visual */
.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background-color: #15151B;
  min-height: 360px;
  margin: 0;
}
@media (min-width: 720px) { .hero-visual { min-height: 460px; } }
@media (min-width: 1040px) { .hero-visual { min-height: 520px; } }

.hero-visual picture,
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,.25) 0%, rgba(11,11,13,.65) 100%);
  pointer-events: none;
}
.hero-visual .label {
  position: absolute; top: 16px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-visual .frame-tag {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex; gap: 8px; align-items: center;
  color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  background: rgba(225,29,42,.92); padding: 6px 12px; border-radius: 999px;
}
.hero-visual .frame-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}
.hero-visual .glow {
  position: absolute; inset: auto -20% -40% -20%; height: 60%;
  background: radial-gradient(closest-side, rgba(225,29,42,.45), transparent 70%);
  filter: blur(40px); pointer-events: none;
}

.age-card {
  position: absolute; right: 18px; bottom: 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 18px 22px;
  width: min(220px, calc(100% - 36px));
  box-shadow: var(--shadow-2);
  margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.age-card .big {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.age-card .age-row {
  display: flex; align-items: baseline; gap: 8px;
  color: var(--muted);
}
.age-card .age-row b {
  color: var(--ink); font-weight: 700; font-size: 20px;
}
.age-card .age-row b .num { color: var(--red); }
.age-card .sub {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}

/* Stats strip */
.stats-strip {
  background: var(--ink); color: #fff;
  padding-bottom: 28px;
}
@media (min-width: 720px) { .stats-strip { padding-bottom: 40px; } }
.stats-strip .wrap {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}
.stats-strip .cell {
  flex: 1 1 calc(50% - 6px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s ease, background .2s ease;
}
.stats-strip .cell:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(225,29,42,.4);
}
@media (min-width: 820px) {
  .stats-strip .cell { flex: 1 1 calc(25% - 9px); }
}
.stats-strip .v {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800; letter-spacing: -.03em;
}
.stats-strip .l {
  font-size: 11.5px; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .12em;
}

/* ───────── Sections base ───────── */
section { padding: 64px 0; position: relative; }
@media (min-width: 720px) { section { padding: 96px 0; } }

.hero { padding: 0; }

.section-head {
  text-align: center; max-width: 720px;
  margin: 0 auto 40px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin: 16px auto 0; }

/* ───────── Process / Steps ───────── */
.process { background: var(--cream); }
.steps {
  display: flex; flex-wrap: wrap;
  gap: 28px;
  position: relative;
}
@media (min-width: 520px) { .steps { gap: 20px; } }
@media (min-width: 980px) {
  .steps { gap: 16px; }
  .steps::before {
    content: ""; position: absolute;
    left: 10%; right: 10%; top: 32px;
    border-top: 1.5px dashed rgba(225,29,42,.35);
    z-index: 0;
  }
}
.step {
  position: relative; z-index: 1;
  flex: 1 1 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 32px; /* кімната для half-overlap .num на mobile */
}
@media (min-width: 520px) { .step { flex: 1 1 calc(50% - 10px); } }
@media (min-width: 980px) { .step { flex: 1 1 calc(20% - 13px); } }
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--red);
  color: var(--red); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -10px rgba(225,29,42,.35);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.step .card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 20px 22px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
}
@media (min-width: 980px) {
  .step { padding-top: 0; align-items: stretch; }
  .step .num {
    position: static; transform: none;
    flex: none;
    width: 64px; height: 64px; font-size: 22px;
    margin: 0 auto 18px;
  }
  .step .card { padding: 22px 20px; flex: 1 1 auto; }
}
.step:hover .card { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: rgba(225,29,42,.25); }
.step .icn {
  width: 44px; height: 44px; border-radius: 12px;
  background: #FCE9EB; color: var(--red);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
}
.step .icn svg { width: 22px; height: 22px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.info-callout {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 26px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
@media (min-width: 720px) { .info-callout { margin-top: 40px; } }
.info-callout .ico {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: #FCE9EB; color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.info-callout .ico svg { width: 20px; height: 20px; flex: none; }
.info-callout p { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ───────── Offering (curriculum / pricing / form) ───────── */
/* напівпрозоре фонове фото мотоцикла на всю секцію */
.offering { overflow: hidden; }
.offering::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../img/harley-davidson.webp');
  background-size: cover;
  background-position: center;
  opacity: .07;
  pointer-events: none;
}
.offering > .wrap { position: relative; }

.offering-grid {
  display: flex; flex-direction: column;
  gap: 20px; align-items: stretch;
}
.offering-grid > .panel { flex: 1 1 auto; }
@media (min-width: 1040px) {
  .offering-grid { flex-direction: row; gap: 22px; align-items: stretch; }
  .offering-grid > .panel { flex: 1 1 0; }
  .offering-grid > .panel.form-card { flex: 1.05 1 0; }
}

.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  margin: 0;
}
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel h3 { font-size: 22px; margin-bottom: 22px; letter-spacing: -.02em; }

.includes { display: flex; flex-direction: column; gap: 14px; }
.includes li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
.includes li .chk {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(225,29,42,.6);
}
.includes li .chk svg { width: 12px; height: 12px; }

.pricing { position: relative; overflow: hidden; }
.pricing .row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--cream);
}
.pricing .row + .row { margin-top: 12px; }
.pricing .row .k { font-size: 14px; color: var(--muted); font-weight: 600; }
.pricing .row .v {
  font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.pricing .row .v .unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.pricing .row .from { font-size: 14px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.pricing .notes {
  margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.pricing .notes li { display: flex; gap: 10px; align-items: center; }
.pricing .notes li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pricing .duration {
  margin-top: 22px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pricing .duration .k { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; display: block; }
.pricing .duration .v {
  font-size: 20px; font-weight: 800; color: var(--red);
  letter-spacing: -.02em; margin-top: 4px; display: block;
}
.pricing .duration .cal {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.pricing .duration .cal svg { width: 20px; height: 20px; }

/* Form card */
.form-card {
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.form-card::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225,29,42,.35), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.form-card h3 { color: var(--red); font-size: 22px; line-height: 1.2; }
.form-card .form-sub {
  color: rgba(255,255,255,.7);
  margin-top: 12px; font-size: 14.5px; line-height: 1.55;
}
.form-card form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }

.field {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color .2s ease, background .2s ease;
  margin: 0;
}
.field:focus-within { border-color: rgba(225,29,42,.55); background: rgba(255,255,255,.08); }
.field .ic { color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; }
.field .ic svg { width: 18px; height: 18px; }
.field input {
  background: transparent; border: 0; outline: none;
  color: #fff; width: 100%;
  padding: 16px 0;
  font-size: 16px;
  min-height: 48px;
}
.field input::placeholder { color: rgba(255,255,255,.45); }
.field.is-invalid { border-color: var(--red); background: rgba(225,29,42,.08); }

.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-hint {
  font-size: 12px; line-height: 1.4;
  color: rgba(255,255,255,.55);
  padding-left: 4px;
}
.field-hint[data-state="ok"]      { color: #5AD18A; }
.field-hint[data-state="pending"] { color: rgba(255,255,255,.55); }
.cta-form .field-hint { color: rgba(255,255,255,.75); }
.cta-form .field-hint[data-state="ok"] { color: #c8ffd6; }

.form-card .btn-red,
.form-card .form-submit { justify-content: center; padding: 16px; font-size: 15px; }

.consent {
  margin-top: 6px;
  color: rgba(255,255,255,.5); font-size: 12px;
  text-align: center; line-height: 1.5;
}

.form-status {
  margin-top: 4px;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}
.form-status[data-state="success"] { color: #5AD18A; }
.form-status[data-state="error"]   { color: #ff8a93; }
.form-status[data-state="loading"] { color: rgba(255,255,255,.7); }

/* ───────── How-to + Docs ───────── */
.howto { background: var(--cream); position: relative; overflow: hidden; }
.howto-grid { display: flex; flex-direction: column; gap: 36px; align-items: stretch; }
.howto-grid > * { flex: 1 1 auto; min-width: 0; }
@media (min-width: 1040px) {
  .howto-grid { flex-direction: row; gap: 56px; align-items: flex-start; }
  .howto-grid > :first-child { flex: 1 1 0; }
  .howto-grid > .docs { flex: 1.2 1 0; }
}

.howto h2 { font-size: clamp(24px, 2.6vw, 36px); margin: 14px 0 26px; }
.ord {
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: hto;
}
.ord li {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  counter-increment: hto;
}
.ord li:hover { transform: translateX(4px); border-color: rgba(225,29,42,.3); box-shadow: var(--shadow-1); }
.ord li::before {
  content: counter(hto);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex: none;
}

.docs h3 { font-size: 22px; margin: 14px 0 22px; }
.doc-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.doc-grid > .doc { flex: 1 1 100%; }
@media (min-width: 720px) { .doc-grid > .doc { flex: 1 1 calc(33.333% - 10px); } }
.doc {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.doc .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: #FCE9EB; color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.doc .ic svg { width: 22px; height: 22px; }
.doc h4 { font-size: 15px; font-weight: 700; margin: 0; }
.doc p { font-size: 13px; color: var(--muted); margin: 0; }

/* мобільна версія — центруємо вміст карток документів та вікового блоку */
@media (max-width: 719.98px) {
  .doc { align-items: center; text-align: center; }
  .age-pill { justify-content: center; text-align: center; }
}

.age-pill {
  margin-top: 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex; align-items: center; gap: 16px;
}
.age-pill .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.age-pill .ic svg { width: 22px; height: 22px; flex: none; }
.age-pill .l {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.55);
  display: block;
}
.age-pill .v { font-size: 17px; font-weight: 700; display: block; margin-top: 2px; }

.howto .silhouette {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px; opacity: .06;
  background: linear-gradient(transparent, rgba(0,0,0,.4));
  pointer-events: none;
}

/* ───────── A vs A1 ───────── */
.compare { background: var(--paper); }
.compare-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.compare-grid > .v-card { flex: 1 1 100%; }
@media (min-width: 880px) {
  .compare-grid { gap: 24px; }
  .compare-grid > .v-card { flex: 1 1 calc(50% - 12px); }
}

.v-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.v-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(225,29,42,.25); }

.v-card-img {
  position: relative; margin: 0;
  height: 220px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
@media (min-width: 720px) { .v-card-img { height: 260px; } }
.v-card-img picture { display: contents; }
.v-card-img img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.v-card-img .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: #fff;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  z-index: 1;
}

.v-card .body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.v-card h3 { font-size: 22px; letter-spacing: -.02em; }
.v-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.v-card .bottom {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px dashed var(--line);
  gap: 12px; flex-wrap: wrap;
}
.v-card .from16 {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-soft); color: var(--red);
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px;
}
.v-card .from16 svg { width: 14px; height: 14px; }
.v-card .pick {
  color: var(--ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.v-card .pick .arr { transition: transform .2s ease; }
.v-card:hover .pick .arr { transform: translateX(4px); }

.help-callout {
  margin-top: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex; gap: 18px; align-items: center;
  box-shadow: var(--shadow-1);
}
.help-callout .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: #FCE9EB; color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.help-callout .ico svg { width: 20px; height: 20px; flex: none; }

/* ───────── Big CTA ───────── */
.big-cta {
  background-color: var(--red); color: #fff;
  background-image:
    linear-gradient(100deg, rgba(225,29,42,.72) 0%, rgba(225,29,42,.90) 46%, var(--red) 76%),
    url('../img/category-a-motorcycle.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center center, left center;
  background-size: cover, cover;
  position: relative; overflow: hidden;
  padding: 64px 0;
}
@media (min-width: 720px) { .big-cta { padding: 80px 0; } }

.big-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(0,0,0,.18), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(255,255,255,.10), transparent 60%);
}
.big-cta::after {
  content: ""; position: absolute; right: -10%; bottom: -30%;
  width: 460px; height: 460px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.18);
  pointer-events: none;
}
.big-cta .wrap {
  position: relative;
  display: flex; flex-direction: column; gap: 32px;
  align-items: stretch;
}
.big-cta .wrap > * { flex: 1 1 auto; }
@media (min-width: 980px) {
  .big-cta .wrap { flex-direction: row; gap: 56px; align-items: center; }
  .big-cta .wrap > .big-cta-text { flex: 1 1 0; }
  .big-cta .wrap > .cta-form { flex: 1.1 1 0; }
}
.big-cta h2 { color: #fff; letter-spacing: -.025em; font-size: clamp(26px, 3vw, 44px); }
.big-cta p { color: rgba(255,255,255,.9); margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 44ch; }

.cta-form {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-start;
  position: relative;
}
.cta-form > .field,
.cta-form > .field-wrap { flex: 1 1 100%; }
.cta-form > .hp-field { flex: 0 0 0; }
@media (min-width: 720px) {
  .cta-form { padding: 22px; }
  .cta-form > .field,
  .cta-form > .field-wrap { flex: 1 1 calc(50% - 6px); }
}

.cta-form .field {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
}
.cta-form .field:focus-within { border-color: #fff; background: rgba(255,255,255,.18); }
.cta-form .field .ic { color: rgba(255,255,255,.7); }
.cta-form .btn-ink,
.cta-form .form-submit {
  flex: 1 1 100%;
  justify-content: center;
  padding: 16px;
}
.cta-form .form-status { flex: 1 1 100%; color: #fff; }
.cta-form .form-status[data-state="success"] { color: #c8ffd6; }
.cta-form .form-status[data-state="error"]   { color: #ffe1e3; }

/* ───────── Footer ───────── */
footer {
  background: #050507;
  color: rgba(255,255,255,.75);
  padding: 56px 0 24px;
  font-size: 14px;
}
@media (min-width: 720px) { footer { padding: 64px 0 28px; } }

/* base — mobile + tablet (<1024px): centered single-column stack */
.footer-top {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.footer-top > * {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 420px;
  padding: 0;       /* скидаємо padding від глобального правила section */
  margin: 0;
}
.footer-top ul { align-items: center; }
.footer-top .contacts li { justify-content: center; }
.footer-top .socials { justify-content: center; }
.footer-top .brand-block .desc { max-width: 36ch; }

/* desktop (≥1024px): single row, evenly spaced, columns aligned to top */
@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row; flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
  }
  .footer-top > * {
    width: auto; max-width: none;
    align-items: flex-start;
    flex: 0 1 auto;
  }
  .footer-top ul { align-items: stretch; }
  .footer-top .contacts li { justify-content: flex-start; }
  .footer-top .socials { justify-content: flex-start; }
  .footer-top .brand-block { flex: 0 1 260px; }
}

footer .brand-block .brand .b1 { color: #fff; }
footer .brand-block .brand .b2 { color: rgba(255,255,255,.45); }
footer .brand-block .desc {
  margin-top: 18px;
  color: rgba(255,255,255,.55);
  font-size: 13.5px; line-height: 1.55; max-width: 32ch;
}
footer .socials {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 10px; margin-top: 22px;
}
footer .socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease, color .15s ease;
}
footer .socials a:hover { background: var(--red); }
footer .socials svg { width: 16px; height: 16px; }

footer h3 {
  color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 16px;
  font-weight: 700;
}
footer ul { display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(255,255,255,.7); transition: color .15s ease; }
footer ul a:hover { color: #fff; }

footer .contacts li { display: flex; align-items: center; gap: 10px; }
footer .contacts .ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
}
footer .contacts .ic svg { width: 14px; height: 14px; }

.legal {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  padding-top: 24px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  text-align: center;
}
.legal .links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.legal a:hover { color: #fff; }
@media (min-width: 560px) {
  .legal { justify-content: space-between; text-align: left; }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───────── reCAPTCHA badge tweak ───────── */
.grecaptcha-badge { z-index: 10; opacity: .85; }
