/* ===== Матрицы Музыки Белецкого — стили компонентов и страниц =====
   Токены    → tokens.css   (палитра, типографика, радиусы, тени, отступы)
   Reset/Typo→ base.css     (box-sizing, body, h1-h4, .container)
   Этот файл → компоненты и страницы (header, footer, hero, cards, …).
   План на фазу 4: разнести по static/css/components/ и static/css/pages/.
=================================================================== */

/* ===== Header (Figma 1:2 Landing — тёмная шапка) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-200);
  transition: background-color .25s ease, color .25s ease;
}

.site-header.dark {
  background: var(--color-ink);
  color: var(--color-white);
  border-bottom: none;
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.site-header .logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 2px;
  justify-self: start;
  line-height: 1.1;
}

.site-header .logo .logo-icon {
  width: 142px;
  height: 80px;
  background: url("../img/logo/logo-header-gold.png") center/contain no-repeat;
}

.site-header.dark .logo .logo-icon {
  background-image: url("../img/logo/logo-header-gold.png");
}

.site-header .logo .logo-text {
  display: none;   /* В Figma подпись «Матрицы Музыки» уже в самом знаке */
}

.site-header .logo .logo-script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: var(--fw-regular);
  font-size: var(--fs-24);
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  margin-top: -2px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-40);     /* Figma: gap 40px */
  font-size: var(--fs-16);
  justify-self: center;
}

.site-nav a {
  color: inherit;
  position: relative;
  font-weight: var(--fw-regular);
  padding: var(--space-8) 0;
  transition: color .15s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a.active {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
}

.user-area {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  justify-self: end;
}

.user-area .login-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-12) var(--space-28);
  color: var(--color-primary);
  font-size: var(--fs-16);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-pill-lg);   /* 100px — Figma Login Button */
  border: 1px solid var(--color-primary);
  transition: background-color .2s ease, color .2s ease;
}

.user-area .login-link:hover {
  background: var(--color-primary);
  color: var(--color-ink);
}

.site-header.dark .user-area .login-link {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.site-header.dark .user-area .login-link:hover {
  background: var(--color-primary);
  color: var(--color-ink);
}

.coin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: var(--fw-semibold);
}

.continue-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  font-size: var(--fs-14);
}

.continue-sub {
  color: var(--color-ink-56);
}

.continue-left {
  color: var(--color-primary);
  font-size: var(--fs-12);
  white-space: nowrap;
}

.coin .coin-icon,
.coin-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex-shrink: 0;
  background: url("../img/icons/coin.svg") center/contain no-repeat;
  /* лёгкий объём, чтобы монета смотрелась «выпуклой» */
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
  vertical-align: middle;
}

.coin-icon--sm { width: 20px; height: 20px; }
.coin-icon--md { width: 28px; height: 28px; }
.coin-icon--lg { width: 48px; height: 48px; }
.coin-icon--xl { width: 80px; height: 80px; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #71c4e6;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ===== Buttons — единый размер по Figma 74:629 Primary CTA ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: 12px 38px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-16);
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
  background: transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-2);
  color: var(--white);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--grey-2);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover { background: #000; color: var(--white); }

/* ===== Hero (Figma 1:2) ===== */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 120px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 580px;
  justify-content: center;
}

.hero__title {
  /* Figma 1:2 Hero: Montserrat Alternates Medium 500, 96/100, #FFDD2D */
  font-family: var(--font-display);
  color: var(--color-primary-soft);   /* #FFDD2D */
  text-align: center;
  font-size: 96px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  line-height: 100px;
  margin: 0;
  text-transform: uppercase;
}

.hero__subtitle {
  /* Figma 1:2 Hero subtitle: Manrope 400 / 24·28, белый */
  font-family: var(--font-sans);
  color: var(--color-white);
  font-size: var(--fs-24);
  line-height: 28px;
  font-weight: var(--fw-regular);
  margin: var(--space-20) 0 0;
  opacity: 1;
}

/* Светлая вариация hero-секции (для конструктора: чекбокс «Тёмная тема» снят) */
.hero--light {
  background: var(--color-white);
  color: var(--color-ink);
}
.hero--light .hero__title {
  color: var(--color-ink);
}
.hero--light .hero__subtitle {
  color: var(--color-ink-56);
}
.hero--light .hero__desc {
  color: var(--color-ink);
}

.hero__desc {
  margin: 20px auto 0;
  max-width: 720px;
  font-family: var(--font-sans);
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  opacity: 0.92;
}

.hero__cover {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero__cover img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 221, 45, .12);
  object-fit: cover;
}

.hero__cta {
  text-align: center;
  margin-top: 64px;
}

.btn-cta {
  /* Hero CTA — единый размер с остальными, только золотая стрелка добавляется */
  gap: var(--space-16);
  color: var(--ink);
}

.btn-cta__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--ink);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.hero-pill:hover { border-color: var(--gold); color: var(--gold); }

.hero-pill--active,
.hero-pill--active:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ===== Circle pills row + matrix circle ===== */
.section--circle { padding-top: 56px; }

.circle-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding-bottom: 8px;
  max-width: 100%;
}

.circle-pills__track {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  flex: 1 1 auto;
  padding: 4px 4px 8px;
  scroll-snap-type: x proximity;
}
.circle-pills__track::-webkit-scrollbar { display: none; }
.circle-pills__track > .hero-pill { scroll-snap-align: center; }

