/* =====================================================================
   Safwa Academy — Student prototype design system
   Brand: emerald + gold + stone  ·  Minimal/clean  ·  Playful-but-trusted
   ===================================================================== */

:root {
  /* Brand */
  --brand: #047857;
  --brand-600: #059669;
  --brand-500: #10b981;
  --brand-soft: #ecfdf5;
  --brand-soft-2: #d1fae5;
  --brand-dark: #064e3b;

  /* Accent gold */
  --gold: #d4a017;
  --amber: #f59e0b;
  --gold-soft: #fef3c7;

  /* Subject tints */
  --sky: #0284c7;      --sky-soft: #e0f2fe;
  --coral: #f97316;    --coral-soft: #ffedd5;
  --violet: #7c3aed;   --violet-soft: #ede9fe;
  --rose: #e11d48;     --rose-soft: #ffe4e6;

  /* Neutrals */
  --ink: #1c1917;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --paper: #faf9f7;
  --card: #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.05);
  --shadow: 0 10px 30px -12px rgba(28,25,23,.18);
  --shadow-lg: 0 24px 60px -20px rgba(28,25,23,.28);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.hero h1, .section-head h2, .head-row h2 { font-weight: 800; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 999px;
}
/* Highlighted word with a hand-drawn gold brush underline (Severna-style) */
.h-hl { color: var(--gold); position: relative; white-space: nowrap; padding-bottom: .06em; }
.h-hl::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.05em; height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M6 15 C 70 4, 150 6, 210 9 C 250 11, 280 13, 295 16' stroke='%23d4a017' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}
/* On dark hero the underline stays gold; the word can be white instead */
.hero-card .h-hl { color: #fff; }
.center { text-align: center; }
.muted { color: var(--stone-500); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--stone-500); font-size: 17px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(4,120,87,.7); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(4,120,87,.8); }
.btn-gold { background: var(--gold); color: #3a2c00; box-shadow: 0 10px 22px -10px rgba(212,160,23,.7); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--stone-200); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn .ar { transition: transform .2s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,249,247,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.hdr.scrolled { border-color: var(--stone-200); box-shadow: var(--shadow-sm); }
.hdr-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.logo .dot { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(150deg, var(--brand-600), var(--brand-dark));
  display:grid; place-items:center; box-shadow: var(--shadow-sm); flex:none; }
.logo .dot img { width: 74%; height: auto; }
.logo b { color: var(--gold); }
.logo .name { line-height: 1; } .logo .name small { display:block; font-size: 11px; font-weight: 500; color: var(--stone-400); margin-top: 2px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--stone-700); transition: background .15s, color .15s; }
.nav a:hover { background: var(--stone-100); color: var(--ink); }
.hdr-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { border:1.5px solid var(--stone-200); background:#fff; border-radius:999px; padding:8px 14px; font-weight:700; font-size:13px; color:var(--stone-700); }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.burger { display: none; width:44px; height:44px; border-radius:12px; border:1.5px solid var(--stone-200); background:#fff; }
.burger span { display:block; width:18px; height:2px; background:var(--ink); margin:3px auto; border-radius:2px; transition:.25s; }

/* Mobile menu */
.mnav { position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background:#fff; z-index: 80;
  transform: translateX(105%); transition: transform .34s var(--ease); box-shadow: var(--shadow-lg);
  padding: 84px 26px 26px; display:flex; flex-direction:column; gap:6px; }
.mnav.open { transform: translateX(0); }
.mnav a { padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 17px; }
.mnav a:hover { background: var(--stone-100); }
.mnav .btn { margin-top: 10px; }
.scrim { position: fixed; inset:0; background: rgba(28,25,23,.4); z-index: 70; opacity:0; pointer-events:none; transition:.3s; }
.scrim.open { opacity:1; pointer-events:auto; }
.mnav .close { position:absolute; top:20px; inset-inline-end:20px; width:40px;height:40px;border-radius:11px;border:1.5px solid var(--stone-200); background:#fff; font-size:20px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 20px; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); }
.hero p.sub { color: var(--stone-500); font-size: 18px; max-width: 440px; margin: 20px auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display:flex; gap: 18px; justify-content:center; flex-wrap:wrap; margin-top: 26px; }
.trust span { display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; color: var(--stone-500); }
.trust .ck { width:18px;height:18px;border-radius:50%; background: var(--brand-soft); color: var(--brand); display:grid;place-items:center; font-size:11px; }
.hero-photo { position: relative; }
.blob { border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.blob img { width:100%; height:100%; object-fit: cover; }
.blob.b1 { background: var(--brand-soft-2); }
.blob.b2 { background: var(--gold-soft); }
.hero-side { display:grid; gap: 20px; }
.pill-float {
  position:absolute; background:#fff; border-radius:16px; box-shadow: var(--shadow);
  padding:12px 16px; display:flex; align-items:center; gap:11px; font-weight:700; font-size:14px;
  animation: bob 4s ease-in-out infinite;
}
.pill-float .ic { width:38px;height:38px;border-radius:11px; display:grid;place-items:center; font-size:18px; color:#fff; }
.pill-float small { display:block; font-weight:600; color:var(--stone-400); font-size:11.5px; }
@keyframes bob { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-10px)} }

/* floating minimal shapes */
.shape { position:absolute; opacity:.5; pointer-events:none; }
.shape.ring { border: 3px solid var(--gold); border-radius:50%; }
.shape.dot { background: var(--brand-500); border-radius:50%; }
.shape.plus { color: var(--sky); font-weight: 800; font-family: var(--font-display); }

/* ---------- Hero card (Severna-style single banner) ---------- */
.hero-new { padding: 26px 0 46px; }
.hero-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 540px;
  display: flex; align-items: center; box-shadow: var(--shadow-lg); background: var(--brand-dark); }
.hero-card .bg { position: absolute; inset: 0; }
.hero-card .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero-card .overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,60,44,.96) 0%, rgba(6,60,44,.88) 34%, rgba(6,60,44,.45) 58%, rgba(6,60,44,0) 82%); }
.hero-card .inner { position: relative; padding: 60px; max-width: 640px; color: #fff; }
.hero-card .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.hero-card h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
.hero-card p.sub { color: rgba(255,255,255,.82); font-size: 18px; max-width: 460px; margin: 22px 0 8px; }
.hero-card .flags { display: flex; gap: 10px; margin: 20px 0 26px; font-size: 22px; }
.hero-card .hero-cta { justify-content: flex-start; }
.hero-card .trust { justify-content: flex-start; }
.hero-card .trust span { color: rgba(255,255,255,.9); }
.hero-card .trust .ck { background: rgba(255,255,255,.18); color: #fff; }
/* floating gem badges (right edge) */
.gem { position: absolute; right: 5%; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  font-size: 26px; color: #fff; box-shadow: var(--shadow); animation: bob 4.5s ease-in-out infinite; z-index: 3; }
.gem.g1 { top: 20%; background: var(--coral); animation-delay: .1s; }
.gem.g2 { top: 44%; right: 3%; background: var(--brand-500); animation-delay: .7s; }
.gem.g3 { top: 66%; right: 8%; background: var(--sky); animation-delay: 1.3s; }

/* ---------- Games section ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.game { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--stone-200);
  transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; display: flex; flex-direction: column; }
.game:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.game .top { padding: 30px; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; }
.game.c1 .top { background: var(--brand-soft); } .game.c2 .top { background: var(--sky-soft); }
.game.c3 .top { background: var(--gold-soft); } .game.c4 .top { background: var(--violet-soft); }
.game.c5 .top { background: var(--coral-soft); } .game.c6 .top { background: var(--rose-soft); }
.game .top .lvl { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(255,255,255,.8); font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; color: var(--stone-700); }
.game .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game .body h4 { font-family: var(--font-body); font-weight: 800; font-size: 18px; }
.game .body p { font-size: 14px; color: var(--stone-500); flex: 1; }
.game .play { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--brand); }
.game .play .pb { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; transition: transform .2s; }
.game:hover .play .pb { transform: scale(1.12); }

/* ---------- Teacher avatars ---------- */
.tav { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s; }
.tav img { width: 82%; height: 82%; object-fit: contain; }
.teach:hover .tav { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---------- Stat bar ---------- */
.statbar { background: var(--brand-dark); border-radius: var(--radius-xl); padding: 40px; color:#fff;
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; box-shadow: var(--shadow-lg); }
.stat { display:flex; gap:14px; align-items:center; }
.stat .si { width:52px;height:52px;border-radius:14px; display:grid;place-items:center; font-size:24px; background: rgba(255,255,255,.1); }
.stat .num { font-family:var(--font-display); font-size: 30px; font-weight:600; line-height:1; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 5px; }
.stat + .stat { border-inline-start: 1px solid rgba(255,255,255,.12); padding-inline-start: 20px; }

/* ---------- Programs / subjects ---------- */
.prog-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.prog {
  border-radius: var(--radius-lg); padding: 26px; min-height: 240px; position: relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between; color:#fff;
  transition: transform .25s var(--ease), box-shadow .25s; cursor:pointer;
}
.prog:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prog h3 { font-size: 22px; }
.prog p { font-size: 14px; opacity:.92; margin-top:8px; }
.prog .pi { width:56px;height:56px;border-radius:16px; background: rgba(255,255,255,.18); display:grid;place-items:center; font-size:26px; margin-bottom: 18px; }
.prog .more { margin-top:16px; font-weight:700; font-size:14px; display:inline-flex; gap:6px; align-items:center; }
.prog.p1 { background: linear-gradient(150deg,#059669,#047857); }
.prog.p2 { background: linear-gradient(150deg,#0ea5e9,#0284c7); }
.prog.p3 { background: linear-gradient(150deg,#f59e0b,#d4a017); color:#3a2c00; }
.prog.p3 .pi { background: rgba(58,44,0,.14); }
.prog.p4 { background: linear-gradient(150deg,#8b5cf6,#7c3aed); }

/* ---------- Feature / why ---------- */
.split { display:grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items:center; }
.feat-list { display:grid; gap: 16px; margin-top: 26px; }
.feat { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--stone-200);
  border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--brand-500); transform: translateX(4px); }
.feat .fi { width:46px;height:46px;border-radius:13px; display:grid;place-items:center; font-size:20px; color:#fff; flex:none; background: var(--brand); }
.feat h4 { font-family: var(--font-body); font-weight: 800; font-size: 16px; }
.feat p { font-size: 14px; color: var(--stone-500); margin:4px 0 0; }
.imgcard { border-radius: var(--radius-xl); overflow:hidden; box-shadow: var(--shadow); position:relative; aspect-ratio: 4/4.4; }
.imgcard img { width:100%;height:100%;object-fit:cover; }

/* ---------- How it works ---------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { background:#fff; border:1px solid var(--stone-200); border-radius: var(--radius-lg); padding: 28px 24px; position:relative; transition:.25s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color:transparent; }
.step .n { font-family:var(--font-display); font-size: 40px; color: var(--stone-200); font-weight:600; }
.step .si { width:52px;height:52px;border-radius:15px; display:grid;place-items:center; font-size:24px; margin:8px 0 16px; background: var(--brand-soft); color: var(--brand); }
.step h4 { font-family:var(--font-body); font-weight:800; font-size:18px; }
.step p { font-size:14px; color:var(--stone-500); margin-top:8px; }

/* ---------- Carousel (resources / testimonials) ---------- */
.caro { position: relative; }
.caro-track { display:flex; gap: 20px; overflow-x:auto; scroll-snap-type:x mandatory; padding: 6px 2px 18px; scrollbar-width:none; }
.caro-track::-webkit-scrollbar { display:none; }
.res { flex: 0 0 clamp(220px, 40vw, 260px); scroll-snap-align:start; }
.res .rimg { border-radius: var(--radius); overflow:hidden; aspect-ratio: 3/3.6; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); background: var(--stone-100); }
.res:hover .rimg { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow); }
.res h4 { font-family:var(--font-body); font-weight:800; font-size:16px; margin-top:14px; }
.res .meta { font-size:13px; color:var(--stone-400); margin-top:2px; }
.res .tag { display:inline-block; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding:4px 10px; border-radius:999px; margin-top:10px; }
.caro-nav { display:flex; gap:10px; }
.caro-nav button { width:46px;height:46px;border-radius:50%; border:1.5px solid var(--stone-200); background:#fff; font-size:18px; color:var(--ink); transition:.2s; }
.caro-nav button:hover { background: var(--brand); color:#fff; border-color: var(--brand); }
.head-row { display:flex; align-items:flex-end; justify-content:space-between; gap: 20px; margin-bottom: 40px; flex-wrap:wrap; }
.head-row h2 { font-size: clamp(28px,4vw,44px); max-width: 520px; }

/* ---------- Star students (celebratory, no ranking) ---------- */
.stars-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.starc {
  position: relative; overflow: hidden; text-align: center;
  background: #fff; border: 1.5px solid var(--gold-soft); border-radius: var(--radius-lg);
  padding: 34px 22px 26px; transition: transform .25s var(--ease), box-shadow .25s;
}
.starc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 92px;
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--gold-soft) 100%); }
.starc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.starc:hover .av { transform: scale(1.05) rotate(-3deg); }
.starc .av { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 28px; overflow: hidden;
  margin: 0 auto 14px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.starc .av img { width: 100%; height: 100%; object-fit: cover; }
.starc .star-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #3a2c00; font-weight: 800; font-size: 12px; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.starc h4 { font-family: var(--font-body); font-weight: 800; font-size: 19px; margin-top: 12px; }
.starc .chips { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.starc .chip { font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.starc .chip-b { background: var(--brand-soft); color: var(--brand-dark); }
.starc .chip-g { background: var(--gold-soft); color: #8a6d00; }
.starc .conf { position: absolute; width: 9px; height: 9px; border-radius: 2px; z-index: 1; }

/* ---------- Testimonials ---------- */
.tcard { flex: 0 0 clamp(300px, 82vw, 560px); scroll-snap-align:center; background:#fff; border:1px solid var(--stone-200);
  border-radius: var(--radius-lg); padding: 34px; }
.tcard .quote { font-family:var(--font-display); font-size: 24px; line-height:1.4; }
.tcard .who { display:flex; align-items:center; gap:14px; margin-top: 22px; }
.tcard .who img { width:52px;height:52px;border-radius:14px; object-fit:cover; }
.tcard .who b { display:block; }
.tcard .who small { color: var(--stone-400); }
.tcard .stars { color: var(--gold); margin-bottom: 14px; letter-spacing:2px; }

/* ---------- Teachers ---------- */
.teach-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.teach { text-align:center; }
.teach .tphoto { border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 1/1.1; box-shadow: var(--shadow-sm); transition:.25s; }
.teach:hover .tphoto { transform: translateY(-6px); box-shadow: var(--shadow); }
.teach h4 { font-family:var(--font-body); font-weight:800; font-size:17px; margin-top:16px; }
.teach .subj { font-size:13px; color: var(--brand); font-weight:700; margin-top:3px; }

/* ---------- CTA band ---------- */
.ctaband { border-radius: var(--radius-xl); overflow:hidden; display:grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); }
.ctaband .left { background: var(--coral); position:relative; min-height: 320px; }
.ctaband .left img { width:100%;height:100%;object-fit:cover; position:absolute; inset:0; mix-blend-mode:luminosity; opacity:.9; }
.ctaband .right { background: var(--brand-dark); color:#fff; padding: 56px; display:flex; flex-direction:column; justify-content:center; }
.ctaband .right h2 { font-size: 34px; }
.ctaband .right p { color: rgba(255,255,255,.75); margin: 16px 0 26px; }

/* ---------- Enquiry form ---------- */
.formwrap { background:#fff; border:1px solid var(--stone-200); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.formgrid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size:13px; font-weight:700; color: var(--stone-700); }
.field input, .field select, .field textarea {
  border:1.5px solid var(--stone-200); border-radius: 12px; padding: 13px 15px; font-family:inherit; font-size:15px; background:#fff; transition:.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .err { color: var(--rose); font-size:12.5px; font-weight:600; display:none; }
.field.invalid input, .field.invalid select { border-color: var(--rose); }
.field.invalid .err { display:block; }
.form-note { font-size:13px; color:var(--stone-400); margin-top: 18px; }
.form-ok { display:none; background: var(--brand-soft); color: var(--brand-dark); border-radius:14px; padding:16px; font-weight:700; margin-bottom:20px; }
.form-ok.show { display:block; }
.sub-head { grid-column:1/-1; font-family:var(--font-body); font-weight:800; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--stone-400); margin-top:6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display:grid; gap: 12px; }
.qa { background:#fff; border:1px solid var(--stone-200); border-radius: var(--radius); overflow:hidden; }
.qa button { width:100%; text-align:start; padding: 20px 22px; background:none; border:none; font-weight:800; font-size:16.5px; display:flex; justify-content:space-between; gap:16px; align-items:center; color:var(--ink); }
.qa .a { max-height:0; overflow:hidden; transition: max-height .3s var(--ease); }
.qa .a p { padding: 0 22px 20px; margin:0; color:var(--stone-500); font-size:15px; }
.qa.open .a { max-height: 220px; }
.qa .chev { transition: transform .3s; color: var(--brand); font-size:20px; }
.qa.open .chev { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-dark); color:#fff; padding: 70px 0 34px; margin-top: 20px; }
.ftr-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr .logo { color:#fff; margin-bottom: 16px; }
.ftr p.desc { color: rgba(255,255,255,.65); font-size:14.5px; max-width: 300px; }
.ftr h5 { font-family:var(--font-body); font-weight:800; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.ftr ul { list-style:none; padding:0; margin:0; display:grid; gap: 11px; }
.ftr ul a { color: rgba(255,255,255,.82); font-size:15px; }
.ftr ul a:hover { color: var(--gold); }
.ftr-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color: rgba(255,255,255,.55); font-size:13.5px; }
.socials { display:flex; gap:10px; }
.socials a { width:38px;height:38px;border-radius:11px; background: rgba(255,255,255,.1); display:grid;place-items:center; transition:.2s; }
.socials a:hover { background: var(--gold); color:#3a2c00; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-photo.main { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .statbar { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stat + .stat { border:none; padding-inline-start:0; }
  .prog-grid, .steps, .teach-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .stars-grid { grid-template-columns: 1fr; }
  .hero-card .inner { max-width: 560px; padding: 44px; }
  .gem { display: none; }
  .ctaband { grid-template-columns: 1fr; }
  .ctaband .left { min-height: 220px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav, .hdr-cta .btn, .hdr-cta .lang { display:none; }
  .burger { display:block; }
  .hdr-cta { margin-inline-start:auto; }
  .prog-grid, .steps, .formgrid { grid-template-columns: 1fr; }
  .teach-grid, .games-grid { grid-template-columns: 1fr 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; padding: 28px; }
  .hero-side { display:none; }
  .hero-card { min-height: 480px; }
  .hero-card .overlay { background: linear-gradient(180deg, rgba(6,60,44,.55) 0%, rgba(6,60,44,.9) 55%, rgba(6,60,44,.96) 100%); }
  .hero-card .inner { padding: 32px 24px; max-width: 100%; }
  .formwrap { padding: 26px 20px; }
  .ctaband .right { padding: 34px 24px; }
  .ftr-grid { grid-template-columns: 1fr; }
}
