/* ==========================================================================
   Dream Academy — stylesheet
   Palette: "Bənövşəyi & Firuzə" — plum violet, turquoise, lemon. Literata + Manrope.
   ========================================================================== */

:root {
  --paper: #FAF8FE;
  --white: #FFFFFF;
  --tint: #F2EEF9;
  --ink: #24124F;
  --ink-2: #3B2380;
  --muted: #615A7A;
  --line: #E4DEF0;
  --line-2: #D0C6E6;
  --seal: #0FB5A6;
  --seal-dark: #0A8F84;
  --green: #16A34A;
  --green-bg: #EAFBEF;
  --amber: #705000;
  --amber-bg: #FFF8E0;
  --red-bg: #DDF7F3;

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .875rem;    /* 14 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-3xl: 2.25rem;   /* 36 */
  --fs-4xl: clamp(2.4rem, 4.6vw, 3.75rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(36,18,79,.05), 0 10px 30px -14px rgba(36,18,79,.25);
  --shadow-lift: 0 2px 4px rgba(36,18,79,.06), 0 24px 48px -20px rgba(36,18,79,.38);
  --wrap: 1180px;
  --shadow-paper: 0 1px 0 rgba(36,18,79, .04), 0 12px 28px -12px rgba(36,18,79, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--seal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.ta-r { text-align: right; }
.break { word-break: break-all; }
.danger { color: var(--seal) !important; }
.hp { position: absolute; left: -5000px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 var(--fs-md)/1 var(--sans);
  padding: .85em 1.35em; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--sm { font-size: var(--fs-sm); padding: .6em 1em; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; color: var(--ink); }
.btn--seal { background: var(--seal); color: #fff; }
.btn--seal:hover { background: var(--seal-dark); color: #fff; }
.btn--ok { background: var(--green); color: #fff; }
.btn--ok:hover { background: #15803D; color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-more { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { flex-shrink: 0; }
.brand__word { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand__word em { font-style: normal; font-weight: 400; margin-left: .22em; }
.brand--light, .brand--light:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.site-nav > a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav > a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.site-nav > a[aria-current="page"] { border-bottom-color: var(--seal); }
.site-nav__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-login { text-decoration: none; font-weight: 600; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.lang-switch a { font-size: var(--fs-xs); font-weight: 700; padding: 4px 9px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-switch--dark { border-color: rgba(255,255,255,.25); }
.lang-switch--dark a { color: rgba(255,255,255,.7); }
.lang-switch--dark a[aria-current="true"] { background: #fff; color: var(--ink); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Flash / notices ---------- */
.flash-stack { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 12px; font-size: var(--fs-sm); border-left: 3px solid; }
.flash--success { background: var(--green-bg); border-color: var(--green); }
.flash--error { background: var(--red-bg); border-color: var(--seal); }
.flash--info { background: var(--tint); border-color: var(--ink); }
.notice { background: var(--amber-bg); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 20px; }
.notice p { margin: 4px 0 0; }
.notice--soft { background: var(--tint); font-size: var(--fs-sm); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 600; font-size: var(--fs-4xl);
  letter-spacing: -.02em; line-height: 1.08; margin-bottom: 24px; max-width: 14ch;
}
.hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; gap: 40px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts div { display: flex; flex-direction: column-reverse; }
.hero__facts dt { color: var(--muted); font-size: var(--fs-sm); }
.hero__facts dd { margin: 0; font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; }

/* The admission-letter stack */
.hero__letters { position: relative; height: 560px; }
.letter {
  margin: 0; position: absolute; width: min(360px, 88%);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 3px; padding: 30px 30px 26px;
  box-shadow: var(--shadow-paper);
  font-size: var(--fs-sm); color: var(--ink);
}
.letter__crest {
  width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
}
.letter__uni { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0 0 2px; }
.letter__kind { color: var(--muted); font-size: var(--fs-xs); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.letter__dear { font-family: var(--serif); font-style: italic; margin: 0 0 6px; }
.letter__text { margin: 0 0 14px; line-height: 1.5; }
.letter__lines span { display: block; height: 6px; background: var(--tint); border-radius: 3px; margin-bottom: 8px; }
.letter__lines span:nth-child(2) { width: 88%; }
.letter__lines span:nth-child(3) { width: 62%; }
.letter__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); padding-right: 64px; }
.letter__score { font-weight: 700; color: var(--green); }
.letter__seal {
  position: absolute; right: 22px; bottom: 18px; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #0A8F84, var(--seal) 55%, var(--seal-dark));
  color: rgba(255,255,255,.88); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12), 0 3px 6px rgba(10,143,132,.35);
}
.letter__seal::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.4); }

.hero__letters .letter--0 { top: 190px; left: 20%; transform: rotate(1.5deg); z-index: 3; }
.hero__letters .letter--1 { top: 40px; left: 0; transform: rotate(-7deg); z-index: 2; }
.hero__letters .letter--2 { top: 0; left: 34%; transform: rotate(6deg); z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero__letters .letter { animation: deal .9s cubic-bezier(.2,.75,.25,1) both; }
  .hero__letters .letter--2 { animation-delay: .05s; --r: 6deg; }
  .hero__letters .letter--1 { animation-delay: .2s; --r: -7deg; }
  .hero__letters .letter--0 { animation-delay: .38s; --r: 1.5deg; }
  @keyframes deal {
    from { opacity: 0; transform: translate(40px, 60px) rotate(0deg); }
    to   { opacity: 1; transform: rotate(var(--r)); }
  }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head .section__title { margin: 0; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-3xl); letter-spacing: -.015em; margin-bottom: 28px; }
.section__lead { color: var(--muted); max-width: 60ch; margin-top: -12px; margin-bottom: 28px; }

.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why__item h3 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; }
.why__item p { color: var(--muted); margin: 0; }
.why__item { border-top: 2px solid var(--ink); padding-top: 20px; }

/* Teacher cards */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.tcard__link { display: flex; flex-direction: column; height: 100%; padding: 24px; text-decoration: none; color: var(--ink); }
.tcard__link:hover { color: var(--ink); }
.tcard:hover { border-color: var(--line-2); }
.tcard:hover .tcard__name { text-decoration: underline; text-underline-offset: 3px; }
.tcard__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tcard__name { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; margin: 0; }
.tcard__uni { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.tcard__headline { font-size: var(--fs-sm); margin-bottom: 14px; }
.tcard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.tcard__price strong { font-size: var(--fs-lg); }
.tcard__rating { display: inline-flex; gap: 6px; align-items: center; }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; width: 40px; height: 40px; }
.avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar--md { width: 44px; height: 44px; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar--xl { width: 104px; height: 104px; font-size: 1.8rem; }
.avatar--initials {
  display: inline-grid; place-items: center; font-weight: 700; font-family: var(--serif);
  background: hsl(var(--h, 212) 35% 90%); color: hsl(var(--h, 212) 45% 28%);
}

/* Chips, stars */
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint); line-height: 1.5; }
.chip--score { background: var(--green-bg); color: var(--green); }
.chip--exam { background: var(--tint); color: var(--ink-2); }
.chip--seal { background: var(--red-bg); color: var(--seal); }
.stars { color: var(--line-2); letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: #E5B400; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps__item { position: relative; }
.steps__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); margin-bottom: 16px; background: var(--paper);
}
.steps__item:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--line-2); }
.steps__item h3 { font-size: var(--fs-lg); font-weight: 700; }
.steps__item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* Lesson rows */
.llist { display: flex; flex-direction: column; gap: 10px; }
.lrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.lrow__date { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; line-height: 1.1; }
.lrow__d { display: block; font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; }
.lrow__m { font-size: var(--fs-xs); color: var(--muted); text-transform: lowercase; }
.lrow__title { font-size: var(--fs-md); font-weight: 700; margin: 0 0 4px; }
.lrow__title a { text-decoration: none; }
.lrow__title a:hover { text-decoration: underline; }
.lrow__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.lrow__side { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.lrow__price { font-size: var(--fs-lg); }
.lrow__seats { font-size: var(--fs-xs); color: var(--muted); }
.lrow__seats.is-low { color: var(--amber); font-weight: 600; }
.lrow__seats.is-full { color: var(--seal); font-weight: 600; }
.day-h { font-size: var(--fs-md); font-weight: 700; margin: 28px 0 12px; color: var(--muted); }
.day-h:first-child { margin-top: 0; }

/* Country list (home) */
.clist { border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 48px 200px 1fr auto; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.crow:hover { color: var(--ink); background: var(--white); }
.crow:hover .crow__name { text-decoration: underline; text-underline-offset: 3px; }
.crow__code {
  display: inline-grid; place-items: center; width: 36px; height: 26px; border: 1.5px solid var(--ink);
  border-radius: 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; flex-shrink: 0;
}
.crow__code--lg { width: 52px; height: 38px; font-size: var(--fs-md); vertical-align: middle; font-family: var(--sans); }
.crow__name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); }
.crow__sum { color: var(--muted); font-size: var(--fs-sm); }
.crow__fee { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }

/* Exams strip */
.exam-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.exam-pill { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-decoration: none; color: var(--ink); }
.exam-pill:hover { border-color: var(--ink); color: var(--ink); }
.exam-pill strong { font-family: var(--serif); font-size: var(--fs-lg); }
.exam-pill span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

/* Band */
.band { background: var(--ink); color: #fff; padding: 64px 0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band__title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-2xl); max-width: 26ch; }
.band p { color: rgba(255,255,255,.75); max-width: 56ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.1); padding: 56px 0 24px; font-size: var(--fs-sm); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 34ch; }
.site-footer__h { font-size: var(--fs-sm); color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); }

/* ---------- Page heads ---------- */
.page-head { padding: 56px 0 32px; }
.page-head__title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-3xl); letter-spacing: -.015em; margin-bottom: 12px; }
.page-head__lead { color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }
.back { display: block; width: fit-content; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; margin-bottom: 16px; color: var(--muted); }
.back:hover { color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); }
.tabs a:hover { border-color: var(--ink); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs--panel { margin: 0 0 20px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: stretch; }
.filters .field { margin: 0; }
.field--grow { flex: 1 1 260px; }
.result-count { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }
.empty { text-align: center; padding: 56px 24px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.empty p { color: var(--muted); }
.empty--inline { padding: 32px 16px; border: 0; background: none; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form legend { font-weight: 700; margin-bottom: 8px; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > legend { font-size: var(--fs-sm); font-weight: 600; }
.field--short { max-width: 280px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-md); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .7em .85em; min-height: 46px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36,18,79,.12); }
input:disabled { background: var(--tint); color: var(--muted); }
input[type=file] { font-size: var(--fs-sm); padding: .55em; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex-shrink: 0; }
.check--top { align-self: end; padding-bottom: 12px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check--pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; align-items: center; background: var(--white); }
.check--pill input { margin: 0; }
.check--pill:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Teacher profile ---------- */
.profile { padding: 48px 0 80px; }
.profile__in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 96px; }
.profile__name { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; margin: 18px 0 6px; }
.profile__headline { color: var(--muted); font-size: var(--fs-sm); }
.profile__label { font-size: var(--fs-sm); font-weight: 600; margin: 8px 0 8px; }
.profile__price { margin: 20px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile__price strong { font-family: var(--serif); font-size: var(--fs-2xl); }
.profile__price span { color: var(--muted); }
.profile__rating { font-size: var(--fs-sm); margin-bottom: 18px; }
.profile__letter { position: relative; margin-bottom: 48px; }
.profile__letter .letter { position: relative; transform: rotate(-1.5deg); margin: 10px 0 0 12px; }
.facts { margin: 18px 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: var(--fs-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.prose-block { margin-bottom: 44px; }
.prose-block > h2 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.prose { max-width: 68ch; font-size: var(--fs-md); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--seal); }
.prose h3 { font-size: var(--fs-md); font-weight: 700; margin-top: 1.2em; }

.reviews { list-style: none; margin: 0; padding: 0; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; font-size: var(--fs-sm); }
.review p { margin: 0; }
.review-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.review-form .field { width: 100%; }
.rating-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; float: left; width: 100%; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.8rem; color: var(--line-2); cursor: pointer; line-height: 1; padding: 2px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #E5B400; }
.rating-input input:focus-visible + label { outline: 2px solid var(--seal); border-radius: 3px; }

.teacher-mini { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin-bottom: 10px; color: var(--ink); }
.teacher-mini:hover { border-color: var(--ink); color: var(--ink); }
.teacher-mini > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.teacher-mini small { color: var(--muted); }

/* ---------- Lesson page ---------- */
.lesson-page { padding: 40px 0 80px; }
.lesson-page__in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.lesson-page__title { font-family: var(--serif); font-size: var(--fs-3xl); font-weight: 600; margin: 12px 0 24px; letter-spacing: -.01em; }
.lesson-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.lesson-facts div { padding: 14px 16px; border-right: 1px solid var(--line); }
.lesson-facts div:last-child { border-right: 0; }
.lesson-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.lesson-facts dd { margin: 2px 0 0; font-weight: 600; font-size: var(--fs-sm); }
.enroll { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.enroll__price { font-family: var(--serif); font-size: var(--fs-3xl); font-weight: 600; margin: 0; }
.pay-box { background: var(--tint); border-radius: var(--r-md); padding: 16px; font-size: var(--fs-sm); }
.pay-box__h { font-weight: 700; margin-bottom: 6px; }
.pay-box__text p:last-child { margin-bottom: 0; }

/* Status labels */
.status { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.enroll .status { font-size: var(--fs-sm); padding: 8px 14px; border-radius: var(--r-sm); text-align: center; }
.status--approved, .status--active { background: var(--green-bg); color: var(--green); }
.status--pending { background: var(--amber-bg); color: var(--amber); }
.status--rejected, .status--blocked { background: var(--red-bg); color: var(--seal); }
.status--cancelled { background: var(--tint); color: var(--muted); text-decoration: line-through; }

/* ---------- Countries ---------- */
.ctable { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.ctable__row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1.2fr; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; font-size: var(--fs-sm); }
.ctable__row:last-child { border-bottom: 0; }
a.ctable__row:hover { background: var(--paper); color: var(--ink); }
a.ctable__row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ctable__row--head { background: var(--tint); font-weight: 700; font-size: var(--fs-xs); color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.ctable__name { display: flex; gap: 14px; align-items: center; }
.ctable__name > span:last-child { display: flex; flex-direction: column; }
.ctable__name strong { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; }
.ctable__name small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.disclaimer { margin-top: 20px; }
.page-head--country .page-head__title { display: flex; align-items: center; gap: 16px; }
.kv { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); width: fit-content; max-width: 100%; }
.kv div { padding: 14px 22px; border-right: 1px solid var(--line); }
.kv div:last-child { border-right: 0; }
.kv dt { font-size: var(--fs-xs); color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 700; }
.country { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-bottom: 72px; align-items: start; }
.country__side { position: sticky; top: 96px; }
.side-h { font-size: var(--fs-md); font-weight: 700; margin: 0 0 12px; }
.side-h:not(:first-child) { margin-top: 28px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-list a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 6px 0; font-weight: 500; }

/* ---------- Exams page ---------- */
.exams { display: flex; flex-direction: column; gap: 20px; padding-bottom: 72px; }
.exam { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 48px; scroll-margin-top: 96px; }
.exam__head { grid-column: 1 / -1; }
.exam__name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-2xl); margin-bottom: 6px; }
.exam__for { color: var(--muted); max-width: 70ch; margin: 0; }
.exam__kv { margin: 0; display: grid; gap: 14px; align-content: start; }
.exam__kv dt { font-size: var(--fs-xs); color: var(--muted); }
.exam__kv dd { margin: 0; font-weight: 700; }
.exam__body h3:first-child { margin-top: 0; }
.exam__foot { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Auth ---------- */
.auth-body { background: var(--tint); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth__card { width: 100%; max-width: 480px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-paper); }
.auth__card--wide { max-width: 640px; }
.auth__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.auth__card > .brand { margin-bottom: 24px; }
.auth__title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-2xl); margin-bottom: 8px; }
.auth__alt { text-align: center; font-size: var(--fs-sm); margin: 20px 0 0; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: var(--r-sm); padding: 4px; margin: 12px 0 16px; }
.seg a { text-align: center; padding: 9px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.seg a[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(36,18,79,.12); }

/* ==========================================================================
   Panel (student / teacher / admin)
   ========================================================================== */
.panel-body { background: var(--paper); }
.panel { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.panel__side { background: var(--ink); color: rgba(255,255,255,.8); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.panel__side .brand { padding: 0 8px; }
.panel__who { display: flex; gap: 12px; align-items: center; padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.panel__who div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.panel__who strong { color: #fff; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel__who div > span { font-size: var(--fs-xs); color: rgba(255,255,255,.6); }
.panel__nav { display: flex; flex-direction: column; gap: 2px; }
.panel__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: rgba(255,255,255,.78); font-weight: 500; font-size: var(--fs-sm); }
.panel__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.panel__nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--seal); }
.panel__nav a span { flex: 1; }
.badge-count { background: var(--seal); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.panel__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; font-size: var(--fs-sm); }
.panel__foot a, .panel__foot .linklike { color: rgba(255,255,255,.75); text-decoration: none; text-align: left; }
.panel__foot a:hover, .panel__foot .linklike:hover { color: #fff; text-decoration: underline; }
.panel__foot .lang-switch { align-self: flex-start; }
.panel__main { padding: 0 40px 56px; min-width: 0; }
.panel__top { display: flex; align-items: center; gap: 16px; padding: 28px 0 24px; }
.panel__top h1 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-2xl); margin: 0; flex: 1; }
.nav-toggle--panel { margin-left: 0; display: none; }
.panel__content { display: flex; flex-direction: column; gap: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.stat__n { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.15; }
.stat__l { font-size: var(--fs-sm); color: var(--muted); }
.stat--link:hover { border-color: var(--ink); color: var(--ink); }
.stat--alert { border-color: var(--seal); box-shadow: inset 3px 0 0 var(--seal); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 20px; }
.card--narrow { max-width: 860px; }
.card--accent { border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--ink); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card__head .card__h { margin: 0; }
.card__h { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 14px; }
.card form .card__h:not(:first-of-type) { margin-top: 18px; }

.next-lesson { display: grid; grid-template-columns: 76px 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 20px; box-shadow: inset 3px 0 0 var(--seal); }
.next-lesson__date { text-align: center; line-height: 1.05; }
.next-lesson__date span { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; }
.next-lesson__date small { color: var(--muted); }
.next-lesson__k { font-size: var(--fs-sm); color: var(--seal); font-weight: 700; margin: 0 0 2px; }
.next-lesson h2 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; margin: 0 0 4px; }
.next-lesson p { margin: 0; font-size: var(--fs-sm); }

.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tr.is-dim td { opacity: .55; }
.table td.actions { white-space: nowrap; }
.table td.actions > *, .inline-actions > * { margin-left: 8px; }
.table td.actions form, .inline-actions { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.inline-actions > * { margin-left: 0; }
.wrap-text { max-width: 420px; }
.who { display: inline-flex; align-items: center; gap: 10px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.toolbar .tabs--panel { margin-bottom: 16px; }
.toolbar__search { margin-bottom: 16px; min-width: 260px; }
.filters--panel { max-width: 560px; }

.progress { height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; background: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; font-size: var(--fs-sm); }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; }
.checklist li.is-done { color: var(--muted); text-decoration: line-through; }
.checklist li.is-done::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; }

.avatar-edit { display: flex; gap: 20px; align-items: center; }
.avatar-edit .field { flex: 1; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }

.pay-list { display: flex; flex-direction: column; gap: 12px; }
.pay-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto 120px 260px; gap: 20px; align-items: center; scroll-margin-top: 24px; }
.pay-item:target { border-color: var(--seal); }
.pay-item__top { display: flex; gap: 10px; align-items: center; }
.pay-item__main p { margin: 2px 0; }
.pay-item__note { font-style: italic; font-size: var(--fs-sm); }
.pay-item__amount { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; white-space: nowrap; }
.receipt-thumb img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.pay-item__act { display: flex; flex-direction: column; gap: 8px; }
.pay-item__act input { min-height: 38px; font-size: var(--fs-sm); padding: .45em .7em; }
.btn-row { display: flex; gap: 8px; }

/* ==========================================================================
   v2 — photographic layer
   ========================================================================== */

.btn { border-radius: 999px; }
.btn--seal { box-shadow: 0 8px 20px -8px rgba(15,181,166,.7); }
.btn--paper { box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .15s, color .15s, border-color .15s;
}
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.pill--glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.28); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--tint); color: var(--seal); flex-shrink: 0; }
.spacer { height: 32px; }