.circle-pills__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.circle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.circle-play {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.circle-play .btn { padding: 12px 28px; }

/* Плеер мелодий на странице задания-круга */
.hw-songs { margin: 24px auto 32px; max-width: 900px; }
.hw-songs .circle-pills { justify-content: center; }
.hw-songs .circle-play { margin-top: 12px; }

.circle-play__icon {
  font-size: 14px;
  margin-right: 6px;
}

/* Статичная мандала «Круг ММБ» из Figma (illustrations/mmb-circle.svg) */
.mmb-circle-img {
  width: 560px;
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.mmb-circle-img--sm {
  width: 260px;
}

/* Тёмный «постер»-блок «Основы нового музыкального мышления» */
.section--tight { padding: 40px 0 80px; }

.product-dark {
  background: radial-gradient(circle at 30% 0%, #2c2c2c 0%, #111 70%);
  border-radius: 28px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 48px 24px;
  overflow: hidden;
  position: relative;
}

.product-dark__icon {
  width: 120px;
  height: auto;
  margin: 0 0 12px;
}

.product-dark__brand {
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 22px;
  color: #fff;
}

.product-dark__script {
  color: #fff;
  font-size: 56px;
  line-height: 1;
  margin-top: -4px;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #0e0e0e;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}
.hero-video iframe,
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* «Автор курса» — тёмная карточка с золотой обводкой */
.author-card {
  display: grid;
  grid-template-columns: 1fr 460px;
  background: #1a1a1a;
  border: 1px solid var(--gold);
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
}

.author-card__body {
  padding: 56px 56px 56px 56px;
  color: #fff;
  align-self: center;
}

.author-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 4px;
}

.author-card__role {
  color: var(--grey-3);
  font-size: 14px;
  margin: 0 0 28px;
}

.author-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.7;
}

.author-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 16px;
}

.author-card__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.author-card__photo {
  background: #f1efe9 center/cover no-repeat;
  min-height: 100%;
}

/* Одноколоночная карточка автора — если фото не задано */
.author-card--no-photo {
  grid-template-columns: 1fr;
}
.author-card--no-photo .author-card__body {
  padding: 40px 40px 40px 40px;
}

/* CTA-карточка с кругом справа (на сером фоне) */
.cta-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: var(--shadow);
}

.cta-card__body { display: flex; flex-direction: column; gap: 14px; }

.cta-card__badge {
  align-self: flex-start;
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.cta-card__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta-card__desc {
  color: var(--grey-4);
  font-size: 14px;
  margin: 0;
  max-width: 520px;
}

.cta-card__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cta-card__price-now { font-size: 28px; font-weight: 700; color: var(--ink); }
.cta-card__price-old { font-size: 16px; color: var(--grey-3); text-decoration: line-through; }
.cta-card__price-note { font-size: 12px; color: var(--gold); }

.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cta-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

#cta-circle { width: 240px; max-width: 100%; }

/* ===== Мнение учёных — слайдер по 2 карточки ===== */
.scientists {
  position: relative;
}

.scientists__viewport {
  overflow: hidden;
}

.scientists__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  transition: transform .4s ease;
  will-change: transform;
}

.scientist-card {
  /* Figma 10:457: row layout, gap 20, photo 233×233 ellipse + text column */
  flex: 0 0 calc((100% - 24px) / 2);    /* 2 в ряду */
  background: transparent;
  color: var(--color-ink);
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.scientist-card__head {
  /* Большое круглое фото слева */
  flex-shrink: 0;
}

.scientist-card__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-grey-200);
  color: var(--color-ink-56);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  font-size: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  letter-spacing: 1px;
}

.scientist-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scientist-card__who {
  /* Колонка с именем и текстом справа */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.scientist-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  line-height: 1.2;
  font-weight: var(--fw-semibold);
  color: var(--color-ink);
}

.scientist-card__role {
  font-size: var(--fs-14);
  color: var(--color-ink-56);
  margin-bottom: 4px;
}

.scientist-card__text {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0;
}

.scientists__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.scientists__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  color: var(--color-ink);
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease;
}

.scientists__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.scientists__dots {
  display: flex;
  gap: 8px;
}

.scientists__dot {
  width: 36px;
  height: 3px;
  background: var(--color-grey-200);
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .15s ease;
}

.scientists__dot--active { background: var(--color-primary); }

@media (max-width: 768px) {
  .scientist-card {
    flex: 0 0 100%;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .scientist-card__avatar { width: 140px; height: 140px; font-size: 32px; }
  .scientist-card__name { font-size: var(--fs-18); }
  .scientist-card__who { text-align: left; }
}

.section--founders { background: var(--white); }

.founders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.founder-card {
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--color-grey-900);
  transition: border-color .2s ease, transform .2s ease;
}

.founder-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.founder-card__photo {
  display: flex;
  justify-content: center;
}

.founder-card__photo img,
.founder-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-grey-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 56px;
  letter-spacing: 0;
}

.founder-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  line-height: 1.2;
}

.founder-card__role {
  font-size: var(--fs-14);
  color: var(--color-primary);
  letter-spacing: 0.3px;
}

.founder-card__text {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero__title { font-size: 56px; }
  .author-card,
  .cta-card { grid-template-columns: 1fr; }
  .author-card__photo { min-height: 380px; }
  .author-card__body { padding: 32px; }
  .cta-card { padding: 32px; }
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  /* Figma 4:66 «Автор курса», 10:488 «Часто задаваемые вопросы»:
     Montserrat Alternates Medium 500 / 32 / line 48 / #000 / CENTER */
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: var(--fw-medium);
  line-height: 48px;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0;
  color: var(--color-black);
}

.section-title--left,
.section-title.section-title--left {
  /* Figma 23:307, 65:262: LEFT-alignment, ink-56 — «Мнение учёных», «Отзывы», «Основы…» */
  text-align: left;
  margin-bottom: 32px;
  color: var(--color-ink-56);
}

.section-grey {
  background: var(--grey-1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--grey-2);
}

.card .card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card .card-title {
  font-size: 16px;
  font-weight: 600;
}

.card .card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--grey-4);
  margin-top: auto;
}

.card .card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card .card-price {
  font-weight: 700;
  font-size: 18px;
}

/* Кликабельная область карточки (для избежания вложенных ссылок) */
.card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.card__link:hover { text-decoration: none; }
.card .card-body--cta {
  padding-top: 0;
  gap: 0;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--green-light);
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress > i {
  display: block;
  height: 100%;
  background: var(--green);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--grey-4);
}

.progress-text .pct { color: var(--green); font-weight: 700; }

/* ===== Continue watching ===== */
.continue-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  margin-bottom: 48px;
}

.continue-card .thumb {
  position: relative;
  width: 220px;
  height: 130px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--grey-2);
  flex-shrink: 0;
}

.continue-card .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-card .play-btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid var(--gold);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* ===== Author / cards ===== */
.author-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow);
}

