/* ===== Spirit Digital AI Training Landing — Editorial Operations ===== */

:root {
  --navy: #0B1B3A;
  --navy-2: #142850;
  --ink: #0A1228;
  --slate-50: #F4F6FB;
  --slate-100: #E8ECF4;
  --slate-300: #C8D1E2;
  --slate-500: #6B7793;
  --line: #E4E8F2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #00B26A;
  --accent-2: #00925A;
  --warn: #C25C2F;
  --white: #FFFFFF;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1400px;

  --t-h1: clamp(38px, 5.6vw, 72px);
  --t-h2: clamp(28px, 3.6vw, 40px);
  --t-h3: clamp(22px, 2.5vw, 32px);
  --t-card: clamp(15px, 1.15vw, 17px);
  --t-lead: 17px;
  --t-body: 16px;
  --t-meta: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ====== Header ====== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand__tag {
  font-size: 13px; color: var(--slate-500); white-space: nowrap;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px; color: var(--ink); opacity: 0.78;
  transition: opacity .15s ease;
}
.nav a:hover { opacity: 1; }
.header__cta { display: inline-flex; gap: 8px; }

@media (max-width: 980px) {
  .nav, .brand__tag { display: none; }
  .header__inner { height: 60px; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 500;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent {
  background: var(--accent); color: var(--white);
}
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--slate-300);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32);
}
.btn--ghost-dark:hover { border-color: var(--white); }
.btn--small { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 18px 28px; font-size: 16px; border-radius: 14px; }
.btn .ic { width: 18px; height: 18px; }

/* ====== Sections ====== */
section { padding: clamp(52px, 9vw, 72px) 0; }
.section-eyebrow { /* not a kicker; just numeric index */
  font-size: 13px; color: var(--slate-500); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--slate-300);
}
.section-title {
  font-size: var(--t-h2);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.08;
  margin: 0 0 14px;
}
.section-sub {
  font-size: var(--t-lead); color: var(--slate-500);
  margin: 0 0 48px;
}
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .section-sub { color: rgba(255,255,255,0.7); }
.section--soft { background: var(--slate-50); }

/* ====== Hero ====== */
.hero {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 600px;
  isolation: isolate;
}
.hero__bg-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
  will-change: contents;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    #ffffff 0%,
    rgba(255,255,255,0.85) 20%,
    rgba(255,255,255,0) 34%,
    rgba(255,255,255,0) 66%,
    rgba(255,255,255,0.85) 80%,
    #ffffff 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 460px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  min-height: 100%;
  height: 100%;
}
.hero__col--left  { text-align: left; }
.hero__col--right { text-align: left; }
.hero__center { min-height: 1px; }
.hero__chips--right { justify-content: flex-start; }
.hero h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent) 0%, #1f8a5f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 0 18px;
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; color: var(--ink);
  font-weight: 500;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 0; min-width: 200px; text-align: center; justify-content: center; }
.hero__cta .btn:hover { transform: none; }
.hero__micro {
  margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--slate-500);
  max-width: 480px;
}

/* Hero visual — workflow */
.hero__visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
}