/* ---------- Header over the hero (home) ---------- */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.home .site-header:not(.is-solid) .brand,
.home .site-header:not(.is-solid) .site-nav > a,
.home .site-header:not(.is-solid) .nav-login { color: #fff; }
.home .site-header:not(.is-solid) .site-nav > a:hover { border-bottom-color: rgba(255,255,255,.5); }
.home .site-header:not(.is-solid) .lang-switch { border-color: rgba(255,255,255,.35); }
.home .site-header:not(.is-solid) .lang-switch a { color: rgba(255,255,255,.8); }
.home .site-header:not(.is-solid) .lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.home .site-header:not(.is-solid) .btn--ink { background: #fff; color: var(--ink); }
.home .site-header:not(.is-solid) .nav-toggle span:not(.sr) { background: #fff; }
.site-header.is-solid { background: rgba(250,248,254,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(36,18,79,.5); }

/* ---------- Hero slider ---------- */
.hero2 { position: relative; min-height: max(680px, 100vh); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); padding: 120px 0 90px; }
.hero2__slides, .hero2__shade { position: absolute; inset: 0; }
.hero2__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.hero2__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero2__shade { background:
  linear-gradient(100deg, rgba(16,6,42,.94) 0%, rgba(16,6,42,.78) 38%, rgba(16,6,42,.35) 68%, rgba(16,6,42,.2) 100%),
  linear-gradient(0deg, rgba(16,6,42,.55) 0%, rgba(16,6,42,0) 30%); }
.hero2__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero2__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); margin-bottom: 22px; }
.hero2__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; max-width: 13ch; text-wrap: balance; }
.hero2__lead { font-size: var(--fs-lg); color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 30px; }
.finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; background: #fff; border-radius: 20px; padding: 6px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); max-width: 620px; }
.finder__f { display: flex; flex-direction: column; padding: 8px 14px 6px; border-radius: 14px; color: var(--ink); }
.finder__f:focus-within { background: var(--tint); }
.finder__f + .finder__f { border-left: 1px solid var(--line); }
.finder__f span { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.finder__f select { border: 0; padding: 2px 0; min-height: 0; background: transparent; font-weight: 600; box-shadow: none !important; cursor: pointer; }
.finder__btn { border-radius: 14px; padding: 0 26px; }
.hero2__facts { display: flex; gap: 36px; margin: 36px 0 0; }
.hero2__facts div { display: flex; flex-direction: column; }
.hero2__facts dd { margin: 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.hero2__facts dt { font-size: var(--fs-sm); color: rgba(255,255,255,.7); margin-top: 6px; }
.hero2__letters { height: 540px; }
.hero2 .letter { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero2__dots { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero2__dots button { width: 44px; height: 24px; border: 0; background: none; padding: 10px 0; cursor: pointer; }
.hero2__dots button span { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.hero2__dots button.is-active span::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill 7s linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- University marquee ---------- */
.marquee { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee__label { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding: 0 30px; display: flex; align-items: center; gap: 30px; opacity: .85; }
.marquee__list li::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); opacity: .7; margin-left: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Country cards & rail ---------- */
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 24px; scroll-padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail--sm { grid-auto-columns: 240px; }
.ccard { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; height: 420px; color: #fff; text-decoration: none; scroll-snap-align: start; background: var(--ink-2); box-shadow: var(--shadow-card); isolation: isolate; }
.ccard:hover { color: #fff; }
.ccard--sm { height: 320px; }
.ccard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.ccard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,6,42,0) 30%, rgba(16,6,42,.55) 60%, rgba(16,6,42,.94) 100%); }
.ccard:hover .ccard__img { transform: scale(1.07); }
.ccard__code { position: absolute; top: 16px; left: 16px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink); }
.ccard__code--inline { position: static; vertical-align: middle; font-family: var(--sans); font-size: 1rem; margin-right: 6px; }
.ccard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ccard__name { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.ccard__sum { font-size: var(--fs-sm); color: rgba(255,255,255,.82); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ccard--all { background: var(--seal); display: flex; }
.ccard--all::after { display: none; }
.ccard--all .ccard__body { position: static; margin-top: auto; }
.ccard--all::before { content: '→'; position: absolute; top: 22px; right: 24px; font-size: 2rem; }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 2; }
.ccard--grid { height: 340px; }
.ccard--wide { grid-column: span 2; }
.compare-h { margin-top: 72px; }
.ctable__thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }

/* ---------- Why (collage) ---------- */
.why2__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.collage { position: relative; height: 560px; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.collage__a { left: 0; top: 0; width: 72%; height: 86%; }
.collage__b { right: 0; bottom: 0; width: 52%; height: 46%; border: 6px solid var(--tint); }
.collage__badge { position: absolute; left: 6%; bottom: 3%; background: var(--white); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 14px; max-width: 250px; }
.collage__badge strong { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--seal); }
.collage__badge span { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.why2__list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 26px; }
.why2__list li { display: flex; gap: 18px; }
.why2__list h3 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; margin-bottom: 6px; }
.why2__list p { color: var(--muted); margin: 0; }
.why2__list .ico { background: var(--white); box-shadow: var(--shadow-card); }

/* ---------- Teacher cards with photos ---------- */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tcard2 { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s; }
.tcard2:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tcard2__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.tcard2__link:hover { color: var(--ink); }
.tcard2__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--tint); }
.tcard2__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tcard2:hover .tcard2__media img { transform: scale(1.05); }
.tcard2__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,6,42,0) 55%, rgba(16,6,42,.7) 100%); }
.tcard2__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: #fff; z-index: 1; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.tcard2__cover { filter: saturate(.8); }
.tcard2__uni { position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 2; color: #fff; font-size: var(--fs-sm); font-weight: 700; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tcard2__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--seal); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tcard2__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tcard2__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tcard2__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0; }
.tcard2__rate { font-size: var(--fs-sm); font-weight: 700; color: #C99A00; white-space: nowrap; }
.tcard2__rate small { color: var(--muted); font-weight: 500; }
.tcard2__rate--new { color: var(--green); font-size: var(--fs-xs); background: var(--green-bg); padding: 2px 9px; border-radius: 999px; }
.tcard2__meta { font-size: var(--fs-sm); color: var(--muted); margin: 2px 0 10px; }
.tcard2__headline { font-size: var(--fs-sm); margin-bottom: 12px; }
.tcard2__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.tcard2__price strong { font-size: var(--fs-xl); font-family: var(--serif); }
.tcard2__price { font-size: var(--fs-sm); color: var(--muted); }
.tcard2__go { font-size: var(--fs-sm); font-weight: 700; color: var(--seal); }

/* ---------- How it works (dark) ---------- */
.section--ink { background: var(--ink); color: #fff; }
.section--ink .section__title { color: #fff; }
.how2__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.steps2 { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; }
.steps2 li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps2 li:last-child { border-bottom: 0; }
.steps2__n { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.steps2 li:first-child .steps2__n { background: var(--seal); border-color: var(--seal); }
.steps2 h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.steps2 p { margin: 0; color: rgba(255,255,255,.7); font-size: var(--fs-sm); }
.how2__visual { position: relative; }
.how2__visual img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--r-lg); }
.join-mock { position: absolute; left: -36px; bottom: 40px; background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; width: 280px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.join-mock__live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--green); }
.join-mock strong { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.25; }
.join-mock__meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.join-mock .btn { align-self: flex-start; }

/* ---------- Testimonials ---------- */
.quotes .section__title { text-align: center; }
.quotes__stage { position: relative; max-width: 820px; margin: 0 auto; }
.quote { position: absolute; inset: 0; margin: 0; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote__mark { display: block; font-family: var(--serif); font-size: 6rem; line-height: .6; color: var(--seal); height: 50px; }
.quote blockquote { margin: 0 0 26px; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; font-weight: 500; text-wrap: balance; }
.quote figcaption { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote figcaption small { color: var(--muted); }
.quotes__nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.quotes__count { font-size: var(--fs-sm); color: var(--muted); min-width: 44px; text-align: center; }

/* ---------- Exam tiles ---------- */
.etiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.etile { position: relative; height: 220px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; display: flex; isolation: isolate; background: var(--ink-2); }
.etile:hover { color: #fff; }
.etile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.etile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(16,6,42,.2), rgba(16,6,42,.88)); }
.etile:hover img { transform: scale(1.06); }
.etile__body { margin-top: auto; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.etile__body strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.etile__body span { font-size: var(--fs-sm); color: rgba(255,255,255,.8); }

/* ---------- CTA band with photo ---------- */
.band2 { position: relative; color: #fff; padding: 110px 0; background: var(--ink) var(--bg) center / cover no-repeat; isolation: isolate; }
.band2::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,6,42,.92), rgba(16,6,42,.55)); }
.band2__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band2__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 22ch; line-height: 1.12; }
.band2 p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0; font-size: var(--fs-lg); }

