/* =========================================================
   Мастерская здоровья — RadarGP. Информационная страница.
   Палитра и типографика — из лендинга «Клубная модель» RadarGP.
   ========================================================= */

/* ---------- Fonts (self-hosted Nunito) ---------- */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-800.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-900.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg-cream: #FAF8F2;
  --green: #54A51C;
  --green-dark: #284E0D;
  --green-light: #E4EFDC;
  --green-bg-tint: #F1F8ED;
  --text-dark: #3E2F25;
  --white: #FFFFFF;
  --red: #B3261E;

  --font-heading: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 32px rgba(62, 47, 37, 0.08);
  --shadow-card: 0 8px 24px rgba(40, 78, 13, 0.10);

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }

body {
  max-width: 100%;
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
}
h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; opacity: 0.85; }

.rule {
  width: 64px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--green);
  margin: 18px 0;
}
.section-head.center .rule { margin-inline: auto; }

section { padding: 88px 0; position: relative; }
section.tight { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: normal;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(84, 165, 28, 0.35);
}
.btn-primary:hover { background: #4a941a; box-shadow: 0 14px 30px rgba(84, 165, 28, 0.42); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(62, 47, 37, 0.25);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline.on-dark:hover { border-color: var(--white); }

.btn-sm { padding: 12px 24px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 248, 242, 0.55);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(62, 47, 37, 0.08);
  padding: 10px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
  max-width: none;
  object-fit: contain;
}
.site-header.scrolled .brand-logo { height: 36px; }
/* --- отдельная марка (используется в подвале) --- */
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.site-footer .brand { gap: 10px; font-weight: 900; font-size: 1.1rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav a { opacity: 0.75; transition: opacity 0.15s ease, color 0.15s ease; }
.main-nav a:hover { opacity: 1; color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  background: var(--green-light);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Like button ---------- */
.like {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(62, 47, 37, 0.18);
  background: var(--white);
  padding: 10px 18px;
  font-weight: 800;
  color: var(--text-dark);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.like:hover { border-color: var(--green); color: var(--green); }
.like:active { transform: scale(0.97); }
.like .thumb { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.like .like-count { font-variant-numeric: tabular-nums; }
.like .like-label { font-weight: 700; opacity: 0.7; font-size: 0.9rem; }
.like.is-liked {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.like.is-liked .like-label { opacity: 0.85; color: var(--white); }
.like.is-liked .thumb { transform: scale(1.12) rotate(-6deg); }
.like.like-sm { padding: 8px 14px; font-size: 0.92rem; }
.like.like-sm .thumb { width: 17px; height: 17px; }
.like.like-lg { padding: 16px 28px; font-size: 1.25rem; }
.like.like-lg .thumb { width: 26px; height: 26px; }
.like.on-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); color: var(--white); }
.like.on-dark:hover { border-color: var(--white); color: var(--white); }
.like.on-dark.is-liked { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.like.on-dark.is-liked .like-label { color: var(--green-dark); }

.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 0 96px;
  color: var(--white);
  overflow: hidden;
  background: var(--green-dark);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0.28;
  filter: grayscale(0.3);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(84,165,28,0.45), transparent 60%),
    linear-gradient(180deg, rgba(40,78,13,0.78) 0%, rgba(28,54,8,0.94) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.8rem);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.16rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stat b { display: block; font-size: 1.5rem; font-weight: 900; }
.hero-stat span { font-size: 0.86rem; opacity: 0.78; }
.hero-stat-tariffs b { font-size: 1.05rem; line-height: 1.25; }

/* ---------- Video module (click-to-play) ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #10240a;
  box-shadow: var(--shadow-card);
  max-width: 940px;
  margin: 0 auto;
}
.video-frame img,
.video-frame iframe,
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  border: 0;
}
.play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(40,78,13,0.15) 0%, rgba(40,78,13,0.6) 100%);
}
.play-btn .circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.play-btn:hover .circle { transform: scale(1.07); }
.play-btn .circle svg { width: 30px; height: 30px; margin-left: 4px; color: var(--green); }
.play-btn .play-label {
  color: var(--white);
  font-weight: 800;
  background: rgba(0,0,0,0.32);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}
.video-frame.is-playing .play-btn { display: none; }

.video-caption {
  max-width: 940px;
  margin: 18px auto 0;
  font-size: 0.95rem;
  opacity: 0.7;
  text-align: center;
}
.video-actions {
  max-width: 940px;
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* ---------- Timing / chapters ---------- */
.chapters {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  counter-reset: ch;
}
.chapter { list-style: none; }
.chapter button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.chapter button:hover { border-color: var(--green); }
.chapter button:active { transform: scale(0.995); }
.chapter .ch-time {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.86rem;
}
.chapter .ch-title { font-weight: 700; font-size: 0.98rem; }
.chapter .ch-go { color: var(--green); font-weight: 900; opacity: 0.6; }
.chapter button:hover .ch-go { opacity: 1; }

@media (max-width: 560px) {
  .chapter button { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; }
  .chapter .ch-go { display: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: stretch;
}
.about-grid > .about-facts { align-content: start; }
.about-grid > .topics-card { align-self: stretch; }
.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.fact .num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.fact p { font-size: 0.98rem; }
.fact b { color: var(--green-dark); }

.topics-card {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.topics-card h3 { color: var(--white); margin-bottom: 6px; }
.topics-card > p { opacity: 0.8; font-size: 0.95rem; margin-bottom: 18px; }
.topics-list { display: grid; gap: 12px; }
.topics-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.96rem;
}
.topics-list li:first-child { border-top: none; }
.topics-list .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #A9E374;
  font-weight: 900;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.feature-card .ico {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; opacity: 0.82; }

/* ---------- Experts ---------- */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.expert-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}
.expert-avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.expert-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.expert-card p { font-size: 0.9rem; opacity: 0.8; }
.expert-card .role {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Tariffs ---------- */
.tariffs-note {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 0.98rem;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-weight: 700;
}
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.tariff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.tariff-card.has-workshop { border-color: var(--green); }
.tariff-card.featured {
  background: var(--green-bg-tint);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}
.tariff-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--green);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.tariff-badge.ghost { background: var(--green-light); color: var(--green-dark); }
.tariff-card h3 { margin-bottom: 4px; }
.tariff-kind { font-size: 0.8rem; opacity: 0.6; font-weight: 700; margin-bottom: 16px; }
.tariff-list { display: grid; gap: 9px; margin: 4px 0 20px; flex: 1; }
.tariff-list li { display: flex; gap: 9px; font-size: 0.86rem; align-items: flex-start; }
.tariff-list .yes { color: var(--green); font-weight: 900; }
.tariff-list .no { color: var(--red); font-weight: 900; opacity: 0.5; }
.tariff-list li.is-no { opacity: 0.5; }
.tariff-list li.hl { font-weight: 800; }
.tariff-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-dark);
  border: 2px solid rgba(62,47,37,0.18);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tariff-link:hover { border-color: var(--green); color: var(--green); }

/* ---------- Feedback CTA ---------- */
.feedback-cta {
  background: linear-gradient(135deg, var(--green-dark), #1c3608);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.feedback-cta h2 { color: var(--white); margin-bottom: 14px; }
.feedback-cta p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 28px; font-size: 1.05rem; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.feedback-meta { margin-top: 20px; font-size: 0.86rem; color: rgba(255,255,255,0.6); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 6px 24px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  font-weight: 900;
  color: var(--green-dark);
}
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 20px; font-size: 0.95rem; opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 54px 0 28px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 22px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col b { display: block; color: var(--white); margin-bottom: 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a, .footer-col span { display: block; margin-bottom: 8px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: #A9E374; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; opacity: 0.62; }

/* ---------- Header auth widget ---------- */
.auth-widget { display: flex; align-items: center; gap: 10px; }
.auth-name { font-weight: 800; font-size: 0.88rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Library: controls ---------- */
.library-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}
.search-field {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
}
.search-field svg {
  position: absolute;
  left: 18px;
  width: 20px; height: 20px;
  color: var(--green-dark);
  opacity: 0.55;
  pointer-events: none;
}
.search-field input {
  width: 100%;
  font: inherit;
  padding: 15px 18px 15px 48px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(62, 47, 37, 0.16);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}
.search-field input:focus { border-color: var(--green); }

.speaker-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.speaker-chip {
  border: 2px solid rgba(62, 47, 37, 0.16);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.speaker-chip:hover { border-color: var(--green); color: var(--green); }
.speaker-chip.is-active { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- Library: grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.library-empty { text-align: center; opacity: 0.7; margin-top: 24px; }

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--green); }
.video-card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #10240a;
  overflow: hidden;
}
.video-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.video-card-play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--green); }
.video-card-dur {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.video-card-num {
  position: absolute;
  right: 10px; top: 10px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.video-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-card-date { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); }
.video-card-title { font-size: 1.08rem; line-height: 1.25; }
.video-card-speaker { font-size: 0.88rem; opacity: 0.8; }
.video-card-speaker b { color: var(--green-dark); }
.video-card-meta { margin-top: auto; padding-top: 10px; font-size: 0.8rem; opacity: 0.6; font-weight: 700; }

/* ---------- Library: sidebar list + body ---------- */
#library .section-head { margin-bottom: 24px; }
.library-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 36px;
  align-items: start;
}
.library-nav {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 14px;
}
.library-nav-title {
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  padding: 4px 10px 12px;
}
.library-nav ul { display: grid; gap: 2px; }
.library-nav-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.13s ease;
}
.library-nav-item:hover { background: var(--green-bg-tint); }
.lni-num {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--green);
  min-width: 26px;
}
.lni-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.lni-text b { font-size: 0.88rem; font-weight: 800; }
.lni-text span { font-size: 0.76rem; opacity: 0.6; font-weight: 700; }

/* ---------- About: раскрывающиеся факты ---------- */
.about-facts { display: grid; gap: 12px; }
.fact-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}
.fact-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-weight: 800;
  font-size: 1rem;
}
.fact-item summary::-webkit-details-marker { display: none; }
.fact-item summary .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.fact-item summary .chev {
  margin-left: auto;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.fact-item[open] summary .chev { transform: rotate(45deg); }
.fact-item > p { padding: 0 0 18px 44px; font-size: 0.96rem; opacity: 0.88; line-height: 1.55; }
.fact-item b { color: var(--green-dark); }

/* ---------- Watch view ---------- */
.back-link {
  font-weight: 800;
  color: var(--green-dark);
  padding: 8px 0;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--green); }

