/* Inter со своего сервера, вариативный (вес 100–900).
   inter-core — только символы текстов сайта (русский и латинский алфавит, цифры, знаки, ₽), один лёгкий файл.
   Полные кириллица и латиница качаются, только если в тексте из админки встретится символ, которого в core нет.
   При совпадении диапазонов браузер сначала берёт последнее правило — поэтому core стоит ниже. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-core.woff2") format("woff2");
  unicode-range: U+20-7E, U+A0, U+A9, U+AB, U+AE, U+B0, U+B7, U+BB, U+D7, U+401, U+410-44F, U+451, U+2013-2014, U+2018-2019, U+201C-201E, U+2022, U+2026, U+2032-2033, U+20BD, U+2116, U+2212;
}

/* Unbounded 500 — только для акцентной строки заголовка первого экрана.
   Урезан до русского и латинского алфавита, цифр и знаков (18 КБ). */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/unbounded-500.woff2") format("woff2");
}

/* запасной шрифт подогнан под размеры Inter — когда Inter догрузится, текст не прыгнет */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  interpolate-size: allow-keywords;
  --container: 1640px;
  --gutter: 20px;
  --header-space: 110px;
  --header-top: 20px;
  --header-radius: 36px;
  /* отступ между секциями: 48px на телефоне, до 88px на широком экране */
  --section-space: clamp(48px, 5vw, 88px);
  --accent: #2cb3b0;
  --accent-dark: #127f80;
  --on-accent: #073a3b;
  --text: #122021;
  --muted: #3d4f50;
  --bg: #f1f9f9;
  /* второстепенный мятный — фон секции «Контакты» */
  --mint: #dcf1ee;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(16, 74, 80, 0.12);
}

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

/* место под полосу прокрутки всегда зарезервировано — при блокировке прокрутки страница не прыгает вбок */
html {
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Inter", "Inter Fallback", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

p {
  font-size: 20px;
}

a {
  color: var(--accent-dark);
}

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  padding-top: var(--header-space);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.45);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* невидимый «хвост» снизу: курсор у нижнего края не соскальзывает с приподнятой кнопки */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 0 -4px;
}

.btn svg {
  flex: none;
}

morph-icon {
  display: contents;
}

.btn:hover {
  background: #1f9c9a;
  box-shadow: 0 12px 24px rgba(31, 156, 154, 0.45);
  transform: translateY(-3px);
}

.btn:active {
  box-shadow: 0 4px 12px rgba(31, 156, 154, 0.4);
  transform: translateY(0);
  transition-duration: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header::before,
  .header__nav,
  .faq__item::details-content,
  .faq__toggle {
    transition: none !important;
  }

  .hero__bg img,
  .video-card__play,
  .video-modal[open],
  .header__menu-cap,
  .header__menu li,
  .header__menu-cta,
  .header__menu-account {
    animation: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .author__availability::before {
    animation: none;
  }
}

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

/* Шапка */

.header {
  --header-ease: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  isolation: isolate;
  padding-top: var(--header-top);
  transition: padding var(--header-ease);
}

/* стеклянный фон отдельным слоем: в покое — плашка по ширине контента, при прокрутке растягивается на весь экран */
.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--header-top);
  bottom: 0;
  left: max(var(--gutter), (100% - var(--container)) / 2);
  right: max(var(--gutter), (100% - var(--container)) / 2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--header-radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    top var(--header-ease),
    left var(--header-ease),
    right var(--header-ease),
    border-radius var(--header-ease),
    border-color var(--header-ease),
    background-color var(--header-ease);
}

.header.is-scrolled {
  padding: 0;
}

.header.is-scrolled::before {
  top: 0;
  left: 0;
  right: 0;
  border-color: transparent transparent var(--glass-border);
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.7);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 10px 10px 26px;
}

.header__cta {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

/* Аккаунт в шапке: почта клиента и выпадающее меню */
.account.header__cta {
  position: relative;
  min-height: 0;
  padding: 0;
}

.account__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  min-height: 48px;
  padding: 0 14px 0 6px;
  border: 1px solid rgba(44, 179, 176, 0.35);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(220, 241, 238, 0.7));
  box-shadow: 0 6px 16px rgba(16, 74, 80, 0.08);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.account__btn:hover,
.account__btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(44, 179, 176, 0.2);
}

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

.account__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
}

/* длинная почта обрезается многоточием — полностью она в меню и во всплывающей подсказке */
.account__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account__btn > svg {
  flex: none;
  color: var(--accent-dark);
  transition: rotate 0.3s ease;
}

.account__btn[aria-expanded="true"] > svg {
  rotate: 180deg;
}

.account__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(236, 248, 247, 0.92));
  box-shadow:
    inset 0 1px 0 #fff,
    0 20px 48px rgba(16, 74, 80, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
}

.account__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.account__info {
  display: grid;
  gap: 2px;
  margin: 0 0 6px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(18, 127, 128, 0.12);
}

