/* =========================================================
   Pamir International Academy — sample site by AmuHub
   Mobile-first, RTL. Display: Amiri 700 · Body: Vazirmatn 400/600
   ========================================================= */

:root {
  --orange: #FF5B14;
  --orange-deep: #D94400;
  --yellow: #FFE600;
  --ink: #111111;
  --ink-2: #2B2B2B;
  --cream: #F7F2EA;
  --paper: #FFFFFF;
  --muted: #5E5850;
  --line: rgba(17, 17, 17, .14);
  --field: #CDC5B9;

  --font-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --pad: clamp(18px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 144px);
  --hdr-h: 68px;
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --shadow-sticker: 0 10px 24px -10px rgba(0, 0, 0, .35);
  interpolate-size: allow-keywords;
}

@media (min-width: 1024px) {
  :root { --hdr-h: 84px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sec--ink :focus-visible, .ticker :focus-visible { outline-color: var(--yellow); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted { opacity: .7; }
.ltr-start { text-align: right; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 13vw, 7.4rem);
  line-height: 1.18;
  letter-spacing: 0;
  margin: .2em 0 .28em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9.5vw, 5.4rem);
  line-height: 1.22;
  margin: .25em 0 .3em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

/* ---------- Sticker labels ---------- */
.sticker {
  display: inline-block;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(.95rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  padding: .32em .95em;
  box-shadow: var(--shadow-sticker);
  transform: rotate(-2deg);
}
.sticker--yellow { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-2);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  text-wrap: balance;
  max-width: 100%;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .ico--fwd { transform: translateX(-4px); }

.btn--dark { --btn-bg: var(--ink-2); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
.btn--lg { min-height: 58px; padding: 10px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--ink-2);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .25s, transform .25s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn--wa:hover { background: #1DA851; }
.icon-btn .ico { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s;
}
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, .45); }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--hdr-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt small { font-size: .68rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.brand__txt b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.05; }

.nav { display: none; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color .2s;
}
.nav a:hover { background: rgba(17, 17, 17, .07); }

.hdr__act { display: flex; align-items: center; gap: 8px; }
.menu-btn .ico--close { display: none; }
.menu-btn[aria-expanded="true"] .ico--open { display: none; }
.menu-btn[aria-expanded="true"] .ico--close { display: block; }

@media (max-width: 399px) {
  :root { --pad: 16px; }
  .hdr__in { gap: 8px; }
  .hdr__act { gap: 6px; }
  .hdr__act .btn--sm { padding: 0 14px; }
  .icon-btn { width: 42px; height: 42px; }
  .brand { gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__txt small { font-size: .6rem; white-space: nowrap; }
  .brand__txt b { font-size: 1.6rem; }
}
@media (max-width: 359px) {
  .icon-btn--wa { display: none; }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__txt b { font-size: 2rem; }
  .hdr__act { gap: 10px; }
  .hdr__act .btn--sm { min-height: 48px; padding: 0 26px; }
  .icon-btn { width: 48px; height: 48px; }
}

/* Mobile menu */
.mnav {
  position: fixed;
  inset: var(--hdr-h) 0 0 0;
  z-index: 45;
  background: var(--yellow);
  overflow-y: auto;
  padding: 36px 0 48px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav__in { text-align: center; }
.mnav__eyebrow { font-weight: 600; margin-bottom: 8px; }
.mnav__list { list-style: none; display: grid; gap: 6px; }
.mnav__list a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1.55;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.mnav__cta { display: grid; gap: 12px; margin-top: 36px; max-width: 360px; margin-inline: auto; }
html.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mnav { display: none !important; } }

/* ---------- Photo frame (with designed fallback) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  margin: 0;
  background-color: var(--ph-bg, #EFE3D2);
  background-image: radial-gradient(rgba(17, 17, 17, .16) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  max-width: 96px;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M5 38 18 19l6.5 9L31 18l12 20z' fill='%23111'/%3E%3Ccircle cx='36' cy='10' r='4.5' fill='%23111'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .18;
  z-index: -1;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .ph img { opacity: 0; transition: opacity .6s var(--ease); }
.js .ph img.is-loaded { opacity: 1; }
.ph.is-broken img { display: none; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--section-y); position: relative; }
.sec--cream { background: var(--cream); }
.sec--paper { background: var(--paper); }
.sec--yellow { background: var(--yellow); }
.sec--orange { background: var(--orange); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink .lead { color: rgba(255, 255, 255, .72); }
.sec--orange .lead, .sec--yellow .lead { color: rgba(17, 17, 17, .78); }

.sec-head { margin-bottom: clamp(36px, 6vw, 72px); max-width: 860px; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--center .lead { margin-inline: auto; }

.sec-cta {
  margin-top: clamp(36px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.sec-cta p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.sec-cta--center { justify-content: center; }
.sec-cta__big {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3rem) !important;
  line-height: 1.3;
  font-weight: 700 !important;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--orange);
  padding: clamp(28px, 6vw, 72px) 0 clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }

.hero__sticker { transform: rotate(-3deg); }
.hero__lead {
  font-size: clamp(1.08rem, 2.8vw, 1.3rem);
  line-height: 1.9;
  max-width: 34ch;
  color: rgba(17, 17, 17, .86);
  margin-bottom: 28px;
}
.hl {
  color: #fff;
  position: relative;
  white-space: nowrap;
  display: inline-block;
  isolation: isolate;
}
.hl::after {
  content: "";
  position: absolute;
  inset-inline: -2%;
  bottom: -.02em;
  height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 70 18, 100 10 S 165 4, 197 12' fill='none' stroke='%23FFE600' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__cta .btn { flex: 1 1 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(17, 17, 17, .85);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
}
.chip b { font-weight: 600; }

/* Collage */
.hero__art { position: relative; }
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: 8%;
}
.c-a { grid-row: 1 / span 2; aspect-ratio: 3 / 4.3; border-radius: 999px 999px 26px 26px; }
.c-b { aspect-ratio: 1; border-radius: 26px; }
.c-c { aspect-ratio: 1; border-radius: 50%; }
.c-d {
  position: absolute;
  width: 29%;
  aspect-ratio: 4 / 5;
  inset-inline-start: 40%;
  bottom: -3%;
  border: 7px solid #fff;
  border-radius: 16px;
  transform: rotate(-7deg);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .5);
}

.burst {
  position: absolute;
  top: -14px;
  inset-inline-end: -6px;
  width: clamp(92px, 24vw, 128px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--yellow);
  z-index: 3;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25));
}
.burst__shape { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.burst__txt {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(.82rem, 2.6vw, 1rem);
  line-height: 1.35;
  text-align: center;
  transform: rotate(-10deg);
}

.float-chip {
  position: absolute;
  z-index: 3;
  inset-inline-start: -4px;
  top: 40%;
  margin: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: var(--shadow-sticker);
  transform: rotate(3deg);
}
.float-chip b { font-family: var(--font-display); font-size: 1.35rem; color: var(--orange-deep); margin-inline-end: 4px; }

@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; min-height: calc(100svh - var(--hdr-h) - 160px); }
  .hero__cta .btn { flex: 0 0 auto; }
  .collage { max-width: none; }
  .burst { inset-inline-end: -26px; top: -24px; }
  .float-chip { inset-inline-start: -34px; }
}