/* ---------- Photo page heads ---------- */
.phero { position: relative; color: #fff; padding: 96px 0 110px; background: var(--ink) var(--bg) center / cover no-repeat; isolation: isolate; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,6,42,.92) 0%, rgba(16,6,42,.7) 50%, rgba(16,6,42,.35) 100%); }
.phero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 12px; }
.phero__lead { color: rgba(255,255,255,.82); font-size: var(--fs-lg); max-width: 60ch; margin: 0; }
.phero__back { display: inline-block; margin-bottom: 18px; color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.phero__back:hover { color: #fff; }
.tabs--glass a { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.tabs--glass a:hover { color: #fff; border-color: #fff; }
.tabs--glass a[aria-current="page"] { background: #fff; color: var(--ink); border-color: #fff; }
.kv--glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.kv--glass div { border-color: rgba(255,255,255,.2); }
.kv--glass dt { color: rgba(255,255,255,.7); }
.filters--float { position: relative; z-index: 3; margin-top: -42px; background: var(--white); padding: 12px; border-radius: 20px; box-shadow: var(--shadow-lift); }
.filters--float input, .filters--float select { border-color: var(--line); }

/* Header is fixed on photo pages too */
body:not(.home):not(.panel-body):not(.auth-body) .site-header { background: rgba(250,248,254,.94); backdrop-filter: blur(12px); }

/* ---------- Teacher profile cover ---------- */
.tcover { height: 320px; background: var(--ink) var(--bg) center / cover no-repeat; position: relative; isolation: isolate; }
.tcover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,6,42,.45), rgba(16,6,42,.75)); }
.tcover--short { height: 220px; }
.tcover__in { padding-top: 28px; }
.profile { padding-top: 0; }
.profile__card { margin-top: -140px; box-shadow: var(--shadow-lift); border: 0; position: sticky; z-index: 2; }
.profile__avatar { width: 140px; height: 140px; border: 5px solid #fff; box-shadow: var(--shadow-card); margin-top: -96px; font-size: 2.4rem; }
.profile__main { padding-top: 40px; }
.lesson-page { padding-top: 0; }
.lesson-page__main { background: var(--white); border-radius: var(--r-lg); padding: 32px; margin-top: -90px; box-shadow: var(--shadow-lift); position: relative; z-index: 2; }
.enroll { margin-top: -90px; z-index: 2; box-shadow: var(--shadow-lift); border: 0; }

/* ---------- Country detail ---------- */
.info-card { background: var(--white); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.info-card h2 { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; margin-bottom: 16px; }
.side-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.side-card .btn { margin-top: 8px; }

/* ---------- Exams page ---------- */
.exam { grid-template-columns: 280px 1fr 1.4fr; padding: 0; overflow: hidden; border: 0; box-shadow: var(--shadow-card); gap: 0 36px; }
.exam__img { grid-row: 1 / span 3; width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.exam__head { grid-column: 2 / -1; padding: 30px 30px 0 0; }
.exam__kv { padding-bottom: 8px; }
.exam__body { padding-right: 30px; }
.exam__foot { grid-column: 2 / -1; padding: 16px 30px 26px 0; }

/* ---------- Auth split ---------- */
.auth2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth2__art { position: relative; background: var(--ink) var(--bg) center / cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; isolation: isolate; }
.auth2__art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,6,42,.35) 0%, rgba(16,6,42,.15) 40%, rgba(16,6,42,.9) 100%); }
.auth2__quote { margin: 0; max-width: 34ch; }
.auth2__quote blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; font-weight: 500; }
.auth2__quote figcaption { color: rgba(255,255,255,.75); font-size: var(--fs-sm); }
.auth2__form { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.auth2 .auth__card { box-shadow: none; border: 0; background: transparent; padding: 0; max-width: 460px; }
.auth2 .auth__top .brand { visibility: hidden; }

/* ---------- Panels v2 ---------- */
.panel-body { background: #F5F2FB; }
.panel__side { background: linear-gradient(180deg, #24124F 0%, #140830 100%); }
.panel__nav a { border-radius: 12px; }
.panel__nav a[aria-current="page"] { background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--seal); }
.panel__who { background: rgba(255,255,255,.06); border: 0; border-radius: 14px; padding: 12px; }
.card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.welcome { position: relative; border-radius: 24px; overflow: hidden; color: #fff; padding: 36px 40px; margin-bottom: 22px; background: var(--ink) var(--bg) center / cover no-repeat; isolation: isolate; min-height: 210px; display: flex; align-items: flex-end; }
.welcome::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,6,42,.95) 0%, rgba(16,6,42,.75) 45%, rgba(16,6,42,.25) 100%); }
.welcome__date { font-size: var(--fs-sm); color: rgba(255,255,255,.7); margin-bottom: 6px; }
.welcome__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 6px; }
.welcome__sub { color: rgba(255,255,255,.82); max-width: 56ch; margin-bottom: 16px; }
.stat-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat2 { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
a.stat2:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.stat2__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.stat2__txt { display: flex; flex-direction: column; min-width: 0; }
.stat2__n { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.stat2__l { font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.stat2--blue .stat2__ico { background: #EFE9FD; color: #7239EA; }
.stat2--green .stat2__ico { background: var(--green-bg); color: var(--green); }
.stat2--amber .stat2__ico { background: var(--amber-bg); color: var(--amber); }
.stat2--seal .stat2__ico { background: var(--red-bg); color: var(--seal); }
.stat2--violet .stat2__ico { background: #FCEAF4; color: #B8327A; }
.stat2--alert::after { content: ''; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 4px rgba(15,181,166,.18); }
.next-lesson { border: 0; border-radius: 20px; box-shadow: var(--shadow-card); background: linear-gradient(90deg, #fff 0%, #fff 60%, #E8FAF7 100%); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-grid .card { margin: 0; }
.mini-stats { display: grid; gap: 16px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 220px; padding-top: 10px; }
.bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars__bar { width: 100%; max-width: 54px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #7239EA, var(--ink)); min-height: 4px; }
.bars__col:last-child .bars__bar { background: linear-gradient(180deg, #0E9C90, var(--seal)); }
.bars__v { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.bars__l { font-size: var(--fs-xs); color: var(--muted); text-transform: capitalize; }
.pay-item { border: 0; border-radius: 18px; box-shadow: var(--shadow-card); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.photo-field { display: flex; flex-direction: column; gap: 6px; }
.photo-field img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; background: var(--tint); }
.photo-field input { min-height: 38px; font-size: var(--fs-sm); padding: .45em .7em; }
.img-edit { display: flex; gap: 20px; align-items: center; }
.img-edit img { width: 240px; height: 150px; object-fit: cover; border-radius: 14px; background: var(--tint); flex-shrink: 0; }
.img-edit__f { display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Lesson rows and inputs: softer */
.lrow { border: 0; box-shadow: var(--shadow-card); border-radius: 16px; transition: transform .2s; }
.lrow:hover { transform: translateX(4px); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea { border-radius: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .exam-strip { grid-template-columns: repeat(3, 1fr); }
  .pay-item { grid-template-columns: 1fr auto; }
  .pay-item__receipt, .pay-item__act { grid-column: span 1; }
  .crow { grid-template-columns: 44px 160px 1fr auto; }
}

@media (max-width: 920px) {
  .site-header__in { gap: 12px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--seal); }
  .site-nav__end { margin: 16px 0 0; flex-wrap: wrap; }

  .hero { padding: 40px 0 56px; }
  .hero__in { grid-template-columns: 1fr; gap: 24px; }
  .hero__letters { height: 400px; max-width: 520px; }
  .why__grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps__item::after { display: none; }
  .band__in { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .profile__in, .lesson-page__in, .country { grid-template-columns: 1fr; gap: 32px; }
  .profile__card, .enroll, .country__side { position: static; }
  .lesson-facts { grid-template-columns: 1fr 1fr; }
  .lesson-facts div:nth-child(2) { border-right: 0; }
  .lesson-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .exam { grid-template-columns: 1fr; }
  .ctable__row { grid-template-columns: 1fr 1fr; }
  .ctable__row > [role=cell]:first-child { grid-column: 1 / -1; }
  .ctable__row > [role=cell]:not(:first-child)::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--muted); }
  .ctable__row--head { display: none; }

  /* Panel */
  .panel { grid-template-columns: 1fr; }
  .panel__side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .panel__side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(36,18,79,.4); }
  .nav-toggle--panel { display: block; }
  .panel__main { padding: 0 20px 48px; }
  .pay-item { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section__title { font-size: var(--fs-2xl); }
  .section__head { flex-direction: column; gap: 6px; }
  .hero__letters { height: 360px; }
  .letter { padding: 22px 22px 20px; }
  .hero__letters .letter--0 { left: 10%; top: 54px; }
  .hero__letters .letter--1 { left: 0; }
  .hero__letters .letter--2 { left: 14%; }
  .hero__letters .letter { width: 80%; }
  .hero__facts { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .exam-strip { grid-template-columns: 1fr 1fr; }
  .crow { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .crow__sum { display: none; }
  .lrow { grid-template-columns: 52px 1fr; gap: 14px; padding: 14px; }
  .lrow__side { grid-column: 2; text-align: left; flex-direction: row; gap: 12px; align-items: baseline; }
  .lrow__date { padding-right: 12px; }
  .tgrid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__base { flex-direction: column; }
  .auth__card { padding: 24px; }
  .page-head { padding: 36px 0 24px; }
  .page-head__title { font-size: var(--fs-2xl); }
  .kv { width: 100%; }
  .kv div { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .kv div:last-child { border-bottom: 0; }
  .exam { padding: 22px; }
  .lesson-page__title { font-size: var(--fs-2xl); }
  .next-lesson { grid-template-columns: 56px 1fr; }
  .next-lesson__act { grid-column: 1 / -1; }

  /* Tables become stacked cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 0 !important; text-align: left; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--muted); }
  .table td.ta-r, .table td.actions { text-align: left; white-space: normal; padding-top: 10px !important; }
  .table td.actions form, .inline-actions { justify-content: flex-start; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .panel__side, .btn { display: none !important; }
}

/* ---------- v2 responsive ---------- */
@media (max-width: 1080px) {
  .etiles { grid-template-columns: repeat(2, 1fr); }
  .exam { grid-template-columns: 220px 1fr; }
  .exam__body { grid-column: 2; }
  .dash-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .home .site-header:not(.is-solid) .site-nav.is-open > a, .home .site-header:not(.is-solid) .site-nav.is-open .nav-login { color: var(--ink); }
  .home .site-header:not(.is-solid) .site-nav.is-open .lang-switch a { color: var(--muted); }
  .home .site-header:not(.is-solid) .site-nav.is-open .lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
  .home .site-header:not(.is-solid) .site-nav.is-open .btn--ink { background: var(--ink); color: #fff; }
  .hero2 { padding: 110px 0 80px; min-height: 0; }
  .hero2__in { grid-template-columns: 1fr; }
  .hero2__letters { display: none; }
  .why2__in, .how2__in { grid-template-columns: 1fr; gap: 40px; }
  .collage { height: 420px; }
  .how2__visual img { height: 380px; }
  .join-mock { left: 16px; bottom: 16px; }
  .band2__in { flex-direction: column; align-items: flex-start; }
  .cgrid { grid-template-columns: 1fr 1fr; }
  .phero { padding: 72px 0 90px; }
  .auth2 { grid-template-columns: 1fr; }
  .auth2__art { display: none; }
  .auth2 .auth__top .brand { visibility: visible; }
  .lesson-page__main, .enroll { margin-top: -60px; }
  .enroll { margin-top: 0; }
  .profile__card { margin-top: -100px; }
  .mini-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .finder { grid-template-columns: 1fr; border-radius: 18px; }
  .finder__f + .finder__f { border-left: 0; border-top: 1px solid var(--line); }
  .finder__btn { padding: 14px; }
  .hero2__facts { gap: 20px; flex-wrap: wrap; }
  .hero2__facts dd { font-size: 1.7rem; }
  .rail { grid-auto-columns: 78vw; padding: 6px 16px 20px; scroll-padding: 0 16px; }
  .rail--sm { grid-auto-columns: 62vw; }
  .ccard { height: 380px; }
  .carousel-nav { display: none; }
  .cgrid { grid-template-columns: 1fr; margin-top: -40px; }
  .ccard--wide { grid-column: auto; }
  .ccard--grid { height: 300px; }
  .collage { height: 340px; }
  .collage__badge { padding: 12px 14px; }
  .collage__badge strong { font-size: 1.8rem; }
  .etiles { grid-template-columns: 1fr; }
  .etile { height: 180px; }
  .quote blockquote { font-size: 1.25rem; }
  .exam { grid-template-columns: 1fr; }
  .exam__img { grid-row: auto; height: 180px; }
  .exam__head, .exam__kv, .exam__body, .exam__foot { grid-column: 1; padding-left: 22px; padding-right: 22px; }
  .exam__kv { padding-top: 12px; }
  .welcome { padding: 26px 22px; border-radius: 18px; }
  .lesson-page__main { padding: 22px; }
  .tcover { height: 220px; }
  .profile__avatar { width: 112px; height: 112px; margin-top: -76px; }
  .img-edit { flex-direction: column; align-items: stretch; }
  .img-edit img { width: 100%; }
  .bars { gap: 6px; }
  .bars__v { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2__slide.is-active { animation: none; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* v2 fixes */
.section__head .section__lead { margin: 8px 0 0; }
.quote figcaption span { display: inline; }
.quote figcaption > span { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat2 { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .stat2__ico { width: 42px; height: 42px; border-radius: 12px; }
  .stat2__n { font-size: 1.35rem; white-space: normal; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   v3 — motion & wow layer
   ========================================================================== */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

/* Film grain on dark photographic sections — gives a print-like finish */
.hero2::after, .section--ink::after, .band2::after, .globe-sec::after, .phero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; z-index: 1;
}
.section--ink, .globe-sec { position: relative; overflow: hidden; }
.section--ink > .wrap, .globe-sec > .wrap, .band2 > .wrap, .phero > .wrap { position: relative; z-index: 2; }
.how2 { background:
  radial-gradient(600px 400px at 85% 10%, rgba(15,181,166,.28), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(114,57,234,.22), transparent 60%), var(--ink); }

/* Hero headline: words rise in sequence */
.hero2__title .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero2__title .w { animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .07s); }
  .hero2__kicker { animation: fadeUp .7s .05s both; }
  .hero2__lead { animation: fadeUp .8s .55s both; }
  .finder { animation: fadeUp .8s .7s both; }
  .hero2__facts { animation: fadeUp .8s .85s both; }
  @keyframes wordUp { from { opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Hero letters: shuffle deck + parallax */
.hero2__letters { transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px), 0); transition: transform .25s ease-out; cursor: pointer; }
.hero2__letters .letter { transition: top .8s cubic-bezier(.2,.8,.2,1), left .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .3s; animation: none; }
.hero2__letters .letter--0 { top: 190px; left: 20%; transform: rotate(1.5deg); z-index: 3; }
.hero2__letters .letter--1 { top: 40px; left: 0; transform: rotate(-7deg); z-index: 2; }
.hero2__letters .letter--2 { top: 0; left: 34%; transform: rotate(6deg); z-index: 1; }
.hero2__letters .letter--0:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 40px 70px -24px rgba(0,0,0,.7); }
@media (prefers-reduced-motion: no-preference) {
  .hero2__letters.is-dealing .letter { animation: deal .9s cubic-bezier(.2,.75,.25,1) both; }
  .hero2__letters.is-dealing .letter--2 { animation-delay: .5s; }
  .hero2__letters.is-dealing .letter--1 { animation-delay: .65s; }
  .hero2__letters.is-dealing .letter--0 { animation-delay: .8s; }
}
.hero2__hint { position: absolute; right: 8%; bottom: -6px; font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

/* Scroll reveal (only when JS is running; content is visible without it) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > .wrap { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.is-in > .wrap { opacity: 1; transform: none; }
  .js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }
  .js [data-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
  .js [data-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
  .js [data-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
  .js [data-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }
  .js [data-stagger].is-in > *:nth-child(6) { transition-delay: .4s; }
  .js [data-stagger].is-in > *:nth-child(n+7) { transition-delay: .46s; }
}

/* ---------- Globe section ---------- */
.globe-sec { background:
  radial-gradient(800px 500px at 25% 50%, rgba(114,57,234,.25), transparent 65%),
  radial-gradient(500px 400px at 90% 0%, rgba(15,181,166,.22), transparent 60%), #10062A;
  color: #fff; padding: 100px 0; }
.globe-sec__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.globe-sec__viz { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; margin: 0 auto; }
.globe-canvas { width: 100%; height: 100%; display: block; cursor: grab; contain: layout paint size; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.globe-canvas.is-ready { opacity: 1; }
.globe-canvas:active { cursor: grabbing; }
.globe-sec__viz::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(154,120,255,.18), transparent 65%); filter: blur(20px); z-index: -1; }
.globe-sec__home { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: var(--fs-sm); color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; }
.dot--seal { background: #FF5C93; box-shadow: 0 0 0 4px rgba(255,92,147,.25); }
.globe-sec .section__title { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
.globe-sec__lead { color: rgba(255,255,255,.75); font-size: var(--fs-lg); max-width: 46ch; }
.dest-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.dest { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dest:hover, .dest:focus-visible, .dest.is-active { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); transform: translateX(6px); }
.dest__pin { width: 10px; height: 10px; border-radius: 50%; background: #FF5C93; box-shadow: 0 0 0 4px rgba(255,92,147,.2); }
.dest.is-active .dest__pin { animation: ping 1.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,92,147,.6); } 100% { box-shadow: 0 0 0 12px rgba(255,92,147,0); } }
.dest__txt { display: flex; flex-direction: column; min-width: 0; }
.dest__txt strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest__txt small { color: rgba(255,255,255,.6); }
.dest__n { font-size: var(--fs-xs); font-weight: 700; color: rgba(255,255,255,.75); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq__in > div:first-child { position: sticky; top: 110px; }
.faq__in .btn { margin-top: 8px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: var(--fs-lg); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); position: relative; flex-shrink: 0; transition: transform .3s, background .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 1px; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq__item[open] .faq__icon { background: var(--seal); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq__a p { margin: 0; max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: fadeUp .4s both; }
}

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s infinite; }
  @keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
}

/* Buttons: subtle sheen on primary actions */
.btn--seal { position: relative; overflow: hidden; }
.btn--seal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn--seal:hover::after { transform: translateX(120%); }

/* Teacher card: glow that follows the cursor */
.tcard2 { position: relative; }
.tcard2::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 60%); }
.tcard2:hover::before { opacity: 1; }

@media (max-width: 920px) {
  .globe-sec { padding: 72px 0; }
  .globe-sec__in, .faq__in { grid-template-columns: 1fr; gap: 32px; }
  .globe-sec__viz { max-width: 440px; }
  .faq__in > div:first-child { position: static; }
}
@media (max-width: 640px) {
  .faq__item summary { padding: 16px 18px; font-size: var(--fs-md); }
  .faq__a { padding: 0 18px 18px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   v4 — "From night to sunrise" colour layer
   Night sky (indigo-plum) = the dream; sunrise (coral → amber) = getting in.
   ========================================================================== */
:root {
  --ink: #24124F;
  --ink-2: #5B2BD6;
  --muted: #645C82;
  --paper: #FBFAFF;
  --tint: #F1EDFF;
  --line: #E7E1F6;
  --line-2: #D3C9EE;
  --seal: #0FB5A6;
  --seal-dark: #0A8F84;
  --coral: #14C4B2;
  --sun: #FFC93C;
  --sky: #7239EA;
  --sky-dark: #5B24D1;
  --mint: #22C55E;
  --violet: #E64A9C;
  --pink: #14C4B2;
  --night: #1B0B3F;
  --peach-bg: #EAFBF8;
  --sky-bg: #F1EBFF;
  --mint-bg: #EAFBEF;
  --sun-bg: #FFF9E0;
  --violet-bg: #FDEEF6;
  --grad-sun: linear-gradient(120deg, #14C4B2 0%, #5BD99A 50%, #FFC93C 100%);
  --grad-night: linear-gradient(140deg, #1B0B3F 0%, #2E1767 55%, #4A23A8 100%);
  --green: #16A34A;
  --green-bg: #EAFBEF;
  --shadow-card: 0 1px 2px rgba(36,18,79,.05), 0 12px 32px -14px rgba(91,43,214,.28);
  --shadow-lift: 0 2px 4px rgba(36,18,79,.06), 0 28px 56px -22px rgba(91,43,214,.42);
}
body { background: var(--paper); }
::selection { background: #C9F3EC; color: var(--ink); }
a:hover { color: var(--coral); }
:focus-visible { outline-color: var(--sky); }

/* Buttons */
.btn--ink { background: var(--sky); color: #fff; box-shadow: 0 10px 22px -12px rgba(114,57,234,.8); }
.btn--ink:hover { background: var(--sky-dark); color: #fff; }
.btn--seal { background: var(--grad-sun); box-shadow: 0 12px 26px -10px rgba(20,196,178,.75); }
.btn--seal:hover { background: var(--grad-sun); filter: saturate(1.15) brightness(1.03); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn--ok { background: var(--mint); }
.round-btn:hover { background: var(--grad-sun); border-color: transparent; }

/* Section titles get a short sunrise underline */
.section__title { position: relative; }
.section__title::after { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--grad-sun); margin-top: 14px; }
.section__head .section__title::after, .quotes .section__title::after { margin-top: 12px; }
.quotes .section__title::after { margin-left: auto; margin-right: auto; }
.section--ink .section__title::after, .globe-sec .section__title::after { background: linear-gradient(90deg, #FFC93C, #14C4B2); }

/* Pastel section washes instead of grey tint */
.section--tint { background: linear-gradient(180deg, #F4F0FF 0%, #F0FBF9 100%); }
.why2 { background:
  radial-gradient(500px 360px at 10% 20%, rgba(255,201,60,.18), transparent 70%),
  radial-gradient(600px 420px at 95% 80%, rgba(114,57,234,.14), transparent 70%), #F6FDFC; }
.quotes { background:
  radial-gradient(520px 340px at 15% 30%, rgba(230,74,156,.12), transparent 70%),
  radial-gradient(520px 340px at 85% 70%, rgba(20,196,178,.12), transparent 70%), #F8F6FF; }
.faq { background: linear-gradient(180deg, #F4F0FF 0%, #F5F1FF 100%); }

/* ---------- Header ---------- */
.site-header.is-solid, body:not(.home):not(.panel-body):not(.auth-body) .site-header { background: rgba(251,250,255,.92); }
.site-nav > a[aria-current="page"] { border-bottom-color: var(--coral); }
.home .site-header:not(.is-solid) .btn--ink { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- Hero: night sky warming into sunrise ---------- */
.hero2 { background: var(--night); }
.hero2__shade { background:
  radial-gradient(900px 600px at 92% 90%, rgba(91,217,154,.42), transparent 60%),
  radial-gradient(700px 500px at 70% 10%, rgba(20,196,178,.22), transparent 60%),
  linear-gradient(100deg, rgba(27,11,63,.95) 0%, rgba(40,20,90,.82) 38%, rgba(91,43,214,.35) 70%, rgba(91,43,214,.1) 100%); }
.hero2__kicker { background: rgba(255,255,255,.12); border-color: rgba(255,227,138,.45); }
.hero2__kicker .dot { background: var(--sun); box-shadow: 0 0 0 4px rgba(255,201,60,.3); }
.hero2__facts div:nth-child(1) dd { color: #FFE38A; }
.hero2__facts div:nth-child(2) dd { color: #7FE3D6; }
.hero2__facts div:nth-child(3) dd { color: #B9A2FF; }
.hero2__facts div:nth-child(4) dd { color: #86EFAC; }
.finder { box-shadow: 0 30px 70px -24px rgba(20,196,178,.55), 0 0 0 1px rgba(255,255,255,.4); }
.hero2__dots button.is-active span::after { background: var(--grad-sun); }

/* ---------- Marquee ---------- */
.marquee { background: #fff; }
.marquee__list li:nth-child(4n+1)::after { background: var(--coral); }
.marquee__list li:nth-child(4n+2)::after { background: var(--sky); }
.marquee__list li:nth-child(4n+3)::after { background: var(--sun); }
.marquee__list li:nth-child(4n+4)::after { background: var(--mint); }
.marquee__list li::after { opacity: 1; }

/* ---------- Country cards ---------- */
.ccard::after { background: linear-gradient(180deg, rgba(27,11,63,0) 30%, rgba(40,20,90,.55) 62%, rgba(27,11,63,.95) 100%); }
.ccard__code { background: #fff; color: var(--ink); }
.rail > .ccard:nth-child(5n+1) .ccard__code, .cgrid > .ccard:nth-child(5n+1) .ccard__code { background: #FFE38A; }
.rail > .ccard:nth-child(5n+2) .ccard__code, .cgrid > .ccard:nth-child(5n+2) .ccard__code { background: #A8EEE5; }
.rail > .ccard:nth-child(5n+3) .ccard__code, .cgrid > .ccard:nth-child(5n+3) .ccard__code { background: #CDBDFF; }
.rail > .ccard:nth-child(5n+4) .ccard__code, .cgrid > .ccard:nth-child(5n+4) .ccard__code { background: #BBF7D0; }
.rail > .ccard:nth-child(5n+5) .ccard__code, .cgrid > .ccard:nth-child(5n+5) .ccard__code { background: #F9C6E0; }
.ccard--all { background: var(--grad-sun); }

/* ---------- Why (icons in colour) ---------- */
.why2__list li:nth-child(1) .ico { background: var(--peach-bg); color: var(--coral); }
.why2__list li:nth-child(2) .ico { background: var(--sky-bg); color: var(--sky); }
.why2__list li:nth-child(3) .ico { background: var(--mint-bg); color: var(--mint); }
.why2__list .ico { box-shadow: none; }
.collage__badge strong { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.collage__b { border-color: #F6FDFC; }

/* ---------- Teacher cards ---------- */
.tcard2__media::after { background: linear-gradient(180deg, rgba(27,11,63,0) 50%, rgba(40,20,90,.75) 100%); }
.tcard2__badge { background: var(--grad-sun); }
.tcard2__price strong { color: var(--ink); }
.tcard2__go { color: var(--sky); }
.tcard2__rate { color: #D9A000; }
.tcard2 { border-top: 0; }
.tgrid > .tcard2:nth-child(4n+1) .tcard2__body { box-shadow: inset 0 3px 0 var(--coral); }
.tgrid > .tcard2:nth-child(4n+2) .tcard2__body { box-shadow: inset 0 3px 0 var(--sky); }
.tgrid > .tcard2:nth-child(4n+3) .tcard2__body { box-shadow: inset 0 3px 0 var(--sun); }
.tgrid > .tcard2:nth-child(4n+4) .tcard2__body { box-shadow: inset 0 3px 0 var(--mint); }
.chip--score { background: var(--mint-bg); color: #15803D; }
.chip--exam { background: var(--violet-bg); color: #B8327A; }
.chip--seal { background: var(--peach-bg); color: var(--seal-dark); }
.stars .on { color: #FFC93C; }

/* ---------- How it works: night sky ---------- */
.how2, .section--ink { background:
  radial-gradient(640px 420px at 88% 12%, rgba(91,217,154,.35), transparent 60%),
  radial-gradient(700px 500px at 5% 100%, rgba(114,57,234,.35), transparent 60%),
  var(--grad-night); }
.steps2 li:nth-child(1) .steps2__n { background: var(--coral); border-color: var(--coral); }
.steps2 li:nth-child(2) .steps2__n { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.steps2 li:nth-child(3) .steps2__n { background: var(--sky); border-color: var(--sky); }
.steps2 li:nth-child(4) .steps2__n { background: var(--mint); border-color: var(--mint); }
.join-mock__live { color: var(--mint); }

/* ---------- Lesson rows ---------- */
.lrow__date { border-right: 0; padding: 8px 0; border-radius: 14px; background: var(--sky-bg); color: var(--sky-dark); }
.llist > .lrow:nth-child(4n+2) .lrow__date { background: var(--peach-bg); color: var(--seal-dark); }
.llist > .lrow:nth-child(4n+3) .lrow__date { background: var(--mint-bg); color: #15803D; }
.llist > .lrow:nth-child(4n+4) .lrow__date { background: var(--sun-bg); color: #8F6600; }
.lrow__m { color: inherit; opacity: .8; }
.lrow__price { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote__mark { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Exam tiles: each exam its own colour ---------- */
.etile::after { background: linear-gradient(200deg, rgba(27,11,63,.1), rgba(27,11,63,.85)); }
.etiles > .etile:nth-child(1)::after { background: linear-gradient(200deg, rgba(15,181,166,.25), rgba(10,120,110,.88)); }
.etiles > .etile:nth-child(2)::after { background: linear-gradient(200deg, rgba(114,57,234,.25), rgba(20,40,140,.9)); }
.etiles > .etile:nth-child(3)::after { background: linear-gradient(200deg, rgba(230,74,156,.25), rgba(60,25,140,.9)); }
.etiles > .etile:nth-child(4)::after { background: linear-gradient(200deg, rgba(34,197,94,.25), rgba(21,128,61,.9)); }
.etiles > .etile:nth-child(5)::after { background: linear-gradient(200deg, rgba(255,201,60,.3), rgba(140,100,0,.9)); }
.etiles > .etile:nth-child(6)::after { background: linear-gradient(200deg, rgba(20,196,178,.3), rgba(10,120,110,.9)); }

/* ---------- FAQ ---------- */
.faq__item[open] .faq__icon { background: var(--grad-sun); }
.faq__item[open] summary { color: var(--ink); }
.faq__item[open] { box-shadow: 0 0 0 2px #C9F3EC, var(--shadow-card); }

/* ---------- CTA band & photo heads ---------- */
.band2::before { background: linear-gradient(100deg, rgba(27,11,63,.92) 0%, rgba(91,43,214,.75) 45%, rgba(20,196,178,.55) 100%); }
.phero::before { background:
  radial-gradient(700px 400px at 95% 100%, rgba(91,217,154,.4), transparent 60%),
  linear-gradient(100deg, rgba(27,11,63,.93) 0%, rgba(46,23,103,.75) 50%, rgba(91,43,214,.3) 100%); }
.tcover::before { background: linear-gradient(180deg, rgba(46,23,103,.35), rgba(27,11,63,.8)); }
.welcome::before { background:
  radial-gradient(600px 300px at 100% 100%, rgba(91,217,154,.45), transparent 60%),
  linear-gradient(100deg, rgba(27,11,63,.95) 0%, rgba(46,23,103,.8) 45%, rgba(91,43,214,.3) 100%); }
.auth2__art::before { background: linear-gradient(180deg, rgba(46,23,103,.3) 0%, rgba(46,23,103,.1) 40%, rgba(27,11,63,.92) 100%), radial-gradient(600px 400px at 0% 100%, rgba(20,196,178,.4), transparent 60%); }

/* ---------- Globe ---------- */
.globe-sec { background:
  radial-gradient(800px 520px at 25% 50%, rgba(114,57,234,.32), transparent 65%),
  radial-gradient(520px 420px at 92% 0%, rgba(20,196,178,.3), transparent 60%),
  radial-gradient(520px 420px at 80% 100%, rgba(255,201,60,.22), transparent 60%), var(--night); }
.dest__pin, .dot--seal { background: var(--sun); box-shadow: 0 0 0 4px rgba(255,201,60,.25); }
.dest.is-active .dest__pin { animation-name: pingSun; }
@keyframes pingSun { 0% { box-shadow: 0 0 0 0 rgba(255,201,60,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,201,60,0); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); position: relative; border-top: 0; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #14C4B2, #5BD99A, #FFC93C, #22C55E, #7239EA, #E64A9C); }

/* ---------- Panels ---------- */
.panel-body { background: #F6F4FD; }
.panel__side { background: linear-gradient(180deg, #24124F 0%, #2A155E 100%); }
.panel__nav a[aria-current="page"] { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--sun); }
.badge-count { background: var(--grad-sun); }
.stat2--blue .stat2__ico { background: var(--sky-bg); color: var(--sky); }
.stat2--green .stat2__ico { background: var(--mint-bg); color: var(--mint); }
.stat2--amber .stat2__ico { background: var(--sun-bg); color: #B88400; }
.stat2--seal .stat2__ico { background: var(--peach-bg); color: var(--coral); }
.stat2--violet .stat2__ico { background: var(--violet-bg); color: var(--violet); }
.stat2--alert::after { background: var(--coral); }
.next-lesson { background: linear-gradient(90deg, #fff 0%, #fff 55%, #EAFBF8 100%); box-shadow: inset 4px 0 0 var(--coral), var(--shadow-card); }
.next-lesson__k { color: var(--coral); }
.bars__bar { background: linear-gradient(180deg, #9A78FF, var(--sky)); }
.bars__col:last-child .bars__bar { background: var(--grad-sun); }
.progress span { background: linear-gradient(90deg, var(--mint), var(--sky)); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); }
.tabs--panel a[aria-current="page"] { background: var(--sky); border-color: var(--sky); }
.letter__seal { background: radial-gradient(circle at 35% 30%, #5ADBCB, #0FB5A6 55%, #0A8F84); box-shadow: inset 0 0 0 4px rgba(255,255,255,.14), 0 4px 10px rgba(15,181,166,.4); }
.letter__score { color: var(--mint); }

/* ==========================================================================
   Quizzes
   ========================================================================== */
.block-h { font-size: var(--fs-lg); font-weight: 700; margin: 8px 0 14px; }
.pc--good { color: var(--mint); } .pc--mid { color: #B88400; } .pc--low { color: var(--coral); } .pc--none { color: var(--muted); }
.pc-bg--good { background: var(--mint); } .pc-bg--mid { background: var(--sun); } .pc-bg--low { background: var(--coral); } .pc-bg--none { background: var(--line-2); }
.score-pill { display: inline-block; color: #fff; font-weight: 800; font-size: var(--fs-xs); padding: 3px 10px; border-radius: 999px; }
.score-pill.pc-bg--mid { color: #5A3A00; }
.ok-txt { color: var(--mint); font-weight: 700; } .bad-txt { color: var(--coral); font-weight: 700; }
.btn-link { color: var(--muted); text-align: center; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--glass:hover { background: rgba(255,255,255,.24); color: #fff; }

/* Quiz cards */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.qcard { background: var(--white); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.qcard::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad-sun); }
.qcard--draft::before { background: var(--line-2); }
.qgrid > .qcard--student:nth-child(4n+2)::before { background: linear-gradient(90deg, #7239EA, #E64A9C); }
.qgrid > .qcard--student:nth-child(4n+3)::before { background: linear-gradient(90deg, #22C55E, #7239EA); }
.qgrid > .qcard--student:nth-child(4n+4)::before { background: linear-gradient(90deg, #E64A9C, #14C4B2); }
.qcard__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qcard__access { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }
.qcard__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 4px 0 0; line-height: 1.25; }
.qcard__title a { text-decoration: none; }
.qcard__title a:hover { color: var(--sky); }
.qcard__desc { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.qcard__meta { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.qcard__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--tint); border-radius: 14px; padding: 12px; }
.qcard__nums div { display: flex; flex-direction: column; align-items: center; }
.qcard__nums strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.qcard__nums span { font-size: var(--fs-xs); color: var(--muted); }
.qcard__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.qcard__actions .inline-actions { margin-left: auto; gap: 10px; }

.empty-hero { text-align: center; padding: 48px 24px; }
.empty-hero h2 { font-family: var(--serif); font-size: var(--fs-xl); }
.empty-hero p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.empty-hero__ico { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--grad-sun); box-shadow: 0 16px 34px -14px rgba(20,196,178,.7); }

/* ---------- Editor ---------- */
.qe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.qe-side { position: sticky; top: 20px; }
.qe-settings .field { margin-bottom: 4px; }
.qe-settings { display: flex; flex-direction: column; gap: 12px; }
.qe-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.qe-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qe-summary div { background: var(--tint); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.qe-summary strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.qe-summary span { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; margin-top: 6px; transition: border-color .15s, background .15s; }
.radio-card input { margin-top: 4px; accent-color: var(--sky); }
.radio-card span { display: flex; flex-direction: column; font-size: var(--fs-sm); line-height: 1.35; }
.radio-card small { color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--sky); background: var(--sky-bg); }
.switch { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); position: relative; flex-shrink: 0; transition: background .2s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--mint); }
.switch input:checked + .switch__ui::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--sky); outline-offset: 2px; }

.qb { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.qb-empty { text-align: center; color: var(--muted); }
.qb-q { margin: 0; padding: 18px 20px 16px; border-left: 4px solid var(--sky); }
.qb-q--multiple { border-left-color: var(--violet); }
.qb-q--truefalse { border-left-color: var(--mint); }
.qb-q--text { border-left-color: var(--sun); }
.qb-q__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qb-q__num { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); flex-shrink: 0; }
.qb-q__type { width: auto; min-height: 36px; padding: .35em 2em .35em .7em; font-size: var(--fs-sm); font-weight: 600; }
.qb-q__ptswrap { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.qb-q__pts { width: 64px; min-height: 36px; padding: .35em .5em; text-align: center; }
.qb-q__tools { margin-left: auto; display: flex; gap: 4px; }
.qb-icon { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }
.qb-icon:hover { color: var(--ink); border-color: var(--line-2); background: var(--tint); }
.qb-icon--danger:hover { color: var(--coral); border-color: #C6F4EE; background: var(--peach-bg); }
.qb-q__body { font-size: var(--fs-md); font-weight: 600; margin-bottom: 10px; }
.qb-hint { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 8px; }
.qb-opts { display: flex; flex-direction: column; gap: 8px; }
.qb-opt { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); transition: border-color .15s, background .15s; }
.qb-opt.is-correct { border-color: #BBF7D0; background: var(--mint-bg); }
.qb-opt__mark { display: flex; align-items: center; gap: 8px; cursor: pointer; padding-left: 4px; }
.qb-opt__mark input { width: 18px; height: 18px; accent-color: var(--mint); margin: 0; }
.qb-opt__letter { width: 26px; height: 26px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; color: var(--muted); flex-shrink: 0; }
.qb-opt.is-correct .qb-opt__letter { background: var(--mint); color: #fff; }
.qb-opt__letter--ok { background: var(--mint); color: #fff; margin-left: 4px; }
.qb-opt__txt { border: 0 !important; background: transparent !important; min-height: 38px; padding: .4em .2em !important; box-shadow: none !important; flex: 1; min-width: 0; }
.qb-addopt { margin-top: 8px; background: none; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 8px 14px; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--sky); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.qb-addopt:hover { border-color: var(--sky); background: var(--sky-bg); }
.qb-tf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qb-tf .qb-hint { margin: 0 6px 0 0; }
.qb-tf__btn { min-width: 110px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.qb-tf__btn--true.is-on { background: var(--mint); border-color: var(--mint); color: #fff; }
.qb-tf__btn--false.is-on { background: var(--coral); border-color: var(--coral); color: #fff; }
.qb-expl { margin-top: 12px; }
.qb-expl summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.qb-expl textarea { margin-top: 8px; font-size: var(--fs-sm); }
.qb-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px dashed var(--line-2); box-shadow: none; background: transparent; }
.qb-add__label { font-weight: 700; font-size: var(--fs-sm); }
.qb-add__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-type { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; transition: transform .15s; }
.qb-type:hover { transform: translateY(-2px); }
.qb-type--single { background: var(--sky-bg); color: var(--sky-dark); }
.qb-type--multiple { background: var(--violet-bg); color: #B8327A; }
.qb-type--truefalse { background: var(--mint-bg); color: #15803D; }
.qb-type--text { background: var(--sun-bg); color: #8F6600; }
.qpreview { margin: 0; padding-left: 1.2em; display: grid; gap: 16px; }
.qpreview__head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.qpreview__body { font-weight: 600; margin-bottom: 6px; }
.qpreview__opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: var(--fs-sm); }
.qpreview__opts li { padding: 4px 10px; border-radius: 8px; background: var(--tint); }
.qpreview__opts li.is-correct { background: var(--mint-bg); color: #15803D; font-weight: 700; }

/* ---------- Stats ---------- */
.qs-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 18px; }
.dash-grid--even { grid-template-columns: 1fr 1fr; }
.hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; align-items: end; height: 190px; }
.hist__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hist__bar { width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7FE3D6, var(--coral)); }
.hist__col.is-pass .hist__bar { background: linear-gradient(180deg, #86EFAC, var(--mint)); }
.hist__v { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); min-height: 1em; }
.hist__l { font-size: .7rem; color: var(--muted); }
.hist__legend { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--fail { background: var(--coral); } .lg--pass { background: var(--mint); margin-left: 10px; }
.spark-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 170px; }
.spark-bars span { background: linear-gradient(180deg, #B9A2FF, var(--sky)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.spark-bars span:last-child { background: var(--grad-sun); }
.spark-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.qdiff { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.qdiff__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qdiff__row:last-child { border-bottom: 0; }
.qdiff__n { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.qdiff__q { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; }
.qdiff__wrong { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.qdiff__wrong b { color: var(--coral); }
.qdiff__pct { font-family: var(--serif); font-size: 1.35rem; text-align: right; }
.meter { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: inherit; }

/* Ring */
.ring { --p: 0; --c: var(--mint); width: 168px; height: 168px; border-radius: 50%; flex-shrink: 0; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--night); }
.ring__n { position: relative; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: #fff; }
.pc-ring--good { --c: #4ADE80; } .pc-ring--mid { --c: var(--sun); } .pc-ring--low { --c: #0FB5A6; }
.ring--sm { width: 92px; height: 92px; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--tint) 0); }
.ring--sm::before { inset: 9px; background: var(--white); }
.ring--sm .ring__n { font-size: 1.3rem; color: var(--ink); }
.attempt-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.attempt-head__name { font-family: var(--serif); font-size: var(--fs-xl); margin: 2px 0 4px; }
.attempt-head p { margin: 0; }
.attempt-tabs { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.attempt-tabs a { font-size: var(--fs-xs); font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--tint); text-decoration: none; }
.attempt-tabs a[aria-current="page"] { background: var(--sky); color: #fff; }

/* Review */
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rv { border-radius: 16px; padding: 16px 18px; border: 1.5px solid var(--line); background: var(--white); }
.rv--ok { border-color: #BBF7D0; background: linear-gradient(180deg, #F4FDF6, #fff 60%); }
.rv--bad { border-color: #C6F4EE; background: linear-gradient(180deg, #F0FCFA, #fff 60%); }
.rv__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv__n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); background: var(--tint); }
.rv__badge { font-size: var(--fs-xs); font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.rv--ok .rv__badge { background: var(--mint); color: #fff; }
.rv--bad .rv__badge { background: var(--coral); color: #fff; }
.rv__head .muted { margin-left: auto; }
.rv__q { font-weight: 600; margin-bottom: 10px; }
.rv__opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rv__opts li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--tint); font-size: var(--fs-sm); }
.rv__mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: #fff; flex-shrink: 0; }
.rv__opts li.is-picked-ok { background: var(--mint); color: #fff; font-weight: 700; }
.rv__opts li.is-picked-ok .rv__mark { color: var(--mint); }
.rv__opts li.is-picked-bad { background: var(--coral); color: #fff; font-weight: 700; }
.rv__opts li.is-picked-bad .rv__mark { color: var(--coral); }
.rv__opts li.is-right { background: var(--mint-bg); color: #15803D; font-weight: 700; box-shadow: inset 0 0 0 1.5px #BBF7D0; }
.rv__opts li.is-right .rv__mark { color: var(--mint); }
.rv__text { margin: 4px 0; }
.rv__text .ok { color: var(--mint); }
.rv__expl { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sky-bg); font-size: var(--fs-sm); color: #3A1F8F; }

/* ---------- Player ---------- */
.quiz-intro { display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.quiz-intro__art { background:
  radial-gradient(260px 200px at 80% 100%, rgba(91,217,154,.6), transparent 70%), var(--grad-night); display: grid; place-items: center; min-height: 260px; }
.quiz-intro__ico { width: 110px; height: 110px; border-radius: 32px; background: var(--grad-sun); color: #fff; display: grid; place-items: center; box-shadow: 0 24px 50px -16px rgba(20,196,178,.8); transform: rotate(-6deg); }
.quiz-intro__body { padding: 30px 34px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.quiz-intro__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.quiz-intro__by { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.quiz-intro form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.quiz-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0; width: 100%; }
.quiz-facts div { background: var(--tint); border-radius: 14px; padding: 10px 12px; }
.quiz-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.quiz-facts dd { margin: 0; font-weight: 800; }
.qp-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin: 0 0 12px; background: rgba(246,244,253,.9); backdrop-filter: blur(10px); border-radius: 0 0 16px 16px; }
.qp-progress { flex: 1; display: flex; align-items: center; gap: 12px; }
.qp-progress__count { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.qp-progress__count b { color: var(--ink); }
.qp-progress__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qp-progress__bar span { display: block; height: 100%; width: 0; background: var(--grad-sun); border-radius: inherit; transition: width .3s; }
.qp-timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.qp-timer.is-low { background: var(--coral); animation: pulseLow 1s infinite; }
@keyframes pulseLow { 50% { transform: scale(1.05); } }
.qp-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.qp-nav a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; background: var(--white); box-shadow: var(--shadow-card); }
.qp-nav a.is-answered { background: var(--mint); color: #fff; }
.qp { display: flex; flex-direction: column; gap: 14px; }
.qp-q { margin: 0; border: 0; background: var(--white); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-card); scroll-margin-top: 80px; transition: box-shadow .2s; }
.qp-q.is-answered { box-shadow: inset 4px 0 0 var(--mint), var(--shadow-card); }
.qp-q__head { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; }
.qp-q__n { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.qp-q__meta { font-size: var(--fs-xs); color: var(--muted); }
.qp-q__body { font-size: 1.08rem; font-weight: 600; margin-bottom: 14px; }
.qp-opts { display: grid; gap: 8px; }
.qp-opts--tf { grid-template-columns: 1fr 1fr; }
.qp-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.qp-opt:hover { border-color: var(--line-2); background: var(--paper); }
.qp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qp-opt__key { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); flex-shrink: 0; transition: background .15s, color .15s; }
.qp-opt:has(input:checked) { border-color: var(--sky); background: var(--sky-bg); }
.qp-opt:has(input:checked) .qp-opt__key { background: var(--sky); color: #fff; }
.qp-opt:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.qp-text { font-size: 1.05rem; }
.qp-hint { font-size: var(--fs-xs); color: var(--muted); margin: 8px 0 0; }
.qp-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qp-confirm p { margin: 0; }
.qp-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0 24px; }

/* Result hero */
.result-hero { display: flex; align-items: center; gap: 36px; padding: 34px 38px; border-radius: 26px; color: #fff; margin-bottom: 20px; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 100% 100%, rgba(91,217,154,.5), transparent 65%), radial-gradient(400px 300px at 0% 0%, rgba(114,57,234,.35), transparent 65%), var(--grad-night); }
.result-hero.is-pass { background: radial-gradient(500px 320px at 100% 100%, rgba(34,197,94,.55), transparent 65%), radial-gradient(400px 300px at 0% 0%, rgba(255,201,60,.35), transparent 65%), var(--grad-night); }
.result-hero__quiz { color: rgba(255,255,255,.7); font-size: var(--fs-sm); margin: 0 0 4px; }
.result-hero__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 6px; }
.result-hero__sub { color: rgba(255,255,255,.82); max-width: 56ch; }
.result-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.result-facts div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 14px; min-width: 110px; }
.result-facts dt { font-size: var(--fs-xs); color: rgba(255,255,255,.7); }
.result-facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.result-facts .ok-txt { color: #86EFAC; } .result-facts .bad-txt { color: #A8EEE5; }
.result-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* Trend line */
.trend { width: 100%; height: 160px; display: block; overflow: visible; }
.trend__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.trend__line { stroke: var(--violet); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend__dot { fill: #fff; stroke: var(--violet); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trend__dot.is-last { fill: var(--coral); stroke: #fff; }

/* Dashboard callout & profile quizzes */
.quiz-callout { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, #EAFBF8, #FDEEF6); }
.quiz-callout__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-sun); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.quiz-callout__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pub-quizzes { display: grid; gap: 10px; }
.pub-quiz { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform .2s; }
.pub-quiz:hover { transform: translateY(-2px); color: var(--ink); }
.pub-quiz__ico { width: 44px; height: 44px; border-radius: 14px; background: var(--violet-bg); color: var(--violet); display: grid; place-items: center; flex-shrink: 0; }
.pub-quiz__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pub-quiz__txt small { color: var(--muted); }
.pub-quiz__go { font-weight: 800; font-size: var(--fs-sm); color: #fff; background: var(--grad-sun); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }

@media (max-width: 1080px) {
  .qe-grid { grid-template-columns: 1fr; }
  .qe-side { position: static; }
  .dash-grid--even { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .quiz-intro { grid-template-columns: 1fr; }
  .quiz-intro__art { min-height: 150px; }
  .quiz-intro__body { padding: 22px; }
  .quiz-facts { grid-template-columns: 1fr 1fr; }
  .result-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 20px; }
  .ring { width: 132px; height: 132px; }
  .ring__n { font-size: 2rem; }
  .qp-opts--tf { grid-template-columns: 1fr; }
  .qb-q { padding: 16px 14px; }
  .qb-q__tools { margin-left: 0; width: 100%; justify-content: flex-end; }
  .qdiff__row { grid-template-columns: 30px minmax(0, 1fr) 52px; gap: 10px; }
  .qcard__actions .inline-actions { margin-left: 0; }
  .quiz-callout { flex-wrap: wrap; }
  .attempt-tabs { margin-left: 0; }
}
/* quiz fixes */
.qp-q__head { float: left; width: 100%; }
.qp-q__head + * { clear: both; }
.qp-confirm[hidden] { display: none; }
.qb-q .qb-q__pts { width: 64px; }
.qb-q .qb-q__type { width: auto; }
.qe-settings fieldset { border: 0; padding: 0; margin: 0; }
.qe-settings legend { font-size: var(--fs-sm); font-weight: 600; padding: 0; }


/* ==========================================================================
   "Bənövşəyi & Firuzə" palette — plum violet, turquoise, lemon
   ========================================================================== */
/* Turquoise→lemon buttons carry deep plum text for contrast */
.btn--seal, .pub-quiz__go, .finder__btn, .tcard2__badge, .ccard--all, .ccard--all::before, .badge-count { color: #1B0B3F; font-weight: 800; }
.btn--seal:hover { color: #1B0B3F; }
.empty-hero__ico, .quiz-callout__ico, .quiz-intro__ico { color: #1B0B3F; }
.section__title::after { background: linear-gradient(90deg, #7239EA, #14C4B2, #FFC93C); }
.site-footer::before { background: linear-gradient(90deg, #7239EA, #E64A9C, #14C4B2, #4ADE80, #FFC93C); }
::selection { background: #C6F4EE; color: #1B0B3F; }
.trend stop { stop-color: #7239EA; }
.trend__line, .trend__dot { stroke: #7239EA; }
.trend__dot.is-last { fill: #14C4B2; }
.wa-float { background: #25D366; }

/* ==========================================================================
   Logo — "Dream Academy" monogram, drawn in CSS
   ========================================================================== */
.brand__mark { display: none; }
.brand__word { display: inline-flex; align-items: center; gap: 10px; font-size: 0; line-height: 1; white-space: nowrap; }
.brand__word::before {
  content: 'DA'; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  font: 700 15px/1 var(--serif); letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, #7239EA 0%, #4A23A8 45%, #14C4B2 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 14px -6px rgba(91,43,214,.6);
}
.brand__word em { font-size: 0; font-style: normal; margin: 0; }
.brand__word em::before { content: 'Dream'; font: 700 1.25rem/1 var(--serif); letter-spacing: -.01em; }
.brand__word em::after { content: 'Academy'; font: 400 1.25rem/1 var(--serif); margin-left: .22em; opacity: .85; }
.brand--light .brand__word::before, .site-footer .brand__word::before, .panel__side .brand__word::before { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }

/* ==========================================================================
   Lighter, smoother rendering
   The heaviest effects (live blur behind the header, blend-mode film grain over
   large photos, blurred word animations, long reveal fades) are swapped for
   cheap equivalents so scrolling stays fluid on ordinary laptops and phones.
   ========================================================================== */
.site-header.is-solid,
body:not(.home):not(.panel-body):not(.auth-body) .site-header { background: rgba(250,248,254,.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pill--glass, .hero2__kicker, .tabs--glass a, .kv--glass, .globe-sec__home { backdrop-filter: none; -webkit-backdrop-filter: none; }
.pill--glass, .kv--glass { background: rgba(27,11,63,.42); }
.hero2__kicker, .tabs--glass a, .globe-sec__home { background: rgba(27,11,63,.38); }
.qp-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246,244,253,.98); }
.hero2::after, .section--ink::after, .band2::after, .globe-sec::after, .phero::after { mix-blend-mode: normal; opacity: .035; }
.globe-sec__viz::before { filter: none; background: radial-gradient(circle at 40% 35%, rgba(154,120,255,.16), transparent 62%); }
.globe-canvas { filter: none; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes wordUp { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
  .hero2__title .w { animation-duration: .6s; animation-delay: calc(.05s + var(--i) * .045s); }
  .hero2__lead, .finder, .hero2__facts { animation-duration: .5s; }
  .hero2__lead { animation-delay: .3s; } .finder { animation-delay: .38s; } .hero2__facts { animation-delay: .46s; }
  /* Sections appear quickly and only travel a little */
  .js .reveal > .wrap { transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
  .js [data-stagger] > * { transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
  .js [data-stagger].is-in > * { transition-delay: 0s !important; }
}

/* Cards: lighter shadows, transform-only hover */
:root {
  --shadow-card: 0 1px 2px rgba(36,18,79,.05), 0 8px 20px -14px rgba(91,43,214,.28);
  --shadow-lift: 0 2px 4px rgba(36,18,79,.06), 0 16px 32px -18px rgba(91,43,214,.38);
}
.tcard2, .ccard, .etile, .lcard, .card, .stat2 { transition-property: transform, box-shadow, border-color; transition-duration: .2s; }

/* Smaller screens: drop decorative motion that costs battery */
@media (max-width: 760px) {
  .hero2__letters { transform: none !important; transition: none; }
  .marquee__track { animation-duration: 60s; }
  .live-mock { transform: none; }
}