.account__full {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account__until {
  font-size: 13px;
  color: var(--accent-dark);
}

.account__until--off {
  color: #b3361f;
}

.account__menu form {
  margin: 0;
}

.account__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.account__item svg {
  flex: none;
  color: var(--accent-dark);
}

.account__item:hover {
  background: rgba(44, 179, 176, 0.12);
}

.account__item--exit,
.account__item--exit svg {
  color: #b3361f;
}

.account__item--exit:hover {
  background: rgba(194, 65, 45, 0.08);
}

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

/* в бургер-меню (телефон) — почта и кнопки; на широком экране скрыто */
.header__menu-account {
  display: none;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

/* название в логотипе: «best» — Inter, «oncolog» — Unbounded с бирюзовым переливом, как выделения в заголовках */
.logo-text {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-text__accent {
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  background: linear-gradient(100deg, #0e6c6d 0%, var(--accent-dark) 30%, #1f9f9c 62%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__logo-icon {
  flex: none;
  color: var(--accent-dark);
}

.header__nav {
  margin: 0 24px 0 auto;
}

.header__menu {
  display: flex;
  gap: 8px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__menu a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__menu a:hover,
.header__menu a[aria-current="page"] {
  color: var(--accent-dark);
}

.header__menu-cap,
.header__menu-cta,
.header__burger {
  display: none;
}

.header__burger {
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.2s;
}

.header__burger:hover {
  background: rgba(255, 255, 255, 0.95);
}

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

/* Первый экран */

.hero {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
  margin-top: calc(var(--header-space) * -1);
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(135deg, #e5f6f6, #c6e9ea);
}

/* фон с осветлением закреплён на экране целиком, clip-path у .hero обрезает его по границам секции */
.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 249, 249, 0.95) 0%, rgba(241, 249, 249, 0.75) 35%, rgba(241, 249, 249, 0) 65%);
}

/* при прокрутке первого экрана фон плавно увеличивается; анимацию ведёт сам браузер, синхронно с прокруткой */
@supports (animation-timeline: scroll()) {
  .hero__bg img {
    animation: hero-zoom linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
}

@keyframes hero-zoom {
  to {
    transform: scale(1.12);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 48px 64px;
  min-height: inherit;
  padding-top: calc(var(--header-space) + 40px);
  padding-bottom: 48px;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 20px 9px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent-dark);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(16, 74, 80, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-dark);
  animation: eyebrow-pulse 2s ease-out infinite;
}

@keyframes eyebrow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 127, 128, 0.45);
  }

  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(18, 127, 128, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before {
    animation: none;
    box-shadow: 0 0 0 4px rgba(18, 127, 128, 0.18);
  }
}

.hero__title {
  margin: 0 0 28px;
  font-size: clamp(38px, 4.4vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero__title-accent {
  display: block;
  margin-top: 0.06em;
  padding-bottom: 0.1em;
  line-height: 1.12;
}

/* выделенная часть заголовков — широкий Unbounded с бирюзовым переливом; он крупнее Inter, поэтому кегль меньше.
   clone — при переносе перелив идёт по каждой строке отдельно */
.text-accent {
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  background: linear-gradient(100deg, #0e6c6d 0%, var(--accent-dark) 30%, #1f9f9c 62%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__text {
  max-width: 620px;
  margin: 0;
  line-height: 1.4;
  color: var(--muted);
}

.hero__btn {
  margin-top: 36px;
  min-height: 58px;
  padding: 0 34px;
}

/* Видео на первом экране */

.video-card {
  justify-self: end;
  width: 100%;
  max-width: 740px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 70px rgba(16, 74, 80, 0.2);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #cbe8e8;
  cursor: pointer;
}

.video-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transition: transform 0.6s ease;
}

.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 30, 0) 45%, rgba(10, 40, 30, 0.35));
}

.video-card__media:hover img {
  transform: scale(1.04);
}

.video-card__media:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(16, 74, 80, 0.35);
  animation: play-pulse 2.2s ease-out infinite;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.video-card__play svg {
  width: 38px;
  height: 38px;
  margin-left: 5px;
}

.video-card__media:hover .video-card__play {
  background: #1f9c9a;
  transform: scale(1.12);
}

@keyframes play-pulse {
  0% {
    box-shadow:
      0 10px 30px rgba(16, 74, 80, 0.35),
      0 0 0 0 rgba(44, 179, 176, 0.55);
  }

  70%,
  100% {
    box-shadow:
      0 10px 30px rgba(16, 74, 80, 0.35),
      0 0 0 28px rgba(44, 179, 176, 0);
  }
}

.video-card__chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 40, 30, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 16px 10px;
}

.video-card__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.video-card__author {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.video-card__badge {
  flex: none;
  padding: 10px 18px;
  border: 1px solid rgba(44, 179, 176, 0.35);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.15);
}

/* Окно с видео */

.video-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: #000;
}

.video-modal[open] {
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.video-modal::backdrop {
  background: rgba(8, 24, 18, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
}

.video-modal__frame iframe,
.video-modal__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -54px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

html:has(.video-modal[open]),
html.is-menu-open {
  overflow: hidden;
}

/* Общий заголовок секции */

.section-title {
  margin: 0 0 28px;
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* О видеогиде */

.about {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: var(--section-space) 0;
}

.about::before,
.about::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
}

.about::before {
  top: 4%;
  left: -220px;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.32), rgba(44, 179, 176, 0) 70%);
}

.about::after {
  right: -220px;
  bottom: 0;
  background: radial-gradient(circle, rgba(190, 215, 240, 0.6), rgba(190, 215, 240, 0) 70%);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 48px clamp(48px, 6vw, 112px);
}

/* заголовок с тезисами остаётся на экране, пока читается длинный текст справа */
.about__intro {
  position: sticky;
  top: calc(var(--header-space) + 24px);
}

.about__lead {
  margin: 0 0 32px;
  font-weight: 600;
  line-height: 1.6;
}

.about__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.about__points svg {
  color: var(--accent-dark);
}

.about__text p {
  margin: 0 0 1.2em;
  line-height: 1.7;
  color: var(--muted);
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* врезка с главной мыслью: зелёная полоса слева и мягко затухающая от неё заливка */
.about__quote {
  position: relative;
  margin: 40px 0;
  padding: 30px 40px 30px 36px;
  border-radius: 4px 0 0 4px;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(44, 179, 176, 0.16), rgba(44, 179, 176, 0) 70%),
    linear-gradient(
      90deg,
      rgba(44, 179, 176, 0.2) 0%,
      rgba(44, 179, 176, 0.17) 10%,
      rgba(44, 179, 176, 0.13) 22%,
      rgba(44, 179, 176, 0.09) 36%,
      rgba(44, 179, 176, 0.055) 52%,
      rgba(44, 179, 176, 0.028) 68%,
      rgba(44, 179, 176, 0.01) 84%,
      rgba(44, 179, 176, 0) 100%
    );
}

.about__quote::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 14px rgba(44, 179, 176, 0.45);
}

.about__quote p {
  margin: 0;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
}

/* Информация об авторе: стеклянная панель, фигура врача стоит на нижнем крае */

.author {
  position: relative;
  padding: 0 0 var(--section-space);
}

.author__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 0 clamp(32px, 5vw, 96px);
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 72px) 0;
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

/* бирюзовое свечение за фигурой */
.author__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -30%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.34), rgba(44, 179, 176, 0) 68%);
}

.author__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 560px;
}

.author__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.author__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(96px, 12vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(18, 127, 128, 0.18);
}

.author__info {
  align-self: center;
  padding-bottom: clamp(32px, 4vw, 64px);
}

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

.author__person > svg {
  flex: none;
  color: var(--accent-dark);
}

.author__name {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.author__status {
  margin: 2px 0 0;
  color: var(--muted);
}

.author__availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
}

.author__availability::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b5aa;
  animation: online-pulse 2s ease-out infinite;
}

@keyframes online-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 181, 170, 0.5);
  }

  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(34, 181, 170, 0);
  }
}

.author__bio {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(18, 127, 128, 0.14);
}

.author__bio p {
  margin: 0 0 1.2em;
  line-height: 1.7;
  color: var(--muted);
}

.author__bio p:last-child {
  margin-bottom: 0;
}

/* регалии: строки с «— » в админке — список с галочками */
.author__bio ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author__bio p + ul {
  margin-top: 24px;
}

.author__bio ul + p {
  margin-top: 24px;
}

.author__bio li {
  position: relative;
  padding-left: 36px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.author__bio li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(44, 179, 176, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Программа */

.program {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: var(--section-space) 0;
}

/* без картинки остаётся мягкий бирюзовый фон */
.program::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(44, 179, 176, 0.26), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(190, 215, 240, 0.55), transparent 55%);
}

