@font-face{
  font-family:"Involve";
  src:url("./fonts/Involve-VF.ttf") format("truetype");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

:root{
  --ink:#040316;
  --ink-2:#0c0a24;
  --ink-3:#1d1b4c;
  --accent:#3129b1;
  --accent-2:#4238e4;
  --accent-deep:#261f8f;
  --accent-soft:#eeedfb;
  --accent-mist:#f6f5ff;
  --lilac:#a09bf8;
  --white:#ffffff;
  --text:#12111f;
  --muted:#6b6a7d;
  --line:rgba(4,3,22,.08);
  --line-soft:rgba(4,3,22,.05);
  --success:#14805a;
  --warning:#9a6b12;
  --danger:#c44b3c;
  --shadow:0 30px 80px rgba(49,41,177,.14);
  --shadow-soft:0 18px 50px rgba(4,3,22,.08);
  --radius:18px;
  --radius-sm:12px;
  --font:"Involve",Arial,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --shell:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--white);
  min-height:100vh;
  letter-spacing:-.01em;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.page-shell{
  max-width:none;
  margin:0;
  padding:0 0 80px;
}

.site-header{
  position:relative;
  z-index:20;
  margin:0;
}

/* ===== Top nav like Acropolis ===== */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  max-width:var(--shell);
  margin:0 auto;
  padding:22px 28px;
  background:transparent;
  border:0;
}

body[data-page="index"] .site-header{
  position:absolute;
  left:0;
  right:0;
  top:0;
}

body[data-page="index"] .topbar{
  color:#fff;
}

body[data-page="index"] .brand-title{color:#fff}
body[data-page="index"] .brand-subtitle{color:rgba(255,255,255,.62)}
body[data-page="index"] .topbar .btn.secondary{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.22);
}
body[data-page="index"] .topbar .btn.secondary:hover{
  background:rgba(255,255,255,.08);
}
body[data-page="index"] .nav-strip{display:none}

.brand-block{display:flex;flex-direction:column;gap:2px;min-width:0}
.brand-title{
  font-weight:700;
  font-size:16px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ink);
}
.brand-subtitle{display:none}

.brand-home{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  max-width:min(100%,340px);
  padding:10px 14px;
  border-radius:14px;
  background:var(--accent-mist);
  border:1px solid rgba(49,41,177,.22);
  box-shadow:0 8px 20px rgba(49,41,177,.08);
  transition:transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.brand-home:hover{
  transform:translateY(-1px);
  border-color:rgba(49,41,177,.4);
  background:#ecebff;
}
.brand-home-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
}
.brand-home-title{
  font-size:14px;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--ink);
  line-height:1.25;
}

