/* ========================
   ALS Education — style.css
   Calm academic theme: navy & gold, lots of white space,
   soft grey surfaces instead of borders, generous type.
   ======================== */

:root {
  --navy-950: #062C35;
  --navy-900: #044D5A;
  --navy-800: #0A5867;
  --navy-700: #0E6878;
  --tint: #E6F1F1;            /* soft teal tint for icons/chips */
  --gold: #C29B2E;
  --gold-text: #8F7020;       /* gold dark enough to read as text */
  --gold-soft: #F7F0DC;

  --ink: #16262B;             /* headings */
  --text: #3D4757;            /* body */
  --muted: #6E7787;           /* secondary */
  --hair: #E6E9EF;            /* hairlines (used sparingly) */
  --bg: #FFFFFF;
  --surface: #F5F6F8;         /* Apple-style light grey */
  --green: #1E8E5A;
  --wa: #25D366;
  --red: #B8433B;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow: 0 2px 8px rgba(4, 45, 53, .04), 0 12px 32px rgba(4, 45, 53, .07);
  --shadow-lg: 0 30px 60px -20px rgba(4, 45, 53, .25);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* theme roles (light) */
  --heading: #062C35;
  --accent: #0B6273;
  --btn: #044D5A;
  --btn-hover: #06657A;
  --band: #044D5A;            /* closing CTA banner */
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, .92);
  --line2: #DDE1E8;
  --field-hover: #EFF1F4;
  --surface-hover: #ECEEF2;
  --danger-bg: #FDF5F4;
  --success-bg: #E8F5EE;
  color-scheme: light;
}

/* ── DARK THEME (toggle in header; choice remembered) ── */
:root[data-theme="dark"] {
  --tint: #16333A;
  --gold: #D2AE48;
  --gold-text: #DDBD63;
  --gold-soft: #2A2618;
  --ink: #EDF1F7;
  --text: #C3CBD8;
  --muted: #8E99AB;
  --hair: #203236;
  --bg: #0A1416;
  --surface: #111E21;
  --green: #4CC38A;
  --red: #F0897F;
  --shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .6);

  --heading: #F3F6FB;
  --accent: #7FC4CF;
  --btn: #0C6B7B;
  --btn-hover: #128092;
  --band: #0F2F35;
  --card: #152427;
  --glass: rgba(19, 33, 36, .9);
  --line2: #233639;
  --field-hover: #192B2E;
  --surface-hover: #1A2D31;
  --danger-bg: #2E1B1B;
  --success-bg: #17301F;
  color-scheme: dark;
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* ── BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -.011em; line-height: 1.3; }
p { text-wrap: pretty; }
::selection { background: var(--navy-800); color: #fff; }
:focus-visible { outline: 3px solid rgba(4, 77, 90, .35); outline-offset: 3px; border-radius: 8px; }

.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.center { display: flex; justify-content: center; margin-top: 56px; }

/* ── BUTTONS (pill, like Apple) ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap; letter-spacing: -.005em;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { background: var(--surface); color: var(--ink); }
.btn-outline:hover { background: var(--surface-hover); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #B08A22; }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.wa-ic { color: var(--wa); }

/* ── TOP BAR (quiet) ────────────────────────── */
.topbar { background: var(--surface); color: var(--muted); font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info li, .topbar-phone { display: flex; align-items: center; gap: 7px; }
.topbar .ic { color: var(--gold); }
.topbar a:hover { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-phone { font-weight: 500; color: var(--ink); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social .ic { color: var(--muted); }
.topbar-social a:hover .ic { color: var(--accent); }

/* ── HEADER ─────────────────────────────────── */
.header { position: relative; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--hair); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 64px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--heading); letter-spacing: -.01em; }
.brand-text small { white-space: nowrap; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.brand-light .brand-text b { color: #fff; }
.brand-light .brand-text small { color: #9AA7BA; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 11px; border-radius: 999px; font-size: 15px; font-weight: 450; color: var(--text); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--heading); background: var(--tint); }
.theme-toggle { position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); transition: background-color .25s, transform .4s var(--ease); }
.theme-toggle:hover { background: var(--surface-hover); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle .ic { grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; color: var(--gold); }
[data-theme="dark"] .brand-logo { background: #FDF8ED; border-radius: 12px; padding: 5px 7px; box-sizing: content-box; width: 54px; }
[data-theme="dark"] img:not(.brand-logo) { filter: brightness(.9); }
.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--surface); }
.drawer { display: none; background: var(--card); border-top: 1px solid var(--hair); }
.drawer .container { display: grid; padding-top: 8px; padding-bottom: 24px; }
.drawer a:not(.btn) { padding: 14px 4px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--hair); }
.drawer .btn { margin-top: 16px; }
.header.open .drawer { display: block; }

/* ── HERO ───────────────────────────────────── */
.hero { padding: 96px 0 120px; background: var(--card); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gold-text); }
.kicker.center { text-align: center; }
.hero h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.08; margin: 18px 0 24px; color: var(--heading); }
.u-gold { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 44px; max-width: 520px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.hero-points .ic { color: var(--gold); stroke-width: 2.6; }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; box-shadow: var(--shadow);
}
.hero-badge b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.2; }
.hero-badge small { display: block; font-size: 13.5px; color: var(--muted); }
.hb-2 { left: -28px; bottom: 36px; flex-direction: column; align-items: flex-start; gap: 4px; }
.hb-stars { display: flex; gap: 2px; color: var(--gold); }

