/* Ali Haider Chattha — public site
   Colours come from the theme (Admin → Appearance) as CSS custom properties.
   Bricolage Grotesque for interface and headlines, Literata for reading. */

:root {
  /* Fallback theme (Mist) in case the inline theme block is missing */
  --bg: #EEF2F7; --surface: #FFFFFF; --tint: #E4E9F0; --text: #24314B; --text-soft: #6A7489; --text-faint: #8C95A6;
  --prose: #2A3650; --line: #D2DAE5; --accent: #F3C969; --accent-deep: #D3AE62; --accent-text: #8E7A55; --on-accent: #1E2738;
  --strong: #24314B; --on-strong: #FFFFFF; --hero: #DCE5F1; --hero-2: #EEF3F9; --hero-text: #1E2738; --hero-soft: #56627A;
  --hero-accent: #8E7A55; --hero-line: rgb(29 39 60 / 10%); --footer: #2A3852; --footer-text: #FFFFFF; --footer-soft: #A9B1C1;
  --shadow: 29 39 60; --highlight: rgb(255 255 255 / 75%); --ok: #1E7B4F; --bad: #B3261E;

  --f-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);

  /* Shape — set by data-radius on <html> */
  --r-card: 14px;
  --r-media: 12px;
  --r-ctl: 10px;

  /* Depth — set by data-depth on <html> */
  --sh-1: 0 1px 2px rgb(var(--shadow) / 6%), 0 2px 6px rgb(var(--shadow) / 6%);
  --sh-2: 0 1px 2px rgb(var(--shadow) / 5%), 0 6px 16px rgb(var(--shadow) / 8%), 0 18px 36px -14px rgb(var(--shadow) / 18%);
  --sh-3: 0 2px 4px rgb(var(--shadow) / 6%), 0 14px 28px rgb(var(--shadow) / 12%), 0 30px 60px -20px rgb(var(--shadow) / 28%);
  --sh-inset: inset 0 1px 2px rgb(var(--shadow) / 10%), inset 0 0 0 1px rgb(var(--shadow) / 4%);
  --hl: inset 0 1px 0 var(--highlight);
  --lift: -4px;
  --tilt: 1;
}
[data-radius="sharp"] { --r-card: 4px; --r-media: 4px; --r-ctl: 6px; }
[data-radius="round"] { --r-card: 22px; --r-media: 18px; --r-ctl: 999px; }
[data-depth="flat"] { --sh-1: none; --sh-2: 0 0 0 1px var(--line); --sh-3: 0 0 0 1px var(--line); --sh-inset: none; --hl: 0 0 0 transparent; --lift: 0px; --tilt: 0; }
[data-depth="deep"] {
  --sh-1: 0 1px 2px rgb(var(--shadow) / 8%), 0 4px 10px rgb(var(--shadow) / 10%);
  --sh-2: 0 2px 4px rgb(var(--shadow) / 6%), 0 10px 24px rgb(var(--shadow) / 12%), 0 28px 50px -16px rgb(var(--shadow) / 28%);
  --sh-3: 0 4px 8px rgb(var(--shadow) / 8%), 0 22px 40px rgb(var(--shadow) / 16%), 0 44px 80px -24px rgb(var(--shadow) / 36%);
  --lift: -6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--f-ui); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; z-index: 99; font-weight: 600; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--sh-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; font-variation-settings: "wdth" 85; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { text-decoration: none; padding: 8px 14px; border-radius: var(--r-ctl); font-weight: 500; transition: background-color .15s; }
