* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --teal: #0abfbf;
  --teal-dark: #089a9a;
  --dark: #033f42;
  --muted: #61707a;
  --bg: #f5fbfb;
  --border: #e1ebee;
  /* свежие акценты для «омоложения»; не понравятся — меняются здесь */
  --accent: #FF5A36;
  --accent-dark: #E64A2E;
  --marker: #FFD447;
  --radius: 16px;
  --heading-following-gap: 4px;
  /* Тёмные варианты для текста и заливки под белым. Проверено расчётом:
     белый на #FF5A36 даёт 3.1:1, а для обычного текста нужно 4.5:1.
     Оранжевый и бирюзовый остаются фирменными — они на рамках, полосах и
     крупных плашках, где контраст не читается как текст. */
  --accent-strong: #C73F1B;   /* 5.05:1 с белым */
  --teal-strong: #077a7a;     /* 5.15:1 с белым */
  /* Рамка фокуса обязана быть видна на любом фоне: тёмно-янтарная даёт
     5.93:1 на белом, а белый кант под ней отделяет её от оранжевой заливки. */
  --focus: #8A5A00;
}
/* Подписи к полям форм. Раньше их не было вовсе: имя поля было только в
   placeholder, который исчезает при первом же символе и читается
   скринридером ненадёжно. */