/* ── STATS (light, quiet) ───────────────────── */
.stats { background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 56px; padding-bottom: 56px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 16px; }
.stat + .stat { border-left: 1px solid var(--line2); }
.stat > .ic { display: none; }
.stat b { display: block; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.05; color: var(--heading); letter-spacing: -.02em; }
.stat span { font-size: 15px; color: var(--muted); }

/* ── SECTIONS ───────────────────────────────── */
.section { padding: 128px 0; }
.section-soft { background: var(--surface); }
.head { max-width: 700px; margin: 0 auto 64px; text-align: center; }
.head.left { text-align: left; margin: 0 0 40px; }
.head h2, .faq-side h2 { font-size: clamp(34px, 4.2vw, 50px); margin: 12px 0 18px; color: var(--heading); }
.head p:not(.kicker), .faq-side > p:not(.kicker) { font-size: 19px; line-height: 1.6; color: var(--muted); }

/* ── SUBJECTS ───────────────────────────────── */
.subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.subject {
  display: flex; flex-direction: column; padding: 36px 32px; background: var(--surface); border-radius: var(--r-lg);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.subject:hover { background: var(--card); box-shadow: var(--shadow); transform: translateY(-4px); }
.subject-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); color: var(--accent); margin-bottom: 24px; box-shadow: 0 1px 3px rgba(4, 45, 53, .08); }
.subject h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--heading); letter-spacing: -.01em; }
.levels { font-size: 14px; font-weight: 500; color: var(--gold-text); margin: 6px 0 14px; }
.subject p:not(.levels) { font-size: 16px; color: var(--muted); flex: 1; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 500; font-size: 16px; color: var(--accent); }
.link .ic { transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.also span { color: var(--muted); margin-right: 6px; font-size: 16px; }
.also i { font-style: normal; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; }

/* ── WHY US ─────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.why-media { position: sticky; top: 40px; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.why-exp { position: absolute; right: -24px; bottom: 40px; display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.why-exp b { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--heading); }
.why-exp span { font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.why-since { position: absolute; left: 20px; top: 20px; padding: 8px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; color: var(--text); }
.why-since b { color: var(--ink); font-weight: 600; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 36px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.f-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(4, 45, 53, .08); }
.feature h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.feature p { font-size: 15.5px; color: var(--muted); }
.verify { margin-top: 44px; padding: 24px 26px; background: var(--card); border-radius: var(--r-lg); }
.verify-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 16px; }
.verify-title .ic { color: var(--green); }
.verify-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; counter-reset: v; }
.verify-steps li { counter-increment: v; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); font-size: 14.5px; color: var(--ink); }
.verify-steps li::before { content: counter(v); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; font-size: 12px; font-weight: 600; }

/* ── STEPS ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 36px 28px 32px; background: var(--surface); border-radius: var(--r-lg); }
.step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); color: var(--accent); margin-bottom: 26px; box-shadow: 0 1px 3px rgba(4, 45, 53, .08); }
.step-n { position: absolute; top: 34px; right: 28px; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: #D9DEE6; }
.step h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink); }
.step p { font-size: 15.5px; color: var(--muted); }

/* ── TUTORS ─────────────────────────────────── */
.tutors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tutor { display: flex; flex-direction: column; padding: 34px 30px 30px; background: var(--card); border-radius: var(--r-lg); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.tutor:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tutor-top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.t-av { width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-family: var(--serif); font-size: 24px; font-weight: 600; }
.tutor h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--heading); letter-spacing: -.01em; }
.t-subj { font-size: 15.5px; color: var(--muted); margin: 4px 0 8px; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.t-meta { display: grid; gap: 0; margin: 22px 0 18px; }
.t-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.t-meta div:last-child { border-bottom: 1px solid var(--hair); }
.t-meta dt { color: var(--muted); }
.t-meta dd { font-weight: 500; color: var(--ink); text-align: right; }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.t-tags span { padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13.5px; }
.verified { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--green); font-size: 14.5px; font-weight: 500; }

