/* ============================================================
   IY BEATS — 18 Поток · лендинг
   Визуал: тёмный премиум (референсы: victorpainer.com,
   podlesnytwins.com) + фирменный оранжевый IY BEATS
   ============================================================ */

:root {
  --bg-base: #0A0A0A;
  --bg-surface: #131313;
  --bg-elevated: #191919;
  --border: #262626;
  --border-hover: #3a3a3a;
  --text-primary: #EEEEEE;
  --text-secondary: #999999;
  --accent: #F2994A;
  --accent-hover: #FFB26B;
  --accent-contrast: #0A0A0A;
  --radius: 16px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-wrap: break-word;
  /* Тело текста — Manrope (читаемый); Unbounded остаётся только для display-элементов */
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Display-шрифт — заголовки, логотип, кнопки */
.logo, h1, h2, h3, .btn {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

img { max-width: 100%; display: block; }
/* Крупный заголовок hero переносим только по пробелам (размер подобран так, что слова влезают) */
.hero h1 { overflow-wrap: normal; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 10, 0.94); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}

.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--text-primary); white-space: nowrap;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  color: var(--text-secondary); font-size: .92rem; font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text-primary); }

.header-cta { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; text-align: center;
  transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  padding: 16px 30px; border-radius: 12px; font-size: 1rem;
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); filter: brightness(1.05); color: var(--accent-contrast); }
.btn-primary:active { transform: scale(.97); }

@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 153, 74, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(242, 153, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 153, 74, 0); }
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 16px 30px; border-radius: 12px; font-size: 1rem;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .32); }

.btn-sm { padding: 10px 20px; font-size: .9rem; animation: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 75% 12%, rgba(242, 153, 74, .13), transparent 62%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(242, 153, 74, .05), transparent 60%);
}
/* Фоновая текстура hero: скриншот FL Studio с блюром и затемнением */
.hero-bg {
  position: absolute; inset: -48px; z-index: 0; pointer-events: none;
  background: url('../assets/hero-bg.jpg') center / cover no-repeat;
  filter: blur(26px) brightness(.45) saturate(.8);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, .26) 38%, rgba(10, 10, 10, .6) 78%, var(--bg-base) 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.3fr; gap: 40px; align-items: center;
}
.hero-text { min-width: 0; }

/* Hero media: фото IY + плавающие чипы (синты / DAW) */
/* Фото IY — крупное, соразмерное тексту (без ограничения шириной) */
.hero-media { position: relative; width: 100%; justify-self: center; }
.hero-glow {
  position: absolute; inset: -14% -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(242, 153, 74, .2), transparent 65%);
  filter: blur(34px);
}
.hero-photo {
  position: relative; z-index: 1; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.float-chip {
  position: absolute; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}
.float-chip img { height: 42px; width: auto; border-radius: 6px; display: block; }
.float-chip.emoji {
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 1.7rem; line-height: 1; padding: 12px 15px;
}
.fc-1 { top: -26px; left: -30px; animation: chipFloat1 5.5s ease-in-out infinite; }
.fc-2 { bottom: -28px; right: -32px; animation: chipFloat2 6.5s ease-in-out .4s infinite; }
.fc-3 { top: 16%; right: -24px; animation: chipFloat3 7s ease-in-out .8s infinite; }
.fc-4 { bottom: 20%; left: -26px; animation: chipFloat4 6s ease-in-out .2s infinite; }
@keyframes chipFloat1 { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-13px) rotate(-1deg); } }
@keyframes chipFloat2 { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-15px) rotate(8deg); } }
@keyframes chipFloat3 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-11px) scale(1.07); } }
@keyframes chipFloat4 { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none !important; }
}
html.noanim .float-chip { animation: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.2rem);
  line-height: 1.14; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 .highlight { color: var(--accent); }

.typewriter-caret {
  display: inline-block; width: 3px; height: .95em; margin-left: 4px;
  background: var(--accent); vertical-align: -0.08em;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-subtitle {
  margin-top: 1.4rem; font-size: 1.05rem; color: var(--text-secondary); max-width: 34em;
}

.hero-checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: .55rem; }
.hero-checklist li { display: flex; align-items: baseline; gap: .7rem; color: var(--text-primary); font-size: 1.02rem; }
.hero-checklist .tick { color: var(--accent); font-weight: 800; flex-shrink: 0; }