.hero__visual-title {
  font-size: 13px; color: var(--slate-500); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero__visual-title::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,178,106,0.15);
}
.flow {
  display: flex; flex-direction: column; gap: 10px;
}
.flow__step {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.flow__num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.flow__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.flow__meta { font-size: 12px; color: var(--slate-500); }

@media (max-width: 900px) {
  .hero { height: auto; min-height: unset; padding-top: 24px; padding-bottom: 40px; }
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 20px;
  }
  .hero__grid { display: flex; flex-direction: column; }
  .hero__col--left { order: 1; }
  .hero__col--right { order: 2; }
  .hero__center {
    order: 3;
    height: clamp(240px, 42vh, 320px);
    margin: 8px 0 0;
  }
  .hero__bg-video {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: clamp(240px, 42vh, 320px);
    object-fit: cover;
    object-position: center 32%;
  }
  .hero::after { display: none; }
  .hero__col--left, .hero__col--right {
    background: #ffffff;
    padding: 0;
    text-align: center;
  }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__chips { justify-content: center; gap: 8px; margin-bottom: 14px; }
  .hero__chips .chip { font-size: 12px; padding: 7px 12px; }
  .hero__chips--right { display: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; min-width: 0; }
  .hero__micro { margin-left: auto; margin-right: auto; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero__center { height: 260px; }
  .hero::after { display: none; }
}

/* ====== Why-not block ====== */
/* ===== Compare block (Раньше / Сейчас) ===== */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
  align-items: stretch;
  margin: 32px 0 48px;
}
.compare__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
}
.compare__col--new {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  box-shadow: 0 20px 40px -24px rgba(6,41,77,0.35);
}
.compare__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.compare__col--new .compare__head { border-bottom-color: rgba(255,255,255,0.12); }
.compare__label { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.compare__badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--slate-100); color: var(--slate-500);
}
.compare__badge--on {
  background: rgba(255,255,255,0.14); color: var(--white);
}
.compare__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.compare__list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare__list li:first-child { border-top: 0; }
.compare__col--new .compare__list li { border-top-color: rgba(255,255,255,0.08); }
.compare__item { font-weight: 600; color: var(--ink); }
.compare__col--new .compare__item { color: var(--white); }
.compare__val { color: var(--slate-500); font-size: 14px; }
.compare__col--new .compare__val { color: rgba(255,255,255,0.72); }

.compare__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-300);
  min-width: 40px;
}

@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; gap: 16px; }
  .compare__arrow { transform: rotate(90deg); margin: 4px auto; }
}

/* ===== Why-course (что вы получаете) ===== */
.why-course { margin: 8px 0 48px; }
.why-course__title {
  font-size: var(--t-h3); font-weight: 700; margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.why-course__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.why-course__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 20px 22px;
}
.why-course__num {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-2);
  padding: 2px 8px; border-radius: 6px;
  background: rgba(14, 59, 102, 0.06);
  margin-bottom: 12px;
}
.why-course__item p {
  margin: 0; font-size: var(--t-card); line-height: 1.5; color: var(--ink);
}
@media (max-width: 900px) {
  .why-course__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-course__grid { grid-template-columns: 1fr; }
}

/* ===== Proof carousel (кейсы, стрелки + snap-scroll) ===== */
.proof-block { margin-top: 8px; }
.proof-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 0 22px;
}
.proof-head > div:not(.proof-nav) { flex: 1; order: 1; }
.proof-head .proof-nav { order: 2; }
.proof-head h3 {
  margin: 0 0 6px; font-size: var(--t-h3); font-weight: 700;
  letter-spacing: -0.01em;
}
.proof-head p { margin: 0; color: var(--slate-500); font-size: var(--t-body); }

.proof-nav {
  display: flex; gap: 10px; flex: 0 0 auto;
}
.proof-nav__btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.proof-nav__btn:hover:not(:disabled) {
  border-color: var(--navy); background: var(--navy); color: var(--white);
}
.proof-nav__btn:active:not(:disabled) { transform: scale(0.96); }
.proof-nav__btn:disabled { opacity: 0.4; cursor: default; }

/* Swiper wrapper — тянется за границы .wrap на всю ширину вьюпорта */
.proof-swiper {
  padding: 30px 0 50px;
  overflow: visible;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.proof-swiper .swiper-wrapper { align-items: center; }
.proof-swiper .swiper-slide {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease, filter .35s ease;
  transform: scale(0.82);
  opacity: 0.55;
  filter: saturate(0.85);
  height: auto;
  display: flex;
}
.proof-swiper .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
}
.proof-swiper .swiper-slide-prev,
.proof-swiper .swiper-slide-next {
  transform: scale(0.88);
  opacity: 0.75;
  z-index: 1;
}

.proof-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s ease, box-shadow .3s ease;
  text-decoration: none; color: inherit;
  width: 100%;
  max-height: 500px;
}
.swiper-slide-active .proof-card {
  box-shadow: 0 6px 16px -10px rgba(6,41,77,0.12);
}