/* ── REVIEWS ────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; padding: 34px 32px; background: var(--surface); border-radius: var(--r-lg); }
.r-stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 18px; }
.review blockquote { flex: 1; font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.r-av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent); font-weight: 600; font-size: 14px; }
.review figcaption b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ── FAQ ────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.help-box { margin-top: 40px; padding: 32px; background: var(--card); border-radius: var(--r-lg); }
.help-box h3 { font-family: var(--serif); color: var(--heading); font-size: 23px; font-weight: 600; }
.help-box > p { margin: 10px 0 18px; font-size: 16px; color: var(--muted); }
.help-phone { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 21px; font-weight: 600; color: var(--ink); }
.help-phone .ic { color: var(--gold); }
.help-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.help-points li { display: flex; align-items: center; gap: 6px; }
.help-points .ic { color: var(--green); stroke-width: 2.6; }
.faq-list { display: grid; }
.qa { border-bottom: 1px solid var(--line2); }
.qa:first-child { border-top: 1px solid var(--line2); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; cursor: pointer; list-style: none; font-weight: 500; font-size: 18px; color: var(--ink); letter-spacing: -.01em; transition: color .2s; }
.qa summary:hover { color: var(--accent); }
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.qa[open] .qa-icon { transform: rotate(45deg); background: var(--btn); color: #fff; }
.qa-body p { padding: 0 52px 28px 4px; font-size: 16.5px; color: var(--muted); }

/* ── CONTACT ────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: start; }
.contact-info { padding: 40px 34px; background: var(--surface); border-radius: var(--r-xl); }
.contact-info h3 { font-family: var(--serif); color: var(--heading); font-size: 26px; font-weight: 600; }
.ci-intro { font-size: 16px; color: var(--muted); margin: 8px 0 22px; }
.ci { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; }
.ci + .ci { border-top: 1px solid var(--line2); }
.ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(4, 45, 53, .08); }
.ci small { display: block; font-size: 13.5px; color: var(--muted); }
.ci b { display: block; color: var(--ink); font-weight: 500; font-size: 16.5px; line-height: 1.45; }
a.ci:hover b { color: var(--accent); }
.ci em { display: block; font-style: normal; font-size: 14px; color: var(--red); margin-top: 2px; }
.ci-social { padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--line2); }
.ci-social small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(4, 45, 53, .08); transition: background-color .3s, color .3s; }
.socials a:hover { background: var(--btn); color: #fff; }

.form-card { padding: 44px 40px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.form-card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--heading); margin-bottom: 28px; }
.form-card h3 .ic { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field small:not(.err) { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 12px;
  background: var(--surface); font-size: 16px; color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA2AF; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E7787' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field select:invalid, .field select.empty { color: #9AA2AF; }
.field select option { color: var(--ink); background: var(--card); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--field-hover); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--card); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(4, 77, 90, .14); }
.field.error input, .field.error select { border-color: var(--red); background-color: var(--danger-bg); }
.field .err { display: none; font-size: 13.5px; color: var(--red); }
.field.error .err { display: block; }
.form-alert { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--danger-bg); color: var(--red); font-size: 15px; }
.form-alert[hidden] { display: none; }
.form-alert p { margin: 0 0 10px; }
.form-alert-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 500; font-size: 14.5px; }
.form-alert-wa:hover { background: #1EBE5A; }
#submitBtn.loading { opacity: 1; cursor: progress; }
#submitBtn.loading .ic { display: none; }
#submitBtn.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { display: flex; align-items: center; gap: 8px; margin: 22px 0; font-size: 14px; color: var(--muted); }
.privacy .ic { color: var(--green); }
.success { display: none; text-align: center; padding: 40px 10px; }
.success.visible { display: block; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--green); }
.success-icon .ic { stroke-width: 2.6; }
.success b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--heading); }
.success p { margin-top: 8px; color: var(--muted); }
.success .success-ref { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; }
.success .success-ref:empty, .success .success-note:empty { display: none; }
.success .success-note { font-size: 15px; }

/* ── CTA BAND ───────────────────────────────── */
.cta { padding: 0 0 128px; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 64px 64px; background: var(--band); border-radius: var(--r-xl); }
.cta h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); }
.cta p { color: #B9C4D6; margin-top: 10px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── FOOTER ─────────────────────────────────── */
.footer { background: var(--surface); color: var(--muted); font-size: 15px; padding-top: 80px; }
.footer .brand-light .brand-text b { color: var(--heading); }
.footer .brand-light .brand-text small { color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 48px; }
.f-brand p { margin: 20px 0; max-width: 340px; }
.f-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.f-badges li { display: flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--card); font-size: 13.5px; color: var(--text); }
.f-badges .ic { color: var(--green); }
.footer h4 { color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a:hover { color: var(--ink); }
.news { display: flex; margin: 18px 0 16px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(4, 45, 53, .08); }
.news input { flex: 1; min-width: 0; background: none; border: 0; padding: 9px 16px; color: var(--ink); font-size: 15px; }
.news input::placeholder { color: #9AA2AF; }
.news input:focus { outline: none; }
.news button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; flex-shrink: 0; }
.news.error { box-shadow: 0 0 0 2px var(--red); }
.news-msg { margin: -6px 0 14px 8px; font-size: 14px; }
.news-msg:empty { display: none; }
.news-msg.good { color: var(--green); }
.news-msg.bad { color: var(--red); }
.f-call { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.f-call .ic { color: var(--gold); }
.f-call small { display: block; font-size: 13px; color: var(--muted); }
.f-call b { font-weight: 600; }
.footer .socials a { background: var(--card); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line2); font-size: 13.5px; }

/* ── FLOATING ───────────────────────────────── */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .55); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.to-top { position: fixed; right: 31px; bottom: 92px; z-index: 89; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.to-top.visible { opacity: 1; visibility: visible; }

/* ── REVEAL (soft, Apple-like easing) ───────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .subject.reveal.in:hover, .js .tutor.reveal.in:hover { transform: translateY(-4px); }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1220px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .theme-toggle { margin-left: auto; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .burger { display: grid; }
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-media { max-width: 560px; }
  .hb-2 { left: 16px; }
  .why-media { max-width: 520px; position: relative; top: 0; }
  .why-exp { right: 16px; }
  .subjects-grid, .tutors, .reviews, .steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-in { flex-direction: column; text-align: center; padding: 56px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hide-sm { display: none !important; }
  .topbar-in { justify-content: space-between; min-height: 38px; }
  .topbar-info li { font-size: 12.5px; }
  .topbar-phone { font-size: 13px; }
  .header-in { min-height: 66px; gap: 12px; }
  .brand-logo { width: 54px; }
  .brand-text b { font-size: 18px; }
  .brand-text small { font-size: 10.5px; }
  .header-cta { display: none; }
  .theme-toggle { width: 40px; height: 40px; }

  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: clamp(34px, 9vw, 42px); }
  .lead { font-size: 17px; }
  .hero-cta { margin-top: 32px; }
  .hero-cta .btn { width: 100%; }
  .hero-points { grid-template-columns: 1fr; margin-top: 36px; }
  .hero-photo { border-radius: var(--r-lg); }
  .hb-2 { left: 12px; bottom: 12px; padding: 12px 16px; }

  .stats-grid { padding-top: 44px; padding-bottom: 44px; }
  .stat b { font-size: 36px; }
  .stat span { font-size: 14px; }

  .section { padding: 88px 0; }
  .head { margin-bottom: 44px; }
  .head p:not(.kicker), .faq-side > p:not(.kicker) { font-size: 17px; }
  .subjects-grid, .tutors, .reviews, .features, .steps { grid-template-columns: 1fr; }
  .subject, .tutor, .review, .step { padding: 30px 26px; }
  .why-media img { border-radius: var(--r-lg); }
  .why-exp { right: 12px; bottom: 16px; padding: 14px 18px; }
  .why-exp b { font-size: 36px; }
  .why-since { left: 12px; top: 12px; }
  .verify { padding: 22px 20px; }
  .qa summary { font-size: 17px; padding: 22px 2px; }
  .qa-body p { padding: 0 8px 24px 2px; }
  .help-box { padding: 26px 22px; }
  .contact-info, .form-card { padding: 30px 22px; border-radius: var(--r-lg); }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding-bottom: 88px; }
  .cta-in { padding: 44px 24px; border-radius: var(--r-lg); }
  .cta-actions { flex-direction: column; width: 100%; }
  .footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 92px; }
  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .to-top { right: 24px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
