/* ==========================================================================
   AudioMap.mn — design system
   Эх сурвалж: AudioMap-Claude-Handoff.md + IMAGE-PLACEMENT-GUIDE.md
   Зурагтай холбоотой хэмжээ, crop, gradient-ийг placement guide-аас яг авсан.
   ========================================================================== */

:root {
  --ink:          #201510;
  --deep-brown:   #160C08;
  --wine:         #5C1721;
  --wine-bright:  #7F2835;
  --gold:         #B98A54;
  --cream:        #F4EEE3;
  --paper:        #F9F5ED;
  --warm-beige:   #EBE1D3;
  --muted:        #76685E;

  --line:         rgba(32, 21, 16, 0.14);
  --line-soft:    rgba(32, 21, 16, 0.08);

  --font-display: Georgia, "Times New Roman", serif;
  --font-body:    Inter, "Segoe UI", Arial, sans-serif;

  --radius:       6px;
  --radius-sm:    5px;

  --shell:        1200px;
  --gutter:       clamp(20px, 5vw, 56px);
  --section-y:    clamp(72px, 10vw, 132px);

  --header-h:     92px;
}

/* --------------------------------------------------------------- base --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--wine-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--wine);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ helpers --- */

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine-bright);
  margin: 0 0 18px;
}
.eyebrow--onDark { color: var(--gold); }

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 46ch;
}

.section { padding-block: var(--section-y); }
.section--beige { background: var(--warm-beige); }
.section--paper { background: var(--paper); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------- button --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--wine); color: var(--cream); }
.btn--primary:hover { background: var(--wine-bright); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }

.btn--onDark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 238, 227, 0.38);
}
.btn--onDark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn--full { width: 100%; }

/* ------------------------------------------------------------- header --- */
/* Хоёр хувилбар:
   --overlay : зөвхөн нүүр хуудас, hero дээр ил тод, цайвар logo
   --solid   : бусад бүх хуудас, paper background, бараан logo          */

.site-header { z-index: 60; }

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(249, 245, 237, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

/* Logo — placement guide: desktop 210px, mobile 165px, footer 220px. */
.brand { display: inline-flex; align-items: center; }
.brand img { width: 210px; height: auto; }

.nav { display: flex; align-items: center; gap: 34px; }

.nav__link {
  font-size: 15px;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.site-header--solid .nav__link { color: var(--ink); }
.site-header--solid .nav__link:hover { color: var(--wine); }
.site-header--solid .nav__link[aria-current="page"] { border-bottom-color: var(--wine); color: var(--wine); }

.site-header--overlay .nav__link { color: rgba(244, 238, 227, 0.86); }
.site-header--overlay .nav__link:hover { color: var(--cream); }

.nav__cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-header--overlay .nav-toggle { border-color: rgba(244, 238, 227, 0.4); }

.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.site-header--overlay .nav-toggle span,
.site-header--overlay .nav-toggle span::before,
.site-header--overlay .nav-toggle span::after { background: var(--cream); }

/* --------------------------------------------------------------- hero --- */
/* Placement guide §3 — exact CSS. */

.hero {
  position: relative;
  min-height: 900px;
  height: 100svh;
  max-height: 1020px;
  overflow: hidden;
  color: #F4EEE3;
  background-color: #1B0E09;
  background-image: url("../img/01-hero-audiomap-branded.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: flex-start;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(17,8,5,.96) 0%,
      rgba(21,9,6,.78) 36%,
      rgba(19,9,6,.22) 63%,
      rgba(12,6,4,.08) 100%),
    linear-gradient(0deg, rgba(12,6,4,.35), transparent 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 220px;
  max-width: 620px;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.06;
  margin-bottom: 26px;
}

.hero__lede {
  color: rgba(244, 238, 227, 0.82);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 40ch;
  margin-bottom: 40px;
}

/* ------------------------------------------------------- section head --- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); margin-bottom: 20px; }

.section-head__aside {
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 6px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  max-width: 34ch;
}

/* ------------------------------------------------------------ courses --- */
/* Зургийн байрлал: label row-ийн доор, title/body/price-ийн дээр. */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding-block: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.course-card:hover { border-color: var(--line); transform: translateY(-2px); }

.course-card__labels {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-inline: 22px;
  margin-bottom: 18px;
}

.course-card__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Placement guide §4 — exact CSS. */
.course-card-media {
  height: 300px;
  margin: 0 16px;
  overflow: hidden;
  border-radius: 5px;
  background: #2A160F;
}

.course-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.course-card__body {
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.course-card__title { font-size: clamp(22px, 2.4vw, 27px); }
.course-card__subtitle { font-size: 15px; color: var(--muted); }

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}

.course-card__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 25px);
  color: var(--ink);
}

.access-note { font-size: 13px; color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--wine);
  background: rgba(92, 23, 33, 0.07);
  border-radius: 100px;
  padding: 5px 13px;
}