.header-tools{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.topbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.search-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.search-input{
  min-width:220px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(4,3,22,.16);
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:14px;
  transition:.2s var(--ease);
  box-shadow:0 8px 24px rgba(4,3,22,.06);
}
.search-input::placeholder{color:#8b8a9a}
.search-input:focus{
  outline:none;
  border-color:rgba(49,41,177,.45);
  box-shadow:0 0 0 4px rgba(49,41,177,.12);
}

.nav-strip{
  display:flex;
  gap:8px;
  max-width:var(--shell);
  margin:0 auto 18px;
  padding:0 28px;
  overflow:auto;
}
.nav-card{
  flex:1 0 160px;
  min-height:0;
  padding:14px 16px;
  border-radius:16px;
  background:var(--accent-mist);
  border:1px solid transparent;
  transition:.25s var(--ease);
}
.nav-card:hover,.nav-card.is-active{
  background:var(--accent-soft);
  transform:translateY(-2px);
}
.nav-card strong{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:4px;
  color:var(--ink);
}
.nav-card span{
  display:block;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
}
.nav-card .pill{margin-top:8px}

/* ===== Hero ===== */
.hero{
  position:relative;
  overflow:hidden;
  min-height:min(92vh,820px);
  padding:140px 28px 72px;
  color:#fff;
  background:
    radial-gradient(circle at 78% 18%,rgba(66,56,228,.55),transparent 28%),
    radial-gradient(circle at 18% 80%,rgba(49,41,177,.45),transparent 30%),
    linear-gradient(145deg,#040316 0%,#0c0a24 38%,#1d1b4c 68%,#3129b1 100%);
  border-radius:0;
  animation:heroIn .8s var(--ease) both;
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:var(--shell);
  margin:0 auto;
}

.hero-decor{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
}

.hero-decor span{
  position:absolute;
  display:block;
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.9;
  mix-blend-mode:soft-light;
  animation:floatY 8s ease-in-out infinite;
}

.hero-decor .d1{
  right:4%;
  top:12%;
  width:min(38vw,420px);
  height:min(52vw,560px);
  background-image:url("./decor-a.svg");
  filter:invert(1) opacity(.18);
  animation-delay:0s;
}

.hero-decor .d2{
  left:6%;
  bottom:8%;
  width:min(28vw,280px);
  height:min(42vw,420px);
  background-image:url("./decor-b.svg");
  filter:invert(1) opacity(.14);
  animation-delay:1.4s;
}

.hero-decor .d3{
  right:22%;
  bottom:18%;
  width:180px;
  height:180px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:40% 60% 55% 45%;
  background:radial-gradient(circle at 30% 30%,rgba(160,155,248,.28),transparent 65%);
  animation:spinSlow 28s linear infinite;
}

.hero-kicker{
  display:inline-block;
  margin:0 0 18px;
  color:rgba(255,255,255,.58);
  font-size:12px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.hero-brand{
  display:block;
  margin:0 0 18px;
  font-size:clamp(48px,9vw,92px);
  font-weight:700;
  letter-spacing:-.04em;
  line-height:.92;
}

.hero h1{
  margin:0 0 16px;
  max-width:28ch;
  font-size:clamp(26px,4vw,40px);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1.15;
}

.hero-inner > p{
  margin:0;
  max-width:540px;
  font-size:17px;
  line-height:1.65;
  color:rgba(255,255,255,.74);
  font-weight:400;
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin-top:48px;
  max-width:900px;
  border-top:1px solid rgba(255,255,255,.12);
}

.hero-stat{
  padding:22px 12px 0;
  border-right:1px solid rgba(255,255,255,.12);
  text-align:center;
}
.hero-stat:first-child{padding-left:0}
.hero-stat:last-child{border-right:0;padding-right:0}
.hero-stat strong{
  display:block;
  margin-bottom:8px;
  font-size:32px;
  font-weight:700;
  letter-spacing:-.03em;
  color:#fff;
  line-height:1;
}
.hero-stat span{
  display:block;
  font-size:13px;
  line-height:1.35;
  color:rgba(255,255,255,.62);
}


.hero-sub{
  max-width:640px;
  margin:14px 0 0;
  font-size:17px;
  line-height:1.55;
  color:rgba(255,255,255,.72);
}
.hero-search{
  margin:22px 0 8px;
  max-width:720px;
}
.hero-search .search-input{
  background:rgba(255,255,255,.96);
  color:var(--ink);
  border-color:transparent;
}

.regs-frame{
  padding:28px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(49,41,177,.16);
  box-shadow:0 16px 40px rgba(4,3,22,.06);
}
.regs-h3{
  margin:22px 0 8px;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}
.regs-list{
  margin:0 0 8px;
  padding-left:20px;
  color:var(--muted);
}
.regs-list li{margin:5px 0;line-height:1.5}
.regs-form{
  display:grid;
  gap:14px;
  margin-top:22px;
  padding:18px;
  border-radius:18px;
  background:rgba(49,41,177,.05);
  border:1px solid rgba(49,41,177,.1);
}
.regs-form-title{
  font-weight:700;
  font-size:16px;
  color:var(--ink);
}
.regs-fields{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.regs-fields label{
  display:grid;
  gap:6px;
}
.regs-fields label span{
  font-size:13px;
  font-weight:700;
}
.regs-fields input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
}
.schedule-options{
  display:grid;
  gap:10px;
}
.schedule-option{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  cursor:pointer;
}
.schedule-option.is-selected{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(49,41,177,.12);
}
.schedule-option input{margin-top:4px;accent-color:var(--accent)}
.schedule-option strong{display:block;font-size:15px;color:var(--ink)}
.schedule-option em{
  display:block;
  margin-top:4px;
  font-style:normal;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}
.regs-agree{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  line-height:1.45;
}
.regs-agree input{margin-top:3px;accent-color:var(--accent)}

/* ===== Sections ===== */
.shell{
  max-width:var(--shell);
  margin:0 auto;
  padding:0 28px;
}

.section{
  padding:88px 0;
}

.section.soft{
  background:
    radial-gradient(circle at 90% 10%,rgba(49,41,177,.06),transparent 24rem),
    var(--accent-mist);
}

.section.dark{
  background:
    radial-gradient(circle at 80% 0%,rgba(66,56,228,.35),transparent 28%),
    linear-gradient(160deg,#040316 0%,#12103a 55%,#1d1b4c 100%);
  color:#fff;
}

.section.dark .panel-label{color:var(--lilac)}
.section.dark h2,
.section.dark .section-title{color:#fff}
.section.dark p{color:rgba(255,255,255,.72)}

.panel-label{
  display:block;
  margin-bottom:14px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--accent);
}

.section-title,
.section h2{
  margin:0 0 16px;
  font-size:clamp(28px,3.6vw,42px);
  font-weight:700;
  letter-spacing:-.035em;
  color:var(--ink);
  line-height:1.15;
}

.section-title::before{display:none}

.lead{
  max-width:720px;
  margin:0 0 36px;
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

.feature-grid{gap:14px}
.feature{
  padding:22px 20px;
  border-radius:20px;
  background:var(--white);
  border:1px solid rgba(49,41,177,.08);
  box-shadow:0 14px 36px rgba(4,3,22,.05);
  min-height:150px;
}
.feature strong{
  display:block;
  margin-bottom:10px;
  font-size:18px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}
.feature span{
  display:block;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}

.section.dark .feature strong{color:#fff}
.section.dark .feature span{color:rgba(255,255,255,.64)}

/* Stage / solution cards */
.stage-sequence{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.stage-sequence-split{
  grid-template-columns:1fr;
}
.stage-sequence-later{
  grid-template-columns:repeat(2,1fr);
}
.later-stages-label{
  margin:8px 0 0;
  padding:10px 0 2px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
}

.stage-band{
  position:relative;
  overflow:hidden;
  padding:28px;
  border:0;
  border-radius:24px;
  background:rgba(255,255,255,.04);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  transition:transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.stage-band.is-full{grid-column:1 / -1}
.video-box{
  margin:18px 0;
  padding:20px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(49,41,177,.08),rgba(160,155,248,.08));
  border:1px solid rgba(49,41,177,.16);
}
.video-box p{margin:0 0 12px;color:var(--muted)}
.video-box .btn{margin-top:4px}
.media-slot{
  margin:16px 0;
  padding:18px;
  border-radius:18px;
  border:1px dashed rgba(49,41,177,.28);
  background:rgba(49,41,177,.04);
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.media-slot strong{display:block;color:var(--accent);margin-bottom:6px}
.media-frame{
  margin:18px 0;
  padding:12px;
  border-radius:20px;
  background:var(--accent-mist);
  border:1px solid rgba(49,41,177,.12);
}
.media-frame img{
  display:block;
  width:100%;
  max-width:720px;
  height:auto;
  border-radius:14px;
  margin:0 auto;
}
.media-caption{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
  line-height:1.45;
}
.file-download{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:16px 0;
  padding:16px 18px;
  border-radius:18px;
  background:var(--accent-mist);
  border:1px solid rgba(49,41,177,.12);
}
.hero-with-photo{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(260px,420px);
  gap:32px;
  align-items:center;
}
.hero-copy .hero-brand{margin-bottom:14px}
.hero-copy h1{
  margin:0 0 12px;
  max-width:22ch;
  font-size:clamp(28px,3.8vw,42px);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.12;
  color:#fff;
}
.hero-photo-frame{
  position:relative;
  padding:14px;
  border-radius:28px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(10px);
  box-shadow:0 28px 70px rgba(0,0,0,.35);
  overflow:hidden;
}
.hero-photo-frame::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:22px;
  border:1px solid rgba(255,215,120,.28);
  pointer-events:none;
  z-index:1;
}
.hero-photo-frame img{
  display:block;
  width:100%;
  height:auto;
  border-radius:20px;
  object-fit:cover;
  aspect-ratio:3/4;
}
.luck-close{padding-top:48px;padding-bottom:96px}
.luck-card{
  padding:36px 32px;
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 10%,rgba(49,41,177,.12),transparent 40%),
    linear-gradient(160deg,#fff 0%,#f3f2ff 100%);
  border:1px solid rgba(49,41,177,.14);
  box-shadow:0 20px 50px rgba(4,3,22,.06);
}
.luck-card h2{margin:0 0 12px}
.luck-card p{
  max-width:62ch;
  margin:0 0 22px;
  font-size:17px;
  line-height:1.65;
  color:var(--muted);
}
.stage-band.is-primary{
  background:linear-gradient(145deg,rgba(66,56,228,.42),rgba(4,3,22,.35) 48%,rgba(255,255,255,.08));
  box-shadow:inset 0 0 0 1px rgba(160,155,248,.55), 0 28px 70px rgba(49,41,177,.28);
}
.stage-band.is-primary .stage-band-title{font-size:clamp(26px,3vw,34px)}
.stage-band.is-primary .stage-band-points{
  grid-template-columns:repeat(3,1fr);
}
.stage-band.is-primary .stage-band-point{
  background:rgba(255,255,255,.1);
}
.stage-band-note{
  margin:14px 0 0;
  max-width:720px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,221,90,.14);
  border:1px solid rgba(255,221,90,.28);
  color:#fff;
  font-size:15px;
  line-height:1.55;
  font-weight:600;
}

.stage-band:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(160,155,248,.35), var(--shadow);
}
.stage-band.is-primary:hover{
  background:linear-gradient(135deg,rgba(66,56,228,.34),rgba(255,255,255,.08));
}

.stage-band::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--lilac),var(--accent));
}

.stage-band::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:140px;
  height:140px;
  border-radius:40%;
  background:radial-gradient(circle,rgba(160,155,248,.18),transparent 70%);
}

.stage-band-index{
  margin-bottom:12px;
  font-size:13px;
  font-weight:600;
  color:var(--lilac);
}

.stage-band-title{
  margin:8px 0 12px;
  font-size:24px;
  font-weight:700;
  letter-spacing:-.03em;
  color:#fff;
}

.stage-band-copy{
  margin:0;
  max-width:none;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,.66);
}

.stage-band-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:8px;
  position:relative;
  z-index:1;
}