.program__bg {
  position: absolute;
  z-index: -2;
  inset: 0;
}

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

/* дымка поверх фото, чтобы читался текст; границы секции чёткие */
.program::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 249, 249, 0.9), rgba(241, 249, 249, 0.62) 60%, rgba(241, 249, 249, 0.8));
}

.program__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px clamp(48px, 6vw, 112px);
}

.program__head .section-title {
  margin-bottom: 0;
}

.program__lead {
  max-width: 620px;
  margin: 0;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

/* Главы программы: слайдер, карточки уходят за правый край экрана */

.chapters {
  margin-top: clamp(40px, 4vw, 64px);
  overflow: visible;
}

.chapters .swiper-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* пока слайдер не запустился — тот же ряд карточек, без скачка при запуске */
.chapters:not(.swiper-initialized) .swiper-wrapper {
  gap: 24px;
}

.chapter {
  display: flex;
  flex-direction: column;
  width: clamp(300px, 24vw, 400px);
  height: auto;
  min-height: 340px;
  padding: 28px 32px 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 40px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}

@media (hover: hover) {
  .chapter:hover {
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 24px 50px rgba(16, 74, 80, 0.14);
  }
}

/* «Глава 01» — небольшая метка; главное в карточке — название */
.chapter__label {
  display: inline-flex;
  align-items: baseline;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(44, 179, 176, 0.1);
}

.chapter__num {
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}

.chapter__title {
  margin: 24px 0 0;
  font-size: clamp(24px, 1.9vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.chapter__text {
  margin: 10px 0 0;
  line-height: 1.5;
  color: var(--muted);
}

/* верх карточки: «Глава 01» слева, фрагмент справа — маленькая «пилюля» */
.chapter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chapter__play,
.chapter__soon {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chapter__play {
  border: 0;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(44, 179, 176, 0.35);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.chapter__play:hover {
  background: #39c3bf;
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.45);
}

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

.chapter__soon {
  color: var(--muted);
  background: rgba(18, 32, 33, 0.05);
}

.chapter__duration {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* низ карточки: «Обмен опытом» — крупная стеклянная кнопка во всю ширину */
.chapter__exchange {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
}

.chapter__chat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(44, 179, 176, 0.4);
  border-radius: 18px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(220, 241, 238, 0.65));
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 16px rgba(16, 74, 80, 0.08);
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.chapter__chat span {
  flex: 1;
  text-align: left;
}

.chapter__chat svg:last-child {
  opacity: 0.55;
}

.chapter__chat:hover {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 20px rgba(44, 179, 176, 0.22);
}

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

/* под слайдером: полоса прогресса и стрелки */
.chapters__controls {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

/* ползунок: высокая невидимая зона, чтобы легко попасть пальцем или мышью; видимая полоса тонкая */
.chapters__scrollbar {
  position: relative;
  flex: 1;
  height: 32px;
  cursor: pointer;
  touch-action: none;
}

.chapters__scrollbar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: rgba(16, 74, 80, 0.12);
}

.chapters__scrollbar .swiper-scrollbar-drag {
  position: absolute;
  top: 50%;
  left: 0;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 4px 12px rgba(44, 179, 176, 0.4);
  cursor: grab;
  transition:
    height 0.2s,
    margin-top 0.2s,
    box-shadow 0.2s;
}

.chapters__scrollbar:hover .swiper-scrollbar-drag,
.chapters__scrollbar .swiper-scrollbar-drag:active {
  height: 18px;
  margin-top: -9px;
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.5);
}

.chapters__scrollbar .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

.chapters__nav {
  display: flex;
  flex: none;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .chapters .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Отзывы */

.reviews {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  /* снизу немного места под тени карточек, остальное — отступ сверху у секции доступа */
  padding: var(--section-space) 0 24px;
}

.reviews::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 20%;
  left: -240px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.22), rgba(44, 179, 176, 0) 70%);
}

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

/* средняя оценка и фильтр по тону */
.reviews__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.reviews__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}

.reviews__score-value {
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
}

.reviews__score-stars {
  display: flex;
  gap: 3px;
}

.reviews__score-count {
  font-size: 18px;
  color: var(--muted);
}

.reviews__filter {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.reviews__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.reviews__filter-btn span {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  background: rgba(16, 74, 80, 0.08);
}

.reviews__filter-btn:hover {
  color: var(--text);
}

.reviews__filter-btn[aria-pressed="true"] {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 74, 80, 0.12);
}

.reviews__filter-btn[aria-pressed="true"] span {
  color: var(--on-accent);
  background: rgba(44, 179, 176, 0.25);
}

.reviews__filter-btn:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.reviews__empty {
  margin: 0;
  padding: 40px 24px;
  border: 1px dashed rgba(18, 127, 128, 0.3);
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.reviews__head .section-title {
  margin-bottom: 0;
}

.reviews__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 24px;
}

.reviews__nav {
  display: flex;
  flex: none;
  gap: 12px;
}

.reviews__write-bottom {
  display: none;
}

.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: var(--accent-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(16, 74, 80, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  cursor: pointer;
  transition:
    color 0.25s,
    background-color 0.25s,
    box-shadow 0.25s,
    opacity 0.25s,
    translate 0.25s;
}

.slider-arrow:hover {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(44, 179, 176, 0.4);
  translate: 0 -2px;
}

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

.slider-arrow.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* слайды выходят за контейнер до краёв экрана */
.reviews__slider {
  overflow: visible;
}

.reviews__slide {
  height: auto;
}

/* пока слайдер не запустился — те же колонки, без скачка при запуске */
.reviews__slider:not(.swiper-initialized) .swiper-wrapper {
  gap: 24px;
}

.reviews__slider:not(.swiper-initialized) .reviews__slide {
  width: calc((100% - 48px) / 3);
}

.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 40px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}

@media (hover: hover) {
  .review:hover {
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 24px 50px rgba(16, 74, 80, 0.14);
  }
}

.review__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.review__stars {
  display: flex;
  gap: 4px;
  margin: 0;
}

.review__star {
  display: flex;
  color: rgba(16, 74, 80, 0.18);
}

.review__star.is-on {
  color: var(--accent);
}

.review__star svg {
  fill: currentColor;
}

.review__star--part {
  position: relative;
}

.review__star-fill {
  position: absolute;
  inset: 0;
  display: flex;
  color: var(--accent);
  clip-path: inset(0 calc(100% - var(--fill)) 0 0);
}

.review__quote {
  display: flex;
  margin: -6px -4px 0 0;
  color: rgba(44, 179, 176, 0.25);
}

.review__text {
  flex: 1;
  margin: 0 0 28px;
  line-height: 1.55;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 74, 80, 0.1);
}

.review__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.35);
}

.review__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.review__date {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--muted);
}

/* точки: активная вытягивается в полоску */
.reviews__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.reviews__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 74, 80, 0.18);
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s;
}