.level-block + .level-block { margin-top: clamp(56px, 7vw, 88px); }

.level-block__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.level-block__head h2 { font-size: clamp(24px, 3vw, 34px); }
.level-block__count { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------- teacher — нүүр §6A --- */

.teacher-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.teacher-home-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 220px 220px 12px 12px;
  background: #281914;
}
.teacher-home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.teacher-name { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.teacher-role { font-size: 15px; color: var(--wine); margin-bottom: 24px; }
.teacher-bio { font-size: clamp(16px, 1.6vw, 17px); max-width: 52ch; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  margin-block: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  display: block;
  line-height: 1.1;
}
.stat__label { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- quote -- */

.about-band { background: var(--deep-brown); color: var(--cream); }

.about-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 42px);
  line-height: 1.28;
  color: var(--cream);
  margin: 0;
}

.about-text { font-size: clamp(15px, 1.6vw, 17px); color: rgba(244, 238, 227, 0.74); max-width: 42ch; }

/* ---------------------------------------------------------- page head --- */

.page-head {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(34px, 5.4vw, 62px); margin-bottom: 18px; }

.crumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumb a:hover { color: var(--wine); }
.crumb span[aria-hidden] { color: var(--line); }

.crumb--onDark { color: rgba(244, 238, 227, 0.6); margin-bottom: 26px; }
.crumb--onDark a:hover { color: var(--cream); }
.crumb--onDark span[aria-hidden] { color: rgba(244, 238, 227, 0.3); }

/* ------------------------------------- course detail — dark/wine hero --- */
/* Placement guide §8: хичээлийн зургийг detail hero-ийн background болгохгүй. */

.course-hero {
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(92, 23, 33, 0.85) 0%, rgba(92, 23, 33, 0) 62%),
    linear-gradient(160deg, #2A0F14 0%, var(--deep-brown) 72%);
  color: var(--cream);
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(52px, 7vw, 84px);
}

.course-hero h1 {
  color: var(--cream);
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 16px;
  max-width: 18ch;
}
.course-hero__lede {
  color: rgba(244, 238, 227, 0.78);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 44ch;
}
.course-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 34px;
  font-size: 14px;
  color: rgba(244, 238, 227, 0.72);
}
.course-hero .tag {
  color: var(--cream);
  background: rgba(244, 238, 227, 0.12);
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 66px);
  align-items: start;
}

.prose h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 16px; }
.prose p  { font-size: 17px; margin-bottom: 18px; max-width: 62ch; }
.prose > * + h2 { margin-top: clamp(38px, 5vw, 56px); }

.learn-list { display: grid; gap: 2px; }
.learn-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.learn-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