.stage-band-points{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:18px;
  position:relative;
  z-index:1;
}

.stage-band-point{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:0;
}
.stage-band-point strong{
  display:inline;
  margin-right:8px;
  color:var(--lilac);
  font-size:12px;
}
.stage-band-point span{
  display:inline;
  color:rgba(255,255,255,.7);
  font-size:13px;
  line-height:1.45;
}

.mini-stat{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:0;
  min-width:200px;
}
.mini-stat strong{
  display:block;
  margin-bottom:6px;
  color:#fff;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.mini-stat span{
  color:rgba(255,255,255,.68);
  font-size:13px;
  line-height:1.45;
}

/* Light cards for inner pages */
.card{
  background:var(--white);
  border:1px solid var(--line-soft);
  border-radius:24px;
  box-shadow:var(--shadow-soft);
  padding:28px;
}

.card h2,.card h3{
  margin:0 0 12px;
  letter-spacing:-.03em;
  color:var(--ink);
}

.card p{
  margin:10px 0;
  line-height:1.65;
}

.muted{color:var(--muted)}

.card-meta{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--accent-soft);
  color:var(--accent);
  border:0;
}
.pill.success{background:#e8f7f0;color:var(--success)}
.pill.warning{background:#fff4d8;color:var(--warning)}
.pill.soft{background:rgba(4,3,22,.05);color:var(--muted)}

.card-title{
  margin:0;
  font-size:20px;
  letter-spacing:-.03em;
  color:var(--ink);
}
.card-copy{
  margin:0;
  line-height:1.55;
  color:var(--muted);
  font-size:14px;
}

.stage-card,
.step-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:200px;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  border:1px solid var(--line-soft);
  box-shadow:none;
}
.stage-card::before,
.step-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--lilac),var(--accent));
}
.stage-card::after,
.step-card::after{display:none}
.stage-card:hover,
.step-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.progress-wrap{display:grid;gap:8px;width:100%}
.progress-wrap-full{max-width:none;width:100%}
.progress-track{
  width:100%;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  overflow:hidden;
}
.section:not(.dark) .progress-track,
.card .progress-track{background:rgba(49,41,177,.1)}
.progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--lilac));
  transition:width .45s var(--ease);
}
.progress-text{
  color:rgba(255,255,255,.55);
  font-weight:600;
  font-size:12px;
}
.section:not(.dark) .progress-text,
.card .progress-text{color:var(--muted)}