.author-block.dark {
  background: var(--ink);
  color: var(--white);
}

.author-block .author-photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius);
  background: var(--grey-2);
  background-size: cover;
  background-position: center;
}

/* ===== FAQ ===== */
.section--faq { background: var(--white); padding-top: 0; }

.faq {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--grey-2);
}

.faq-item {
  border-bottom: 1px solid var(--grey-2);
  padding: 22px 4px;
  cursor: pointer;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  gap: 24px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "↓";
  color: var(--ink);
  font-size: 20px;
  transition: transform .2s;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item .answer {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.faq-item[open] .answer {
  display: block !important;
  visibility: visible;
  opacity: 1;
  height: auto;
  margin-top: 10px;
  padding: 0;
  pointer-events: auto;
  color: var(--grey-3);
  font-size: 14px;
  line-height: 1.55;
  animation: faqAnswerIn .22s ease-out;
}
@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--gold);
  padding: 56px 0 32px;
  color: var(--grey-4);
  background: var(--white);
  font-size: 14px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.footer-logo img {
  width: auto;
  height: 96px;
}

.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}

.site-footer h4 {
  display: none;
}

.site-footer .links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer .links a,
.site-footer .links span { color: var(--ink); }

.site-footer .links span b {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.site-footer .copyright {
  text-align: center;
  margin-top: var(--space-40);
  font-size: var(--fs-14);
  line-height: 16px;
  color: var(--color-ink-56);
}

/* ===== Login ===== */
.auth-wrap {
  max-width: 480px;
  margin: 60px auto 80px;
  text-align: center;
}

.auth-logo {
  width: 200px;
  margin: 0 auto 24px;
}

.auth-wrap h1 {
  font-size: 36px;
  margin-bottom: 32px;
}

.pill-input {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  margin-bottom: 16px;
  outline: none;
  transition: box-shadow .2s;
}

.pill-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.pill-input.error { border-color: var(--red); }

.line-input {
  display: block;
  width: 100%;
  padding: 10px 0 8px;
  border: none;
  border-bottom: 1px solid var(--grey-2);
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  margin-bottom: 4px;
  outline: none;
  transition: border-color .2s;
}

.line-input:focus { border-color: var(--gold); }

.line-input::placeholder { color: var(--grey-3); }

.profile-figma {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.profile-figma .panel {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 32px;
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 0 16px;
}

.profile-head .big-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #71c4e6;
  color: #fff;
  font-weight: 700;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-head .name { font-size: 28px; font-weight: 700; }
.profile-head .id { color: var(--grey-4); font-size: 14px; margin-top: 4px; }

.logout-link {
  display: block;
  text-align: center;
  color: var(--red);
  font-weight: 600;
  margin: 32px 0;
}

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

.auth-helper {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--grey-4);
}

.auth-helper a {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== Lesson / VideoCourse (Figma 48:377) ===== */
.lesson-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0e0e;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  overflow: hidden;
  position: relative;
}

.lesson-player video,
.lesson-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.lesson-player__placeholder {
  text-align: center;
}

/* ===== Материалы урока (LessonAsset) ===== */
.lesson-assets {
  margin: 24px 0 32px;
  padding: 24px;
  background: var(--color-off-white, #FAF9F5);
  border: 1px solid var(--color-grey-200);
  border-radius: 18px;
}
.lesson-assets__title {
  font-size: 18px;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--color-ink);
}
.lesson-assets__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lesson-asset {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--color-grey-200);
}
.lesson-asset__icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-off-white);
  border-radius: 12px;
}
.lesson-asset__body {
  min-width: 0;
}
.lesson-asset__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.lesson-asset__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: 8px;
  white-space: pre-wrap;
}
.lesson-asset__img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin-top: 8px;
}
.lesson-asset__video,
.lesson-asset__audio {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}
.lesson-asset__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.lesson-asset__video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-player--audio {
  aspect-ratio: auto;
  min-height: 220px;
  padding: 32px 24px;
}
.lesson-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}
.lesson-audio__art {
  width: 96px;
  opacity: 0.85;
}
.lesson-audio__title {
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
}
.lesson-audio__player {
  width: 100%;
  outline: none;
}