.nav > a:hover { background: var(--tint); }
.nav > a[aria-current="page"] { background: var(--surface); box-shadow: var(--sh-1), var(--hl); font-weight: 600; }
.nav-search { display: flex; align-items: center; margin-left: 10px; border-radius: var(--r-ctl); background: var(--tint); box-shadow: var(--sh-inset); }
.nav-search input { border: 0; background: transparent; padding: 9px 4px 9px 14px; width: 150px; font: inherit; color: var(--text); outline: none; }
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search button { border: 0; background: none; padding: 6px 12px; display: grid; place-items: center; color: var(--text-soft); }
.nav-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; margin-right: -8px; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; left: 12px; right: 12px; top: 74px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-3); display: none; }
  .nav.open { display: flex; }
  .nav > a { padding: 14px; font-size: 1.1rem; }
  .nav-search { margin: 8px 0 0; }
  .nav-search input { width: 100%; flex: 1; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.2;
  box-shadow: var(--sh-1), var(--hl), 0 0 0 1px var(--line);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { transform: translateY(calc(var(--lift) / 2)); box-shadow: var(--sh-2), var(--hl), 0 0 0 1px var(--line); }
.btn:active { transform: translateY(1px); box-shadow: var(--sh-inset); }
.btn--accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 100%);
  color: var(--on-accent); box-shadow: var(--sh-1), var(--hl), 0 0 0 1px color-mix(in srgb, var(--accent-deep) 60%, transparent);
}
.btn--accent:hover { box-shadow: var(--sh-2), var(--hl), 0 0 0 1px var(--accent-deep); }
.btn--dark {
  background: linear-gradient(180deg, color-mix(in srgb, var(--strong) 88%, #fff) 0%, var(--strong) 100%);
  color: var(--on-strong); box-shadow: var(--sh-1), inset 0 1px 0 rgb(255 255 255 / 12%);
}
.btn--dark:hover { box-shadow: var(--sh-2), inset 0 1px 0 rgb(255 255 255 / 12%); }
.btn--block { display: flex; width: 100%; }

.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .search-big input, .subscribe-form input {
  width: 100%; font: 400 1rem/1.4 var(--f-ui); color: var(--text); background: var(--tint);
  border: 1px solid transparent; border-radius: var(--r-ctl); padding: 12px 14px; box-shadow: var(--sh-inset);
}
.form textarea { border-radius: min(var(--r-ctl), 14px); }
.form input:focus, .form textarea:focus, .search-big input:focus, .subscribe-form input:focus { outline: none; background: var(--surface); border-color: var(--accent-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.form button { justify-self: start; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background:
    radial-gradient(60% 80% at 85% 10%, var(--hero-2) 0%, transparent 60%),
    radial-gradient(50% 70% at 5% 100%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 65%),
    var(--hero);
  padding: clamp(32px, 5vw, 64px) 0 clamp(52px, 7vw, 96px);
  border-bottom: 1px solid var(--hero-line);
}
.hero-intro { display: grid; grid-template-columns: 1fr minmax(220px, 300px); align-items: end; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 52px); }
.hero-name {
  font-size: clamp(3.1rem, 10.5vw, 9.4rem); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96;
  line-height: .86; letter-spacing: -0.035em; color: var(--hero-text);
  text-shadow: 0 1px 0 var(--highlight), 0 18px 40px rgb(var(--shadow) / 14%);
}
[data-depth="flat"] .hero-name { text-shadow: none; }
.hero-tagline { color: var(--hero-soft); font-size: 1.05rem; line-height: 1.45; padding: 0 0 .6em 16px; border-left: 3px solid var(--accent); }
.hero-empty { color: var(--hero-soft); max-width: 46ch; font-size: 1.1rem; }
@media (max-width: 760px) { .hero-intro { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.feature--vertical { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.feature-player { perspective: 1400px; }
.feature-player .player { box-shadow: var(--sh-3); transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.feature-kicker { color: var(--hero-accent); font-weight: 600; margin-bottom: 10px; }
.feature-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-variation-settings: "wdth" 88; line-height: 1.08; }
.feature-title a { text-decoration: none; }
.feature-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.feature-excerpt { color: var(--hero-soft); margin-top: 14px; font-size: 1.05rem; max-width: 46ch; }
.feature-meta { display: flex; gap: 16px; color: var(--hero-soft); font-size: .92rem; margin: 18px 0 24px; }
@media (max-width: 860px) { .feature, .feature--vertical { grid-template-columns: 1fr; } .feature--vertical .feature-player { max-width: 380px; } }

/* ---------- Player ---------- */
.player { position: relative; aspect-ratio: 16 / 9; background: #0E1118; border-radius: var(--r-media); overflow: hidden; box-shadow: var(--sh-2); }
.player--vertical { aspect-ratio: 9 / 16; }
.player--instagram.player--vertical { aspect-ratio: 9 / 15.5; background: #fff; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--custom { aspect-ratio: auto; background: transparent; box-shadow: none; }
.player--custom iframe { position: static; width: 100%; aspect-ratio: 16 / 9; height: auto; }
.player-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.player-facade:hover img { transform: scale(1.025); }
.player-play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-accent);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 7px rgb(255 255 255 / 22%), 0 10px 26px rgb(0 0 0 / 30%), inset 0 -3px 6px rgb(0 0 0 / 12%), inset 0 2px 3px rgb(255 255 255 / 50%);
  transition: transform .2s;
}
.player-play svg { margin-left: 4px; filter: drop-shadow(0 1px 0 rgb(255 255 255 / 40%)); }
.player-facade:hover .player-play { transform: scale(1.07); }
.player-facade:focus-visible .player-play { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.section--tint { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.section--flush { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-variation-settings: "wdth" 88; }
.section-sub { color: var(--text-soft); margin-top: 4px; }
.section-link { font-weight: 600; white-space: nowrap; text-decoration-color: var(--accent-deep); padding: 6px 12px; border-radius: var(--r-ctl); background: var(--surface); box-shadow: var(--sh-1), var(--hl); text-decoration: none; font-size: .95rem; transition: transform .15s, box-shadow .15s; }
.section-link:hover { transform: translateY(-1px); box-shadow: var(--sh-2), var(--hl); }

.grid { display: grid; gap: 36px 28px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 28px 20px; }
.grid--courses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

/* Video card */
.card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; background: var(--tint);
  box-shadow: var(--sh-2); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), inset 0 0 0 1px rgb(255 255 255 / 6%); pointer-events: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media, .course-card:hover .card-media, .course-row:hover .card-media { transform: translateY(var(--lift)); box-shadow: var(--sh-3); }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, var(--hero) 0%, var(--tint) 100%); color: var(--accent-text); }
.card-dur, .card-type { position: absolute; bottom: 10px; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; z-index: 1; }
.card-dur { right: 10px; background: rgb(14 17 24 / 72%); color: #fff; backdrop-filter: blur(4px); }
.card-type { left: 10px; background: var(--accent); color: var(--on-accent); }
.card-title { font-size: 1.12rem; line-height: 1.3; margin-top: 16px; font-weight: 650; letter-spacing: -0.01em; }
.card-title a { text-decoration: none; }
.card-title a:hover, .card:has(.card-media:hover) .card-title a { text-decoration: underline; text-decoration-color: var(--accent-deep); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--text-faint); font-size: .88rem; margin-top: 6px; }

/* Vertical tiles (shorts / reels) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 210px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: -8px -4px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail:focus-visible { outline-offset: 6px; }
.tile { display: block; text-decoration: none; scroll-snap-align: start; perspective: 900px; }
.tile-media {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: calc(var(--r-media) + 2px); overflow: hidden; background: var(--hero);
  box-shadow: var(--sh-2); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / 12%) 0%, transparent 30%, transparent 70%, rgb(0 0 0 / 18%) 100%); pointer-events: none; }
[data-depth="flat"] .tile-media::after { display: none; }
.tile:hover .tile-media { transform: translateY(var(--lift)) rotateX(calc(var(--tilt) * 4deg)); box-shadow: var(--sh-3); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.tile:hover .tile-title { text-decoration: underline; text-decoration-color: var(--accent-deep); }

/* Courses */
.course-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; background: var(--surface); border-radius: var(--r-card); padding: 14px; box-shadow: var(--sh-2), var(--hl); transition: transform .3s, box-shadow .3s; }
.course-card:hover { transform: translateY(calc(var(--lift) / 2)); box-shadow: var(--sh-3), var(--hl); }
.course-card:hover .card-media { transform: none; box-shadow: var(--sh-1); }
.course-card .card-media { aspect-ratio: 4 / 3; box-shadow: var(--sh-1); }
.course-card-body { display: flex; flex-direction: column; padding: 4px 4px 2px 0; }
.course-card-title { font-size: 1.3rem; font-variation-settings: "wdth" 90; }
.course-card-title a { text-decoration: none; }
.course-card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); }
.course-card-sub { color: var(--text-soft); margin-top: 8px; font-size: .95rem; }
.course-card-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.course-card-facts { color: var(--text-faint); font-size: .88rem; }
.price { font-weight: 700; font-size: 1.15rem; }
.price s { color: var(--text-faint); font-weight: 400; font-size: .9em; margin-right: 4px; }
.price--soon { font-size: .95rem; color: var(--ok); }
@media (max-width: 520px) { .course-card { grid-template-columns: 1fr; } .course-card .card-media { aspect-ratio: 16/9; } }

.course-list { display: grid; gap: 28px; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); padding: clamp(14px, 2vw, 22px); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-2), var(--hl); align-items: center; }
.course-row h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-variation-settings: "wdth" 88; }
.course-row h2 a { text-decoration: none; }
.course-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); }
.course-row-sub { color: var(--text-soft); margin-top: 10px; font-size: 1.05rem; max-width: 48ch; }
.course-row-foot { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; }
.facts dt { font-size: .82rem; color: var(--text-faint); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .course-row { grid-template-columns: 1fr; } }