.daw-row { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.daw-row img { height: 46px; border-radius: 9px; background: #fff; padding: 3px 8px; opacity: .95; }
.daw-row span { color: var(--text-secondary); font-size: .9rem; }

.hero-cta-row { display: flex; align-items: center; gap: 20px; margin-top: 2.4rem; flex-wrap: wrap; }

/* Social proof (паттерн victorpainer) */
.social-proof { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.sp-avatars { display: flex; }
.sp-avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-base); margin-left: -10px; }
.sp-avatars img:first-child { margin-left: 0; }
.sp-text .sp-rating { color: var(--accent); font-size: .9rem; letter-spacing: 2px; }
.sp-text .sp-count { color: var(--text-secondary); font-size: .85rem; }
.sp-text b { color: var(--text-primary); }

/* ---------- Enroll strip ---------- */
.enroll-strip {
  border-top: 1px solid rgba(242, 153, 74, .35);
  border-bottom: 1px solid rgba(242, 153, 74, .35);
  background: linear-gradient(90deg, rgba(242, 153, 74, .14), rgba(242, 153, 74, .03));
}
.enroll-strip-inner {
  display: flex; align-items: center; gap: 1rem; padding: 18px 0; flex-wrap: wrap;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: dot-pulse 2s infinite; flex-shrink: 0; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 153, 74, .6); }
  50% { box-shadow: 0 0 0 9px rgba(242, 153, 74, 0); }
}
.enroll-strip strong { font-size: 1.02rem; }
.enroll-strip .muted { color: var(--text-secondary); font-size: .92rem; }
.strip-price { color: var(--accent); font-weight: 700; }
.countdown { display: flex; gap: 8px; margin-left: auto; align-items: stretch; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; padding: 6px 10px;
  background: rgba(10, 10, 10, .55); border: 1px solid rgba(242, 153, 74, .35); border-radius: 10px;
}
.cd-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.05rem; font-weight: 600; color: var(--accent); line-height: 1.25; }
.cd-lab { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }
.cd-open {
  font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--accent); font-weight: 600;
  padding: 10px 14px; border: 1px solid rgba(242, 153, 74, .35); border-radius: 10px; background: rgba(10, 10, 10, .55);
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.section-head p { margin-top: .9rem; color: var(--text-secondary); font-size: 1.06rem; }

/* Фоновая текстура «Программа»: два кропа фото студии (блюр/затемнение вшиты),
   каждый затухает градиентной маской от своего угла секции */
#program { position: relative; overflow: hidden; }
.program-bg {
  position: absolute; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: blur(6px);
}
.program-bg-a {
  top: -48px; left: -56px; width: 58%; height: 76%;
  background-image: url('../assets/program-bg-a.jpg');
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, .95) 28%, transparent 74%);
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, .95) 28%, transparent 74%);
}
.program-bg-b {
  bottom: -48px; right: -56px; width: 50%; height: 64%;
  background-image: url('../assets/program-bg-b.jpg');
  -webkit-mask-image: linear-gradient(300deg, rgba(0, 0, 0, .9) 28%, transparent 74%);
  mask-image: linear-gradient(300deg, rgba(0, 0, 0, .9) 28%, transparent 74%);
}
#program .container { position: relative; z-index: 1; }

/* ---------- Card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Unbounded — широкий шрифт: не даём длинным словам раздувать fr-колонки */
.grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(242, 153, 74, .5); }
.card .card-icon { font-size: 1.9rem; margin-bottom: 1rem; display: block; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .55rem; letter-spacing: -.01em; }
.card p, .card li { color: var(--text-secondary); font-size: .94rem; line-height: 1.6; }