.reviews__pagination .swiper-pagination-bullet-active {
  width: 32px;
  background: var(--accent);
}

.reviews__pagination .swiper-pagination-bullet:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.reviews__pagination.swiper-pagination-lock {
  display: none;
}

/* появление: карточки поднимаются по очереди */
@media (prefers-reduced-motion: no-preference) {
  .reviews.is-animated .review {
    opacity: 0;
    translate: 0 32px;
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 90ms),
      translate 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 90ms),
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s;
  }

  .reviews.is-animated.is-inview .review {
    opacity: 1;
    translate: none;
  }

  .reviews__slider .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Окно «Оставить отзыв» */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.review-modal {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 4vw, 44px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 247, 0.86));
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 80px rgba(8, 40, 42, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

/* плавное появление: окно поднимается и проявляется, фон затемняется */
@media (prefers-reduced-motion: no-preference) {
  .review-modal[open] {
    animation: review-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .review-modal[open]::backdrop {
    animation: backdrop-in 0.35s ease;
  }
}

@keyframes review-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

.review-modal::backdrop {
  background: rgba(8, 40, 42, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html:has(.review-modal[open]) {
  overflow: hidden;
}

.review-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(16, 74, 80, 0.06);
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.review-modal__close:hover {
  color: var(--text);
  background: rgba(16, 74, 80, 0.12);
}

.review-modal__close:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.review-form {
  display: grid;
  gap: 20px;
}

.review-form[hidden] {
  display: none;
}

.review-form__title {
  margin: 0;
  padding-right: 48px;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.review-form__lead {
  margin: -8px 0 4px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.review-form__field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-form__label {
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}

.review-form__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 74, 80, 0.16);
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.review-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 179, 176, 0.18);
}

.review-form__input[aria-invalid] {
  border-color: #c2412d;
}

.review-form__textarea {
  min-height: 140px;
  resize: none;
  line-height: 1.5;
}

.review-form__error {
  font-size: 15px;
  font-weight: 500;
  color: #b3361f;
}

.review-form__error:empty {
  display: none;
}

.review-form__error--form {
  margin: 0;
}

.review-form__hp {
  position: absolute;
  left: -9999px;
}

.review-form__submit {
  justify-self: start;
  min-height: 56px;
  margin-top: 4px;
  padding: 0 32px;
}

.review-form__submit:disabled {
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.review-form__submit.is-sending {
  opacity: 0.7;
  cursor: progress;
}

/* окно целиком помещается в экран: на телефоне и невысоких экранах — плотнее */
@media (max-width: 640px), (max-height: 800px) {
  .review-modal {
    width: min(600px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 24px 22px 20px;
    border-radius: 26px;
  }

  .review-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .review-form {
    gap: 14px;
  }

  .review-form__title {
    font-size: 26px;
  }

  .review-form__lead {
    margin: -6px 0 0;
    font-size: 16px;
  }

  .review-form__label {
    font-size: 15px;
  }

  .review-form__field {
    gap: 6px;
  }

  /* 16px — меньше iPhone приближает страницу при вводе */
  .review-form__input {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .review-form__textarea {
    min-height: 104px;
  }

  .stars__star svg {
    width: 28px;
    height: 28px;
  }

  .review-form__submit {
    min-height: 50px;
    margin-top: 2px;
  }

  .review-form__note {
    margin: -2px 0 0;
    font-size: 13px;
    line-height: 1.4;
  }
}

/* совсем невысокие экраны: без вводной фразы (про проверку сказано в пометке внизу), поле отзыва ниже */
@media (max-height: 680px) {
  .review-modal {
    padding: 20px 20px 16px;
  }

  .review-form {
    gap: 12px;
  }

  .review-form__title {
    font-size: 24px;
  }

  .review-form__lead {
    display: none;
  }

  .review-form__textarea {
    min-height: 84px;
  }
}

@media (max-height: 600px) {
  .review-form {
    gap: 10px;
  }

  .review-form__title {
    font-size: 22px;
  }

  .review-form__input {
    min-height: 42px;
    padding: 8px 12px;
  }

  .review-form__textarea {
    min-height: 68px;
  }

  .stars__star svg {
    width: 26px;
    height: 26px;
  }

  .review-form__submit {
    min-height: 46px;
  }

  .review-form__note {
    font-size: 12px;
  }
}

/* Окно «Обмен опытом»: основа — .review-modal (размер, появление, затемнение, крестик) */

.exchange-modal {
  width: min(520px, calc(100vw - 32px));
}

.exchange-modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 48px;
}

.exchange-modal__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent), #5fcfcb);
  box-shadow: 0 10px 24px rgba(44, 179, 176, 0.35);
}

.exchange-modal__title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.exchange-modal__chapter {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent-dark);
}

/* превью чата: силуэты сообщений, размытые, с замком поверх */
.exchange-modal__preview {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(220, 241, 238, 0.7), rgba(255, 255, 255, 0.5));
}

.exchange-modal__bubble {
  display: block;
  width: 78%;
  height: 46px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(16, 74, 80, 0.08);
  filter: blur(2px);
}

.exchange-modal__bubble--right {
  justify-self: end;
  width: 62%;
  border-radius: 16px 16px 4px 16px;
  background: rgba(44, 179, 176, 0.35);
}

.exchange-modal__bubble--short {
  width: 48%;
  height: 34px;
}

.exchange-modal__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 44px, transparent 46px);
}

.exchange-modal__text {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.exchange-modal__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 127, 128, 0.14);
}

.exchange-modal__price {
  margin: 0;
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
}

.exchange-modal__btn {
  flex: 1;
  min-height: 56px;
  max-width: 280px;
}

.exchange-modal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.exchange-modal__links a {
  font-weight: 600;
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .exchange-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .exchange-modal__text {
    font-size: 16px;
  }

  .exchange-modal__btn {
    max-width: none;
  }

  .exchange-modal__links {
    flex-direction: column;
    align-items: center;
  }

  .exchange-modal__links span {
    display: none;
  }
}

/* окно целиком в экране: на невысоких — плотнее, на совсем низких — без превью чата */
@media (max-width: 640px), (max-height: 760px) {
  .exchange-modal__title {
    font-size: 24px;
  }

  .exchange-modal__chapter {
    font-size: 14px;
  }

  .exchange-modal__preview {
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
  }

  .exchange-modal__bubble {
    height: 34px;
  }

  .exchange-modal__bubble--short {
    height: 26px;
  }

  .exchange-modal__text {
    margin-top: 16px;
    font-size: 16px;
  }

  .exchange-modal__buy {
    margin-top: 18px;
    padding-top: 16px;
  }

  .exchange-modal__price {
    font-size: 26px;
  }

  .exchange-modal__btn {
    min-height: 50px;
  }

  .exchange-modal__links {
    margin-top: 14px;
    font-size: 14px;
  }
}