/* заголовок сверху во всю ширину; слева — только тайминг, справа — видео и текст под ним */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 6fr;
  grid-template-rows: auto 1fr;
  gap: 24px 46px;
  align-items: start;
  margin-top: 10px;
}
.watch-title  { grid-column: 1 / -1; grid-row: 1; }
.watch-timing { grid-column: 1; grid-row: 2; margin: 0; max-width: none; }
.watch-main   { grid-column: 2; grid-row: 2; }

.watch-title h2 { margin: 10px 0 0; font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.2rem); }

.watch-timing h3 { text-align: left; font-size: 1.15rem; }
.watch-timing-sub { text-align: left; opacity: 0.7; font-size: 0.92rem; margin: 6px 0 16px; }
.watch-timing .chapters { max-width: none; margin: 0; }
.watch-timing .chapter button { box-shadow: none; border: 1px solid rgba(62, 47, 37, 0.12); padding: 12px 14px; }
.watch-timing .chapter .ch-title { font-size: 0.92rem; }

.watch-main .video-frame { max-width: none; margin: 0; }
.watch-main .video-caption { max-width: none; margin: 14px 0 0; text-align: left; }
.watch-main .video-actions { max-width: none; margin: 20px 0 0; justify-content: flex-start; }

/* текст под видео */
.watch-about { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(62, 47, 37, 0.12); }
.watch-speaker-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 20px;
}
.watch-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.watch-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch-speaker { font-size: 1rem; opacity: 0.92; line-height: 1.35; }
.watch-speaker b { color: var(--green-dark); }
.watch-speaker-role { display: block; font-size: 0.88rem; opacity: 0.65; font-weight: 600; }
.watch-desc { font-size: 1rem; line-height: 1.62; opacity: 0.9; }