/* pagination */
.proof-swiper .swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 6px;
}
.proof-swiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--slate-300);
  opacity: 1;
  transition: background .2s ease, width .2s ease;
}
.proof-swiper .swiper-pagination-bullet-active {
  background: var(--navy);
  width: 22px;
  border-radius: 999px;
}
.proof-card__visual {
  height: 200px;
  flex: 0 0 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.proof-card__visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.proof-card__visual span {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em;
}
.pv-1 { background: #0E3B66 url('/training/assets/img/cases/neuro-seo.png') center/cover no-repeat; }
.pv-2 { background: #7A2E1F url('/training/assets/img/cases/ceramica.png') center/cover no-repeat; }
.pv-3 { background: #5B1E66 url('/training/assets/img/cases/aisvadba.png') center/cover no-repeat; }
.pv-4 { background: #1E3F2C url('/training/assets/img/cases/contzavod.png') center/cover no-repeat; }
.pv-5 { background: #1F4E5F url('/training/assets/img/cases/doilnyy.png') center/cover no-repeat; }
.pv-6 { background: #3F2E1A url('/training/assets/img/cases/regznak.png') center/cover no-repeat; }

.proof-card__visual span { display: none; }
.proof-card__visual::before { display: none; }

.proof-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.proof-card__title { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); line-height: 1.3; }
.proof-card__url { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.proof-card__desc { font-size: 13.5px; color: var(--slate-500); margin: 6px 0 12px; line-height: 1.45; }
.proof-card__open {
  font-size: 13px; font-weight: 600; color: var(--ink);
  align-self: flex-start;
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 4px;
}
.proof-card:hover .proof-card__open { text-decoration-color: var(--ink); }

@media (max-width: 980px) {
  .proof-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proof-nav { align-self: flex-end; }
}

/* ====== Author block ====== */
.author {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.author > * { min-width: 0; display: flex; flex-direction: column; }
.author > * > .ratings { flex: 1; }
.author__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
}
.author__name {
  font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.015em;
}
.author__role { color: var(--slate-500); margin: 0 0 22px; font-size: 15px; }
.author__points { margin: 0; padding: 0; list-style: none; }
.author__points li {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  font-size: 15px;
}
.author__points li:first-child { border-top: 0; padding-top: 0; }
.author__points li::before {
  content: ''; width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%; background: var(--slate-50);
  border: 2px solid var(--accent);
  display: block;
}

.ratings__title { font-size: 20px; margin: 0 0 6px; font-weight: 700; }
.ratings__sub {
  color: var(--slate-500); font-size: 15px; margin: 0 0 20px;
  max-width: 480px;
}
.ratings {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.rating {
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.rating:nth-child(4) { grid-column: 2 / span 2; }
.rating:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 720px) {
  .ratings { grid-template-columns: 1fr 1fr; }
  .rating, .rating:nth-child(4), .rating:nth-child(5) { grid-column: auto; }
}
.rating:hover { border-color: var(--navy); }
.rating img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rating__meta {
  padding: 12px 14px;
  font-size: 13px;
}
.rating__meta b { display: block; color: var(--ink); font-size: 15px; }
.rating__meta span { color: var(--slate-500); }

@media (max-width: 980px) { .author { grid-template-columns: 1fr; } }

/* ====== Author hero — split image + achievement cards ====== */
.author-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 110%, rgba(0, 178, 106, 0.08), transparent 60%),
    linear-gradient(180deg, #F6F9FF 0%, #EEF3FB 100%);
}
.author-hero__glow {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(72px);
  z-index: 0;
}
.author-hero__glow--tl {
  top: -80px; left: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(11, 27, 58, 0.18), transparent 70%);
}
.author-hero__glow--br {
  right: -160px; bottom: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 178, 106, 0.20), transparent 70%);
}
.author-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-auto-rows: 1fr;
  gap: 0;
  align-items: stretch;
}
.author-hero__photo {
  position: relative;
  margin: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: linear-gradient(160deg, #0B1B3A 0%, #142850 55%, #1F3B7A 100%);
}
.author-hero__photo img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.author-hero__photo.is-fallback img { display: none; }
.author-hero__photo.is-fallback::before {
  content: "ДХ";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.10);
}
.author-hero__photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 28px 24px;
  background: linear-gradient(180deg, rgba(11,27,58,0) 0%, rgba(11,27,58,0.78) 100%);
  color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.author-hero__photo-name { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.author-hero__photo-role { font-size: 14px; opacity: 0.85; }

.author-hero__body {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column;
  min-width: 0;
}
.author-hero__grad {
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.author-hero .section-sub { max-width: 640px; }
.author-hero__cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.author-hero__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 22px 26px;
  min-height: 132px;
  box-shadow: 0 10px 30px -18px rgba(8, 40, 80, 0.25);
  outline: 1px solid rgba(11, 27, 58, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.author-hero__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(8, 40, 80, 0.35);
}
.author-hero__card { overflow: hidden; }
.author-hero__stripe {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 0;
}
.author-hero__dot {
  position: absolute; right: 18px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 178, 106, 0.18);
}
.author-hero__card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
}
.author-hero__card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-500);
  font-weight: 300;
}

@media (max-width: 1100px) {
  .author-hero__cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .author-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .author-hero__photo { min-height: 360px; aspect-ratio: 4 / 3; }
  .author-hero__body { padding: 32px 20px 40px; }
  .author-hero__cards { grid-template-columns: 1fr; gap: 12px; }
  .author-hero__card { min-height: 0; padding: 18px 18px 18px 22px; }
}

/* ====== Program 8 weeks ====== */
.weeks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.week {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.week:hover { transform: translateY(-2px); border-color: var(--navy); }
.week__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 16px;
}
.week__title {
  font-size: 17px; font-weight: 700; margin: 0; line-height: 1.25;
}
.week__row {
  display: flex; gap: 6px; align-items: baseline;
  font-size: 13px;
}
.week__row b { color: var(--ink); font-weight: 700; min-width: 76px; }
.week__row span { color: var(--slate-500); }

@media (max-width: 980px) { .weeks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .weeks { grid-template-columns: 1fr; } }

/* ====== Rules block ====== */
.rules-lead {
  font-size: var(--t-lead);
  color: rgba(255,255,255,0.82);
  max-width: none;
  margin: 0 0 40px;
}
.rules-lead b { color: var(--white); font-weight: 700; }
.rules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.rule {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 24px;
}
.rule__num {
  font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.rule h3 { font-size: 16px; margin: 0 0 8px; font-weight: 500; }
.rule p { margin: 0; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.5; }
.rules-foot {
  margin-top: 32px;
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

@media (max-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

/* ====== Outcome block ====== */
.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.outcome {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--white);
  display: flex; flex-direction: column; gap: 14px;
}
.outcome__tag {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--slate-100); color: var(--slate-500);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  align-self: flex-start;
}
.outcome h3 { margin: 0; font-size: 19px; font-weight: 700; }
.outcome p { margin: 0; font-size: 14px; color: var(--slate-500); line-height: 1.55; }
.outcome__hint {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink);
}

@media (max-width: 900px) { .outcomes { grid-template-columns: 1fr; } }

.outcomes-foot {
  margin-top: 32px; font-size: 17px; color: var(--ink); max-width: 760px;
}

/* ====== Final CTA ====== */
.final {
  text-align: center;
}
.final h2 { margin: 0 auto 14px; max-width: 820px; }
.final p { margin: 0 auto 36px; color: rgba(255,255,255,0.7); max-width: 620px; font-size: var(--t-lead); }
.final__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final__note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.5); max-width: 540px; margin-left: auto; margin-right: auto; }