@media (max-height: 700px) {
  .exchange-modal__preview {
    display: none;
  }
}

.exchange-modal:focus {
  outline: none;
}

/* Чат «Обмен опытом» (клиенты с доступом) */

.chat-modal {
  display: none;
  width: min(640px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 24px));
}

.chat-modal[open] {
  display: flex;
  flex-direction: column;
}

.chat-modal__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  margin: 20px -8px 0;
  padding: 4px 8px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-modal__empty {
  margin: auto 0;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 88%;
}

.chat-msg__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
}

.chat-msg__body {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(16, 74, 80, 0.07);
}

.chat-msg__meta {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--muted);
}

.chat-msg__meta strong {
  color: var(--text);
}

.chat-msg__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.chat-msg__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-msg--own {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-msg--own .chat-msg__body {
  border-color: transparent;
  border-radius: 18px 18px 6px 18px;
  background: rgba(44, 179, 176, 0.18);
}

.chat-msg--own .chat-msg__avatar {
  background: linear-gradient(145deg, #0e6c6d, var(--accent-dark));
}

.chat-modal__form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 127, 128, 0.14);
}

.chat-modal__fields {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.chat-modal__input--title {
  min-height: 46px;
  padding-block: 11px;
}

.chat-modal__input {
  flex: 1;
  min-height: 52px;
  max-height: 140px;
  padding: 13px 16px;
  border: 1px solid rgba(16, 74, 80, 0.16);
  border-radius: 18px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  resize: none;
  field-sizing: content;
}

.chat-modal__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 179, 176, 0.18);
}

.chat-modal__send {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.4);
  cursor: pointer;
}

.chat-modal__send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.chat-modal__send:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.chat-modal__error {
  margin: 8px 0 0;
  font-size: 15px;
  color: #b3361f;
}

.chat-modal__list[hidden],
.chat-modal__form[hidden] {
  display: none;
}

/* вход сброшен / доступ кончился — вместо формы */
.chat-modal__auth {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: auto 0;
  padding: 24px 8px;
  text-align: center;
}

.chat-modal__auth[hidden] {
  display: none;
}

.chat-modal__auth p {
  max-width: 400px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.chat-modal__note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.chat-modal__note small {
  font-size: inherit;
}

.chat-modal:focus {
  outline: none;
}

/* кнопка чата у клиента с доступом: заливка вместо замка, число сообщений */
.chapter__chat--open {
  color: var(--on-accent);
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(44, 179, 176, 0.3);
}

.chapter__chat--open:hover {
  border-color: transparent;
  background: #39c3bf;
  box-shadow: 0 10px 24px rgba(44, 179, 176, 0.4);
}

.chapter__chat-count {
  flex: none !important;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

/* Личный кабинет */

.cabinet {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 32px 0 var(--section-space);
}

.cabinet::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  left: -240px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.26), rgba(44, 179, 176, 0) 70%);
}

.cabinet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cabinet__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.cabinet__status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  color: var(--accent-dark);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(220, 241, 238, 0.6));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.cabinet__status svg {
  flex: none;
}

.cabinet__status--off {
  color: #b3361f;
}

.cabinet__status-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.cabinet__status-text {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.cabinet__status-text a {
  font-weight: 600;
  color: var(--accent-dark);
}

.cabinet__subtitle {
  margin: 48px 0 20px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cabinet__chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* карточка главы: обложка сверху, текст и кнопки снизу */
.cabinet__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 44px rgba(16, 74, 80, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}

@media (hover: hover) {
  .cabinet__card:hover {
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 #fff,
      0 26px 56px rgba(16, 74, 80, 0.16);
  }
}

/* оттенок обложки чуть меняется от главы к главе (--tone 0–3) */
.cabinet__cover {
  --c1: #0e6c6d;
  --c2: #2cb3b0;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  padding: 0;
  overflow: hidden;
  border: 0;
  font: inherit;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(60% 90% at 85% 15%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(50% 80% at 10% 110%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.cabinet__card[style*="--tone: 1"] .cabinet__cover {
  --c1: #127f80;
  --c2: #5fcfcb;
}

.cabinet__card[style*="--tone: 2"] .cabinet__cover {
  --c1: #0b5b5c;
  --c2: #1f9f9c;
}

.cabinet__card[style*="--tone: 3"] .cabinet__cover {
  --c1: #157a7b;
  --c2: #7bd6d2;
}

/* тонкие концентрические круги — «водяной знак» обложки */
.cabinet__cover::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, 0.05),
    0 0 0 80px rgba(255, 255, 255, 0.04);
}

button.cabinet__cover {
  cursor: pointer;
}

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

.cabinet__cover-label {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.cabinet__cover-num {
  position: absolute;
  bottom: 14px;
  left: 24px;
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: clamp(72px, 7vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 30px rgba(7, 58, 59, 0.25);
}

.cabinet__cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(7, 58, 59, 0.3);
  translate: -50% -50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s;
}

.cabinet__cover-play svg {
  margin-left: 4px;
  fill: currentColor;
}

button.cabinet__cover:hover .cabinet__cover-play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.34);
}

.cabinet__cover-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cabinet__cover-chip--time {
  top: auto;
  bottom: 22px;
}

.cabinet__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.cabinet__card-title {
  margin: 0;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cabinet__card-text {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.cabinet__card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.cabinet__btn {
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
}

.cabinet__btn--off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(18, 32, 33, 0.05);
}

.cabinet__btn .chapter__chat-count {
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.18);
}

@media (max-width: 760px) {
  .cabinet__chapters {
    gap: 20px;
  }

  .cabinet__card {
    border-radius: 26px;
  }

  .cabinet__card-body {
    padding: 20px 20px 22px;
  }

  .cabinet__card-text {
    font-size: 16px;
  }

  .cabinet__card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cabinet__cover-label {
    top: 18px;
    left: 20px;
  }

  .cabinet__cover-num {
    left: 18px;
    font-size: 72px;
  }

  .cabinet__cover-play {
    left: auto;
    right: 24px;
    width: 64px;
    height: 64px;
    translate: 0 -50%;
  }

  .cabinet__status {
    padding: 18px;
  }

  .cabinet__status-title {
    font-size: 19px;
  }

  .cabinet__status-text {
    font-size: 16px;
  }

  .chat-msg {
    max-width: 96%;
  }
}

/* звёздочка обязательного поля */
.review-form__req {
  margin-left: 3px;
  font-weight: 700;
  color: #d23b2a;
}

.review-form__input::placeholder {
  color: rgba(61, 79, 80, 0.5);
}

.review-form__note {
  margin: -4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.review-form__note small {
  font-size: inherit;
}

.review-form__note a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

/* звёзды: в разметке 5→1, row-reverse показывает 1→5; выбранная и все левее — бирюзовые */
.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.stars__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stars__star {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  color: rgba(16, 74, 80, 0.2);
  cursor: pointer;
  transition:
    color 0.15s,
    transform 0.15s;
}

.stars__star svg {
  fill: currentColor;
}

.stars__input:checked ~ .stars__star {
  color: var(--accent);
}

.stars:hover .stars__star {
  color: rgba(16, 74, 80, 0.2);
}

.stars .stars__star:hover,
.stars .stars__star:hover ~ .stars__star {
  color: var(--accent);
}

.stars__star:hover {
  transform: scale(1.12);
}

.stars__input:focus-visible + .stars__star {
  outline: 3px solid var(--accent-dark);
  outline-offset: 1px;
}

.review-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 0 8px;
  text-align: center;
}

.review-done[hidden] {
  display: none;
}

.review-done__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .review-done:not([hidden]) .review-done__icon {
    animation: done-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes done-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.review-done__title {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.review-done__text {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Как получить доступ */

.access {
  position: relative;
  isolation: isolate;
  /* свечение может уходить за секцию вниз и вверх — без резкой границы */
  overflow-x: clip;
  /* сверху и снизу по 24px отдано соседям под тени — в сумме между секциями ровно --section-space */
  padding: calc(var(--section-space) - 24px) 0 24px;
}

/* бирюзовое свечение за карточкой с ценой */
.access::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 8%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.3), rgba(44, 179, 176, 0) 68%);
  translate: 0 -50%;
}

.access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: center;
  gap: 64px clamp(48px, 7vw, 128px);
}

.access__body .section-title {
  margin-bottom: 40px;
}

/* шаги: номера в стеклянных кружках, соединены тонкой линией */
.access__steps {
  display: grid;
  gap: 28px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.access__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.access__step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 27px;
  width: 2px;
  height: calc(100% + 28px);
  background: linear-gradient(rgba(44, 179, 176, 0.5), rgba(44, 179, 176, 0.12));
}

.access__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(16, 74, 80, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.access__step p {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.access__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.access__note small {
  font-size: inherit;
}

.access__note svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-dark);
}

/* карточка с ценой */
.access-card {
  position: relative;
  overflow: hidden;
  padding: 48px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 70px rgba(16, 74, 80, 0.14);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

/* блик в углу карточки */
.access-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  right: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.22), rgba(44, 179, 176, 0) 70%);
}