/* Ranked list */
.ranked { list-style: none; counter-reset: r; margin: 0; padding: 6px; display: grid; gap: 6px; background: var(--tint); border-radius: var(--r-card); box-shadow: var(--sh-inset); }
.ranked li { counter-increment: r; }
.ranked a { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: 12px; padding: 14px 16px; text-decoration: none; background: var(--surface); border-radius: calc(var(--r-card) - 4px); box-shadow: var(--sh-1), var(--hl); transition: transform .15s, box-shadow .15s; }
.ranked a:hover { transform: translateX(4px); box-shadow: var(--sh-2), var(--hl); }
.ranked a::before { content: counter(r); font-weight: 800; font-size: 1.6rem; font-variation-settings: "wdth" 75; color: var(--accent-text); }
.ranked-title { font-size: 1.08rem; font-weight: 600; }
.ranked-views { color: var(--text-faint); font-size: .9rem; white-space: nowrap; }

/* ---------- List pages ---------- */
.page-head { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 28px; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; font-variation-settings: "wdth" 78; letter-spacing: -0.03em; line-height: .95; text-shadow: 0 1px 0 var(--highlight), 0 12px 30px rgb(var(--shadow) / 10%); }
[data-depth="flat"] .page-head h1 { text-shadow: none; }
.page-head--intro { padding-bottom: 40px; }
.page-lede { font-size: 1.2rem; color: var(--text-soft); max-width: 54ch; }
.page-sub { color: var(--text-soft); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tint); border-radius: calc(var(--r-ctl) + 4px); box-shadow: var(--sh-inset); justify-self: start; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: var(--r-ctl); font-weight: 600; transition: background-color .15s; }
.tabs a span { color: var(--text-faint); font-weight: 400; margin-left: 4px; }
.tabs a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tabs a[aria-current="page"] { background: var(--surface); box-shadow: var(--sh-1), var(--hl); }
.sort { display: flex; gap: 18px; font-size: .92rem; }
.sort a { color: var(--text-soft); text-decoration: none; }
.sort a[aria-current] { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-deep); }
.empty { padding: 48px 0; color: var(--text-soft); font-size: 1.1rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 52px; color: var(--text-soft); }
.pager a { font-weight: 600; color: var(--text); padding: 8px 16px; background: var(--surface); border-radius: var(--r-ctl); box-shadow: var(--sh-1), var(--hl); text-decoration: none; }
.search-big { display: flex; gap: 10px; max-width: 640px; }
.search-group { font-size: 1.4rem; margin: 10px 0 20px; }
.search-group ~ .search-group { margin-top: 48px; }

