@font-face {
  font-family: Montserrat;
  src: url("brand/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url("brand/Unbounded.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --wine: #4a071e;
  --ink: #292429;
  --muted: #6b515a;
  --paper: #fcf1ef;
  --blush: #fae2e5;
  --accent: #b9354c;
  --line: #dfc9cd;
  --white: #fffdfc;
  /* «пройдено»: от Pantone 2027 Aqua Splash (#88ced1) — светлый тон и глубокий для белой галочки */
  --done: #2f9690;
  --done-soft: #88ced1;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Montserrat, Arial, sans-serif;
}

body > header {
  position: relative;
  z-index: 10;
}

.bar,main,footer {
  max-width: 1280px;
  margin: auto;
  padding-inline: clamp(20px,5vw,72px);
}

.bar,.bar nav,.toolbar,.section-title,.card-foot,footer,.listitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bar {
  min-height: 78px;
}



.brand,nav a,.card,.button,.lightbtn,.back,.lessons a,.listitem a {
  text-decoration: none;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bar nav {
  font-size: 14px;
  gap: 22px;
}

.bar nav form {
  margin: 0;
}

.signin,.navbtn {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 15px;
  color: inherit;
  background: transparent;
  font-size: 14px;
}

.signin span {
  margin-left: 5px;
}

main {
  min-height: 75vh;
  padding-top: 26px;
  padding-bottom: 68px;
}

.cover {
  min-height: clamp(380px, 39vw, 530px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--wine);
  position: relative;
  display: flex;
  align-items: center;
  color: var(--wine);
}

.cover-copy {
  padding: clamp(27px,4.5vw,64px);
  position: relative;
  z-index: 1;
  width: min(57%, 650px);
}


.overline,small,time {
  font-size: 13px;
  letter-spacing: .035em;
}

.overline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}


.cover h1,.heading,h1,h2,h3 {
  line-height: 1.07;
  letter-spacing: -.045em;
  margin: .4em 0;
}

.cover h1 {
  font: 500 clamp(32px, 3.5vw, 54px)/1.12 Unbounded, Arial, sans-serif;
  letter-spacing: -.045em;
  margin: 22px 0;
}



.button,button,.lightbtn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button,button,.lightbtn {
  display: inline-block;
  background: var(--wine);
  color: white;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
}

.lightbtn {
  background: var(--wine);
  color: white;
  margin-top: 5px;
}

.lightbtn span {
  margin-left: 18px;
}

.section-title {
  margin: 34px 0 18px;
}

.section-title>span,small,time,.back {
  color: var(--muted);
}

.heading,h1 {
  font-size: clamp(33px,5vw,62px);
}

h2 {
  font-size: clamp(26px,3.4vw,42px);
}

h3 {
  font-size: 25px;
}

.card {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  align-items: center;
}

.card:hover {
  text-decoration: none;
  border-color: var(--wine);
}


.card-copy {
  padding: clamp(18px,3vw,32px);
}

.card-copy p,.lead {
  color: var(--muted);
}

.card-copy h3 {
  font-size: clamp(26px,3vw,38px);
}

.card-foot {
  padding: 16px 28px;
}

.round {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 31px;
  height: 31px;
  text-align: center;
}

.cards {
  display: grid;
  gap: 18px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-block: 24px;
  font-size: 13px;
}

footer span:first-child {
  font-weight: bold;
}

.back {
  display: inline-block;
  margin: 8px 0 22px;
}

.split,.player-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(240px,1fr);
  gap: clamp(24px,5vw,64px);
  align-items: start;
}

.lead {
  font-size: 20px;
  max-width: 58ch;
}

.panel,.narrow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.panel h2,.panel h3 {
  margin-top: 5px;
}

.narrow {
  max-width: 620px;
  margin: 2vh auto;
}

.lessons {
  list-style: none;
  padding: 0;
}

.lessons li,.listitem {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.lessons li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.lessons li time {
  margin-left: auto;
}

.lessons small,.listitem small {
  display: block;
}

.index {
  color: var(--muted);
  font-family: monospace;
}

.fields {
  display: grid;
  gap: 16px;
}

.fields label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input,select,textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  color: inherit;
  max-width: 100%;
}

.fields .check {
  display: flex;
  gap: 8px;
}

.notice,.error {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--blush);
}

.error {
  background: #ffe5db;
}

.subtle,.chapter,.cue {
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 400;
}

.subtle {
  border: 1px solid var(--line);
}

.chapter,.cue {
  display: block;
  width: 100%;
  border-radius: 8px;
  line-height: 1.5;
}

.chapter time,.cue time {
  display: block;
}

.active {
  background: var(--blush);
}

.panel .back {
  margin-bottom: 0;
}

video {
  width: 100%;
  border-radius: 14px;
  background: #24141b;
  aspect-ratio: 16/9;
}