.access-card__label {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.14);
}

.access-card__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.access-card__price {
  margin: 0 0 32px;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
}

.access-card__features {
  display: grid;
  gap: 16px;
  margin: 0 0 36px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(16, 74, 80, 0.1);
  list-style: none;
}

.access-card__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.access-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.14);
}

.access-card__btn {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
}

/* документы под кнопкой покупки — заметные стеклянные ссылки */
.access-card__docs {
  margin-top: 20px;
}

.access-card__consent {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.access-card__consent small {
  font-size: inherit;
}

.access-card__doc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-card__doc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid rgba(44, 179, 176, 0.35);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-dark);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(236, 248, 247, 0.55));
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.access-card__doc span {
  flex: 1;
}

.access-card__doc svg:last-child {
  opacity: 0.6;
  transition:
    transform 0.25s ease,
    opacity 0.25s;
}

.access-card__doc:hover {
  border-color: var(--accent);
  background: rgba(44, 179, 176, 0.12);
  box-shadow: 0 6px 16px rgba(44, 179, 176, 0.18);
}

.access-card__doc:hover svg:last-child {
  opacity: 1;
  transform: translateX(3px);
}

.access-card__doc:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.access-card__note {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.access-card__note small {
  font-size: inherit;
}

/* почта и ссылки внутри текстов из админки */
.faq__answer a,
.doc__text a {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration-color: rgba(18, 127, 128, 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.faq__answer a:hover,
.doc__text a:hover {
  text-decoration-color: currentColor;
}

/* Частые вопросы */

.faq {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: calc(var(--section-space) - 24px) 0 var(--section-space);
}

.faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -240px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.24), rgba(44, 179, 176, 0) 70%);
}

.faq__head {
  margin-bottom: 48px;
}

.faq__head .section-title {
  margin-bottom: 16px;
}

.faq__lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

/* вопросы без карточек: разделены тонкими линиями */
.faq__list {
  border-top: 1px solid rgba(16, 74, 80, 0.14);
}

.faq__item {
  border-bottom: 1px solid rgba(16, 74, 80, 0.14);
}

/* плавное раскрытие ответа там, где браузер это умеет; в остальных — мгновенно */
.faq__item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    block-size 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    content-visibility 0.35s allow-discrete;
}

.faq__item[open]::details-content {
  block-size: auto;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__title {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover,
.faq__item[open] .faq__question {
  color: var(--accent-dark);
}

.faq__question:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq__toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.14);
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.faq__question:hover .faq__toggle {
  background: rgba(44, 179, 176, 0.24);
}

.faq__item[open] .faq__toggle {
  color: var(--on-accent);
  background: var(--accent);
}

.faq__answer {
  padding: 0 64px 28px 0;
}

.faq__answer p {
  max-width: 900px;
  margin: 0 0 0.8em;
  line-height: 1.65;
  color: var(--muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* Подвал */

/* белый на всю ширину экрана, прижат к низу без отступов */
.footer {
  background: #fff;
  border-top: 1px solid rgba(16, 74, 80, 0.08);
}

.footer__panel {
  padding: 56px 0 28px;
}

/* описание слева, справа три колонки ссылок */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, auto));
  align-items: start;
  gap: 32px clamp(32px, 5vw, 96px);
  padding-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 460px;
}

.footer__col-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
}

.footer__logo-icon {
  flex: none;
  color: var(--accent-dark);
}

.footer__tagline {
  margin: 16px 0 0;
  line-height: 1.5;
  color: var(--muted);
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__contact svg {
  flex: none;
  color: var(--accent-dark);
}

.footer__contact:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer__links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 74, 80, 0.12);
}

.footer__bottom p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.footer__bottom small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

/* реквизиты продавца — отдельной строкой во всю ширину */
.footer__legal {
  flex-basis: 100%;
}

.footer__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__disclaimer svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent-dark);
}

/* Адаптив */

/* Документы (условия покупки): оглавление слева прилипает, текст на стеклянной панели */

.doc {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 48px 0 var(--section-space);
}

.doc::before,
.doc::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
}

.doc::before {
  top: -160px;
  left: -260px;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.26), rgba(44, 179, 176, 0) 70%);
}

.doc::after {
  top: 40%;
  right: -280px;
  background: radial-gradient(circle, rgba(190, 215, 240, 0.55), rgba(190, 215, 240, 0) 70%);
}

.doc__head {
  margin-bottom: clamp(40px, 4vw, 64px);
}