.route-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:28px;
}
.route-point{
  padding:0;
  border:0;
  background:transparent;
}
.route-point strong{
  display:block;
  margin-bottom:8px;
  color:var(--ink);
  font-size:16px;
}
.route-point p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.search-panel{margin-top:0}
.search-form-lg{
  display:flex;
  width:100%;
  max-width:760px;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.search-form-lg .search-input{
  flex:1 1 280px;
  min-width:0;
  border-radius:999px;
  padding:16px 18px;
  font-size:16px;
  background:#fff;
  border:1px solid rgba(4,3,22,.18);
  color:var(--ink);
  box-shadow:0 10px 28px rgba(4,3,22,.08);
}
.search-teaser .search-input,
.search-page .search-input{
  background:#fff !important;
  color:var(--ink) !important;
  border:1px solid rgba(4,3,22,.18) !important;
}
.search-form-lg .btn{flex:0 0 auto}
.search-page{padding-top:40px;min-height:70vh}
.search-meta{
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
}
.search-teaser .search-form{margin-top:8px}
.card-priority{
  box-shadow:0 18px 48px rgba(49,41,177,.12);
  border-color:rgba(49,41,177,.16);
}
.search-results{display:grid;gap:10px;margin-top:22px}
.search-result{
  display:block;
  padding:18px 20px;
  border-radius:18px;
  background:var(--white);
  border:1px solid var(--line-soft);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.search-result:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
}
.search-result strong{
  display:block;
  margin-bottom:6px;
  font-size:17px;
  color:var(--ink);
}
.search-result small{
  display:block;
  margin-bottom:6px;
  color:var(--accent);
  font-weight:700;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.search-result p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.page-intro{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}
.page-intro h1{
  margin:0 0 10px;
  font-size:clamp(28px,4.5vw,44px);
  letter-spacing:-.04em;
  color:var(--ink);
}
.page-intro p{
  margin:0;
  max-width:720px;
  line-height:1.7;
  color:var(--muted);
}

.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

/* ===== Login / Google access ===== */
.login-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 16px;
  background:
    radial-gradient(circle at 80% 10%,rgba(66,56,228,.35),transparent 28%),
    linear-gradient(160deg,#040316 0%,#12103a 55%,#1d1b4c 100%);
}
.login-card{
  width:min(100%,440px);
  padding:32px 28px;
  border-radius:28px;
  background:#fff;
  border:1px solid rgba(49,41,177,.12);
  box-shadow:0 28px 70px rgba(0,0,0,.28);
}
.login-brand{
  margin:0 0 10px;
  font-size:34px;
  font-weight:700;
  letter-spacing:-.04em;
  color:var(--ink);
}
.login-card h1{
  margin:0 0 10px;
  font-size:26px;
  letter-spacing:-.03em;
  color:var(--ink);
}
.login-lead{
  margin:0 0 22px;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
}
.login-form{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.login-label{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
}
.login-input{
  width:100%;
  box-sizing:border-box;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(49,41,177,.18);
  font:inherit;
  font-size:16px;
  background:#f7f7fc;
  color:var(--ink);
}
.login-input:focus{
  outline:2px solid rgba(49,41,177,.35);
  border-color:transparent;
  background:#fff;
}
.login-submit{
  width:100%;
  margin-top:4px;
}
.login-google{
  display:flex;
  justify-content:center;
  min-height:44px;
  margin-bottom:14px;
}
.login-status{
  margin:10px 0;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
}
.login-status.ok{background:#eef9f4;border:1px solid rgba(20,128,90,.16);color:#0f6b4a}
.login-status.err{background:#fff5f3;border:1px solid rgba(196,75,60,.18);color:#9a3a2e}
.login-user{
  margin:8px 0 4px;
  font-size:14px;
  color:var(--muted);
}
.login-actions{margin-top:16px}
.login-note{
  margin:18px 0 0;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 22px;
  border-radius:999px;
  border:0;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-weight:700;
  font-size:14px;
  background:var(--accent);
  color:#fff;
  box-shadow:0 14px 34px rgba(49,41,177,.28);
  transition:transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover{
  background:var(--accent-2);
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(49,41,177,.34);
}
.btn.secondary{
  background:transparent;
  color:var(--ink);
  border:1px solid rgba(4,3,22,.14);
  box-shadow:none;
}
.btn.secondary:hover{
  background:var(--accent-soft);
  border-color:rgba(49,41,177,.25);
}
.btn.ghost{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  box-shadow:none;
}
.btn.ghost:hover{
  background:rgba(255,255,255,.14);
}
.btn.full{width:100%}

.lesson{padding:36px}
.lesson h1{
  margin:10px 0 8px;
  font-size:clamp(28px,4vw,42px);
  letter-spacing:-.04em;
  color:var(--ink);
}
.lesson h2{
  margin:32px 0 10px;
  font-size:24px;
  letter-spacing:-.03em;
  color:var(--ink);
}
.lesson h3{
  margin:22px 0 8px;
  font-size:18px;
  color:var(--ink);
}
.lesson p,.lesson li{line-height:1.72}
.lesson p{margin:8px 0}
.lesson ul,.lesson ol{padding-left:22px}
.lesson blockquote{
  margin:18px 0;
  padding:16px 18px;
  border-left:3px solid var(--accent);
  background:var(--accent-mist);
  border-radius:0 16px 16px 0;
}
.lesson table{
  width:100%;
  border-collapse:collapse;
  margin:14px 0;
  font-size:14px;
}
.lesson th,.lesson td{
  border:1px solid var(--line);
  padding:11px 12px;
  text-align:left;
  vertical-align:top;
}
.lesson th{background:var(--ink-2);color:#fff}
.lesson tr:nth-child(even) td{background:var(--accent-mist)}

.info-box,
.warning-box,
.success-box{
  padding:16px 18px;
  border-radius:16px;
  margin:16px 0;
}
.info-box{background:var(--accent-mist);border:1px solid rgba(49,41,177,.12)}
.warning-box{background:#fff8e8;border:1px solid rgba(154,107,18,.18)}
.success-box{background:#eef9f4;border:1px solid rgba(20,128,90,.16)}

.step-list{display:grid;gap:8px;margin:12px 0}
.step-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:14px;
  background:var(--accent-mist);
}
.step-row b{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
}

.example-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin:14px 0;
}
.example-card{
  padding:16px;
  border-radius:16px;
  background:var(--white);
  border:1px solid var(--line);
}
.example-card.bad{background:#fff5f3;border-color:rgba(196,75,60,.18)}
.example-card.good{background:#eef9f4;border-color:rgba(20,128,90,.16)}
.example-card strong{display:block;margin-bottom:6px}

.cta-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.done-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}
.done-toggle input{
  width:16px;
  height:16px;
  accent-color:var(--accent);
}

.bottom-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--line);
  flex-wrap:wrap;
}

.stage-sidebar{display:grid;gap:12px}
.empty-note{
  padding:18px;
  border-radius:16px;
  background:rgba(4,3,22,.03);
  border:1px dashed rgba(4,3,22,.12);
  color:var(--muted);
  font-size:14px;
}

.stats-band{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.content-pad{
  max-width:var(--shell);
  margin:0 auto;
  padding:28px 28px 0;
}

@keyframes heroIn{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes floatY{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-14px)}
}
@keyframes spinSlow{
  from{transform:rotate(0)}
  to{transform:rotate(360deg)}
}

.stage-band,
.feature,
.search-result{
  animation:fadeUp .6s var(--ease) both;
}
.stage-sequence .stage-band:nth-child(2){animation-delay:.06s}
.stage-sequence .stage-band:nth-child(3){animation-delay:.12s}
.stage-sequence .stage-band:nth-child(4){animation-delay:.18s}
.stage-sequence .stage-band:nth-child(5){animation-delay:.24s}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:1080px){
  .hero-stats,.grid-4{grid-template-columns:repeat(2,1fr)}
  .stage-sequence,
  .stage-sequence-later{grid-template-columns:1fr}
}

@media(max-width:900px){
  .grid-3,.grid-2,.route-points,.cta-grid,.example-grid,.dict-grid,.mini-check-grid,
  .regs-fields,.hero-with-photo{grid-template-columns:1fr}
  .page-intro{flex-direction:column}
  .hero{padding:120px 20px 56px;min-height:auto}
  .hero-photo-frame{max-width:420px;margin:0 auto}
  .hero-stat{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:16px 8px;
    text-align:center;
  }
  .hero-stat:last-child{border-bottom:0}
  .section{padding:64px 0}
}

.question-form{
  display:grid;
  gap:14px;
  margin:18px 0;
  padding:18px;
  border-radius:18px;
  background:var(--accent-mist);
  border:1px solid rgba(49,41,177,.12);
}
.question-form label{
  display:grid;
  gap:6px;
}
.question-form label span{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
}
.question-form input,
.question-form select,
.question-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
  color:var(--ink);
}
.question-form textarea{resize:vertical;min-height:120px}
.question-form-status{
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
}
.question-form-status.ok{background:#eef9f4;border:1px solid rgba(20,128,90,.16);color:#0f6b4a}
.question-form-status.err{background:#fff5f3;border:1px solid rgba(196,75,60,.18);color:#9a3a2e}
.question-form-status.info{background:#fff8e8;border:1px solid rgba(154,107,18,.18);color:#7a5a12}

.dict-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:14px 0;
}
.dict-item{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
}
.dict-item strong{color:var(--accent);font-size:14px}
.dict-item span{color:var(--muted);font-size:14px;line-height:1.45}

.mini-check-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin:16px 0;
}
.mini-check{
  padding:16px 18px;
  border-radius:16px;
  border:1px solid transparent;
}
.mini-check strong{
  display:block;
  margin-bottom:10px;
  font-size:15px;
}
.mini-check ul{
  margin:0;
  padding-left:18px;
}
.mini-check li{margin:4px 0;font-size:14px}
.mini-check.tone-a{background:#eef0ff;border-color:rgba(49,41,177,.16)}
.mini-check.tone-b{background:#eef9f4;border-color:rgba(20,128,90,.16)}
.mini-check.tone-c{background:#fff8e8;border-color:rgba(154,107,18,.18)}
.mini-check.tone-d{background:#fff1f0;border-color:rgba(196,75,60,.16)}

@media(max-width:900px){
  .dict-grid,.mini-check-grid{grid-template-columns:1fr}
  .stage-band-header{flex-direction:column}
  .mini-stat{min-width:0;width:100%}
}

/* ===== Mobile only — desktop layout не трогаем ===== */
@media(max-width:720px){
  .topbar,.shell,.content-pad,.nav-strip{padding-left:16px;padding-right:16px}
  .topbar{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding-top:14px;
    padding-bottom:14px;
  }
  .header-tools{
    width:100%;
    justify-content:stretch;
  }
  .topbar-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .topbar-actions .btn{
    width:100%;
    justify-content:center;
    text-align:center;
    min-height:44px;
    white-space:normal;
    line-height:1.25;
    padding-left:12px;
    padding-right:12px;
  }

  /* На телефоне шапка главной не absolute — иначе кнопки наезжают на hero */
  body[data-page="index"] .site-header{
    position:relative;
    background:#040316;
  }
  body[data-page="index"] .hero{
    padding:28px 16px 48px;
    min-height:auto;
    overflow:visible;
  }
  body[data-page="index"] .hero-decor{
    overflow:hidden;
    inset:0;
  }
  body[data-page="index"] .hero-with-photo{gap:20px}
  body[data-page="index"] .hero-photo-frame{
    max-width:320px;
    margin:0 auto;
    order:2;
  }
  body[data-page="index"] .hero-copy{order:1;width:100%;max-width:100%}
  body[data-page="index"] .hero-inner{width:100%;max-width:100%;padding:0}

  .brand-home{
    width:100%;
    max-width:none;
  }
  .brand-home-title{font-size:13px;word-break:break-word}

  .search-form{width:100%}
  .search-input{
    min-width:0;
    width:100%;
    flex:1 1 auto;
    font-size:16px; /* без автозума iOS */
  }
  .search-form-lg{width:100%}
  .search-form-lg .btn{width:auto;min-width:96px}

  .card,.lesson,.stage-band{padding:18px}
  .card,.lesson,.content-pad,.shell,.regs-frame,.luck-card{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .lesson table{display:block;width:100%;overflow-x:auto}
  .media-frame img,.hero-photo-frame img,img{max-width:100%;height:auto}

  .bottom-nav{flex-direction:column;align-items:stretch}
  .btn-row{flex-direction:column;align-items:stretch}
  .btn-row .btn{width:100%}

  .hero-brand{font-size:clamp(36px,12vw,56px)}
  .hero-copy h1{
    font-size:clamp(24px,7vw,32px);
    max-width:none;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .hero-sub{overflow-wrap:anywhere}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
  .hero-stat{padding:12px 6px}
  .hero-decor .d1,.hero-decor .d2{width:min(46vw,200px);height:min(56vw,260px)}
  .hero-decor .d3{width:120px;height:120px;right:8%;bottom:10%}

  .nav-strip{
    gap:10px;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .nav-card{
    flex:0 0 72%;
    max-width:260px;
  }

  .regs-frame,.luck-card{padding:18px 16px;border-radius:20px}
  .regs-form{padding:14px}
  .section{padding:48px 0}
  .section h2,.luck-card h2{font-size:clamp(24px,7vw,34px)}
  .lead{font-size:16px;margin-bottom:24px}

  .question-form input,
  .question-form select,
  .question-form textarea,
  .regs-fields input{
    font-size:16px;
  }

  .page-intro{gap:14px}
  .stage-sidebar{width:100%;min-width:0 !important}
}