.buy-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
}
.buy-card__price {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.buy-card__meta {
  display: grid;
  gap: 12px;
  margin-block: 24px;
  padding-block: 22px;
  border-block: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
.buy-card__meta div { display: flex; justify-content: space-between; gap: 16px; }
.buy-card__meta strong { font-weight: 500; color: var(--ink); }
.buy-card__note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------------------------------------- teacher list & profile §6B/C -- */

.teacher-list { display: grid; gap: clamp(22px, 3vw, 34px); }

.teacher-card {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease;
}
.teacher-card:hover { border-color: var(--line); }

.teacher-card__media {
  width: 380px;
  height: 430px;
  overflow: hidden;
  border-radius: 190px 190px 10px 10px;
  background: #281914;
}
.teacher-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.teacher-card__body h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.teacher-card__body .teacher-role { margin-bottom: 18px; }
.teacher-card__body p { font-size: 15px; color: var(--muted); max-width: 42ch; }
.teacher-card__body .btn { margin-top: 26px; }

/* Placement guide §6C — exact CSS. */
.teacher-profile {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}

.teacher-profile-image {
  width: 430px;
  height: 540px;
  overflow: hidden;
  border-radius: 220px 220px 10px 10px;
  background: #281914;
}
.teacher-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Хуудсуудад хэрэглэгддэг жижиг зайн класснууд.
   CSP inline style зөвшөөрдөггүй тул бүгд энд төвлөрсөн. */

.crumb-bar { padding-top: clamp(30px, 4vw, 48px); }
.section--profile { padding-block: clamp(44px, 6vw, 76px); }
.detail-body { padding-block: clamp(52px, 7vw, 90px); }
.field__hint--spaced { margin-top: 16px; }
.name-strong { font-weight: 500; }

.cv-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: clamp(30px, 4vw, 46px);
}

/* ------------------------------------------------------------- CV doc --- */

.cv-doc { max-width: 74ch; font-size: 16.5px; line-height: 1.85; }
.cv-doc p { margin-bottom: 22px; }
.cv-doc h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.cv-doc h3:first-child { margin-top: 0; }

/* --------------------------------------------------------------- forms -- */

.auth-wrap { max-width: 440px; margin-inline: auto; padding-block: clamp(56px, 9vw, 110px); }

.auth-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.auth-card h1 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 10px; }
.auth-card > p { font-size: 15px; color: var(--muted); margin-bottom: 30px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.field input:focus { border-color: var(--wine); background: #fff; }
.field__hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

.field__optional { color: var(--muted); font-weight: 400; }

/* Баталгаажуулах кодын талбар */
.code-input {
  font-family: var(--font-display);
  font-size: 28px !important;
  letter-spacing: 12px;
  text-align: center;
  padding: 16px 12px !important;
}
.code-input::placeholder { color: rgba(118, 104, 94, 0.35); letter-spacing: 12px; }

.auth-step-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.auth-step-note strong { color: var(--ink); font-weight: 500; word-break: break-all; }

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.linkish {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--wine);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(92, 23, 33, 0.28);
}
.linkish:hover { color: var(--wine-bright); }
.linkish:disabled { color: var(--muted); border-bottom-color: transparent; cursor: default; }

.auth-alt { font-size: 14px; color: var(--muted); text-align: center; margin-top: 24px; }
.auth-alt a { color: var(--wine); border-bottom: 1px solid rgba(92,23,33,.3); }

.notice {
  background: rgba(185, 138, 84, 0.11);
  border: 1px solid rgba(185, 138, 84, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.notice--error {
  background: rgba(92, 23, 33, 0.07);
  border-color: rgba(92, 23, 33, 0.3);
  color: var(--wine);
}
.notice--ok {
  background: rgba(92, 23, 33, 0.05);
  border-color: rgba(92, 23, 33, 0.22);
  color: var(--ink);
}
.notice--dev {
  background: rgba(32, 21, 16, 0.05);
  border-color: rgba(32, 21, 16, 0.18);
  color: var(--ink);
}

/* Зөвхөн локал туршилтад харагдана. */
.dev-code {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 8px;
  color: var(--wine);
}

/* Нэвтэрсэн хэрэглэгч — цэсэн дэх нэр ба гарах товч */
.nav__user { display: inline-flex; align-items: center; gap: 14px; }
.nav__user-name { font-size: 14px; font-weight: 500; }
.site-header--overlay .nav__user-name { color: var(--cream); }

.nav__signout {
  font-family: var(--font-body);
  font-size: 13.5px;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav__signout:hover { color: var(--wine); }
.site-header--overlay .nav__signout {
  color: rgba(244, 238, 227, 0.75);
  border-bottom-color: rgba(244, 238, 227, 0.3);
}
.site-header--overlay .nav__signout:hover { color: var(--cream); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--deep-brown);
  color: rgba(244, 238, 227, 0.62);
  padding-block: clamp(48px, 6vw, 70px);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer .brand img { width: 220px; }
.site-footer__tagline {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}
.site-footer nav { display: flex; gap: 26px; font-size: 14px; padding-top: 10px; }
.site-footer a:hover { color: var(--cream); }
.site-footer__legal {
  font-size: 13px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(244,238,227,.12);
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1100px) {
  .teacher-card { grid-template-columns: 320px minmax(0, 1fr); }
  .teacher-card__media { width: 320px; height: 400px; }
  .teacher-profile { grid-template-columns: 360px minmax(0, 1fr); }
  .teacher-profile-image { width: 360px; height: 470px; }
}

@media (max-width: 900px) {
  .hero { min-height: 760px; background-position: 64% center; }
  .hero-content { padding-top: 180px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }

  .teacher-split { grid-template-columns: 1fr; }
  .teacher-home-image { max-width: 380px; }

  .about-band__inner { grid-template-columns: 1fr; }
  .course-detail { grid-template-columns: 1fr; }
  .buy-card { position: static; }

  /* §6B — Tablet: зургийн өндөр 360px */
  .teacher-card { grid-template-columns: 1fr; }
  .teacher-card__media { width: 100%; max-width: 380px; height: 360px; }

  .teacher-profile { grid-template-columns: 1fr; }
  .teacher-profile-image { width: min(100%, 430px); height: 540px; }
}

@media (max-width: 720px) {
  .brand img { width: 165px; }
  .site-footer .brand img { width: 190px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding-block: 14px; }
  .nav__cta { margin-top: 16px; }

  .site-header--solid .nav { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
  .site-header--solid .nav__link { border-bottom: 1px solid var(--line-soft); }

  .site-header--overlay .nav { background: var(--deep-brown); }
  .site-header--overlay .nav__link { border-bottom: 1px solid rgba(244, 238, 227, 0.12); }

  .stats { gap: 24px 40px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }

  /* §6B — Mobile: card-ийн дээр full width */
  .teacher-card__media { max-width: 100%; height: 320px; border-radius: 160px 160px 10px 10px; }
}

@media (max-width: 560px) {
  .hero { min-height: 720px; }
  .hero-content { padding-top: 150px; }
  .course-card-media { height: 210px; }
  .teacher-profile-image { height: 460px; }
}

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