.doc__title {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.doc__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.doc__updated svg {
  color: var(--accent-dark);
}

.doc__intro {
  max-width: 860px;
  margin: 24px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.doc__grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
}

.doc__toc {
  position: sticky;
  top: calc(var(--header-space) + 24px);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 40px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.doc__toc-title {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc__toc a {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.doc__toc a span {
  flex: none;
  min-width: 1.6em;
  font-weight: 700;
  color: var(--accent-dark);
}

.doc__toc a:hover {
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.12);
}

.doc__toc a:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 1px;
}

.doc__body {
  padding: clamp(28px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.doc__section {
  scroll-margin-top: calc(var(--header-space) + 24px);
}

.doc__section + .doc__section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(18, 127, 128, 0.14);
}

.doc__section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* номер раздела — тем же шрифтом с переливом, что выделения в заголовках */
.doc__num {
  flex: none;
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--accent-dark);
  background: linear-gradient(100deg, #0e6c6d 0%, var(--accent-dark) 30%, #1f9f9c 62%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc__text {
  max-width: 900px;
  color: var(--muted);
}

.doc__text p {
  margin: 0 0 1em;
  line-height: 1.7;
}

.doc__text ul {
  display: grid;
  gap: 10px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.doc__text li {
  position: relative;
  padding-left: 26px;
  font-size: 20px;
  line-height: 1.6;
}

.doc__text li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 179, 176, 0.16);
}

.doc__text > :last-child {
  margin-bottom: 0;
}

/* Вход в личный раздел: карточка с формой слева, фото с пунктами справа */

.login {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 32px 0 var(--section-space);
}

.login::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: -260px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.28), rgba(44, 179, 176, 0) 70%);
}

.login__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: 24px;
  min-height: min(760px, calc(100svh - var(--header-space) - 64px));
}

.login__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6));
  box-shadow:
    inset 0 1px 0 #fff,
    var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.login__card .eyebrow {
  align-self: flex-start;
}

.login__title {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.login__lead {
  margin: 16px 0 0;
  line-height: 1.55;
  color: var(--muted);
}

.login__form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.login__notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(44, 179, 176, 0.35);
  border-radius: 18px;
  color: var(--text);
  background: rgba(44, 179, 176, 0.1);
}

.login__notice[hidden] {
  display: none;
}

.login__notice--error {
  border-color: rgba(194, 65, 45, 0.35);
  background: rgba(194, 65, 45, 0.08);
}

.login__notice--error svg {
  color: #b3361f;
}

.login__notice svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-dark);
}

.login__notice p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.login__notice a {
  font-weight: 600;
  color: var(--accent-dark);
}

.login__field {
  display: grid;
  gap: 8px;
}

.login__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

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

.login__forgot {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.login__forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 74, 80, 0.16);
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.login__input::placeholder {
  color: rgba(61, 79, 80, 0.5);
}

.login__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 179, 176, 0.18);
}

.login__password {
  position: relative;
}

.login__password .login__input {
  padding-right: 56px;
}

/* «глазик»: открытый — пароль скрыт, перечёркнутый — пароль виден */
.login__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: none;
  cursor: pointer;
  translate: 0 -50%;
}

.login__eye:hover {
  color: var(--accent-dark);
  background: rgba(44, 179, 176, 0.1);
}

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

.login__eye svg:last-child,
.login__eye[aria-pressed="true"] svg:first-child {
  display: none;
}

.login__eye[aria-pressed="true"] svg:last-child {
  display: block;
}

.login__submit {
  min-height: 56px;
  margin-top: 4px;
}

.login__alt {
  margin: 28px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.login__alt a {
  font-weight: 600;
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.login__side {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.login__bg {
  position: absolute;
  inset: 0;
}

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

.login__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 127, 128, 0) 40%, rgba(7, 58, 59, 0.35));
}

.login__promo {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  box-shadow: 0 16px 40px rgba(7, 58, 59, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.login__promo-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.login__points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login__points li {
  display: flex;
  gap: 10px;
  font-size: 18px;
  line-height: 1.45;
}

.login__points svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent-dark);
}

/* Кнопка-контур (стекло) — второстепенное действие рядом с основной кнопкой */
.btn--ghost {
  color: var(--accent-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(44, 179, 176, 0.45),
    0 6px 16px rgba(16, 74, 80, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  color: var(--on-accent);
  background: var(--accent);
}

/* Страница 404 */

.notfound {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-space) - 40px);
  padding: 32px 0 var(--section-space);
}

.notfound::before,
.notfound::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
}

.notfound::before {
  top: -10%;
  left: -220px;
  background: radial-gradient(circle, rgba(44, 179, 176, 0.3), rgba(44, 179, 176, 0) 70%);
}

.notfound::after {
  right: -260px;
  bottom: -20%;
  background: radial-gradient(circle, rgba(190, 215, 240, 0.6), rgba(190, 215, 240, 0) 70%);
}

.notfound .container {
  width: 100%;
}