/* ====== Footer ====== */
.footer {
  background: #06122B; color: rgba(255,255,255,0.7);
  padding: 64px 0 36px;
}
.footer a { color: rgba(255,255,255,0.7); transition: color .15s ease; }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
.footer__about { margin: 16px 0 0; font-size: 14px; max-width: 360px; line-height: 1.55; }
.footer__col h4 {
  font-weight: 500;
  color: var(--white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__col a, .footer__col p {
  display: block; font-size: 14px; margin: 0 0 8px;
}
.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer .brand__tag { color: rgba(255,255,255,0.6); }
.footer img.brand__logo { height: 34px; }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0; background: rgba(6,18,43,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 32px; z-index: 100;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 22px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--white);
  font-size: 22px; display: flex; align-items: center; justify-content: center;
}

/* ====== Utilities ====== */
.row-2 { display: flex; gap: 12px; flex-wrap: wrap; }
.note-strip {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(0,178,106,0.08);
  border: 1px solid rgba(0,178,106,0.25);
  color: var(--accent-2);
  font-size: 14px; font-weight: 600;
}

/* ====== FAQ ====== */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: none; }
.faq__item {
  background: var(--white);
  border: 1px solid rgba(6,18,43,0.08);
  border-radius: var(--r-md);
  padding: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] {
  border-color: rgba(0,178,106,0.35);
  box-shadow: 0 6px 20px rgba(6,18,43,0.05);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-2);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__item p {
  padding: 0 22px 20px;
  margin: 0;
  color: rgba(6,18,43,0.72);
  font-size: 15px;
  line-height: 1.6;
}
/* ====== Program accordion (labsme-style) ====== */
.program-divider {
  height: 1px;
  background: var(--slate-200);
  width: 100%;
  margin: 12px 0 0;
}
.program-list {
  margin-top: 8px;
}
.program-item {
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
}
.program-item__head {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  padding: clamp(28px, 3vw, 40px) 0;
  text-align: left;
  color: inherit;
}
.program-item__num {
  flex-shrink: 0;
  padding-top: 4px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--slate-300);
  transition: color 0.4s ease;
}
.program-item__head:hover .program-item__num,
.program-item.is-open .program-item__num {
  color: var(--navy);
}
.program-item__meta {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 8px;
}
.program-item__eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
}
.program-item__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.program-item__toggle {
  flex-shrink: 0;
  margin-top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.program-item__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s ease;
}
.program-item__head:hover .program-item__toggle {
  border-color: var(--slate-500);
  color: var(--navy);
}
.program-item.is-open .program-item__toggle {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.program-item.is-open .program-item__toggle svg {
  transform: rotate(45deg);
}

.program-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}
.program-item__body-inner {
  overflow: hidden;
  min-height: 0;
}
.program-item.is-open .program-item__body {
  grid-template-rows: 1fr;
}
.program-item__cols {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: 1fr 1fr;
  padding: 0 0 clamp(32px, 4vw, 56px) calc(clamp(40px, 5vw, 56px) + clamp(20px, 3vw, 48px));
}
@media (max-width: 900px) {
  .program-item__cols {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 28px;
  }
}
.program-item__col-head {
  display: flex;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--slate-500);
  margin-bottom: 12px;
}
.program-item__col-head::before {
  content: '';
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--slate-400);
}
.program-item__col-head--result {
  color: var(--accent);
  border-bottom-color: rgba(0, 178, 106, 0.35);
}
.program-item__col-head--result::before { display: none; }
.program-item__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-item__list li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--slate-500);
  font-weight: 400;
}
.program-item__list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 10px;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--accent);
}
.program-item__list--check li {
  position: relative;
  padding-left: 28px;
  gap: 0;
  align-items: flex-start;
}
.program-item__list--check li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: transparent center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27 fill=%27none%27 stroke=%27%2300B26A%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M2 7.5l3 3 7-7.5%27/%3E%3C/svg%3E");
  border-radius: 0;
  margin-top: 0;
  display: block;
  flex-shrink: 0;
}