/* Hero load-in */
.js .hero__copy > * { animation: rise .9s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5) { animation-delay: .32s; }
.js .collage > .ph { animation: pop 1s var(--ease) both; }
.js .collage > .c-a { animation-delay: .1s; }
.js .collage > .c-b { animation-delay: .22s; }
.js .collage > .c-c { animation-delay: .34s; }
.js .collage > .c-d { animation: pop-tilt 1s var(--ease) .5s both; }
.js .collage > .burst, .js .collage > .float-chip { animation: pop 1s var(--ease) .65s both; }

@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .92; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes pop-tilt { from { opacity: 0; rotate: 10deg; scale: .9; translate: 0 24px; } to { opacity: 1; rotate: 0deg; scale: 1; translate: 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding-block: 16px;
  position: relative;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; flex: none; }
.ticker__list li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.6vw, 2.7rem);
  line-height: 1.35;
  white-space: nowrap;
}
.ticker__list li:nth-child(even) { color: var(--yellow); }
.ticker__list .ico { width: .55em; height: .55em; color: var(--orange); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Courses ---------- */
.courses { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .courses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .courses { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.course {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .45); }
.course__ph { aspect-ratio: 16 / 9; border-radius: var(--r-md); }
@media (min-width: 700px) { .course__ph { aspect-ratio: 16 / 10; } }
.course__ph img { transition: transform .8s var(--ease), opacity .6s var(--ease); }
.course:hover .course__ph img { transform: scale(1.05); }

.tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.6;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sticker);
  z-index: 2;
}