/* ---------- Video & course pages ---------- */
.video-stage {
  color: var(--hero-text);
  background: radial-gradient(70% 90% at 50% 0%, var(--hero-2) 0%, transparent 70%), var(--hero);
  padding: 18px 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--hero-line);
}
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--hero-soft); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--hero-text); text-decoration: underline; }
.video-player { max-width: 1100px; margin: 0 auto; }
.video-player .player { box-shadow: var(--sh-3); }
.video-player--vertical { max-width: 400px; }
.video-body { padding-top: clamp(28px, 4vw, 44px); }
.video-head { max-width: 860px; }
.video-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 82; letter-spacing: -0.03em; line-height: 1.02; }
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--text-soft); margin-top: 16px; font-size: .95rem; }
.video-meta a { color: var(--text); font-weight: 600; text-decoration-color: var(--accent-deep); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: var(--r-ctl); background: var(--surface); font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: var(--sh-1), var(--hl), 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); transition: transform .15s, box-shadow .15s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2), var(--hl); }
.share-btn:active { transform: translateY(0); box-shadow: var(--sh-inset); }
.share-btn.copied { color: var(--ok); }

.video-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 40px; padding-bottom: 72px; }
.video-columns.has-toc { grid-template-columns: minmax(0, 1fr) 250px; }
.video-main { max-width: 720px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; padding: 18px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-2), var(--hl); }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-soft); }
.toc a { text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-deep); }
@media (max-width: 960px) { .video-columns.has-toc { grid-template-columns: 1fr; } .toc { display: none; } }