/* Final defense card */
.program-final {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #061a3a 0%, #0f2a5f 40%, #16468f 75%, #1f6ac0 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 40px 80px -30px rgba(11,27,58,0.55);
}
.program-final__glow {
  position: absolute;
  pointer-events: none;
  filter: blur(48px);
  border-radius: 50%;
}
.program-final__glow--tr {
  top: -160px; right: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 178, 106, 0.28), transparent 70%);
}
.program-final__glow--bl {
  bottom: -160px; left: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 178, 106, 0.30), transparent 70%);
}
.program-final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.program-final__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(144, 224, 239, 0.9);
}
.program-final__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 640px;
}


/* ====== Join card (labsme-style) ====== */
.join-section {
  padding: clamp(48px, 6vw, 96px) 0;
}
.join-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #032f1c 0%, #05583a 32%, #00925a 66%, #12c07a 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 40px 80px -30px rgba(0,146,90,0.55);
}
.join-card__glow {
  position: absolute;
  pointer-events: none;
  filter: blur(56px);
  border-radius: 50%;
  width: 420px; height: 420px;
}
.join-card__glow--tr {
  top: -160px; right: -160px;
  background: radial-gradient(circle, rgba(158, 240, 200, 0.28), transparent 70%);
}
.join-card__glow--bl {
  bottom: -160px; left: -160px;
  background: radial-gradient(circle, rgba(0, 178, 106, 0.30), transparent 70%);
}
.join-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.join-card__icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 18px 40px -20px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: rgba(198, 255, 224, 0.95);
  margin-bottom: 6px;
}
.join-card__icon svg { width: 32px; height: 32px; }
.join-card__title {
  margin: 6px 0 0;
  max-width: 720px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
}
.join-card__grad {
  background: linear-gradient(90deg, #b7ffd8 0%, #eafff3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.join-card__sub {
  max-width: 640px;
  margin: 4px 0 0;
  font-size: clamp(15px, 1.1vw, 16.5px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(215, 245, 228, 0.92);
}
.join-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.join-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  color: #00743F;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.join-card__btn svg {
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
}
.join-card__btn:hover {
  transform: translateY(-2px);
  }
.join-card__btn:hover svg { transform: translateX(4px); }
.join-card__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: none;
}
.join-card__btn--outline:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.join-card__note {
  margin-top: 22px;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(215, 245, 228, 0.65);
}
.join-card__note a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}