.notfound__card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
  box-shadow:
    inset 0 1px 0 #fff,
    var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.notfound__code {
  margin: 0;
  font-family: "Unbounded", "Inter", "Inter Fallback", sans-serif;
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent-dark);
  background: linear-gradient(100deg, #0e6c6d 0%, var(--accent-dark) 30%, #1f9f9c 62%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notfound__title {
  margin: 24px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.notfound__text {
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.55;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 1240px) {
  .reviews__slider:not(.swiper-initialized) .reviews__slide {
    width: calc((100% - 24px) / 2);
  }

  :root {
    --header-radius: 34px;
  }

  .header__bar {
    position: relative;
    gap: 12px;
    padding: 10px 10px 10px 20px;
  }

  .header__cta {
    margin-left: auto;
  }

  /* без JS меню просто переносится на вторую строку */
  html:not(.js) .header__bar {
    flex-wrap: wrap;
  }

  html:not(.js) .header__nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }

  html:not(.js) .header__menu {
    gap: 8px 28px;
    padding-bottom: 4px;
  }

  .js .header__burger {
    display: flex;
  }

  /* полноэкранное стеклянное меню под шапкой: выезжает справа, пункты появляются лесенкой */
  .js .header__nav {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: calc(var(--header-space) + 12px) max(var(--gutter), (100% - var(--container)) / 2) 32px;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(78% 42% at 88% 0%, rgba(44, 179, 176, 0.2) 0%, transparent 68%),
      radial-gradient(64% 38% at 4% 100%, rgba(190, 215, 240, 0.4) 0%, transparent 70%),
      rgba(241, 249, 249, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transform: translateX(64px);
    transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.7, 0.4),
      opacity 0.28s cubic-bezier(0.4, 0, 0.7, 0.4),
      visibility 0s linear 0.28s;
  }

  .js .header.is-menu-open .header__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      transform 0.46s cubic-bezier(0.2, 0.8, 0.25, 1),
      opacity 0.46s ease;
  }

  .js .header__menu-cap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
  }

  .js .header__menu-cap::before {
    content: "";
    flex: none;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
  }

  .js .header__menu {
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
  }

  .js .header__menu a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(16, 74, 80, 0.08);
    font-size: clamp(22px, 4.6vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    transition:
      color 0.18s ease,
      padding-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js .header__menu a:hover,
  .js .header__menu a:focus-visible {
    padding-left: 14px;
    color: var(--accent-dark);
    outline: none;
  }

  .js .header__menu a[aria-current="page"] {
    color: var(--accent-dark);
  }

  .js .header.is-menu-open .header__menu-cap,
  .js .header.is-menu-open .header__menu li,
  .js .header.is-menu-open .header__menu-cta,
  .js .header.is-menu-open .header__menu-account {
    animation: menu-item-in 0.44s cubic-bezier(0.22, 0.9, 0.3, 1) both;
    animation-delay: calc(110ms + var(--i, 0) * 40ms);
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* вход: только карточка с формой */
  .login__grid {
    grid-template-columns: minmax(0, 600px);
    justify-content: center;
    min-height: 0;
  }

  .login__side {
    display: none;
  }

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

  .doc__toc {
    position: static;
  }

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

  .video-card {
    justify-self: stretch;
    max-width: none;
  }

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

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

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

  .access-card {
    max-width: 640px;
  }

  /* свечение целиком внутри секции, иначе по её низу видна граница */
  .access::before {
    top: auto;
    bottom: 0;
    translate: none;
  }

  .about__intro {
    position: static;
  }

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

  .author__photo {
    order: 1;
    justify-self: center;
    width: 100%;
    max-width: 460px;
  }

}

@media (max-width: 640px) {
  .notfound__card {
    border-radius: 28px;
  }

  .author__bio ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .author__bio li {
    font-size: 16px;
  }

  .notfound__actions .btn {
    width: 100%;
  }

  .login {
    padding-top: 16px;
  }

  .login__card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .login__form {
    margin-top: 24px;
  }

  .login__input {
    font-size: 16px;
  }

  .login__notice p,
  .login__alt {
    font-size: 16px;
  }

  /* заголовок первого экрана сжимается вместе с экраном: на 360px «актуальные» иначе шире строки */
  .hero__title {
    font-size: clamp(30px, 10vw, 40px);
  }

  /* кнопка первого экрана — во всю ширину; на совсем узком экране текст переносится, а не распирает страницу */
  .hero__btn {
    width: 100%;
    padding: 12px 20px;
    white-space: normal;
    text-align: center;
  }

  .doc {
    padding-top: 32px;
  }

  .doc__toc {
    padding: 20px 14px;
    border-radius: 22px;
  }

  /* на телефоне текст без стеклянной подложки — во всю ширину контейнера */
  .doc__body {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .doc__section + .doc__section {
    margin-top: 32px;
    padding-top: 32px;
  }

  .doc__text li {
    font-size: 18px;
  }

  .chapters:not(.swiper-initialized) .swiper-wrapper {
    gap: 16px;
  }

  .chapter {
    width: min(84vw, 340px);
    min-height: 300px;
    padding: 24px 24px 24px;
    border-radius: 26px;
  }

  .chapters__controls {
    gap: 20px;
    margin-top: 28px;
  }

  .chapters__nav .slider-arrow {
    width: 48px;
    height: 48px;
  }

  :root {
    --header-space: 100px;
  }

  p {
    font-size: 18px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 14px;
  }

  :root {
    --header-top: 12px;
  }

  /* на телефоне кнопка уезжает в меню */
  .js .header__bar > .header__cta {
    display: none;
  }

  .js .header__menu-cta {
    display: flex;
    flex: none;
    width: 100%;
    margin-top: auto;
  }

  .js .header__menu-account {
    display: grid;
    flex: none;
    gap: 10px;
    width: 100%;
    margin-top: auto;
  }

  .header__menu-account form {
    margin: 0;
  }

  .header__menu-account .btn {
    width: 100%;
  }

  .header__menu-email {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-dark);
  }

  .header__menu-email span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .js .header__burger {
    margin-left: auto;
  }

  html:not(.js) .header__cta {
    order: 4;
    width: 100%;
    min-height: 44px;
  }

  .hero__bg::after {
    background: linear-gradient(180deg, rgba(241, 249, 249, 0.9) 0%, rgba(241, 249, 249, 0.7) 50%, rgba(241, 249, 249, 0.88) 100%);
  }

  .hero__bg img {
    object-position: center top;
  }

  .hero__inner {
    padding-bottom: 24px;
  }

  .video-card {
    padding: 8px;
    border-radius: 24px;
  }

  .video-card__media {
    border-radius: 18px;
  }

  .video-card__play {
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
  }

  .video-card__play svg {
    width: 30px;
    height: 30px;
  }

  .video-card__info {
    flex-wrap: wrap;
  }

  .footer__panel {
    padding: 40px 0 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer__links a {
    white-space: normal;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .access__body .section-title {
    margin-bottom: 28px;
  }

  .access__steps {
    gap: 20px;
    margin-bottom: 28px;
  }

  .access__step {
    gap: 16px;
  }

  .access__step:not(:last-child)::before {
    left: 23px;
    height: calc(100% + 20px);
  }

  .access__num {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .access-card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .access-card__price {
    margin-bottom: 24px;
  }

  .access-card__features {
    padding-top: 22px;
    margin-bottom: 28px;
  }

  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .reviews__bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 24px;
  }

  /* телефон: отдельные «пилюли» своей ширины; не влезли в строку — переносятся, все видны сразу */
  .reviews__filter {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .reviews__filter-btn {
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    font-size: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
    box-shadow: 0 4px 14px rgba(16, 74, 80, 0.08);
  }

  .reviews__filter-btn[aria-pressed="true"] {
    color: var(--on-accent);
    border-color: transparent;
    background: var(--accent);
    box-shadow: 0 6px 16px rgba(44, 179, 176, 0.35);
  }

  .reviews__filter-btn[aria-pressed="true"] span {
    background: rgba(255, 255, 255, 0.45);
  }



  .reviews__nav,
  .reviews__actions {
    display: none;
  }

  .reviews__write-bottom {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
  }

  .reviews__slider:not(.swiper-initialized) .reviews__slide {
    width: calc(100% / 1.08);
  }

  .review {
    padding: 24px;
    border-radius: 24px;
  }

  .reviews__pagination {
    margin-top: 28px;
  }

  .program__lead {
    padding-left: 18px;
  }

  .faq__head {
    margin-bottom: 32px;
  }

  .faq__question {
    gap: 16px;
    padding: 20px 0;
  }

  .faq__toggle {
    width: 36px;
    height: 36px;
  }

  .faq__answer {
    padding: 0 0 22px;
  }

  .author__panel {
    border-radius: 28px;
  }

  .author__person > svg {
    display: none;
  }

  .about__quote {
    margin: 36px 0;
    padding: 22px 18px 22px 22px;
  }

}