/* Обложка/фото урока вместо видео */
.lesson-player--image {
  background: var(--color-off-white, #FAF9F5);
  padding: 0;
}
.lesson-player__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

/* Текст урока (когда без видео / рядом с плеером) */
.lesson-text {
  background: var(--color-off-white, #FAF9F5);
  border: 1px solid var(--color-grey-200, #E5E5E5);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink, #1F1E1D);
}
.lesson-text p:first-child { margin-top: 0; }
.lesson-text p:last-child { margin-bottom: 0; }
.lesson-text p { margin: 10px 0; }

/* ===== Каталог наград ===== */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.reward-card {
  background: var(--color-white, #FFFFFF);
  border: 1px solid var(--color-grey-200, #E5E5E5);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.reward-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--color-primary, #D9B601);
}

.reward-card--available { border-color: rgba(217, 182, 1, 0.4); }

.reward-card__cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #FAF9F5, #FFEEB3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reward-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reward-card__cover-emoji {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.reward-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.reward-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-ink, #1F1E1D);
}

.reward-card__desc {
  color: var(--color-ink-56, #706F6D);
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
}

.reward-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.reward-card__price {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary, #D9B601);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== Бейдж «Куплено» на карточке курса ===== */
.card,
.course-card {
  position: relative;
}

.card__owned-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--green, #00C974);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 201, 116, 0.35);
  pointer-events: none;
}

.card--owned,
.course-card--owned {
  border: 2px solid rgba(0, 201, 116, 0.35);
}

.card--owned:hover,
.course-card--owned:hover {
  border-color: var(--green, #00C974);
  box-shadow: 0 8px 24px rgba(0, 201, 116, 0.20);
}

/* Баннер «Курс уже куплен» на странице продукта */
.owned-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(0, 201, 116, 0.08), rgba(0, 201, 116, 0.02));
  border: 1px solid rgba(0, 201, 116, 0.35);
  border-radius: 18px;
  flex-wrap: wrap;
}

.owned-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green, #00C974);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.owned-banner__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink, #1F1E1D);
  margin-bottom: 4px;
}

.owned-banner__sub {
  font-size: 14px;
  color: var(--color-ink-56, #706F6D);
}

.owned-banner .btn { margin-left: auto; }

.lesson-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-top: 16px;
}

.comments-title {
  margin: 16px 0 8px;
  font-size: 18px;
}

.comment-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--grey-2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.comment-tabs .tab {
  color: var(--grey-4);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
}

.comment-tabs .tab--active {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.comment {
  display: flex;
  gap: 12px;
  background: var(--grey-1);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #71c4e6;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment__body {
  flex: 1;
  font-size: 14px;
}

.comment__name {
  font-weight: 700;
}

.comment__text {
  margin: 6px 0 4px;
  color: var(--ink);
}

.comment__actions {
  color: var(--gold);
  font-size: 13px;
}

.comment__actions a { color: var(--gold); }

.comment__menu {
  color: var(--grey-4);
  font-size: 20px;
  cursor: pointer;
}

.lesson-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-box {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 20px;
}

.ch {
  border-bottom: 1px solid var(--grey-2);
  padding: 12px 0;
}

.ch:last-of-type { border-bottom: none; }

.ch summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
}

.ch summary::-webkit-details-marker { display: none; }

.lessons-list {
  margin-top: 12px;
  padding-left: 8px;
  border-left: 2px solid var(--grey-2);
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}

.lesson-row:hover { background: var(--grey-1); }

.lesson-row .bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  flex-shrink: 0;
}

.lesson-row.done .bullet {
  background: var(--ink);
  border-color: var(--ink);
}

.lesson-row.current .bullet {
  background: var(--green);
  border-color: var(--green);
}

.lesson-row .lesson-no { color: var(--grey-4); }

.lesson-row .lesson-name {
  flex: 1;
}

.lesson-row .lesson-time {
  color: var(--grey-4);
  font-size: 12px;
}

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

/* ===== Course detail (Figma 48:114) ===== */
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.course-detail-card {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 32px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--grey-4);
}

.meta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-size: 11px;
  color: var(--gold);
  margin-right: 4px;
}

.materials-box {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 24px;
}

@media (max-width: 1024px) {
  .course-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Profile / forms ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin: 40px 0 80px;
}

.profile-side {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  text-align: center;
}

.profile-side .big-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #71c4e6;
  color: #fff;
  font-weight: 700;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--grey-4);
  margin-bottom: 4px;
}

/* ===== Bonus (Figma 61:2) ===== */
.bonus-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.bonus-hero__title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0;
}

.bonus-hero__title b {
  color: var(--gold);
  font-weight: 800;
}

.bonus-hero__circle {
  display: flex;
  justify-content: flex-end;
}

.progress--gold {
  height: 12px;
  background: #f3e5b2;
  border-radius: 6px;
}

.progress--gold > i {
  background: var(--gold);
}

.bonus-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}

.bonus-stat {
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
}

.bonus-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.bonus-stat__val {
  font-size: 28px;
  font-weight: 800;
}

.bonus-stat__lbl {
  color: var(--grey-4);
  font-size: 12px;
  margin-top: 4px;
}

.honor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.honor-table th,
.honor-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--grey-2);
  text-align: left;
  font-size: 14px;
}

.honor-table th {
  color: var(--grey-4);
  font-size: 12px;
  font-weight: 500;
  background: var(--grey-1);
  text-transform: none;
  letter-spacing: 0;
}

.honor-table tbody tr:last-child td { border-bottom: none; }

.medal {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
}

.medal--gold {
  background: radial-gradient(circle at 35% 30%, #ffd966, var(--gold) 70%);
}

.medal--silver {
  background: radial-gradient(circle at 35% 30%, #fff, #b8b8b8 70%);
}

.medal--bronze {
  background: radial-gradient(circle at 35% 30%, #f0b683, #a0673a 70%);
}

.medal--num {
  background: var(--grey-2);
  color: var(--grey-4);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .bonus-hero { grid-template-columns: 1fr; }
  .bonus-hero__circle { justify-content: center; }
  .bonus-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Блок «Домашнее задание» на странице урока ===== */
.lesson-circles {
  margin-bottom: 32px;
}

.lesson-circles__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.lesson-circle-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-off-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.lesson-circle-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-soft);
  color: var(--color-ink);
}

.lesson-circle-card__img {
  width: 80px;
  height: 80px;
  display: block;
}

.lesson-circle-card__title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-16);
  margin-bottom: 4px;
}

.lesson-circle-card__meta {
  font-size: var(--fs-12);
  color: var(--color-ink-56);
}

.lesson-circle-card__cta {
  display: inline-block;
  margin-top: 6px;
  color: var(--color-primary);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
}

/* ===== Homework Circle ===== */
.circle-page {
  text-align: center;
  padding: 60px 0 80px;
  background: var(--color-off-white);
}

.circle-eyebrow {
  color: var(--color-ink-56);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-8);
}

.circle-page h1 {
  font-size: var(--fs-40);
  margin-bottom: var(--space-40);
  color: var(--color-ink);
}

.mmb-circle-svg {
  filter: drop-shadow(0 12px 32px rgba(17, 17, 17, 0.08));
}

.circle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.circle-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

/* Все кнопки и формы внутри панели действий — одинаковый базовый размер */
.circle-actions > * {
  margin: 0;
}

.circle-actions .btn,
.circle-actions form > .btn,
.circle-actions form > button {
  min-width: 220px;
  justify-content: center;
}

/* ===== Messages ===== */
.messages {
  list-style: none;
  padding: 0;
  margin: 16px auto;
  max-width: 800px;
}

.messages li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.messages .success { background: #e8f6ee; color: #1a7c3d; }
.messages .error,
.messages .warning { background: #fce9e9; color: #a13030; }

.errorlist {
  color: var(--red);
  list-style: none;
  padding: 0 16px;
  margin: -8px 0 8px;
  font-size: 13px;
}

/* ===== Кабинет ученика (Figma 37:17) ===== */
.block-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
}

.continue-card {
  display: flex;
  align-items: stretch;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  text-decoration: none;
  color: var(--ink);
}

.continue-card .thumb {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--grey-2);
}