/* ====== Palette swap 2026-07-08: alternating white/gray sections ====== */
.section--white { background: #ffffff; }

/* Author section — plain white bg (was light gradient) */
.author-hero { background: #ffffff !important; }
.author-hero__glow--tl,
.author-hero__glow--br { display: none !important; }

/* Rules block on light bg */
#rules.section--soft { background: var(--slate-50); color: var(--ink); }
#rules .section-title { color: var(--navy); }
#rules .rules-lead {
  color: var(--slate-500);
}
#rules .rules-lead b { color: var(--ink); }
#rules .rule {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(16,22,26,0.04), 0 8px 24px -18px rgba(11,27,58,0.12);
  overflow: hidden;
}
#rules .rule__num { display: none; }
#rules .rule h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 500;
}
#rules .rule p {
  color: var(--slate-500);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
#rules .rules-foot {
  color: var(--slate-500);
  background: #ffffff;
  border-left-color: var(--accent);
  box-shadow: 0 1px 3px rgba(16,22,26,0.05);
}

/* Join section: gray bg wrapper (dark gradient card inside remains) */
#join.join-section { background: var(--slate-50); }

/* Footer — light theme */
.footer {
  background: #ffffff;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
}
.footer a { color: var(--slate-500); }
.footer a:hover { color: var(--navy); }
.footer__col h4 {
  font-weight: 500; color: var(--navy); }
.footer .brand__tag { color: var(--slate-500); }
.footer__about { color: var(--slate-500); }
.footer__bottom {
  border-top-color: var(--slate-200);
  color: var(--slate-500);
}
/* Swap brand logo for dark variant on light footer */
.footer img.brand__logo {
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
}


#rules .rule h3,
#rules .rule p { position: relative; z-index: 1; }