/* ---------- Comparison (до/после) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--border); background: var(--bg-elevated); }
.compare-col.after { border-color: rgba(242, 153, 74, .55); background: linear-gradient(160deg, rgba(242, 153, 74, .09), var(--bg-elevated) 55%); }
.compare-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 1.4rem; }
.compare-col.after h3 { color: var(--accent); }
.compare-list { list-style: none; display: grid; gap: .95rem; }
.compare-list li { display: flex; gap: .8rem; align-items: baseline; font-size: .97rem; }
.compare-list .mark { font-weight: 800; flex-shrink: 0; }
.compare-col.before .mark { color: #666; }
.compare-col.after .mark { color: var(--accent); }

/* ---------- Offer / Price ---------- */
.offer-split { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.offer-list .mark { color: var(--accent); }
.price-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; text-align: center; }
.price-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; letter-spacing: .06em; color: var(--text-secondary); display: block; margin-bottom: .55rem; }
.price-value { font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 2.9rem; line-height: 1.1; letter-spacing: -.01em; }
.price-value span { font-size: 1.6rem; color: var(--accent); }
.price-note { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; margin: .85rem 0 1.4rem; }

/* ---------- Program list + mindmap ---------- */
.program-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.program-list { counter-reset: prog; list-style: none; display: grid; gap: .35rem; }
.program-list li {
  counter-increment: prog; position: relative; padding: .72rem 0 .72rem 3.4rem;
  border-bottom: 1px solid var(--border); font-size: 1.02rem;
}
.program-list li::before {
  content: "0" counter(prog);
  position: absolute; left: 0; top: .72rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--accent); font-size: .95rem; font-weight: 600;
}
.program-note {
  margin-top: 1.8rem; padding: 20px 24px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-elevated); font-size: .93rem; color: var(--text-secondary);
}
.program-note b { color: var(--text-primary); }

.mindmap-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #0d0d0d; }
.mindmap-frame img { width: 100%; }

/* ---------- Stages (этапы) ---------- */
.stage-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 36px; margin-bottom: 22px;
}
.stage-card:nth-child(even) .stage-media { order: 2; }
.stage-media img { width: 100%; border-radius: 12px; background: #0d0d0d; }
.stage-num { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--accent); font-size: .85rem; letter-spacing: .14em; }
.stage-card h3 { font-size: 1.35rem; font-weight: 800; margin: .5rem 0 .8rem; letter-spacing: -.01em; }
.stage-card p { color: var(--text-secondary); font-size: .97rem; }

/* ---------- Teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.teacher-card:hover { transform: translateY(-4px); border-color: rgba(242, 153, 74, .5); }
.teacher-photo { aspect-ratio: 4/4.6; overflow: hidden; background: #0d0d0d; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: transform .4s ease, filter .3s ease; }
.teacher-card:hover .teacher-photo img { transform: scale(1.04); filter: saturate(1); }
.teacher-info { padding: 20px 22px 24px; }
.teacher-info h3 { font-size: 1.05rem; font-weight: 700; }
.teacher-role { color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; letter-spacing: .06em; margin: .3rem 0 .6rem; display: block; }
.teacher-info p { color: var(--text-secondary); font-size: .88rem; line-height: 1.55; }

/* ---------- Reviews ---------- */
.review-card { position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px 26px; }
.review-card::before { content: "\201C"; position: absolute; top: 14px; right: 22px; font-size: 4rem; line-height: 1; color: rgba(242, 153, 74, .22); }
.review-card p { font-style: italic; color: var(--text-primary); font-size: .96rem; }
.review-author { margin-top: 1.1rem; color: var(--accent); font-weight: 600; font-size: .87rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }

details.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); margin-bottom: 10px; overflow: hidden; transition: border-color .25s ease; }
details.faq-item[open] { border-color: rgba(242, 153, 74, .5); }
details.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 22px; font-weight: 600; font-size: .98rem; color: var(--text-primary);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .25s ease;
}
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-secondary); font-size: .94rem; line-height: 1.7; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 90% at 50% 115%, rgba(242, 153, 74, .16), transparent 65%);
}
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.final-cta p { color: var(--text-secondary); max-width: 40em; margin: 1.2rem auto 2.2rem; font-size: 1.06rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #070707; padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { color: var(--text-secondary); font-size: .85rem; margin-top: .6rem; max-width: 30em; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-links span { color: var(--text-secondary); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #555; font-size: .8rem; }

/* ---------- Reveal on scroll ----------
   Скрыто только если JS включил html.js — без JS контент всегда виден */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.noanim .reveal, html.noanim .btn-primary { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Oferta page ---------- */
.legal-doc { max-width: 860px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 24px 96px; }
.legal-doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .6rem; }
.legal-meta { color: var(--text-secondary); font-size: .95rem; margin-bottom: 3rem; line-height: 1.7; }
.legal-doc h2 { font-size: 1.25rem; font-weight: 700; margin: 2.6rem 0 1rem; color: var(--text-primary); letter-spacing: -.01em; }
.legal-doc p { color: #c9c9c9; font-size: .95rem; line-height: 1.75; margin-bottom: 1rem; }
.legal-doc ul { margin: 0 0 1.2rem 1.3em; color: #c9c9c9; font-size: .95rem; line-height: 1.7; }

/* ---------- Video section (после первого блока) ---------- */
.video-section { padding: 40px 0 8px; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #0d0d0d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.video-frame.loaded .video-embed { display: block; }
.video-frame.loaded .video-placeholder { display: none; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(242, 153, 74, .08), transparent 60%),
    linear-gradient(160deg, #141414, #0c0c0c);
  color: var(--text-secondary); font-size: .95rem;
}
.video-frame .vp-link { cursor: pointer; }
.video-frame .vp-link:hover .vp-play { background: rgba(242, 153, 74, .2); box-shadow: 0 0 0 12px rgba(242, 153, 74, .08); }
.vp-play {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242, 153, 74, .12); border: 1px solid rgba(242, 153, 74, .4);
  color: var(--accent); box-shadow: 0 0 0 8px rgba(242, 153, 74, .06);
}

/* ---------- Lightbox (zoom фото) ---------- */
img[data-lightbox] { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
img[data-lightbox]:hover { transform: scale(1.015); filter: brightness(1.06); }
.mindmap-frame.zoomable { position: relative; }
.mindmap-frame.zoomable::after {
  content: "нажмите, чтобы рассмотреть";
  position: absolute; right: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 10, 10, .8); border: 1px solid var(--border);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-secondary); font-size: .78rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mindmap-frame.zoomable:hover::after,
.mindmap-frame.zoomable:focus-within::after { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .mindmap-frame.zoomable::after { opacity: .85; transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, .93);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lb-viewport {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; touch-action: none; cursor: grab;
}
.lb-viewport.grabbing { cursor: grabbing; }
.lb-img {
  position: absolute; top: 0; left: 0;
  max-width: none; width: auto; height: auto;
  transform-origin: 0 0; will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 20, 20, .8); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lb-close:hover { border-color: var(--accent); background: rgba(30, 30, 30, .9); }
.lb-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #777; font-size: .8rem; white-space: nowrap;
  pointer-events: none; z-index: 2;
}
@media (max-width: 720px) { .lb-hint { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .offer-split { grid-template-columns: 1fr; gap: 32px; }
  .price-card { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .program-split { grid-template-columns: 1fr; gap: 36px; }
  .stage-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .stage-card:nth-child(even) .stage-media { order: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 640px; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .float-chip img { height: 26px; }
  .float-chip.emoji { font-size: 1.3rem; padding: 9px 12px; }
  .fc-1 { top: -18px; left: -10px; }
  .fc-2 { bottom: -20px; right: -10px; }
  .fc-3 { right: -8px; }
  .fc-4 { left: -8px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .grid-3, .compare { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .social-proof { margin-left: 0; width: 100%; }
  .header-inner { gap: 1rem; }
  .header-cta { padding: 10px 14px; font-size: .78rem; letter-spacing: 0; white-space: nowrap; }
  .countdown { margin-left: 0; width: 100%; justify-content: space-between; }
  .cd-unit { flex: 1; min-width: 0; }
  .enroll-cta { width: 100%; }
}