.continue-card .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-card .play-btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid var(--gold);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.continue-body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.continue-title {
  font-size: 18px;
  font-weight: 700;
}

.continue-sub {
  color: var(--grey-4);
  font-size: 14px;
  margin-top: 4px;
}

.badge-gold {
  display: inline-block;
  padding: 4px 12px;
  background: #fff5d6;
  color: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Сетка карточек курсов */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.author-block__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.course-card img,
.course-card__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--grey-2);
}

.course-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.course-card__title {
  font-weight: 600;
  font-size: 16px;
}

.course-card__sub {
  color: var(--grey-4);
  font-size: 13px;
}

.course-card__price {
  font-size: 18px;
  font-weight: 700;
}

.course-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.btn-link-gold {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .continue-card { flex-direction: column; }
  .continue-card .thumb { width: 100%; height: 220px; }
  .continue-body { padding: 0 24px 24px; }
}

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

/* ===== Админ-панель: сайдбар + контент (Figma 93:194) ===== */
.panel-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 80px 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
  background: var(--grey-1);
  margin: 0;
}

.panel-sidebar {
  grid-area: sidebar;
  background: var(--white);
  border-right: 1px solid var(--grey-2);
  padding: 24px 20px;
}

.panel-logo {
  display: block;
  text-align: center;
  margin-bottom: 32px;
}

.panel-logo img {
  width: 80px;
  height: auto;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-nav__item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}

.panel-nav__item:hover {
  background: var(--grey-1);
  color: var(--gold);
}

.panel-nav__item.active {
  background: var(--gold);
  color: var(--white);
}

.panel-nav__group {
  margin: 24px 16px 8px;
  font-size: 12px;
  color: var(--grey-4);
  text-transform: none;
}

.panel-header {
  grid-area: header;
  background: var(--white);
  border-bottom: 1px solid var(--grey-2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.panel-main {
  grid-area: main;
  padding: 32px;
  overflow-y: auto;
}

.panel-h1 {
  font-size: 36px;
  margin: 0 0 24px;
  font-weight: 700;
}

/* Users list toolbar (Figma) */
.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-2);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.users-toolbar .filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}

.users-toolbar .reset-link {
  color: var(--red);
  font-size: 14px;
  margin-left: 4px;
  cursor: pointer;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-4);
  font-size: 14px;
}

.search-input {
  padding: 10px 18px 10px 38px;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  outline: none;
  width: 280px;
}

.search-input:focus { border-color: var(--gold); }

.users-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-2);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-2);
  text-align: left;
  font-size: 14px;
}

.users-table tbody tr:last-child td { border-bottom: none; }

.users-table th {
  color: var(--grey-4);
  font-weight: 500;
  background: transparent;
  font-size: 13px;
}

.users-table tbody tr:hover { background: var(--grey-1); }

.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: 10px;
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

.pager-btn:hover { background: var(--grey-1); }

.pager-btn--off { opacity: .4; cursor: default; }