@media (max-width: 980px) {
  .watch-layout { display: flex; flex-direction: column; gap: 22px; }
  .watch-title { order: 1; }
  .watch-main { order: 2; }
  .watch-timing { order: 3; }
  .watch-main .video-caption,
  .watch-main .video-actions { text-align: center; justify-content: center; }
}

/* ---------- Tariffs CTA ---------- */
.tariffs-cta { text-align: center; margin-top: 36px; }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 40, 12, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.modal-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.modal-card > p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 18px; }
.modal-x {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dark);
  opacity: 0.5;
}
.modal-x:hover { opacity: 1; background: var(--green-light); }
.modal-label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 14px; }
.modal-label input {
  display: block;
  width: 100%;
  font: inherit;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(62, 47, 37, 0.18);
  outline: none;
  transition: border-color 0.15s ease;
}
.modal-label input:focus { border-color: var(--green); }
.modal-err {
  background: rgba(179, 38, 30, 0.1);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  opacity: 0.8;
}
.modal-link:hover { opacity: 1; }
.modal-lock {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.modal-lock svg { width: 28px; height: 28px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-nav { position: static; margin-bottom: 8px; }
  .library-nav ul { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tariff-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .library-nav { display: none; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 780px) {
  section { padding: 64px 0; }
  .tariff-grid { grid-template-columns: repeat(2, 1fr); }
  .experts-grid { grid-template-columns: 1fr; }
  .header-cta .like { display: none; }
  .auth-name { max-width: 90px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 32px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-sm { padding: 10px 16px; font-size: 0.86rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .tariff-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 64px; }
  .hero-stats { gap: 22px; }
  section { padding: 52px 0; }
  .expert-card { flex-direction: column; text-align: center; }
  .modal-card { padding: 28px 20px 22px; }
}