.toolbar {
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.toolbar select {
  padding: 4px;
}

.search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.listitem h3 {
  margin: 4px 0;
}

.cues {
  margin-top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width:700px) {
  .bar {
    min-height: 65px;
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 8px;
  }

  .bar nav {
    gap: 10px;
    font-size: 13px;
  }


  .cover {
    min-height: auto;
  }


  .cover h1 {
    font-size: clamp(28px, 7vw, 38px);
  }

  .split,.player-grid {
    grid-template-columns: 1fr;
  }

  .card {
    grid-template-columns: 1fr;
  }


  .section-title {
    align-items: baseline;
    flex-wrap: wrap;
  }

  .section-title span {
    font-size: 12px;
  }

  .listitem {
    flex-wrap: wrap;
  }

  .panel,.narrow {
    padding: 20px;
  }

  .player-grid .panel {
    order: 0;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

}

body > header { background: var(--paper); }
.brand img { display: block; width: clamp(120px, 14vw, 160px); height: auto; }
h1, h2, h3 { font-family: Unbounded, Arial, sans-serif; font-weight: 500; color: var(--wine); overflow-wrap: anywhere; }
.cover { isolation: isolate; background: #e8909a; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(253,229,226,.83), rgba(253,229,226,.32) 42%, transparent 60%); }
.cover .overline { color: var(--wine); }
.cover-copy h1 { text-wrap: balance; }
.card-foot strong, .round { white-space: nowrap; color: var(--wine); }
.button:hover, .lightbtn:hover, .fields button:hover { background: #711936; color: white; text-decoration: none; }
.course-body { padding-top: 32px; }
.course-body .lead { margin-top: 0; }
.lessons li { align-items: baseline; }
.lessons .index { color: var(--wine); border: 1px solid #e5a3ae; background: var(--blush); padding: 3px 6px; border-radius: 6px; }
.lessons time { white-space: nowrap; }
.demo-note { color: var(--muted); }
.chapter.active, .cue.active { box-shadow: inset 3px 0 #df5867; }
@media (max-width: 700px) {
  .cover { display: flex; flex-direction: column; align-items: stretch; }
  .cover-photo { position: static; height: auto; aspect-ratio: 2.4; object-position: 50% 32%; }
  .cover::before { display: none; }
  .cover-copy { width: 100%; padding: 20px; background: var(--blush); }
  .cover-copy h1 { margin: 8px 0 18px; }
  .cover-copy .overline { margin: 0; }
  .card-foot { padding: 0 18px 18px; }
  .section-title .button { flex-shrink: 0; }
  .bar nav { flex-wrap: wrap; }
}

/* ── Урок: видео + расшифровка справа ─────────────────────────── */
.watch { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: stretch; margin-top: 8px; }
.watch-video { min-width: 0; }
.watch-video video { display: block; }
.watch-video { align-self: start; }
.watch-video .toolbar { margin: 12px 0 0; justify-content: flex-start; }
.watch-video .toolbar .back { margin: 0 0 0 auto; }
.watch-video #saved { color: var(--muted); }
/* высота колонки = высоте видео: сама расшифровка не растягивает строку */
.transcript { height: 0; min-height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.transcript-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.transcript-head .overline { margin: 0 0 4px; font-size: 11px; }
.transcript-head strong { display: block; font-size: 14px; line-height: 1.3; color: var(--wine); }
.transcript-head .follow { flex-shrink: 0; padding: 6px 10px; font-size: 12px; border-radius: 999px; }
.transcript-head .follow[hidden] { display: none; }
.transcript-body { position: relative; flex: 1; min-height: 0; display: flex; }
.transcript .cues { flex: 1; min-width: 0; margin: 0; padding: 10px 14px 40vh 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 36px), transparent); }
.transcript .cues:focus-visible { outline-offset: -3px; }
.transcript .cue { display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 5px 8px; margin: 1px 0; font-size: 13.5px; line-height: 1.45; color: #4f454b; border: 0; border-radius: 8px; box-shadow: none; transition: background .2s, color .2s; }
.transcript .cue time { display: block; font-size: 11px; line-height: 1.9; color: #a8939a; font-variant-numeric: tabular-nums; }
.transcript .cue:hover { background: #fbf1f1; }
.transcript .cue.active { background: var(--blush); color: var(--ink); box-shadow: inset 3px 0 #df5867; }
.transcript .cue.active time { color: var(--accent); }
.cue-chapter { margin: 18px 0 6px 8px; font-family: Montserrat, Arial, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cue-chapter:first-child { margin-top: 6px; }
.cues-empty { padding: 12px; color: var(--muted); font-size: 14px; }

/* Навигация по главам: риски слева */
.rail { flex: 0 0 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 12px 0 12px 10px; position: relative; z-index: 2; }
.tick { position: relative; display: flex; align-items: center; width: 100%; height: 14px; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; box-shadow: none; --w: 12px; --c: #d9c3c8; }
.tick:hover { background: none; }
.tick-line { display: block; width: var(--w); height: 2px; border-radius: 2px; background: var(--c); transition: width .35s cubic-bezier(.34,1.56,.64,1), background-color .25s, height .25s; }
.tick.passed { --c: #b78b96; }
.tick.active { --w: 20px; --c: var(--accent); }
/* рост: наведённая риска и её соседи */
.rail:hover .tick { --w: 12px; }
.rail .tick:hover { --w: 30px; --c: var(--wine); }
.rail .tick:hover .tick-line { height: 3px; }
.rail .tick:hover + .tick, .rail .tick:has(+ .tick:hover) { --w: 22px; }
.rail .tick:hover + .tick + .tick, .rail .tick:has(+ .tick + .tick:hover) { --w: 16px; }
.rail:hover .tick.active:not(:hover) { --c: var(--accent); }
.tick:focus-visible { outline-offset: 1px; --w: 30px; }
.tick-tip { position: absolute; left: 40px; top: 50%; translate: -6px -50%; scale: .96; transform-origin: left center; width: max-content; max-width: 230px; padding: 7px 11px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: left; box-shadow: 0 8px 24px rgba(74,7,30,.25); opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s cubic-bezier(.34,1.56,.64,1), scale .25s; }
.tick-tip time { display: block; font-size: 10.5px; opacity: .7; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.tick:hover .tick-tip, .tick:focus-visible .tick-tip { opacity: 1; translate: 0 -50%; scale: 1; }

@media (max-width: 900px) {
  .watch { grid-template-columns: 1fr; }
  .transcript { height: min(62vh, 520px); min-height: 0; }
  .rail { flex-basis: 30px; padding-left: 8px; }
  .transcript .cue { grid-template-columns: 34px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tick-line, .tick-tip, .transcript .cue { transition: none; }
}

/* ── Шапка: активный раздел и меню профиля ───────────────────── */
.bar nav a[aria-current="page"] { color: var(--wine); font-weight: 600; text-decoration: underline; text-decoration-color: #e5a3ae; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.profile { position: relative; }
.profile summary { list-style: none; cursor: pointer; border-radius: 50%; }
.profile summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blush); border: 1px solid #e5a3ae; color: var(--wine); font-weight: 700; font-size: 14px; transition: background .2s; }
.profile summary:hover .avatar, .profile[open] .avatar { background: #f5cfd5; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; display: grid; gap: 2px; min-width: 220px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(74,7,30,.12); }
.profile-menu strong { color: var(--wine); }
.profile-menu small { display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.profile-menu .navbtn { width: 100%; text-align: center; }
.profile-menu .navbtn:hover { background: var(--blush); }

/* ── Кнопки ──────────────────────────────────────────────────── */
.button.ghost { background: transparent; color: var(--wine); border: 1px solid var(--wine); }
.button.ghost:hover { background: var(--wine); color: #fff; }

/* ── Страница урока: компактная шапка и навигация ────────────── */
.lesson-head { margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs span { font-weight: 600; color: var(--accent); }
.lesson-head h1 { font-size: clamp(26px, 3vw, 40px); margin: 0; text-wrap: balance; }
.lesson-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 22px; }
.step { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; min-width: 0; transition: border-color .2s, transform .2s; }
.step:hover { text-decoration: none; border-color: var(--wine); }
.step.prev:hover { transform: translateX(-2px); }
.step.next:hover { transform: translateX(2px); }
.step small { color: var(--muted); font-size: 12px; }
.step span { color: var(--wine); font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.next { text-align: right; }
.step.locked { opacity: .65; cursor: not-allowed; }
.step.locked:hover { transform: none; border-color: var(--line); }
.step em { font-style: normal; font-size: 12px; color: var(--muted); }
.hotkeys { margin: 14px 0 0; text-align: center; font-size: 12px; color: #a8939a; }
@media (hover: none) { .hotkeys { display: none; } }

/* ── Прогресс ────────────────────────────────────────────────── */
.progress { height: 6px; border-radius: 6px; background: var(--blush); overflow: hidden; margin: 10px 0 16px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #df5867); transition: width .6s ease; }
.buy h2 { margin-bottom: 0; }
.buy .button { display: block; text-align: center; }
.title-done { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: var(--done); color: #fff; vertical-align: 2px; }
.lessons li.done small { color: var(--done); }
.lessons li.next { background: linear-gradient(90deg, var(--blush), transparent 70%); border-radius: 10px; padding-inline: 10px; }
.lessons li.next small { color: var(--wine); font-weight: 600; }
.lessons li.locked { color: var(--muted); }
.lessons li.locked strong { font-weight: 500; }

/* ── Мои курсы ───────────────────────────────────────────────── */
.mine { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.mine-cover img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: 50% 35%; border-radius: 12px; }
.mine h3 { margin: 0 0 4px; font-size: clamp(20px, 2vw, 26px); }
.mine h3 a { text-decoration: none; }
.mine .progress { margin-bottom: 0; }
.mine:not(:has(.mine-cover)) { grid-template-columns: minmax(0, 1fr) auto; }

/* ── Каталог: обложка в карточке ─────────────────────────────── */
.card.with-cover { grid-template-columns: minmax(200px, 300px) 1fr auto; }
.card-cover { width: 100%; height: 100%; min-height: 180px; object-fit: cover; object-position: 50% 35%; }

@media (max-width: 900px) {
  .lesson-nav { grid-template-columns: 1fr 1fr; }
  .lesson-nav .button { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .lesson-nav .step-gap { display: none; }
  .lesson-nav .step.next:only-of-type { grid-column: 2; }
}
@media (max-width: 700px) {
  .bar { flex-wrap: nowrap; }
  .brand img { width: 112px; }
  .bar nav { flex-wrap: nowrap; gap: 14px; font-size: 13px; }
  .avatar { width: 32px; height: 32px; }
  .mine { grid-template-columns: 1fr; gap: 14px; }
  .mine .button { text-align: center; }
  .card.with-cover { grid-template-columns: 1fr; }
  .card-cover { aspect-ratio: 2.2; min-height: 0; }
}
.card-cover { object-position: 82% 28%; }
.lessons li.next { margin-inline: -10px; }
.lesson-nav { align-items: stretch; }
.lesson-nav .button.ghost { align-self: center; }

/* ── Программа курса: строка целиком кликабельна ─────────────── */
.lessons li { position: relative; transition: background .2s; }
.lessons .lesson-link, .lessons .lesson-title { font-weight: 500; color: var(--ink); }
.lessons .lesson-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.lessons .lesson-link:hover { text-decoration: none; }
.lessons li:has(.lesson-link) { cursor: pointer; }
.lessons li:has(.lesson-link):hover { background: var(--blush); border-radius: 10px; }
.lessons li:has(.lesson-link):hover .lesson-link { color: var(--wine); }
.lessons li:has(.lesson-link) time::after { content: " →"; color: var(--accent); }
.lessons li:has(.lesson-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.lessons .lesson-link:focus-visible { outline: none; }
.lessons li { margin-inline: -10px; padding-inline: 10px; }
.lessons .index { display: inline-grid; place-items: center; min-width: 32px; height: 28px; }
.lessons li.locked { opacity: .55; }
.lessons li.locked .index { background: transparent; border-color: var(--line); color: var(--muted); }
.lessons li.locked .lesson-title { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lessons li .index, .lessons li.done .index { width: 32px; min-width: 32px; padding: 0; }
.lessons li:has(.lesson-link):hover { background: #f8dce1; }

/* ── Hero курса во всю ширину экрана ─────────────────────────── */
body { overflow-x: clip; }
.hero { position: relative; isolation: isolate; width: 100vw; margin: -26px 0 0 calc(50% - 50vw); min-height: clamp(520px, calc(100svh - 79px), 900px); display: flex; align-items: center; overflow: hidden; background: #e8909a; color: var(--wine); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; animation: hero-in 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(252,233,230,.92) 0%, rgba(252,233,230,.7) 32%, rgba(252,233,230,.15) 55%, transparent 70%); }
.hero-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px); }
.hero-inner > * { max-width: min(620px, 52%); animation: hero-up .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; } .hero-inner > :nth-child(3) { animation-delay: .16s; } .hero-inner > :nth-child(4) { animation-delay: .24s; } .hero-inner > :nth-child(5) { animation-delay: .32s; }
.hero-back { display: inline-block; margin-bottom: clamp(24px, 6vh, 64px); font-size: 14px; text-decoration: none; color: var(--wine); opacity: .75; }
.hero-back:hover { opacity: 1; }
.hero .overline { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.hero h1 { font: 500 clamp(36px, 5vw, 76px)/1.04 Unbounded, Arial, sans-serif; letter-spacing: -.05em; margin: 14px 0 28px; text-wrap: balance; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 34px; list-style: none; padding: 0; margin: 0 0 34px; font-size: 14px; color: var(--muted); }
.hero-facts strong { display: block; font: 500 28px/1.1 Unbounded, Arial, sans-serif; color: var(--wine); letter-spacing: -.03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { padding: 15px 26px; font-size: 16px; }
.lightbtn.ghost { background: rgba(255,253,252,.55); color: var(--wine); border: 1px solid rgba(74,7,30,.25); padding: 14px 22px; margin: 0; backdrop-filter: blur(6px); }
.lightbtn.ghost:hover { background: var(--white); color: var(--wine); }
.lightbtn.ghost span { margin-left: 10px; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 30px; height: 48px; margin-left: -15px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,253,252,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 22px rgba(42,4,17,.28); transition: background .3s, transform .3s; }
.hero-scroll:hover { background: var(--white); transform: translateY(2px); }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--wine); animation: hero-wheel 1.8s ease-in-out infinite; }
#program { scroll-margin-top: 24px; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes hero-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hero-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-photo, .hero-inner > *, .hero-scroll::after { animation: none; } }
@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-photo { position: static; height: 56svh; object-position: 72% 20%; }
  .hero::before { display: none; }
  .hero-inner { background: var(--blush); padding-top: 22px; }
  .hero-inner > * { max-width: none; }
  .hero-back { position: absolute; top: 14px; left: 20px; margin: 0; padding: 6px 12px; border-radius: 20px; background: rgba(255,253,252,.8); }
  .hero-scroll { display: none; }
  .hero h1 { margin-bottom: 18px; }
}

/* ── Страницы ошибок ─────────────────────────────────────────── */
.oops { display: grid; align-content: center; justify-items: start; min-height: 70vh; max-width: 760px; }
.oops-code { margin: 0; font: 500 clamp(90px, 18vw, 200px)/.9 Unbounded, Arial, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px #e5a3ae; }
.oops h1 { font-size: clamp(30px, 4.4vw, 54px); margin: 18px 0 10px; }
.oops .lead { font-size: 18px; max-width: 560px; margin: 0 0 28px; }

/* ── Вход: показ пароля и подсказка ──────────────────────────── */
.reveal { position: relative; display: block; }
.reveal input { width: 100%; padding-right: 96px; }
.reveal-btn { position: absolute; right: 6px; top: 50%; translate: 0 -50%; padding: 5px 10px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; }
.reveal-btn:hover { color: var(--wine); border-color: var(--wine); background: transparent; }
.intent { padding: 12px 16px; border-radius: 12px; background: var(--blush); border-left: 3px solid var(--accent); }

/* ── Оформление покупки ──────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.checkout h1 { font-size: clamp(28px, 3.6vw, 46px); }
.checkout-sub { font-size: 20px; margin-top: 28px; }
.included { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.included li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.included li span { width: 24px; color: var(--accent); font-weight: 600; }
.included li time { margin-left: auto; white-space: nowrap; }
.perks { list-style: none; padding: 0; display: grid; gap: 10px; }
.perks li { padding-left: 28px; position: relative; color: var(--muted); }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.perks strong { color: var(--ink); font-weight: 600; }
.pay { position: sticky; top: 20px; }
.pay .total { font: 500 clamp(34px, 3.4vw, 46px)/1.1 Unbounded, Arial, sans-serif; color: var(--wine); letter-spacing: -.04em; margin: 8px 0; }
.pay .muted { color: var(--muted); font-size: 14px; }
button.wide { width: 100%; padding: 15px; font-size: 16px; }
.test-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ── Студия ──────────────────────────────────────────────────── */
.studio-course small { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.pill { padding: 1px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #eee3e5; color: var(--muted); }
.pill-on { background: #dff3e4; color: #23683a; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button.small { padding: 7px 14px; font-size: 13px; }
.tc-preview { margin-top: -8px; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: #f4ecee; color: var(--muted); }
.tc-preview.ok { background: #eaf6ed; color: #23683a; }
.tc-preview.bad { background: #ffe9e2; color: #9b2c1c; }
.tc-preview ul { margin: 6px 0 0; padding-left: 18px; max-height: 160px; overflow: auto; }
.upload .progress { margin: 0 0 6px; height: 8px; }
.upload .progress span { width: 0; transition: width .2s; }
.upload[hidden] { display: none; }

@media (max-width: 760px) {
  .checkout { grid-template-columns: 1fr; }
  .pay { position: static; }
  .studio-course { flex-direction: column; align-items: flex-start; }
}

/* ── Студия: ученики ─────────────────────────────────────────── */
.user-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 18px; padding: 14px 10px; margin-inline: -10px; border-radius: 10px; color: inherit; }
.user-row:hover { background: var(--blush); text-decoration: none; }
.user-row small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.user-orders { font-size: 14px; color: var(--muted); }
.pill-warn { background: #fff0d9; color: #8a5300; }
.user-head { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.user-head h1 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 4px; }
.user-head .muted { margin: 0; color: var(--muted); font-size: 14px; }
.user-badges { display: flex; gap: 6px; margin: 8px 0 0; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; flex-shrink: 0; }
h2.sub { font-size: 22px; margin-top: 0; }
.user-course { margin-bottom: 12px; padding: 18px 20px; }
.user-course-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.user-course-top small { display: block; }
.user-course .progress { margin-bottom: 0; }
.row-actions form { margin: 0; }
.user-actions { display: grid; gap: 10px; }
.user-actions h3 { margin: 0 0 4px; font-size: 20px; }
.user-actions form { margin: 0; }
.user-actions .wide { width: 100%; text-align: center; }
.button.danger { color: #9b2c1c; border-color: #e3a79c; }
.button.danger:hover { background: #9b2c1c; color: #fff; }
.danger-zone { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: #9b2c1c; font-weight: 600; font-size: 14px; }
.danger-zone p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.danger-btn { background: #9b2c1c; }
.danger-btn:hover { background: #7a1f12; }
@media (max-width: 760px) { .user-row { grid-template-columns: 1fr auto; } .user-orders { grid-column: 1; } }

/* Кнопка «Войти»: иконка входа, без подчёркивания */
.signin { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.signin:hover, .signin:focus-visible { text-decoration: none; background: var(--white); border-color: var(--wine); color: var(--wine); }
.signin-icon { flex-shrink: 0; }

/* Hero: заголовок по фразам, каждая в одну строку */
.hero h1 { font-size: clamp(32px, 3.9vw, 60px); }
.hero-inner > h1 { max-width: min(680px, 58%); }
.hero-line { display: block; white-space: nowrap; }
@media (max-width: 760px) { .hero-line { white-space: normal; } .hero-inner > h1 { max-width: none; } }

/* ── Урок: компактная панель под видео ───────────────────────── */
.lesson-bar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lb-step { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px; text-decoration: none; color: inherit; transition: background .2s; }
a.lb-step:hover { background: var(--blush); text-decoration: none; }
.lb-next { justify-content: flex-end; text-align: right; }
.lb-text { display: grid; min-width: 0; line-height: 1.25; }
.lb-text small { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.lb-text span { font-size: 14px; font-weight: 600; color: var(--wine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-arrow { flex-shrink: 0; color: var(--accent); font-size: 18px; transition: transform .2s; }
a.lb-prev:hover .lb-arrow { transform: translateX(-3px); }
a.lb-next:hover .lb-arrow { transform: translateX(3px); }
.lb-locked { cursor: not-allowed; }
.lb-locked .lb-text span, .lb-locked .lb-arrow { color: #b9a5ab; }
.lb-program { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-inline: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--wine); text-decoration: none; white-space: nowrap; transition: background .2s; }
.lb-program:hover { background: var(--blush); text-decoration: none; }
@media (max-width: 600px) {
  .lesson-bar { grid-template-columns: 1fr 1fr; }
  .lb-program { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 10px; border-inline: 0; border-top: 1px solid var(--line); }
  .lb-empty { display: none; }
  .lb-step:only-of-type, .lb-empty + .lb-program + .lb-step { grid-column: 1 / -1; }
}

/* ── Главная: курсы витринами, шапка без разделителя ─────────── */
.hero .hero-title { font: 500 clamp(32px, 3.9vw, 60px)/1.04 Unbounded, Arial, sans-serif; letter-spacing: -.05em; margin: 14px 0 28px; text-wrap: balance; }
.hero-inner > .hero-title { max-width: min(680px, 58%); }
.hero + .hero { margin-top: 0; }
.hero + .hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,253,252,.6); }
.hero .button { box-shadow: 0 10px 26px rgba(74,7,30,.22); }
.hero .button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(74,7,30,.28); }
.hero .button { transition: background .2s, transform .2s, box-shadow .2s; }
.showcase-plain { padding: 48px 0; border-bottom: 1px solid var(--line); }
.showcase-plain h2 a { color: inherit; text-decoration: none; }
.profile-menu .menu-link { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--wine); text-decoration: none; }
.profile-menu .menu-link:hover { background: var(--blush); text-decoration: none; }
.profile-menu .menu-link[aria-current="page"] { font-weight: 600; text-decoration: none; }
.profile-menu form { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .hero-inner > .hero-title { max-width: none; } .hero .hero-title { margin-bottom: 18px; } }
/* Шапка поверх обложки: на главной и странице курса меню лежит прямо на фото */
body:has(main > .hero:first-child) > header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
body:has(main > .hero:first-child) main > .hero:first-child { min-height: clamp(560px, 100svh, 960px); padding-top: 78px; }
@media (max-width: 760px) { body:has(main > .hero:first-child) main > .hero:first-child { padding-top: 0; } body:has(main > .hero:first-child) > header { background: linear-gradient(rgba(252,233,230,.85), rgba(252,233,230,0)); } }

/* ── Урок: прогресс рядом с заголовком ──────────────────────── */
.lesson-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.lesson-title-row h1 { margin-right: auto; }
.lesson-progress { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 14px; white-space: nowrap; }
.lesson-progress svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.lesson-progress circle { fill: none; stroke-width: 3.5; }
.lp-track { stroke: var(--blush); }
.lp-bar { stroke: #df5867; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.lp-check { fill: none; stroke: white; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 18px 18px; opacity: 0; transition: opacity .3s; }
.lesson-progress b { color: var(--wine); font-weight: 600; }
.lesson-progress.done { color: var(--done); font-weight: 600; }
.lesson-progress.done .lp-track { stroke: var(--done); }
.lesson-progress.done .lp-bar { stroke: var(--done); }
.lesson-progress.done circle.lp-track { fill: var(--done); }
.lesson-progress.done .lp-check { opacity: 1; }

/* ── Главная: курсы карточками, шапка на светлом фоне ────────── */
.showcase { display: grid; gap: clamp(20px, 3vw, 32px); }
.hero.hero-card { width: auto; margin: 0; min-height: clamp(440px, 42vw, 580px); border-radius: 22px; box-shadow: 0 18px 50px rgba(74,7,30,.10); }
.hero-card .hero-inner { padding: clamp(32px, 5vw, 72px); }
.hero-card .hero-inner > * { max-width: min(560px, 54%); }
.hero-card .hero-inner > .hero-title { max-width: min(600px, 56%); font-size: clamp(28px, 3.4vw, 52px); }
.hero-card .hero-facts strong { font-size: 24px; }
.showcase-plain { padding: 40px clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
@media (max-width: 760px) {
  .hero.hero-card { border-radius: 18px; }
  .hero-card .hero-photo { height: auto; aspect-ratio: 4 / 3.4; }
  .hero-card .hero-inner { padding: 20px 20px 24px; }
  .hero-card .hero-inner > *, .hero-card .hero-inner > .hero-title { max-width: none; }
}

/* ── Шапка поверх обложки курса: кнопки на сплошной подложке ─── */
body:has(main > .hero:first-child) .signin { background: var(--white); border-color: transparent; color: var(--wine); box-shadow: 0 4px 16px rgba(74,7,30,.14); }
body:has(main > .hero:first-child) .avatar { background: var(--white); border-color: transparent; box-shadow: 0 4px 16px rgba(74,7,30,.14); }
@media (max-width: 760px) {
  .hero-back { position: static; display: inline-block; margin: 0 0 12px; padding: 0; background: none; }
}

/* ── Плеер: настройки, полный экран, ускорение удержанием ─────── */
.player { position: relative; border-radius: 14px; overflow: hidden; background: #24141b; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.player video { border-radius: 0; touch-action: manipulation; }
.player.is-full { display: flex; align-items: center; border-radius: 0; }
.player.is-full video { height: 100%; aspect-ratio: auto; }
.pl-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: transparent; color: #fff; box-shadow: none; transition: background .2s, transform .2s; }
.pl-btn:hover { background: rgba(255,255,255,.14); }
.pl-gear svg { transition: transform .4s; }
.player.menu-open .pl-gear svg { transform: rotate(60deg); }
.pl-full .pl-exit, .player.is-full .pl-full .pl-enter { display: none; }
.player.is-full .pl-full .pl-exit { display: inline; }
.pl-badge { position: absolute; right: -4px; bottom: -4px; padding: 1px 5px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.4; }
.pl-menu { position: absolute; bottom: 66px; right: 12px; z-index: 4; width: min(330px, calc(100% - 24px)); max-height: calc(100% - 68px); overflow-y: auto; padding: 14px; border-radius: 14px; background: rgba(20,8,13,.86); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: pl-pop .18s ease-out; }
.pl-group + .pl-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.pl-title { margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pl-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-opt { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 500; }
.pl-opt:hover { background: rgba(255,255,255,.18); }
.pl-opt.on { background: #fff; color: var(--wine); font-weight: 700; }
.pl-hold { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 18px; border-radius: 999px; background: rgba(20,8,13,.6); color: #fff; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; animation: pl-pop .18s ease-out; }
.pl-hold.fwd { right: 8%; } .pl-hold.back { left: 8%; }
.pl-hold b { letter-spacing: -.2em; font-size: 16px; animation: pl-pulse .8s ease-in-out infinite; }
.pl-tip { position: absolute; left: 50%; top: 16px; translate: -50% 0; z-index: 2; max-width: calc(100% - 130px); padding: 8px 14px; border-radius: 999px; background: rgba(20,8,13,.7); color: #fff; font-size: 13px; text-align: center; pointer-events: none; animation: pl-fade 4.2s ease both; }
@keyframes pl-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pl-pulse { 50% { opacity: .45; } }
@keyframes pl-fade { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 600px) { .pl-btn { width: 36px; height: 36px; } .pl-menu { bottom: 58px; right: 8px; max-height: calc(100% - 66px); padding: 10px; } .pl-group + .pl-group { margin-top: 8px; padding-top: 8px; } .pl-title { margin-bottom: 5px; } .pl-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .pl-menu, .pl-hold, .pl-hold b, .pl-gear svg { animation: none; transition: none; } }

/* ── Страница курса: кнопка покупки внизу экрана на телефоне ──── */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255,253,252,.92); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(74,7,30,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .buybar.show { transform: none; }
  .buybar strong { display: block; font: 500 20px/1.1 Unbounded, Arial, sans-serif; color: var(--wine); letter-spacing: -.03em; }
  .buybar small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0; }
  .buybar .button { flex-shrink: 0; padding: 13px 20px; box-shadow: 0 8px 20px rgba(74,7,30,.25); }
  body:has(.buybar) footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

/* ── Продающие блоки страницы курса ──────────────────────────── */
.ld-story, .ld-author, .ld-reviews, .ld-final { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(56px, 8vw, 110px) max(clamp(20px, 5vw, 72px), calc(50vw - 640px + 72px)); }
.ld-title { font: 500 clamp(28px, 3.4vw, 46px)/1.1 Unbounded, Arial, sans-serif; letter-spacing: -.045em; color: var(--wine); margin: 0 0 14px; text-wrap: balance; }
.ld-sub { margin: 0 0 clamp(28px, 4vw, 48px); color: var(--muted); font-size: 17px; }
.ld-story { margin-top: 0; background: linear-gradient(180deg, var(--blush), var(--paper)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.ld-story-head { position: sticky; top: 32px; }
.ld-story .overline { margin: 0 0 18px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ld-story-lead { margin: 0 0 6px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }
.ld-quote { margin: clamp(22px, 3vw, 32px) 0 10px; font: 500 clamp(30px, 3.6vw, 50px)/1.08 Unbounded, Arial, sans-serif; letter-spacing: -.045em; color: var(--wine); text-wrap: balance; }
.ld-quote::before { content: "«"; } .ld-quote::after { content: "»"; }
.ld-accent { margin: 0; font: 500 clamp(26px, 3vw, 42px)/1.1 Unbounded, Arial, sans-serif; letter-spacing: -.045em; color: #d2525f; }
.ld-story-body { display: grid; gap: 22px; max-width: 36em; padding-top: clamp(0px, 4vw, 54px); font-size: clamp(17px, 1.4vw, 18.5px); line-height: 1.72; color: var(--ink); }
.ld-story-body p { margin: 0; text-wrap: pretty; }
.ld-story-body p:has(> strong:only-child) { padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.ld-story-body strong { font-weight: 600; color: var(--wine); }
.ld-story-body p > strong:only-child { font: 500 clamp(19px, 1.7vw, 23px)/1.4 Unbounded, Arial, sans-serif; letter-spacing: -.03em; }
@media (max-width: 860px) { .ld-story { grid-template-columns: 1fr; gap: 28px; } .ld-story-head { position: static; } .ld-story-body { padding-top: 0; } .ld-quote { font-size: clamp(28px, 7vw, 46px); } .ld-accent { font-size: clamp(24px, 6vw, 38px); } }
.ld-audience { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding: clamp(24px, 3vw, 40px) 8px clamp(56px, 8vw, 100px); }
.ld-audience-head { position: sticky; top: 32px; }
.ld-audience-head .ld-sub { margin: 0; max-width: 22em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.ld-cards { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ld-cards li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ld-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--accent); box-shadow: 0 6px 18px rgba(74,7,30,.07); }
.ld-icon svg { width: 22px; height: 22px; }
.ld-cards h3 { margin: 2px 0 6px; font: 500 clamp(17px, 1.5vw, 20px)/1.25 Unbounded, Arial, sans-serif; letter-spacing: -.03em; color: var(--wine); }
.ld-cards p { margin: 0; color: var(--muted); font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.6; text-wrap: pretty; }
@media (max-width: 860px) { .ld-audience { grid-template-columns: 1fr; gap: 24px; padding-inline: 0; } .ld-audience-head { position: static; } .ld-cards li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 0; } .ld-icon { width: 40px; height: 40px; } }
.ld-author { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--blush); }
.ld-author-photo { max-width: 460px; }
.ld-author-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 22px; box-shadow: 0 18px 50px rgba(74,7,30,.10); }
.ld-author-text { max-width: 640px; font-size: 16.5px; line-height: 1.7; }
.ld-author-text .overline { margin: 0 0 6px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ld-author-text p { margin: 0 0 14px; }
.ld-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; padding: 18px 0 0; margin: 10px 0 0; border-top: 1px solid rgba(74,7,30,.15); color: var(--muted); font-size: 14px; }
.ld-facts strong { display: block; font: 500 26px/1.1 Unbounded, Arial, sans-serif; letter-spacing: -.04em; color: var(--wine); }
.course-body.is-selling { padding-block: clamp(56px, 8vw, 100px) clamp(72px, 9vw, 120px); }
.course-body.is-selling #program { font: 500 clamp(28px, 3.4vw, 46px)/1.1 Unbounded, Arial, sans-serif; letter-spacing: -.045em; margin-top: 0; }
.course-body.is-selling .lead { display: none; }
.lesson-summary { margin: 6px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lessons li.locked .lesson-summary { color: var(--muted); }
.course-body.is-selling .lessons li.locked { opacity: 1; }
.course-body.is-selling .lessons li { padding-block: 16px; }
.course-body.is-selling .lessons li.locked .lesson-title { color: var(--wine); font-weight: 600; }
.ld-reviews { text-align: center; background: var(--blush); }
.ld-slides { max-width: 780px; margin: 34px auto 0; outline: none; }
.ld-review { position: relative; margin: 0; padding: clamp(32px, 5vw, 52px) clamp(22px, 5vw, 56px); background: var(--white); border-radius: 24px; box-shadow: 0 18px 50px rgba(74,7,30,.08); animation: pl-pop .3s ease-out; }
.ld-mark { position: absolute; top: -18px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wine); color: #fff; font: 500 40px/1 Unbounded, Arial, sans-serif; padding-top: 14px; }
.ld-review blockquote { margin: 0 0 22px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; color: var(--ink); }
.ld-review figcaption strong { display: block; font-family: Unbounded, Arial, sans-serif; font-weight: 500; color: var(--wine); }
.ld-review figcaption small { color: var(--muted); }
.ld-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.ld-nav > button { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--white); color: var(--wine); border: 1px solid var(--line); }
.ld-nav > button:hover { background: var(--wine); color: #fff; }
.ld-dots { display: flex; gap: 8px; }
.ld-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: #e5a3ae; }
.ld-dots button.on { width: 26px; border-radius: 6px; background: var(--wine); }
.ld-final { isolation: isolate; overflow: hidden; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #7a1736 0%, var(--wine) 55%, #2a0411 100%); }
.ld-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("brand/cover.jpg") 70% 30% / cover; opacity: .14; mix-blend-mode: luminosity; }
.ld-final .overline { justify-content: center; color: #f5b7c1; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ld-final h2 { margin: 14px 0 22px; font: 500 clamp(30px, 4.4vw, 60px)/1.06 Unbounded, Arial, sans-serif; letter-spacing: -.05em; color: #fff; }
.ld-price { margin: 0 0 8px; font-size: clamp(17px, 1.8vw, 21px); }
.ld-price strong { font-family: Unbounded, Arial, sans-serif; font-weight: 500; }
.ld-perks { margin: 0 0 30px; color: rgba(255,255,255,.7); font-size: 14px; }
.ld-final .button { padding: 16px 34px; font-size: 17px; background: #fff; color: var(--wine); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.ld-final .button:hover { background: var(--blush); color: var(--wine); }
body:has(.ld-final) main { padding-bottom: 0; }
@media (max-width: 760px) {
  .ld-author { grid-template-columns: 1fr; gap: 28px; }
  .ld-author-photo { width: min(360px, 100%); }

  .ld-final .hero-line { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .ld-review { animation: none; transition: none; } }
.course-body.is-selling .lessons li.locked small { display: none; }

/* ── Главная: отклик карточек на наведение ────────── */
.showcase { position: relative; z-index: 1; }
.hero.hero-card { transition: box-shadow .6s ease, opacity .5s, filter .5s; --mx: 50%; --my: 50%; --px: 0; --py: 0; }
.hero.hero-card .hero-photo { animation-fill-mode: backwards; }
.hero.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,246,240,.32), transparent 60%); mix-blend-mode: soft-light; }
.hero.hero-card:hover { box-shadow: 0 34px 60px -30px rgba(38,10,20,.30), 0 18px 50px rgba(74,7,30,.08); }
/* при наведении по карточке один раз пробегает блик слева направо */
.hero-sheen { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.hero-sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(75deg, transparent 0%, rgba(255,250,246,.04) 30%, rgba(255,250,246,.21) 50%, rgba(255,250,246,.04) 70%, transparent 100%); transform: translateX(-120%) skewX(12deg); opacity: 0; }
@media (hover: hover) { .hero.hero-card:hover .hero-sheen::before { animation: hero-sheen 1.3s cubic-bezier(.4,0,.2,1) .05s 1 both; } }
@keyframes hero-sheen { 0% { transform: translateX(-120%) skewX(12deg); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(320%) skewX(12deg); opacity: 0; } }
.hero.hero-card:hover::after { opacity: 1; }
/* кнопка «Купить» в карточке: растёт только подложка, на 4px во все стороны от центра; текст стоит на месте */
.hero.hero-card .button, .hero.hero-card .button:hover { position: relative; isolation: isolate; background: transparent; box-shadow: none; transform: none; }
.hero.hero-card .button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--wine); box-shadow: 0 10px 26px rgba(74,7,30,.18); transition: inset .7s cubic-bezier(.2,.7,.2,1), box-shadow .7s ease, background .3s; }
.hero.hero-card:hover .button::before { inset: -4px; box-shadow: 0 12px 28px rgba(74,7,30,.22); }
.hero.hero-card .button:hover::before { background: #711936; }
/* соседние карточки чуть отступают в тень, когда одна в фокусе */
.showcase:has(.hero-card:hover) .hero-card:not(:hover) { opacity: .82; filter: saturate(.85); }
@media (prefers-reduced-motion: reduce) { .hero.hero-card { transition: none; } .hero.hero-card:hover .hero-sheen::before { animation: none; } .hero.hero-card .button::before { transition: none; } }

/* ── Плеер: карточка в конце урока ──────────────────────────── */
.pl-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(28,10,17,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pl-pop .3s ease-out; }
.pl-end[hidden] { display: none; }
.pl-end-card { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 440px; text-align: center; color: #fff; }
.pl-end-mark { width: 44px; height: 44px; margin-bottom: 4px; }
.pl-end-mark circle { fill: var(--done); stroke: var(--done-soft); stroke-width: 1.5; }
.pl-end-mark path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: pl-check .5s .15s ease-out forwards; }
.pl-end-over { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.pl-end-title { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.25; font-weight: 600; }
.pl-end-go { margin-top: 8px; background: #fff; color: var(--wine); }
.pl-end-go:hover { background: var(--blush); color: var(--wine); }
.pl-end-lock { margin: 4px 0 0; font-size: 14px; line-height: 1.45; opacity: .85; }
.pl-end-replay { margin-top: 2px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.85); font: inherit; font-size: 14px; cursor: pointer; }
.pl-end-replay:hover { background: rgba(255,255,255,.12); color: #fff; }
@keyframes pl-check { to { stroke-dashoffset: 0; } }
@media (max-width: 600px) { .pl-end-card { gap: 6px; } .pl-end-mark { display: none; } .pl-end-over { font-size: 11px; } .pl-end-title { font-size: 16px; } .pl-end-go { margin-top: 4px; padding: 10px 16px; font-size: 14px; } .pl-end-lock { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .pl-end, .pl-end-mark path { animation: none; stroke-dashoffset: 0; } }

/* ── Студия: отзывы курса ───────────────────────────────────── */
.narrow.wide-narrow { max-width: 820px; }
.reviews-form .review-row { margin: 0 0 18px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); display: grid; gap: 12px; }
.reviews-form legend { padding: 0 8px; font-weight: 600; color: var(--wine); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.panel-gap { margin-top: 28px; }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }
.ld-review-author { display: flex; width: fit-content; margin-inline: auto; align-items: baseline; gap: 6px; text-decoration: none; }
.ld-review-author span { font-size: 13px; color: var(--accent); transition: transform .2s; }
.ld-review-author:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ld-review-author:hover span { transform: translate(2px, -2px); }
.scroll-anchor { display: block; height: 0; }
.pl-hold[hidden] { display: none; }

/* ── Программа: лёгкие номера уроков без рамки и фона ───────── */
.lessons .index, .lessons li.locked .index { border: 0; background: none; padding: 0; font: 500 15px/1 Montserrat, Arial, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #9a9095; place-items: center start; }
.lessons li.next .index { color: #5f565b; }
.lessons li.locked .index { color: #b8b0b4; }

/* ── Плеер: нижняя панель управления ─────────────────────────── */
.player { cursor: default; }
.player.ui-on, .player.is-paused { cursor: auto; }
.player:not(.ui-on):not(.is-paused):not(.menu-open) { cursor: none; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 14px 8px; background: linear-gradient(transparent, rgba(16,6,10,.42) 45%, rgba(16,6,10,.72)); color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.player.ui-on .pl-bar, .player.is-paused .pl-bar, .player.menu-open .pl-bar, .pl-bar:has(:focus-visible) { opacity: 1; visibility: visible; transition: opacity .2s; }
.pl-row { display: flex; align-items: center; gap: 4px; }
.pl-spacer { flex: 1; }
.pl-time { margin-left: 6px; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; opacity: .9; white-space: nowrap; }
.pl-seek, .pl-vol-range { -webkit-appearance: none; appearance: none; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 0; background: transparent; cursor: pointer; }
.pl-seek { width: 100%; height: 18px; margin-bottom: 2px; }
.pl-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.42) var(--p, 0%), rgba(255,255,255,.42) var(--b, 0%), rgba(255,255,255,.2) var(--b, 0%)); transition: height .15s; }
.pl-seek::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.42) var(--p, 0%), rgba(255,255,255,.42) var(--b, 0%), rgba(255,255,255,.2) var(--b, 0%)); }
.pl-seek:hover::-webkit-slider-runnable-track { height: 6px; }
.pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); transform: scale(0); transition: transform .15s; }
.pl-seek:hover::-webkit-slider-thumb { margin-top: -4px; }
.pl-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.pl-seek:hover::-webkit-slider-thumb, .pl-seek:focus-visible::-webkit-slider-thumb, .pl-seek:active::-webkit-slider-thumb { transform: scale(1); }
.pl-seek:hover::-moz-range-thumb, .pl-seek:focus-visible::-moz-range-thumb { transform: scale(1); }
.pl-seek:focus-visible, .pl-vol-range:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
/* громкость: вертикальный ползунок всплывает над иконкой, иконка не двигается */
.pl-vol { position: relative; display: flex; align-items: center; }
.pl-vol::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 38px; height: 120px; margin-left: -19px; border-radius: 19px; background: rgba(20,8,13,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.pl-vol-range { position: absolute; left: 50%; bottom: calc(100% + 60px); width: 92px; max-width: none; height: 18px; margin: 0 0 -9px -46px; transform: rotate(-90deg); }
.pl-vol::before, .pl-vol-range { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.pl-vol:hover::before, .pl-vol:hover .pl-vol-range, .pl-vol:focus-within::before, .pl-vol:focus-within .pl-vol-range { opacity: 1; visibility: visible; transition: opacity .2s; }
.pl-vol-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255,255,255,.3) var(--p, 100%)); }
.pl-vol-range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255,255,255,.3) var(--p, 100%)); }
.pl-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; }
.pl-vol-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.pl-mute .pl-x, .player.is-muted .pl-mute .pl-w1, .player.is-muted .pl-mute .pl-w2, .player.vol-low .pl-mute .pl-w2 { display: none; }
.player.is-muted .pl-mute .pl-x { display: inline; }
.pl-big { position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; min-width: 0; margin: -36px 0 0 -36px; display: grid; place-items: center; padding: 0; line-height: 0; border: 0; border-radius: 50%; background: rgba(255,253,252,.9); color: var(--wine); box-shadow: 0 10px 34px rgba(16,6,10,.35); opacity: 0; visibility: hidden; transform: scale(.9); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.pl-big svg { display: block; width: 34px; height: 34px; }
.player.is-paused .pl-big { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.pl-big:hover { background: #fff; color: var(--wine); transform: scale(1.05); }
.player:has(.pl-hold:not([hidden])) .pl-big { opacity: 0; visibility: hidden; }
@media (hover: none) { .pl-vol-range, .pl-vol::before { display: none; } }
@media (max-width: 600px) { .pl-bar { padding: 22px 8px 4px; } .pl-time { font-size: 12px; } .pl-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .pl-big svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .pl-bar, .pl-big, .pl-vol-range { transition: none; } }

/* ── Плеер: загрузчик и «Включить звук» после автозапуска ─────── */
.pl-spin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; animation: pl-spin .9s linear infinite; }
.player.is-loading .pl-spin { opacity: 1; visibility: visible; transition: opacity .2s .15s; }
.player.is-loading .pl-big { opacity: 0; visibility: hidden; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-unmute { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255,253,252,.92); color: var(--wine); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(16,6,10,.25); animation: pl-pop .25s ease-out; }
.pl-unmute:hover { background: #fff; }
.pl-unmute[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pl-spin { animation-duration: 2s; } }

/* ── Главная: при наведении карточка раскрывается на 5%, фото и содержимое стоят на месте ── */
@media (hover: hover) and (min-width: 761px) {
  .showcase { filter: drop-shadow(0 16px 26px rgba(74,7,30,.10)); transition: filter .6s ease; }
  .showcase:has(.hero-card:hover) { filter: drop-shadow(0 26px 32px rgba(38,10,20,.20)); }
  .hero.hero-card, .hero.hero-card:hover { box-shadow: none; }
  /* фон и слои карточки заходят на 2,5% за её края; в покое их срезает рамка, при наведении рамка раздвигается */
  .hero.hero-card { overflow: visible; clip-path: inset(0 round 22px); transition: clip-path .6s cubic-bezier(.2,.7,.2,1), opacity .5s, filter .5s; }
  .hero.hero-card:hover { clip-path: inset(-2.5% round 22px); }
  .hero.hero-card .hero-photo { top: -2.5%; left: -2.5%; width: 105%; height: 105%; }
  .hero.hero-card::before, .hero.hero-card::after, .hero.hero-card .hero-sheen { inset: -2.5%; }
}
@media (hover: hover) and (min-width: 761px) and (prefers-reduced-motion: reduce) { .hero.hero-card, .showcase { transition: none; } }