@media (max-width: 1024px) {
  .panel-body {
    grid-template-columns: 1fr;
    grid-template-rows: 64px auto 1fr;
    grid-template-areas:
      "header"
      "sidebar"
      "main";
  }
  .panel-sidebar { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
  .panel-sidebar .panel-logo { display: none; }
  .panel-nav { flex-direction: row; }
  .panel-nav__group { display: none; }
}

/* ===== Защита материалов (no-copy) ===== */
.protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.protected img,
.protected video {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.protected video.player { pointer-events: auto; }

/* Гарантированно прячем кнопку "Скачать" в HTML5-плеерах браузеров WebKit/Chromium.
   controlsList="nodownload" уже отключает эту опцию, но некоторые сборки браузера
   показывают её через overflow-menu — здесь мы её убираем окончательно. */
video::-webkit-media-controls-download-button,
audio::-webkit-media-controls-download-button {
  display: none !important;
}
video::-internal-media-controls-download-button,
audio::-internal-media-controls-download-button {
  display: none !important;
}
/* Тот же трюк для оверфлоу-меню (три точки), в котором «Download» иногда прячется */
video::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-enclosure {
  overflow: hidden !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .author-block { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .bonus-hero { grid-template-columns: 1fr; }
  .bonus-stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-header .container {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo  user"
      "nav   nav";
    align-items: center;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 8px;
    row-gap: 6px;
    column-gap: 8px;
  }
  .site-header .logo { grid-area: logo; gap: 2px; }
  .site-header .logo .logo-icon { width: 120px; height: 70px; }
  .site-header .logo .logo-script { font-size: 28px; }
  .site-header .logo .logo-text { display: none; }
  .site-nav {
    grid-area: nav;
    gap: 18px;
    font-size: 14px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex-shrink: 0; padding: 4px 0; white-space: nowrap; }
  .user-area { grid-area: user; justify-self: end; gap: 12px; }
  .user-area .login-link { padding: 8px 18px; font-size: 14px; }
  .hero { padding: 48px 0 64px; }
  .hero__inner { min-height: 0; }
  .hero__title { font-size: 36px; }
  .hero__cta { margin-top: 40px; }
  .hero__subtitle { font-size: 14px; }
  .hero__cover { margin-top: 28px; }
  .hero__cover img { max-width: 360px; border-radius: 18px; }
  .product-dark__script { font-size: 36px; }
  .product-dark__brand { font-size: 16px; letter-spacing: 2px; }
  .author-card__list { font-size: 14px; }
  .cta-card__title { font-size: 20px; }
  .founders-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .founder-card { min-height: 0; }
  .testimonial { grid-template-columns: 72px 1fr; gap: 14px; }
  .testimonial__avatar { width: 72px; height: 72px; font-size: 22px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 28px; }
  .continue-card { flex-direction: column; align-items: stretch; }
  .continue-card .thumb { width: 100%; height: 200px; }
  .bonus-stats { grid-template-columns: 1fr 1fr; }
  .circle-page h1 { font-size: 26px; }
}

/* ====== Тонкая мобильная адаптация (≤640 / ≤480 / ≤380) ====== */
@media (max-width: 640px) {
  /* Заголовки разделов поменьше */
  .section-title { font-size: 26px; line-height: 1.15; margin-bottom: 24px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 24px 0 48px; }

  /* Шапка — крупное лого, текст «Матрицы Музыки» внутри PNG, отдельный logo-text не нужен */
  .site-header .logo .logo-icon { width: 130px; height: 76px; }
  .site-header .logo .logo-script { font-size: 30px; }
  .site-header .logo-text { display: none; }

  /* Hero — компактнее */
  .hero { padding: 32px 0 48px; }
  .hero__title { font-size: 32px; line-height: 1.08; }
  .hero__subtitle { font-size: 13px; margin-top: 8px; }
  .hero__cta { margin-top: 24px; }
  .hero__cover { margin-top: 24px; }
  .hero__cover img { max-width: 300px; border-radius: 14px; }
  .btn-cta { padding: 14px 28px; font-size: 14px; }

  /* Песни-pills: статичные стрелки по бокам, скролл — на треке */
  .circle-pills { gap: 8px; padding: 8px 4px 12px; }
  .circle-pills__track { gap: 8px; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; }
  .circle-pills__arrow { width: 32px; height: 32px; flex-shrink: 0; }
  .hero-pill { padding: 10px 18px; font-size: 13px; }

  /* Музыкальный круг — на всю ширину контейнера */
  #mmb-landing-circle,
  #hw-circle { width: 100% !important; max-width: 360px; margin: 0 auto; }
  .circle-wrap { margin-top: 24px; }
  .circle-play { flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .circle-play .btn { padding: 10px 20px; font-size: 14px; }

  /* «Основы нового музыкального мышления» — видео-блок */
  .hero-video { border-radius: 18px; }
  .product-dark { min-height: 240px; padding: 32px 16px; border-radius: 18px; }
  .product-dark__icon { width: 88px; }
  .product-dark__brand { font-size: 14px; letter-spacing: 1.5px; }
  .product-dark__script { font-size: 28px; }

  /* Автор курса */
  .author-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .author-card__body { padding: 28px 20px; }
  .author-card__name { font-size: 22px; line-height: 1.15; }
  .author-card__photo { min-height: 260px; border-radius: 0 0 18px 18px; }

  /* CTA-карточка «15 сентября» */
  .cta-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
  }
  .cta-card__title { font-size: 20px; line-height: 1.1; }
  .cta-card__price { justify-content: center; flex-wrap: wrap; }
  .cta-card__price-now { font-size: 28px; }
  .cta-card__price-old { font-size: 16px; }
  .cta-card__circle { display: none; }

  /* «Мнение учёных» — карточка эксперта */
  .scientist-card { padding: 24px 18px; gap: 14px; border-radius: 18px; }
  .scientist-card__name { font-size: 17px; }
  .scientist-card__text { font-size: 14px; line-height: 1.5; }

  /* «Основатели» */
  .founders-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .founder-card { padding: 20px 12px; border-radius: 16px; }
  .founder-card__photo img,
  .founder-card__avatar { width: 96px; height: 96px; font-size: 36px; }
  .founder-card__name { font-size: 15px; }
  .founder-card__role { font-size: 12px; }
  .founder-card__text { font-size: 12px; }

  /* FAQ */
  .faq-item { padding: 16px 4px; }
  .faq-item summary { font-size: 14px; gap: 12px; }
  .faq-item summary::after { font-size: 16px; }

  /* Курсы */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 20px 16px; border-radius: 18px; }

  /* Кнопки на странице урока / круга */
  .circle-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .circle-actions .btn { min-width: 0; width: 100%; }

  /* «Все курсы» — кнопки в столбик с воздухом */
  .author-block__actions { gap: 14px; }
  .author-block__actions .btn { width: 100%; text-align: center; }
  .lesson-grid { grid-template-columns: 1fr; gap: 24px; }
  .lesson-sidebar { order: -1; }
  .materials-box, .content-box { border-radius: 16px; padding: 20px 16px; }

  /* Футер */
  .site-footer { padding: 40px 0 24px; font-size: 13px; }

  /* Любые горизонтальные таблицы (доска почёта) — скроллятся */
  .honor-table, .bonus-stats { overflow-x: auto; }
  .bonus-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Очень узкие экраны (iPhone SE, старые Android) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero__title { font-size: 26px; }
  .section-title { font-size: 22px; }
  .hero-pill { padding: 8px 14px; font-size: 12px; }
  .product-dark__script { font-size: 24px; }
  #mmb-landing-circle, #hw-circle { max-width: 320px; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card__photo img, .founder-card__avatar { width: 110px; height: 110px; }
  /* Лого — чуть меньше для очень узких */
  .site-header .logo .logo-icon { width: 105px; height: 60px; }
  .site-header .logo .logo-script { font-size: 24px; }
}

/* Чтобы ничего не вылезало за viewport на мобильных */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  img, video, iframe, svg { max-width: 100%; height: auto; }
}

/* ============================================================
   Адаптив для остальных страниц сайта (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  /* --- «Все курсы» --- */
  .author-block { grid-template-columns: 1fr; gap: 24px; }
  .author-block > div:last-child { justify-self: center; }
  #mmb-allcourses-circle { width: 260px !important; max-width: 100%; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-img { aspect-ratio: 16 / 10; }

  /* --- «Бонусы» --- */
  .bonus-hero { grid-template-columns: 1fr; gap: 24px; }
  .bonus-hero__title { font-size: 26px; }
  .bonus-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bonus-stats > * { padding: 16px 12px; }

  /* Доска почёта — превращаем таблицу в вертикальные карточки */
  .honor-table {
    display: block;
    width: 100%;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
  }
  .honor-table thead { display: none; }
  .honor-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .honor-table tr {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
      "medal name  coins"
      "medal score coins";
    align-items: center;
    gap: 2px 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--grey-2);
    border-radius: 14px;
  }
  .honor-table td { padding: 0 !important; border: none !important; }
  .honor-table td:nth-child(1) { grid-area: medal; display: flex; justify-content: center; }
  .honor-table td:nth-child(2) { grid-area: name; font-weight: 600; font-size: 15px; }
  .honor-table td:nth-child(3) { grid-area: score; color: var(--grey-4); font-size: 13px; }
  .honor-table td:nth-child(3)::before { content: "Лучший: "; color: var(--grey-3); }
  .honor-table td:nth-child(4) { grid-area: coins; }
  .honor-table td:nth-child(4) .coin { font-size: 14px; gap: 4px; }
  .honor-table .medal,
  .honor-table .medal--gold,
  .honor-table .medal--silver,
  .honor-table .medal--bronze,
  .honor-table .medal--num { width: 44px; height: 44px; font-size: 14px; }

  /* --- «Мои курсы» / «Магазин» --- */
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .continue-card .thumb { height: 180px; }
  .continue-card .play-btn { width: 56px; height: 56px; }

  /* --- Страница продукта --- */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-detail__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .product-detail__buttons { flex-direction: column; gap: 12px; }
  .product-detail__buttons .btn { width: 100%; }
  .product-detail h1 { font-size: 24px; line-height: 1.15; }

  /* --- Страница курса --- */
  .course-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-detail-card { padding: 20px 16px; border-radius: 16px; }
  .chapter-row { padding: 14px 12px; }
  .chapter-row h3 { font-size: 16px; word-break: break-word; }
  .lesson-row .lesson-name { word-break: break-word; }

  /* --- Урок --- */
  .lesson-grid { grid-template-columns: 1fr; gap: 24px; }
  .lesson-sidebar { order: -1; }
  .lesson-player { border-radius: 16px; }
  .lesson-circles__list { grid-template-columns: 1fr; gap: 12px; }
  .lesson-circle-card { flex-direction: column; }
  .lesson-circle-card__img { width: 100%; max-width: 240px; margin: 0 auto; }
  .lesson-circle-card__body { text-align: center; }
  .comments-title { font-size: 18px; }
  .comment { grid-template-columns: 40px 1fr; gap: 12px; }
  .comment__avatar { width: 40px; height: 40px; font-size: 14px; }
  .comment__name { font-size: 14px; }
  .comment__text { font-size: 14px; }
  .materials-box, .content-box { padding: 18px 14px; }

  /* --- Домашка/Круг ММБ --- */
  .circle-page h1 { font-size: 22px; word-break: break-word; }
  .circle-eyebrow { font-size: 12px; }
  #hw-circle { width: 100% !important; max-width: 360px; margin: 0 auto; }

  /* --- Профиль --- */
  .profile-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .profile-head .big-avatar { width: 110px; height: 110px; font-size: 36px; }
  .profile-head .name { font-size: 22px; }
  .profile-side .big-avatar { width: 110px; height: 110px; font-size: 36px; }
  .profile-figma { gap: 16px; }
  .profile-figma .panel { padding: 20px 16px; border-radius: 16px; }

  /* --- Чекаут / магазин-карточки --- */
  .checkout-card { padding: 20px 16px; border-radius: 16px; }
  .checkout-card .card { flex-direction: column; }
  .checkout-card .card img,
  .checkout-card .card .card-img { width: 100%; height: 160px; }

  /* --- Логин / восстановление пароля --- */
  .auth-wrap { padding: 24px 16px; max-width: 100%; }
  .auth-wrap h1 { font-size: 24px; }
  .pill-input { padding: 14px 18px; font-size: 14px; }
  .auth-wrap .btn { width: 100%; }

  /* --- Списки пользователей (если открыты публично) --- */
  .users-table-wrap { overflow-x: auto; }
  .users-table { min-width: 600px; font-size: 13px; }

  /* --- Статические страницы (соглашение, оферта) --- */
  .legal-page, .static-page { font-size: 14px; line-height: 1.55; padding: 24px 0 48px; }
  .legal-page h1, .static-page h1 { font-size: 24px; }
  .legal-page h2, .static-page h2 { font-size: 20px; margin-top: 24px; }

  /* --- Любые длинные ссылки/email не выходят за край --- */
  a, code, pre { word-break: break-word; }
  pre, code { overflow-x: auto; max-width: 100%; }
}