.field-label { display: block; font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: .3rem; }
.admin-section input, .admin-section textarea, .admin-section select { margin-bottom: .2rem; }
/* Ссылка для клавиатуры: прячется, но появляется по фокусу. Раньше её не
   было вовсе — с клавиатуры приходилось проходить весь набор ссылок меню,
   прежде чем попасть к содержимому страницы. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--dark); padding: .8rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); color: #22343a; line-height: 1.6;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--dark); }
h1, h2 { font-family: 'Unbounded', 'Inter', sans-serif; line-height: 1.15; letter-spacing: .5px; }
h1, h2, h3, h4 { padding-bottom: var(--heading-following-gap); }
.center { text-align: center; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- ШАПКА ---------- */
.navbar {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 70%, #0dd6d6 100%);
  position: sticky; top: 0; z-index: 100; padding: .8rem 0;
  box-shadow: 0 2px 10px rgba(3,63,66,.15);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav-brand { text-decoration: none; display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.3rem; font-weight: 500; color: #fff; letter-spacing: 1px;
}
.brand-sub { font-size: .75rem; font-weight: 300; color: rgba(255,255,255,.85); letter-spacing: .3px; }
.nav-menu { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav-menu a { color: #fff; text-decoration: none; font-weight: 400; font-size: .9rem; letter-spacing: .4px; }
.nav-menu a:hover { text-decoration: underline; }
.nav-socials { display: flex; gap: .6rem; align-items: center; }
.social-icon {
  /* Минимум 44px по обе стороны: при 34px иконка попадала мимо пальца, и на
     телефоне ссылку было не нажать. Видимая иконка меньше — это допустимо,
     Area нажатия расширяется. */
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.social-icon:hover { background: #fff; color: var(--teal-strong); }
.nav-socials .social-icon svg { display: block; }

/* ---------- HERO (постерный) ---------- */
.hero { background: linear-gradient(135deg, #06393c 0%, #0a5c60 55%, #0abfbf 125%); color: #fff; padding: 4.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: #0dd6d6;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-title {
  color: #fff; font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: .8rem;
}
.hero-subtitle { font-size: 1.25rem; color: #9ff2f2; margin-bottom: 1rem; font-weight: 600; }
.hero-desc { max-width: 560px; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; border-radius: 24px; border: 4px solid rgba(255,255,255,.85);
  box-shadow: 0 20px 50px rgba(0,0,0,.35); object-fit: cover; display: block;
}
.hero-sticker {
  position: absolute; top: -16px; right: -8px;
  background: var(--marker); color: var(--dark);
  font-weight: 800; font-size: .85rem; padding: .55rem 1rem; border-radius: 999px;
  transform: rotate(5deg); box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
}

/* ---------- КНОПКИ ---------- */
.btn { padding: .9rem 1.8rem; border: none; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 20px rgba(255,90,54,.35); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-small { padding: .5rem 1rem; font-size: .85rem; margin-top: .9rem; }
/* Кнопка-контур для светлого фона. Раньше для этого брался .btn-ghost, но он
   белый по белому (color и border объявлены белыми ради тёмной шапки), и на
   карточке в каталоге просто исчезал. */
.btn-outline { background: #fff; color: var(--accent-strong); border: 2px solid var(--accent-strong); }
.btn-outline:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,90,54,.28); }
.btn-outline:active { transform: translateY(0); }
/* Интерактивное выделение: наведение, нажатие и видимый фокус с клавиатуры.
   Без последнего кнопка недоступна при навигации с клавиатуры. */
.btn-primary:hover { background: var(--accent-strong); filter: brightness(.92); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px rgba(255,90,54,.3); }
/* Фокус виден на любом фоне: белый кант отделяет тёмную рамку от оранжевой
   заливки. Одной только рамки было мало — на насыщенном фоне она сливалась. */
.btn:focus-visible, a.btn:focus-visible,
.social-icon:focus-visible, .nav-burger:focus-visible,
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.92);
}
/* Без JavaScript и на старых браузерах фокус не должен пропадать совсем. */
.btn:focus, a.btn:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Ссылки внутри текста: подчёркивание и своя рамка фокуса. */
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* Палец не должен ждать 300 мс перед откликом. */
a, button, .btn, .social-icon, .nav-burger, .playlist-item, .pc-btn { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  /* Уважаем системную настройку: анимации сокращаются, а не отключаются
     совсем — иначе страница «прыгает» при первом касании. */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.btn-buy { background: var(--dark); color: #fff; width: 100%; margin-top: 1rem; }
.btn-buy:hover { background: #05565b; }

/* ---------- СЕКЦИИ ---------- */
.page { padding: 2rem 0; }
.section { padding: 3rem 0 1rem; }
.section-overline {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: .6rem;
}
.section h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 1.2rem; }
.section h3 { margin: 1.4rem 0 .8rem; }
.section p { margin-bottom: .9rem; max-width: 900px; }

/* ---------- РИТМ «ТЕКСТ → КНОПКА» ----------
   Глобальный сброс (* { margin: 0 }) обнуляет отступы, поэтому тексту перед
   кнопкой нужен явный интервал — иначе кнопка визуально прилипает к абзацу. */
.about-layout p { margin-bottom: 1.4rem; max-width: 68ch; }
.about-layout p:last-of-type { margin-bottom: 1.5rem; }
.feature p { margin-bottom: .4rem; }

/* ---------- ЦА ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0 1rem; }
.audience-card { background: #fff; border: 1.5px solid var(--border); border-top: 5px solid var(--teal); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; transition: .25s; }
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,63,66,.12); }
.audience-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.audience-card ul { list-style: none; margin-bottom: 1.5rem; flex: 1; border-left: 2px solid var(--teal); padding-left: 1.1rem; }
.audience-card li { padding: .4rem 0; color: #33474e; }
.audience-card .btn { align-self: flex-start; }

/* ---------- ФИЧИ ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }

/* ---------- ЮРИДИЧЕСКИЕ СТРАНИЦЫ ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; margin: 1.4rem 0 2rem; }
.legal-card { background: #fff; border: 1.5px solid var(--border); border-top: 5px solid var(--teal); border-radius: var(--radius); padding: 1.5rem; }
.legal-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.legal-dl { margin: 0; }
.legal-dl dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; margin-top: .9rem; }
.legal-dl dt:first-child { margin-top: 0; }
.legal-dl dd { margin: .25rem 0 0; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .3px; }

.legal-body { max-width: 78ch; }
.legal-body h3 { font-size: 1.15rem; margin: 2rem 0 .8rem; padding-top: .4rem; }
.legal-body p { margin-bottom: .9rem; }
.legal-body ul { margin: .6rem 0 1rem 1.2rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body a { color: var(--teal-dark); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.legal-table th { background: #eef8f8; color: var(--dark); font-weight: 600; }
.legal-table td:first-child { width: 34%; }
.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  background: #fff; border: 1.5px solid var(--border); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.4rem 0;
}
.download-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.download-card p { color: var(--muted); font-size: .92rem; margin: 0; max-width: 62ch; }
.download-card .btn { margin-top: 0; flex-shrink: 0; }
.feature { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,63,66,.12); border-color: var(--accent); }
/* Блоки формата урока — статичные: рамка оранжевая всегда, без реакции на
   курсор. Раньше карточка поднималась при наведении и читалась как ссылка.
   Текст остаётся обычным чёрным: выделена рамка, а не слова. */
.features-static .feature { border: 2px solid var(--accent); background: #fff; transition: none; }
.features-static .feature:hover,
.features-static .feature:focus-within { transform: none; box-shadow: none; border-color: var(--accent); }
.features-static .feature h3 { color: #22343a; }
.features-static .feature p { color: #22343a; }
.feature h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .92rem; }
.nice-list { list-style: none; margin: 1rem 0 1.5rem; border-left: 2px solid var(--teal); padding-left: 1.1rem; }
.nice-list li { padding: .4rem 0; }

/* ---------- СОЦСЕТИ ---------- */
.socials { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social-btn { padding: .7rem 1.6rem; background: #fff; border: 2px solid var(--teal); color: var(--dark); border-radius: 999px; text-decoration: none; font-weight: 700; transition: .2s; }
.social-btn:hover { background: var(--teal-strong); color: #fff; transform: translateY(-2px); }

/* ---------- КАРТОЧКИ КУРСОВ ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; margin-top: 1.2rem; }

/* Каталог: три колонки — курсы, отдельные уроки, очные мастер-классы. */
/* Каталог: три колонки. Ширина и высота у всех одинаковые, иначе колонка с
   одним курсом выглядит обрезанной по сравнению с соседями. */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.4rem; align-items: stretch; }
.catalog-col { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; }
.catalog-title { font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.05rem; letter-spacing: .3px; margin-bottom: .5rem; }
.catalog-note { color: var(--muted); font-size: .85rem; margin-bottom: .9rem; }
/* Слот занимает всё место в колонке, поэтому карточка растягивается на всю
   высоту и все три колонки заканчиваются одной чертой. */
.catalog-slot { flex: 1; display: flex; flex-direction: column; gap: .9rem; }
.catalog-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border: 1.5px solid var(--border); border-radius: calc(var(--radius) - 2px); transition: .2s; background: #fff; flex: 1; }
.catalog-item h4 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.3; }
.catalog-item .catalog-meta { color: var(--muted); font-size: .82rem; }
.catalog-item .catalog-desc { font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.catalog-item .price-line { font-weight: 700; color: var(--accent-strong); font-size: .95rem; margin-top: .4rem; }
.catalog-cover { flex: 0 0 76px; height: 76px; border-radius: calc(var(--radius) - 4px); background: var(--accent-strong); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; background-size: cover; background-position: center; }
.catalog-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
/* Кнопки покупки — главный акцент карточки. */
.catalog-actions { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.catalog-pager { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1rem; }
/* Стрелки листателя: отдельный размер, иначе .btn-small даёт им отступ сверху. */
.btn-pager { padding: .35rem .95rem; font-size: 1.25rem; line-height: 1; margin-top: 0; border-radius: 999px; }
.catalog-actions .btn-small { margin-top: 0; }
.catalog-count { color: var(--muted); font-size: .88rem; font-weight: 600; }
.partner-card { border: 1.5px solid var(--accent); border-radius: calc(var(--radius) - 2px); padding: 1rem; background: #fffaf4; flex: 1; }
.partner-card h4 { margin: 0 0 .35rem; font-size: 1rem; }
.partner-card p { font-size: .88rem; color: var(--muted); margin-bottom: .7rem; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; gap: 1.2rem; }
}
.course-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .25s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,63,66,.14); }
.course-thumbnail { height: 120px; background: linear-gradient(135deg, #0abfbf 0%, #033f42 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.4rem; font-weight: 800; }
.course-thumbnail.has-img { background-size: cover; background-position: center; font-size: 0; }
.course-content { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.course-content h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.course-content p { color: var(--muted); font-size: .9rem; flex: 1; }
.badge-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.badge { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge.aud { background: #e6f9f9; color: #077a7a; }
.badge.free { background: #e8f7ec; color: #1d7a38; }
.badge.paid { background: #fdf1e3; color: #b26a08; }
.price-line { font-weight: 800; color: var(--dark); font-size: 1.15rem; margin-top: .6rem; }

/* ---------- СТРАНИЦА КУРСА ---------- */
.course-layout { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.course-buy-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; box-shadow: 0 10px 30px rgba(3,63,66,.08); }
.buy-card-cover { height: 180px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0abfbf 0%, #033f42 100%); color: #fff; font-size: 3rem; font-weight: 800; }
.buy-card-cover.has-img { background-size: cover; background-position: center; font-size: 0; }
.buy-card-body { padding: 1.4rem; }
.buy-includes { list-style: none; margin-top: 1.2rem; border-left: 2px solid var(--teal); padding-left: 1rem; }
.buy-includes li { padding: .3rem 0; color: var(--muted); font-size: .9rem; }
.course-main h2 { font-size: 2rem; margin: .6rem 0 1rem; }
.course-desc { font-size: 1.05rem; }
.program-list { list-style: none; margin: 1rem 0; }
.program-list li { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: .8rem 1.1rem; margin-bottom: .6rem; display: flex; gap: .8rem; align-items: center; transition: .2s; }
.program-list li:hover { border-color: var(--teal); box-shadow: 0 6px 16px rgba(3,63,66,.08); }
.program-num { background: var(--teal-strong); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.lock { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- ВИДЕО ---------- */
.video-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.video-sidebar { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.2rem; max-height: 75vh; overflow-y: auto; }
.video-sidebar h3 { margin-bottom: 1rem; font-size: 1rem; }
.playlist-item { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; margin-bottom: .3rem; }
.playlist-item:hover { background: #e9f6f6; }
.playlist-item.active { background: var(--teal-strong); }
.playlist-item.active .program-num { background: #fff; color: var(--teal-strong); }
.playlist-title { font-size: .9rem; font-weight: 600; }
#videoPlayer { position: relative; margin-bottom: 1.2rem; }
#videoPlayer::before {
  content: attr(data-watermark);
  position: absolute; top: 12px; right: 12px; z-index: 10;
  color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 4px; pointer-events: none;
}
/* object-fit: contain — вертикальные ролики (9:16) не растягиваются под 16:9 */
video { width: 100%; border-radius: 12px; background: #000; object-fit: contain; }
#videoPage { -webkit-user-select: none; user-select: none; }

/* ---------- AUTH ---------- */
.auth-container { max-width: 420px; margin: 2rem auto; background: #fff; padding: 2.2rem; border-radius: var(--radius); border: 1.5px solid var(--border); }
.auth-container h2 { text-align: center; margin-bottom: 1.6rem; }
.auth-container form { display: flex; flex-direction: column; gap: 1rem; }
.auth-container input { padding: .85rem 1rem; border: 1px solid #cfd9dd; border-radius: 10px; font-size: 1rem; }
.auth-container input:focus { outline: none; border-color: var(--teal); }
.auth-container button { padding: .9rem; background: var(--accent-strong); color: #fff; border: none; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.auth-container button:hover { filter: brightness(.92); }
.auth-container p { text-align: center; margin-top: 1rem; color: var(--muted); }
.auth-container a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }

/* ---------- АДМИНКА ---------- */
.admin-section { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; }
.admin-section h3 { margin-bottom: 1.2rem; }
.admin-section form { display: flex; flex-direction: column; gap: 1rem; }
.admin-section input, .admin-section textarea, .admin-section select { padding: .85rem 1rem; border: 1px solid #cfd9dd; border-radius: 10px; font-size: 1rem; font-family: inherit; }
.admin-section textarea { min-height: 90px; resize: vertical; }
.admin-section button { padding: .9rem; background: var(--teal-strong); color: #fff; border: none; border-radius: 999px; font-weight: 700; cursor: pointer; }
.checkbox-line { display: flex; gap: .6rem; align-items: center; color: #33474e; }
.checkbox-line input { width: auto; }
.progress-bar { width: 100%; height: 26px; background: #ecf0f1; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--teal); transition: width .3s; }
.admin-course-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; }
.audit-item { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; margin-bottom: .55rem; background: #fff; }
.audit-item-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.audit-item-head strong { color: var(--dark); font-size: .9rem; overflow-wrap: anywhere; }
.audit-item-head time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.audit-details { margin-top: .3rem; font-size: .78rem; overflow-wrap: anywhere; }

/* ---------- ПРОЧЕЕ ---------- */
.back-btn { padding: .55rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; margin-bottom: 1.4rem; color: var(--dark); font-weight: 600; }
.back-btn:hover { background: #e9f6f6; }
.notification {
  position: fixed; top: 80px; right: 20px; z-index: 1000;
  background: #fff; padding: 1rem 1.5rem; border-radius: 12px;
  border: 1px solid var(--border); border-left: 4px solid #27ae60;
  transform: translateX(450px); transition: transform .3s; max-width: 340px;
}
.notification.show { transform: translateX(0); }
.notification.error { border-left-color: #e74c3c; }
.footer { background: var(--dark); color: #cfe8e8; padding: 1.4rem 0; margin-top: 3rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; align-items: center; }
.footer-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
  color: #fff; text-decoration: none; font-size: .85rem; transition: .2s;
}
.footer-links a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); }
/* Иконка в кнопке Telegram в футере: тот же знак, что в шапке. */
.footer-links a svg { display: block; flex: 0 0 auto; }
.footer-links a.footer-tg { gap: .45rem; }
.footer a { color: #9ff2f2; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) { .nav-menu { gap: 1rem; } }
@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-buy-card { position: static; }
  .video-layout { grid-template-columns: 1fr; }
  .video-sidebar { max-height: 320px; }
}
@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  .nav-menu { gap: .9rem; }
}

/* ---------- Шапка: соцсети рядом с именем, меню-выпадалка ---------- */
#homePage { padding-top: 0; }
.nav-left { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.nav-burger {
  width: 44px; height: 44px; background: rgba(255,255,255,.18);
  border: none; border-radius: 8px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  transition: .2s;
}
.nav-burger:hover { background: rgba(255,255,255,.3); }
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.nav-menu {
  display: none;
  position: absolute; right: 20px; top: calc(100% + 10px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(3,63,66,.2);
  padding: .7rem; min-width: 250px; z-index: 300;
  flex-direction: column; gap: .15rem;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  color: var(--dark); padding: .55rem .9rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; letter-spacing: .2px;
}
.nav-menu a:hover { background: #e9f6f6; text-decoration: none; }

/* ---------- Об авторе: фото слева ---------- */
.about-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
/* height:auto обязателен. Атрибут height="1200" в разметке (он нужен, чтобы
   браузер зарезервировал место и страница не прыгала) превращается в
   высоту бокса. CSS переопределял только ширину, и картинка становилась
   428×1200 — object-fit: cover обрезал кадр по краям, и вместо лица была
   видна собака. height:auto возвращает исходные пропорции. */
.about-photo { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(3,63,66,.12); }
/* Общее правило на случай новых картинок с атрибутами width/height.
   Фото внизу главной намеренно другое, не то же, что в шапке: два кадра
   подряд от одного человека читаются как повтор. Источник — «На главной,
   которая ниже и меньше», пропорции 2:3 совпадают с рамкой, кадр не режется. */
img[width][height] { height: auto; }
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* ---------- Линия ровно по списку в блоках ЦА ---------- */
.audience-card ul { flex: 0 0 auto; }
.audience-card .btn { margin-top: auto; }

/* ---------- Соцсети справа, вплотную к меню ---------- */
.nav-right { display: flex; align-items: center; gap: .8rem; margin-left: auto; }

/* ---------- Большие карточки курсов: одна на экран ---------- */
.courses-grid { grid-template-columns: 1fr; gap: 2.5rem; }
.course-thumbnail { height: 280px; font-size: 4rem; }
.course-content { padding: 1.6rem; }
.course-content h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.course-content p { font-size: 1.02rem; flex: none; }
.price-line { font-size: 1.45rem; margin-top: .9rem; }

/* ---------- Плеер: переключатели ---------- */
.player-controls { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.pc-btn { padding: .4rem .8rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.pc-btn:hover { background: #e9f6f6; }
.pc-btn.active { background: var(--teal-strong); color: #fff; border-color: var(--teal-strong); }
.lesson-editor-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; }
.lesson-editor-item .row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.lesson-editor-item input[type=number] { width: 130px; padding: .4rem .6rem; border: 1px solid #cfd9dd; border-radius: 6px; }

/* ---------- ПОЯВЛЕНИЕ БЛОКОВ ПРИ СКРОЛЛЕ ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- ДИСКЛЕЙМЕР: компактная строка ---------- */
.disclaimer-note {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: 1rem 0;
  padding: .55rem .9rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
  background: transparent;
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
}
.disclaimer-note summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .82rem;
}
.disclaimer-note summary:hover { text-decoration: underline; }
.disclaimer-note ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.disclaimer-note li { padding: .15rem 0; }
.footer-disclaimer {
  color: #9ff2f2; font-size: .82rem; max-width: 900px;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(159, 242, 242, .25);
}