#rules .rule:nth-child(1) {
  background: linear-gradient(135deg, #E6F7EE 0%, #FFFFFF 100%);
}
#rules .rule:nth-child(2) {
  background: linear-gradient(135deg, #EAF9F0 0%, #F7FDF9 60%, #FFFFFF 100%);
}
#rules .rule:nth-child(3) {
  background: linear-gradient(160deg, #D9F1E4 0%, #F0F9F4 55%, #FFFFFF 100%);
}
#rules .rule:nth-child(4) {
  background: linear-gradient(200deg, #EEFBF3 0%, #E1F5EA 45%, #F5FBF7 100%);
}


/* Mobile refinements 2026-07-08 */
@media (max-width: 900px) {
  .author-hero__photo {
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: 520px;
  }
  .author-hero__photo img {
    object-position: 50% 15%;
  }
  .author-hero__card h3 {
    max-width: 90%;
  }
}
@media (max-width: 560px) {
  .author-hero__photo {
    aspect-ratio: 4 / 5;
    max-height: 440px;
  }
  .hero__sub { margin-bottom: 0; }
}


/* Mobile refinements for author-hero body 2026-07-08 */
@media (max-width: 900px) {
  .author-hero__body { padding: 28px 18px 36px; }
  .author-hero .section-title { font-size: 26px; line-height: 1.15; }
  .author-hero .section-sub { max-width: none; font-size: 15px; margin-bottom: 22px; }
  .author-hero__cards { gap: 10px; }
  .author-hero__card { padding: 16px 16px 16px 20px; box-shadow: 0 6px 18px -12px rgba(8, 40, 80, 0.2); }
  .author-hero__card h3 { font-size: 15.5px; }
  .author-hero__card p { font-size: 13.5px; margin-top: 6px; }
  .author-hero__stripe { width: 3px; }
  .author-hero__dot { top: 14px; right: 14px; width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(0,178,106,0.18); }
  .author-hero__card:hover { transform: none; box-shadow: 0 6px 18px -12px rgba(8, 40, 80, 0.2); }
}
@media (max-width: 560px) {
  .author-hero__body { padding: 24px 14px 32px; }
  .author-hero .section-title { font-size: 22px; }
  .author-hero__card { padding: 14px 14px 14px 18px; border-radius: 16px; }
  .author-hero__card h3 { font-size: 14.5px; line-height: 1.28; }
  .author-hero__card p { font-size: 13px; }
}


/* Kill desktop stretch on mobile — main cause of empty space 2026-07-08b */
@media (max-width: 900px) {
  .author-hero__grid {
    display: block !important;
    grid-auto-rows: auto !important;
    align-items: initial !important;
  }
  .author-hero__photo {
    height: auto !important;
    align-self: auto !important;
    aspect-ratio: 3 / 4;
    max-height: 460px;
    min-height: 0 !important;
  }
  .author-hero__photo img {
    position: absolute !important;
  }
  .author-hero { padding: 0 !important; }
  .author-hero__body { padding: 24px 16px 32px !important; }
}
@media (max-width: 560px) {
  .author-hero__photo { aspect-ratio: 4 / 5; max-height: 400px; }
  .author-hero__body { padding: 20px 14px 28px !important; }
  .author-hero__cards { gap: 8px; }
}


/* Photo full width on mobile 2026-07-08c */
@media (max-width: 900px) {
  .author-hero .wrap { padding: 0 !important; max-width: none !important; }
  .author-hero__photo {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: none !important;
    max-height: none !important;
    border-radius: 0;
  }
  .author-hero__body {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }
}


/* Mobile: align program-item number and + toggle to same top 2026-07-08d */
@media (max-width: 720px) {
  .program-item__head {
    align-items: center;
    gap: 14px;
  }
  .program-item__num {
    padding-top: 0;
    font-size: 34px;
    line-height: 1;
    align-self: center;
  }
  .program-item__meta { padding-top: 0; }
  .program-item__title { font-size: 17px; }
  .program-item__eyebrow { margin-bottom: 4px; }
  .program-item__toggle {
    margin-top: 0;
    width: 36px; height: 36px;
    align-self: center;
  }
}