/* ====== Очень узкие экраны (≤380px) — дополнения для остальных страниц ====== */
@media (max-width: 380px) {
  .bonus-stats { grid-template-columns: 1fr; }
  .profile-head .big-avatar,
  .profile-side .big-avatar { width: 96px; height: 96px; font-size: 30px; }
  .continue-card .thumb { height: 160px; }
  .lesson-player { aspect-ratio: 16 / 10; }
}

/* ================= Landing Builder — блоки конструктора ================= */

/* section-dark: тёмная тема секции */
.section-dark {
  background: #131311;
  color: #f4f2ea;
}
.section-dark .section-title,
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lp-text__subtitle,
.section-dark .lp-text__body { color: #d7d3c8; }

/* Hero */
.lp-hero { padding: 56px 0 40px; }
.lp-hero__wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lp-hero__title { font-size: 52px; line-height: 1.05; margin-bottom: 16px; }
.lp-hero__subtitle { font-size: 20px; color: var(--color-ink-56); margin-bottom: 20px; line-height: 1.4; }
.lp-hero__body { color: var(--color-ink-56); margin-bottom: 24px; }
.lp-hero__btn { padding: 16px 34px; font-size: 16px; }
.lp-hero__media { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }
.lp-hero__media video, .lp-hero__media iframe, .lp-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.lp-hero--dark { background: #131311; color: #f4f2ea; }
.lp-hero--dark .lp-hero__title { color: #fff; }
.lp-hero--dark .lp-hero__subtitle,
.lp-hero--dark .lp-hero__body { color: #cfcbc0; }

@media (max-width: 900px) {
  .lp-hero__wrap { grid-template-columns: 1fr; }
  .lp-hero__title { font-size: 36px; }
  .lp-hero__subtitle { font-size: 16px; }
}

/* Text / общий подзаголовок */
.lp-text__subtitle { color: var(--color-ink-56); font-size: 17px; margin: 0 auto 24px; max-width: 720px; line-height: 1.45; text-align: center; }
.lp-text__body { max-width: 780px; margin: 0 auto; line-height: 1.6; font-size: 16px; }
.section-dark .lp-text__subtitle { color: #cfcbc0; }

/* Image */
.lp-image { display: flex; justify-content: center; margin-top: 16px; }
.lp-image img { max-width: 100%; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.10); }

/* Features */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.lp-feature {
  padding: 24px;
  border: 1px solid var(--color-grey-200);
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.lp-feature, a.lp-feature--link { text-decoration: none; color: inherit; display: block; }
a.lp-feature--link:hover { text-decoration: none; }
.section-dark .lp-feature { background: #1e1e1c; border-color: #2a2a28; color: #f2eee5; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.lp-feature__icon { font-size: 34px; margin-bottom: 12px; }
.lp-feature__img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.lp-feature__title { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.lp-feature__subtitle { color: var(--color-ink-56); font-size: 14px; margin-bottom: 8px; }
.lp-feature__text { color: var(--color-ink-56); font-size: 14px; line-height: 1.5; }
.section-dark .lp-feature__subtitle,
.section-dark .lp-feature__text { color: #cfcbc0; }

/* Bullets */
.lp-bullets { list-style: none; padding: 0; margin: 24px auto 0; max-width: 720px; }
.lp-bullet { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-grey-200); font-size: 16px; }
.lp-bullet:last-child { border-bottom: none; }
.section-dark .lp-bullet { border-color: #2a2a28; }
.lp-bullet__mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold, #D9B601); color: #1a1a1a;
  border-radius: 50%; font-weight: 700; font-size: 14px;
}
.lp-bullet__body { flex: 1; line-height: 1.5; }
.lp-bullet__text { color: var(--color-ink-56); }
.lp-bullet__subtitle { color: var(--color-ink-56); }
.section-dark .lp-bullet__text,
.section-dark .lp-bullet__subtitle { color: #cfcbc0; }
.lp-bullet__img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.lp-bullet__link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(217,182,1,.5); }
.lp-bullet__link:hover { border-bottom-color: var(--gold, #D9B601); }

/* Тёмная тема FAQ */
.section-dark.section--faq { background: #1a1a1a; }
.section-dark .faq { border-top-color: #2a2a28; }
.section-dark .faq-item { border-bottom-color: #2a2a28; }
.section-dark .faq-item summary { color: #f2eee5; }
.section-dark .faq-item summary::after { color: #f2eee5; }
.section-dark .faq-item[open] .answer { color: #cfcbc0; }

/* Тёмная тема CTA (карточка внутри секции) */
.section-dark .cta-card { background: #1e1e1c; border: 1px solid #2a2a28; color: #f2eee5; }
.section-dark .cta-card__title,
.section-dark .cta-card__desc,
.section-dark .cta-card__badge,
.section-dark .cta-card__price-now { color: #f2eee5; }
.section-dark .cta-card__price-old { color: #7a7770; }

/* Универсальный подзаголовок блока лендинга — вынесен из inline, чтобы работала тёмная тема. */
.lp-block-subtitle { color: var(--color-ink-56); margin: -12px 0 24px; line-height: 1.5; }
.lp-block-subtitle--center { text-align: center; max-width: 720px; margin: -12px auto 24px; }
.section-dark .lp-block-subtitle { color: #cfcbc0; }

/* Пустое состояние блока (Пока нет отзывов / вопросов / …) */
.lp-block-empty { color: var(--color-ink-56); text-align: center; }
.section-dark .lp-block-empty { color: #cfcbc0; }

/* Мелкий "хвост" под карточкой pricing */
.lp-pricing__note { margin-top: 20px; color: var(--color-ink-56); font-size: 14px; }
.section-dark .lp-pricing__note { color: #cfcbc0; }

/* CTA */
.lp-cta { padding: 72px 0; }
.lp-cta__wrap { text-align: center; max-width: 780px; }
.lp-cta__title { font-size: 40px; line-height: 1.15; margin-bottom: 16px; }
.lp-cta__subtitle { font-size: 20px; color: var(--color-ink-56); margin-bottom: 20px; }
.lp-cta__body { margin: 0 auto 32px; max-width: 640px; line-height: 1.55; font-size: 16px; }
.lp-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta__btn { padding: 18px 44px; font-size: 18px; }
.lp-cta--dark { background: #131311; color: #fff; }
.lp-cta--dark .lp-cta__title { color: #fff; }
.lp-cta--dark .lp-cta__subtitle,
.lp-cta--dark .lp-cta__body { color: #cfcbc0; }

/* Pricing */
.lp-pricing__card {
  max-width: 480px; margin: 32px auto 0;
  background: linear-gradient(135deg, rgba(217,182,1,0.10), rgba(217,182,1,0.02));
  border: 2px solid var(--gold, #D9B601);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
}
.lp-pricing__product { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.lp-pricing__desc { color: var(--color-ink-56); margin-bottom: 20px; line-height: 1.5; }
.lp-pricing__price { font-size: 48px; font-weight: 700; color: var(--gold, #D9B601); margin-bottom: 4px; }
.lp-pricing__alt { color: var(--color-ink-56); margin-bottom: 24px; font-size: 14px; }
.lp-pricing__btn { padding: 16px 44px; font-size: 16px; width: 100%; box-sizing: border-box; }

/* .author-card используем ту же вёрстку что на главной (см. верхнюю часть файла) */
.author-card__bio { color: #d8d8d8; line-height: 1.7; font-size: 15px; margin: 0; }

/* Плавающая CTA-кнопка «Купить» — только на лендингах с продуктом */
.lp-sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--gold, #D9B601);
  color: #1a1a1a;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(217,182,1,0.35), 0 2px 6px rgba(0,0,0,0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(217,182,1,0.45), 0 4px 8px rgba(0,0,0,0.14); }
.lp-sticky-cta__price { font-size: 17px; font-weight: 800; }
.lp-sticky-cta__text { position: relative; padding-left: 12px; }
.lp-sticky-cta__text::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px;
  background: rgba(26,26,26,0.28);
}
.lp-sticky-cta__arrow { display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .lp-sticky-cta { bottom: 12px; right: 12px; padding: 12px 18px 12px 14px; font-size: 14px; gap: 10px; }
  .lp-sticky-cta__price { font-size: 15px; }
}