.keypoints { position: relative; background: var(--surface); border-radius: var(--r-card); padding: 22px 26px 22px 30px; margin-bottom: 36px; box-shadow: var(--sh-2), var(--hl); overflow: hidden; }
.keypoints::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.keypoints h2 { font-size: 1.05rem; margin-bottom: 10px; }
.keypoints ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.prose { font-family: var(--f-read); font-size: 1.14rem; line-height: 1.78; color: var(--prose); max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-ui); color: var(--text); margin-top: 1.9em; letter-spacing: -0.015em; }
.prose h2 { font-size: 1.7rem; font-variation-settings: "wdth" 88; }
.prose h3 { font-size: 1.32rem; }
.prose h4 { font-size: 1.1rem; }
.prose a { text-decoration-color: var(--accent-deep); }
.prose a:hover { text-decoration-thickness: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: .8em 1.2em; border-left: 3px solid var(--accent-deep); font-style: italic; color: var(--text-soft); background: var(--tint); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.prose img { border-radius: var(--r-media); box-shadow: var(--sh-2); }
.prose figure { margin: 2em 0; }
.prose figcaption { font: .88rem/1.4 var(--f-ui); color: var(--text-faint); margin-top: 10px; }
.prose code { font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--strong); color: var(--on-strong); padding: 18px; border-radius: var(--r-ctl); overflow-x: auto; font-size: .9rem; line-height: 1.6; box-shadow: var(--sh-inset); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font: .95rem/1.5 var(--f-ui); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

.faq { margin-top: 52px; }
.faq h2 { font-size: 1.6rem; margin-bottom: 14px; font-variation-settings: "wdth" 88; }
.faq details { background: var(--surface); border-radius: var(--r-ctl); box-shadow: var(--sh-1), var(--hl); margin-bottom: 10px; }
[data-radius="round"] .faq details { border-radius: 16px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; font-size: 1.04rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--text-faint); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; color: var(--text-soft); font-family: var(--f-read); line-height: 1.7; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags a { padding: 6px 12px; background: var(--surface); border-radius: var(--r-ctl); text-decoration: none; font-size: .88rem; font-weight: 600; box-shadow: var(--sh-1), var(--hl); transition: transform .15s; }
.tags a:hover { transform: translateY(-2px); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-soft); }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: var(--sh-2); }
.byline strong { color: var(--text); }
.byline a { color: var(--text); text-decoration-color: var(--accent-deep); }

.preview-bar { background: var(--accent); color: var(--on-accent); text-align: center; padding: 10px; font-weight: 600; }

/* Course page */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(28px, 4vw, 44px); padding-bottom: 80px; align-items: start; }
.course-main { display: grid; gap: 44px; min-width: 0; }
.course-main > .video-head { margin: 0; }
.course-sub { font-size: 1.2rem; color: var(--text-soft); margin-top: 14px; max-width: 52ch; }
.outcomes h2, .curriculum h2, .audience h2, .interest h2 { font-size: 1.6rem; font-variation-settings: "wdth" 88; margin-bottom: 16px; }
.outcomes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; }
.outcomes svg { flex: none; color: var(--ok); margin-top: 3px; }
@media (max-width: 640px) { .outcomes ul { grid-template-columns: 1fr; } }
.curriculum-sum { color: var(--text-soft); margin: -8px 0 14px; }
.curriculum details { background: var(--surface); border-radius: var(--r-ctl); margin-bottom: 10px; box-shadow: var(--sh-1), var(--hl); }
[data-radius="round"] .curriculum details { border-radius: 16px; }
.curriculum summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 700; }
.curriculum-n { color: var(--text-faint); font-weight: 400; white-space: nowrap; }
.curriculum ol { margin: 0; padding: 0 18px 14px 40px; }
.curriculum li { padding: 8px 0; border-top: 1px solid var(--tint); }
.curriculum li span:first-child { margin-right: 12px; }
.curriculum-len { float: right; color: var(--text-faint); font-size: .9rem; }
.audience ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.interest { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); box-shadow: var(--sh-2), var(--hl); }
.interest > p { color: var(--text-soft); margin: -6px 0 20px; }