.course__body { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.course__level { color: var(--orange-deep); font-weight: 600; font-size: .92rem; margin: 0; }
.course__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 .2em;
}
.course__desc { color: var(--muted); font-size: .98rem; line-height: 1.85; margin-bottom: 16px; }
.course__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.course__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .88rem;
  line-height: 1.6;
}
.course__meta .ico { width: 1.05em; height: 1.05em; }

.price {
  margin: auto 0 14px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.price__label { color: var(--muted); font-size: .9rem; }
.price__val { font-weight: 600; }
.price__val b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; margin-inline-end: 4px; }

.course--feature { background: var(--ink); color: #fff; }
.course--feature .course__level { color: var(--yellow); }
.course--feature .course__desc, .course--feature .price__label { color: rgba(255, 255, 255, .72); }
.course--feature .course__meta li { background: rgba(255, 255, 255, .1); }
.course--feature .price { border-top-color: rgba(255, 255, 255, .22); }
.course--feature .tag { background: var(--orange); color: #fff; }

/* ---------- Why (stats) ---------- */
.why { display: grid; gap: 40px; }
.why__head { position: relative; }
.stamp {
  margin-top: 28px;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  transform: rotate(10deg);
  box-shadow: 0 0 0 6px var(--yellow), 0 0 0 8px var(--ink);
}

.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.stat { border-top: 2px solid var(--ink); padding: 16px 0 30px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11.5vw, 6.6rem);
  line-height: 1.12;
  margin: 0;
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.stat__suf { font-size: .62em; color: var(--orange-deep); margin-inline-start: .04em; }
.stat__label { font-size: clamp(1.05rem, 3vw, 1.25rem); font-weight: 600; margin: 2px 0 4px; }
.stat__line { margin: 0; font-size: .95rem; line-height: 1.75; color: rgba(17, 17, 17, .78); max-width: 28ch; }
.why__cta { margin-top: 0; }

@media (min-width: 1024px) {
  .why { grid-template-columns: .85fr 1.15fr; column-gap: 72px; align-items: start; }
  .why__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
  .stamp { margin-top: 40px; width: 128px; font-size: 1.35rem; }
  .stats { column-gap: 36px; }
  .why__cta { grid-column: 2; }
}

/* ---------- Journey ---------- */
.hl-y { color: var(--yellow); }
.steps-wrap { position: relative; }
.steps__line {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 13px;
  width: 2px;
  background: rgba(255, 255, 255, .16);
  border-radius: 2px;
}
.steps__fill {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: calc(var(--p, 0) * 100%);
  background: var(--yellow);
  border-radius: 2px;
}
.steps { list-style: none; display: grid; gap: 64px; }
.step { position: relative; padding-inline-start: 46px; display: grid; gap: 22px; }
.step__dot {
  position: absolute;
  inset-inline-start: 4px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid rgba(255, 255, 255, .4);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
  z-index: 1;
}
.step.is-active .step__dot { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 7px rgba(255, 230, 0, .18); }
.step__ph { aspect-ratio: 4 / 3.4; border-radius: 240px 240px 22px 22px; }
.step__body .step__num { font-family: var(--font-display); font-size: clamp(3.4rem, 13vw, 6rem); line-height: 1; color: var(--yellow); margin: 0 0 .1em; }
.step__title { font-family: var(--font-display); font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1.25; margin-bottom: .35em; }
.step__body p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 40ch; }
.step__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.step__chips li {
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: .9rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .steps__line { inset-inline-start: calc(50% - 1px); }
  .steps { gap: 96px; }
  .step { padding-inline-start: 0; grid-template-columns: 1fr 1fr; gap: 0 120px; align-items: center; }
  .step__dot { inset-inline-start: calc(50% - 10px); top: calc(50% - 10px); }
  .step__ph { aspect-ratio: 4 / 4.6; width: 100%; max-width: 460px; justify-self: start; }
  .step:nth-child(even) .step__ph { order: 2; justify-self: end; }
  .step:nth-child(even) .step__body { order: 1; }
}

/* ---------- Teachers ---------- */
.teachers { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 16px; }
@media (min-width: 900px) { .teachers { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.teacher { text-align: center; }
.teacher__ph {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto 18px;
  isolation: isolate;
}
.teacher__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ring, var(--orange));
  transform: translate(-7%, 6%);
  z-index: -1;
  transition: transform .5s var(--ease);
}
.teacher:hover .teacher__ph::before { transform: translate(6%, -5%); }
.teacher__ph .ph { aspect-ratio: 1; border-radius: 50%; }
.teacher__name { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 1.95rem); line-height: 1.35; }
.teacher__subj {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 2px 12px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 6px 0 8px;
}
.teacher__cred { font-size: .92rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: 28ch; margin-inline: auto; }