.buy-card { position: sticky; top: 92px; background: var(--surface); border-radius: var(--r-card); padding: 24px; display: grid; gap: 18px; box-shadow: var(--sh-3), var(--hl); overflow: hidden; }
.buy-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.buy-price { font-size: 2.4rem; font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -0.02em; line-height: 1; }
.buy-price s { font-size: 1.1rem; font-weight: 400; color: var(--text-faint); margin-right: 10px; vertical-align: middle; }
.buy-closed { color: var(--text-soft); }
.buy-facts { margin: 0; display: grid; }
.buy-facts div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--tint); }
.buy-facts dt { color: var(--text-soft); }
.buy-facts dd { margin: 0; font-weight: 600; }
.buy-card .share { margin-top: 0; }
@media (max-width: 960px) { .course-layout { grid-template-columns: 1fr; } .buy-card { position: static; order: -1; } }

/* About */
.about { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 80px; }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: end; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.about-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -0.03em; line-height: 1; }
.about-role { margin-top: 18px; color: var(--text-soft); font-size: 1.1rem; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--sh-3); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); padding-top: 44px; }
.about-side { align-self: start; background: var(--surface); padding: 22px; border-radius: var(--r-card); box-shadow: var(--sh-2), var(--hl); }
.about-side h2 { font-size: 1.05rem; margin: 0 0 12px; }
.about-side h2 ~ h2 { margin-top: 28px; }
.about-list { margin: 0; padding: 0; list-style: none; }
.about-list li { padding: 10px 0; border-bottom: 1px solid var(--tint); }
.about-list li:last-child { border-bottom: 0; }
.about-stats { margin-top: 16px; color: var(--text-soft); }
.about-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-links a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; }
.about-links a:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); }
.contact { margin-top: 72px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-2), var(--hl); }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-variation-settings: "wdth" 82; }
.contact > p { color: var(--text-soft); margin: 10px 0 24px; max-width: 56ch; }
@media (max-width: 860px) { .about-head, .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* ---------- Subscribe & footer ---------- */
.subscribe { padding: clamp(40px, 6vw, 72px) 0; }
.subscribe-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 28px 56px; align-items: center; background: var(--surface); border-radius: calc(var(--r-card) + 6px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--sh-3), var(--hl); max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.subscribe h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-variation-settings: "wdth" 85; }
.subscribe p { color: var(--text-soft); margin-top: 8px; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form button { flex: none; }
@media (max-width: 760px) { .subscribe-inner { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .subscribe-form, .search-big { flex-direction: column; } }

.site-footer { background: var(--footer); color: var(--footer-soft); padding: 52px 0 28px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.brand--footer { color: var(--footer-text); font-size: 1.5rem; }
.footer-about p { margin-top: 10px; max-width: 42ch; }
.socials { list-style: none; display: flex; gap: 8px; padding: 0; margin: 20px 0 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); color: var(--footer-text); background: rgb(255 255 255 / 6%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 2px 6px rgb(0 0 0 / 15%); transition: transform .15s, background-color .15s; }
.socials a:hover { background: rgb(255 255 255 / 12%); transform: translateY(-2px); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; }
.footer-nav a { color: var(--footer-text); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .88rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--surface); color: var(--text); padding: 14px 18px; border-radius: var(--r-ctl); border-left: 5px solid var(--ok); box-shadow: var(--sh-3); transition: opacity .3s, transform .3s; }
[data-radius="round"] .toast { border-radius: 14px; }
.toast--error { border-left-color: var(--bad); }
.toast.hide { opacity: 0; transform: translateY(10px); }
.admin-hint { padding: 18px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-ctl); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .feature-player .player { transform: none !important; }
}
@media print {
  .site-header, .subscribe, .site-footer, .share, .toc, .video-stage, .buy-card, .interest { display: none !important; }
  body { background: #fff; }
}