/* ---------- Testimonials ---------- */
.reviews { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .reviews { grid-template-columns: 1.25fr 1fr; gap: 24px; }
  .review--feature { grid-row: span 2; }
}
.review {
  position: relative;
  margin: 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review::before {
  content: "«";
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: .55;
  color: var(--orange);
  height: .5em;
}
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.08rem; line-height: 1.95; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review figcaption b { display: block; font-weight: 600; }
.review figcaption small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.review--feature { background: var(--ink); color: #fff; padding-top: clamp(44px, 6vw, 64px); }
.review--feature::before { color: var(--yellow); font-size: 6rem; }
.review--feature blockquote p { font-family: var(--font-display); font-size: clamp(1.65rem, 4.6vw, 2.5rem); line-height: 1.7; }
.review--feature figcaption small { color: rgba(255, 255, 255, .7); }
.review__badge { position: absolute; top: -16px; inset-inline-end: 22px; transform: rotate(3deg); font-size: .95rem; }

.avatar {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--orange);
}
.review--feature .avatar { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--yellow); }
.avatar { display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.avatar::after { content: attr(data-initial); grid-area: 1 / 1; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); z-index: -1; }
.avatar { isolation: isolate; }
.avatar.is-broken img { display: none; }

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(140px, 40vw, 220px);
  grid-auto-flow: dense;
  gap: 10px;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; } }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  background-color: #EFE3D2;
  background-image: radial-gradient(rgba(17, 17, 17, .14) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
}
.g:nth-child(3n+2) .g__btn { background-color: var(--yellow); }
.g:nth-child(3n) .g__btn { background-color: #FFD3BD; }
.g__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.js .g__btn img { opacity: 0; }
.js .g__btn img.is-loaded { opacity: 1; }
.g__btn.is-broken img { display: none; }
.g__btn:hover img { transform: scale(1.06); }
.g__cap {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: var(--shadow-sticker);
}

/* ---------- Enrollment ---------- */
.enroll { display: grid; gap: 36px; }
@media (min-width: 960px) { .enroll { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.enroll__copy { position: relative; }
.note {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.8;
  max-width: 36ch;
  box-shadow: var(--shadow-sticker);
  transform: rotate(-1.2deg);
  margin: 6px 0 28px;
}
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ticks .ico {
  width: 28px; height: 28px; padding: 5px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
}
.burst--enroll { position: relative; top: auto; inset-inline-end: auto; margin-top: 32px; width: clamp(108px, 28vw, 136px); }

.form {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4.5vw, 44px);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .45);
}
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.req { color: var(--orange-deep); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%;
  min-height: 56px;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="tel"] { text-align: right; }
.field input::placeholder { color: #A39B90; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 20px;
  cursor: pointer;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 230, 0, .75); }
.field.has-error input, .field.has-error select, .field.has-error .seg label { border-color: #C81E1E; }
.field__err { color: #B42318; font-size: .88rem; margin: 6px 0 0; }
.field__err:empty { display: none; }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .seg { grid-template-columns: repeat(4, 1fr); } }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg label small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:checked + label small { color: rgba(255, 255, 255, .75); }
.seg input:focus-visible + label { box-shadow: 0 0 0 4px rgba(255, 230, 0, .85); border-color: var(--ink); }

.form .btn--block { margin-top: 6px; }
.form__hint { font-size: .86rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form__status { margin: 12px 0 0; font-weight: 600; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #E8F7EE; color: #0F5B2E; border-radius: 12px; padding: 10px 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq__head { position: sticky; top: calc(var(--hdr-h) + 32px); } }
.faq__head .lead { margin-bottom: 16px; }
.faq__list details { border-top: 2px solid var(--ink); }
.faq__list details:last-child { border-bottom: 2px solid var(--ink); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.6;
}
.faq__list summary::-webkit-details-marker { display: none; }
.pm {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-2);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background-color .3s;
}
.pm .ico { width: 20px; height: 20px; }
details[open] .pm { transform: rotate(45deg); background: var(--orange); }
.faq__list summary:hover .pm { background: var(--ink); }
.faq__a { padding: 0 0 24px; }
.faq__a p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 1.02rem; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
details[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.contact__list { list-style: none; display: grid; gap: 20px; margin: 18px 0 32px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list b { display: block; font-weight: 600; }
.contact__list p { margin: 0; color: rgba(255, 255, 255, .76); }
.ico-wrap {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.ico-wrap .ico { width: 22px; height: 22px; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__cta .btn { flex: 1 1 160px; }

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #F3E8D8;
  color: var(--ink);
}
.map__svg { width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  top: 50%;
  left: 43.75%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, calc(-100% - 12px));
  animation: bob 2.6s var(--ease) infinite;
}
.map__drop {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: -6px 10px 22px -8px rgba(0, 0, 0, .45);
}
.map__drop .brand__mark { width: 38px; height: 38px; transform: rotate(45deg); }
.map__label {
  position: absolute;
  top: calc(50% + 12px);
  left: 43.75%;
  transform: translateX(-50%);
  margin: 0;
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sticker);
}
.map-wrap { display: grid; gap: 14px; justify-items: start; }
.map-wrap .map { width: 100%; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Footer ---------- */
.ftr {
  background: var(--orange);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 10vw, 112px);
}
.ftr__in { position: relative; z-index: 1; text-align: center; }
.brand--ftr { flex-direction: column; gap: 8px; }
.brand--ftr .brand__mark { width: 64px; height: 64px; }
.brand--ftr .brand__txt { align-items: center; }
.brand--ftr .brand__txt small { color: var(--ink); font-size: .85rem; }
.brand--ftr .brand__txt b { font-size: 3rem; }
.ftr__tag { font-weight: 600; font-size: clamp(1.05rem, 3vw, 1.2rem); max-width: 34ch; margin: 18px auto 44px; line-height: 1.85; }
.ftr__cols { display: grid; gap: 40px; margin-bottom: 44px; }
.ftr__h { font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1.3; margin-bottom: 10px; color: #fff; }
.ulinks { list-style: none; display: grid; gap: 6px; justify-items: center; }
.ulinks a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.08rem;
  line-height: 1.8;
  border-bottom: 1.5px solid currentColor;
  transition: color .2s;
}
.ulinks a:hover { color: #fff; }
.ftr__btn { margin-top: 22px; }
.socials { list-style: none; display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; }
.socials a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.socials a:hover { transform: translateY(-3px); background: var(--ink); color: #fff; }
.socials .ico { width: 22px; height: 22px; }
.ftr__legal { font-weight: 600; font-size: .95rem; margin: 0; padding-bottom: 8px; }
.ftr__legal span { margin-inline: 6px; }
.ftr__giant {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 44vw, 24rem);
  line-height: 1;
  color: var(--ink);
  text-align: left;
  margin-top: -.06em;
  margin-bottom: -.42em;
  margin-left: -.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 900px) {
  .ftr__cols { grid-template-columns: 1fr 1fr; max-width: 760px; margin-inline: auto; }
}

/* ---------- Lightbox ---------- */
.lb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lb::backdrop { background: rgba(10, 10, 10, .92); }
.lb[open] { display: grid; place-items: center; }
.lb__fig { margin: 0; padding: 72px 16px 40px; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lb__img { max-width: min(1100px, 100%); max-height: 76vh; width: auto; height: auto; border-radius: 16px; object-fit: contain; background: #222; }
.lb__cap { font-weight: 600; }
.lb .icon-btn { position: fixed; background: #fff; color: var(--ink); z-index: 2; }
.lb__close { top: 16px; inset-inline-end: 16px; }
.lb__nav { top: 50%; translate: 0 -50%; }
.lb__prev { inset-inline-start: 12px; transform: scaleX(-1); }
.lb__next { inset-inline-end: 12px; }
.lb__prev:hover { transform: scaleX(-1) translateY(-2px); }
html.lb-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
  .ticker__track { animation: none; }
}
