/* ============================================================
   MARIANNA MIRAKYAN — AI FILMMAKER
   Палитра выведена из её собственных кадров:
   бордовый #652117 взят из IMG_8234, графит из теней работ.
   ============================================================ */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-400i.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ivory:    #F4F0E8;
  --ivory-2:  #EAE3D6;
  --burgundy: #652117;
  --burgundy-dk: #4E1911;
  --graphite: #2B2724;
  --muted:    #7A7068;
  --line:     rgba(43, 39, 36, .14);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --gut: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- типографика ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.015em;
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.66;
  max-width: 62ch;
  color: #453F3A;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- каркас ---------- */

.section { padding: clamp(80px, 11vh, 170px) var(--gut); position: relative; }
.section--tight { padding-top: clamp(48px, 6vh, 90px); }

.shell { max-width: 1560px; margin: 0 auto; }

.head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: clamp(36px, 5vh, 72px);
  border-bottom: 1px solid var(--line);
}

/* ---------- заставка ---------- */

#opening {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ivory);
  display: grid; place-items: center;
}
#opening .o-name {
  font-family: var(--serif);
  font-size: clamp(30px, 5.2vw, 76px);
  letter-spacing: .02em;
  overflow: hidden;
}
#opening .o-name span { display: inline-block; }
#opening .o-count {
  position: absolute; bottom: clamp(20px, 4vw, 52px); right: clamp(20px, 4vw, 52px);
  font-variant-numeric: tabular-nums;
}
body.is-loading { overflow: hidden; height: 100vh; }

/* ---------- навигация ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gut);
  mix-blend-mode: normal;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(244, 240, 232, .88);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand svg { height: 26px; width: auto; color: var(--burgundy); }
.nav-brand b {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; letter-spacing: .05em; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 34px); }
.nav-links a { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--burgundy); transition: right .45s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-cta {
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 17px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.nav-cta:hover { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; font: inherit; }

/* ---------- первый экран ---------- */

.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gut) clamp(48px, 8vh, 110px); }
.hero-grid {
  width: 100%; max-width: 1560px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
  gap: clamp(28px, 4.5vw, 90px); align-items: center;
}
.hero-name {
  font-size: clamp(44px, 8.4vw, 148px);
  line-height: .92;
}
.hero-name .ln { display: block; overflow: hidden; }
.hero-name .ln > span { display: block; }
.hero-roles {
  margin: clamp(20px, 2.6vw, 34px) 0 0;
  font-size: clamp(10px, .82vw, 12.5px);
  letter-spacing: .2em; text-transform: uppercase; color: var(--graphite);
}
.hero-place { margin-top: 8px; }
.hero-text { margin: clamp(24px, 3vw, 40px) 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.4vw, 44px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 100px;
  border: 1px solid var(--burgundy);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.btn--solid { background: var(--burgundy); color: var(--ivory); }
.btn--solid:hover { background: var(--burgundy-dk); }
.btn--ghost { color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: var(--ivory); }
.btn--light { border-color: rgba(244,240,232,.45); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--burgundy); }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative; overflow: hidden;
  background: #17120F;
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px;
}


/* ---------- ENOUGH ---------- */

.enough-stage { position: relative; }
.enough-pin { height: 100svh; display: grid; place-items: center; overflow: hidden; }
.enough-frame {
  position: relative; overflow: hidden; background: #100C0A;
  width: 42vw; max-width: 720px; aspect-ratio: 16 / 9;
}
.enough-frame video, .enough-frame img { width: 100%; height: 100%; object-fit: cover; }
.enough-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,12,10,.15), rgba(16,12,10,.72)); }
.enough-copy {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(24px, 4vw, 72px); color: var(--ivory);
}
.enough-copy .label { color: rgba(244,240,232,.72); }
.enough-title { font-size: clamp(46px, 11vw, 190px); line-height: .88; margin: .12em 0 0; }
.enough-q { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 34px); font-style: italic; margin: .5em 0 0; max-width: 24ch; }

.enough-detail { background: var(--ivory); }
.enough-cols {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 56px);
}
.enough-cols .c-syn { grid-column: span 7; }
.enough-cols .c-meta { grid-column: span 5; }
.meta-row { display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }

/* ---------- закреплённый кейс ---------- */

.case { background: var(--ivory-2); }
.case-pin { display: grid; grid-template-columns: 38% 1fr; gap: clamp(24px, 4vw, 72px); min-height: 100svh; align-items: center; padding: clamp(80px,10vh,140px) var(--gut); }
.case-steps { position: relative; }
.case-step { padding: 16px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .55s var(--ease); }
.case-step.is-on { opacity: 1; }
.case-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 36px); margin: 4px 0 6px; }
.case-step p { margin: 0; font-size: 14.5px; color: #4C4640; max-width: 46ch; }
.case-visual { position: relative; aspect-ratio: 16 / 10; background: #17120F; overflow: hidden; }
.case-visual figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-flow { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; }
.case-flow span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* шторка до/после */
.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #17120F; cursor: ew-resize; touch-action: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(244,240,232,.9); z-index: 3; }
.ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border: 1px solid rgba(244,240,232,.9); border-radius: 50%;
  background: rgba(43,39,36,.25); backdrop-filter: blur(3px);
}
.ba-tag { position: absolute; bottom: 14px; z-index: 4; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,240,232,.85); }
.ba-tag.l { left: 16px; } .ba-tag.r { right: 16px; }

/* ---------- вертикальные карточки ---------- */

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 30px); }
.vcard { position: relative; }
.vcard .frame { position: relative; overflow: hidden; background: #17120F; aspect-ratio: 9 / 16; }
.vcard img, .vcard video { width: 100%; height: 100%; object-fit: cover; }
.vcard video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.vcard.is-preview video { opacity: 1; }
.vcard .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.vcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 26px); margin: 0; }

/* ---------- избранные фильмы ---------- */

.films { display: grid; gap: clamp(60px, 9vh, 150px); }
.film { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 3vw, 54px); align-items: center; }
.film .fmedia { grid-column: span 5; position: relative; overflow: hidden; background: #17120F; aspect-ratio: 9/16; }
.film.wide .fmedia { aspect-ratio: 16/9; grid-column: span 7; }
.film .fmedia img, .film .fmedia video { width: 100%; height: 100%; object-fit: cover; }
.film .fmedia video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.film .fmedia.is-preview video { opacity: 1; }
.film .finfo { grid-column: span 6; }
.film:nth-child(even) .fmedia { order: 2; }
.film h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 60px); line-height: 1.02; margin: .18em 0 .3em; }

/* ---------- визуальные миры ---------- */

.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 28px); }
.gal figure { margin: 0; position: relative; overflow: hidden; background: #17120F; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal figure:hover img { transform: scale(1.03); }
/* редакционный ритм: разная ширина и вертикальные сдвиги */
.gal .g-a { grid-column: span 5; }
.gal .g-b { grid-column: span 4; margin-top: clamp(30px, 6vw, 90px); }
.gal .g-c { grid-column: span 3; }
.gal .g-d { grid-column: span 4; }
.gal .g-e { grid-column: span 5; margin-top: clamp(20px, 4vw, 60px); }
.gal .g-f { grid-column: span 3; }

/* ---------- метрики аудитории ---------- */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 44px); }
.metric { border-top: 1px solid var(--line); padding-top: 18px; }
.metric b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 92px); line-height: 1; color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}
.metric span { display: block; margin-top: 10px; }

/* ---------- о себе ---------- */

.about-grid { display: grid; grid-template-columns: 44% 1fr; gap: clamp(26px, 4vw, 78px); align-items: start; }
.about-video { position: relative; background: #17120F; overflow: hidden; aspect-ratio: 4/3; }
.about-video video { width: 100%; height: 100%; object-fit: cover; }
.sound-btn {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  border: 1px solid rgba(244,240,232,.5); background: rgba(24,18,15,.5);
  color: var(--ivory); border-radius: 100px; cursor: pointer;
  padding: 9px 18px; font: inherit; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(6px); transition: background .4s var(--ease);
}
.sound-btn:hover { background: var(--burgundy); border-color: var(--burgundy); }
.about-grid p + p { margin-top: 1.15em; }

/* ---------- возможности и инструменты ---------- */

.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 48px); }
.cap { border-top: 1px solid var(--line); padding-top: 18px; }
.cap h3 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 12px; }
.cap p { margin: 0; font-size: 14.5px; color: #4C4640; }

.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 48px); }
.kit .cap p { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 23px); line-height: 1.45; color: var(--graphite); }
.learning { margin-top: clamp(30px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); }

.open3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 48px); }
.open3 .cap p { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 23px); line-height: 1.45; color: var(--graphite); }

/* ---------- финал ---------- */

.final { background: var(--burgundy); color: var(--ivory); }
.final .label { color: rgba(244,240,232,.66); }
.final .rule { background: rgba(244,240,232,.24); }
.final-title { font-size: clamp(42px, 8.4vw, 150px); line-height: .94; margin: 0; }
.final .lede { color: rgba(244,240,232,.86); }
.final-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 54px); }
.final-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 9vh, 130px); padding-top: 22px; border-top: 1px solid rgba(244,240,232,.24); }
.final-foot .label { color: rgba(244,240,232,.55); }

/* ---------- плеер поверх страницы ---------- */

.player {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(18, 13, 11, .96);
  display: none; place-items: center; padding: clamp(14px, 3vw, 54px);
}
.player.is-open { display: grid; }
.player video { max-width: 100%; max-height: 86svh; background: #000; }
.player-close {
  position: absolute; top: clamp(14px, 2.4vw, 34px); right: clamp(14px, 2.4vw, 34px);
  background: none; border: 1px solid rgba(244,240,232,.4); color: var(--ivory);
  border-radius: 100px; cursor: pointer; padding: 10px 20px;
  font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.player-title { position: absolute; top: clamp(18px, 2.6vw, 38px); left: clamp(14px, 3vw, 54px); color: rgba(244,240,232,.8); }

/* ---------- появление при скролле ---------- */

.js .rise { opacity: 0; transform: translateY(26px); }
.mask-img { overflow: hidden; }
.mask-img > * { will-change: transform; }

/* ---------- планшет ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 380px; }
  .enough-cols .c-syn, .enough-cols .c-meta { grid-column: span 12; }
  .case-pin { grid-template-columns: 1fr; }
  .film .fmedia, .film.wide .fmedia, .film .finfo { grid-column: span 12; }
  .film:nth-child(even) .fmedia { order: 0; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .kit, .open3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .gal .g-a, .gal .g-b, .gal .g-c, .gal .g-d, .gal .g-e, .gal .g-f { grid-column: span 6; margin-top: 0; }
  .enough-frame { width: 72vw; }
}

/* ---------- телефон ---------- */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 26px var(--gut) 34px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
  }
  .vgrid { grid-template-columns: 1fr; }
  .caps, .kit, .open3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .gal .g-a, .gal .g-b, .gal .g-c, .gal .g-d, .gal .g-e, .gal .g-f { grid-column: span 12; }
  .enough-frame { width: 86vw; aspect-ratio: 4/3; }
  .hero-media { max-width: none; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- уважение к настройкам доступности ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
  #opening { display: none; }
}

/* ════════════════════════════════════════════════════════════
   НОВАЯ СТРУКТУРА
   ════════════════════════════════════════════════════════════ */

/* ---------- 1. Визитка ---------- */

.cover { position: relative; height: 100svh; overflow: hidden; background: #14100E; }
.cover-stack { position: absolute; inset: 0; }
.cover-stack .cv { position: absolute; inset: 0; margin: 0; opacity: 0; }
.cover-stack .cv.is-on { opacity: 1; }
.cover-stack img { width: 100%; height: 100%; object-fit: cover; }
.cover-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,.12) 32%, rgba(20,16,14,.78) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(20,16,14,0) 40%, rgba(20,16,14,.5) 100%);
}
.cover-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gut);
}
.cover-mark { width: clamp(52px, 6vw, 92px); height: auto; margin-bottom: clamp(20px, 3vw, 38px); }
.cover-kicker {
  margin: 0; color: var(--ivory);
  font-size: clamp(11px, 1.05vw, 15px);
  letter-spacing: .34em; text-transform: uppercase;
}
.cover-place {
  margin: clamp(12px, 1.6vw, 20px) 0 0; color: rgba(244,240,232,.68);
  font-size: clamp(10px, .78vw, 12px); letter-spacing: .2em; text-transform: uppercase;
}
.cover-foot {
  position: absolute; z-index: 2; left: var(--gut); right: var(--gut);
  bottom: clamp(18px, 3vw, 40px);
  display: flex; align-items: center; gap: 18px;
}
.cover-foot .label { color: rgba(244,240,232,.7); }
.cover-line { flex: 1; height: 1px; background: rgba(244,240,232,.28); position: relative; overflow: hidden; }
.cover-line::after {
  content: ''; position: absolute; inset: 0; background: var(--ivory);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

/* ---------- 2. Заявление стилем ---------- */

.statement { padding-top: clamp(70px, 10vh, 140px); }
.st-head {
  font-size: clamp(34px, 6.4vw, 108px);
  max-width: 16ch; margin-bottom: clamp(34px, 5vw, 64px);
}
.st-head .ln { display: block; overflow: hidden; }
.st-head .ln > span { display: block; }
.st-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px); align-items: end;
  padding-bottom: clamp(36px, 5vw, 70px); border-bottom: 1px solid var(--line);
}
.st-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.st-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 24px); margin-top: clamp(34px, 5vw, 68px);
}
.st-strip figure { margin: 0; overflow: hidden; background: #17120F; aspect-ratio: 4/5; }
.st-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.st-strip figure:hover img { transform: scale(1.04); }
.st-strip figure:nth-child(even) { margin-top: clamp(18px, 3vw, 54px); }

/* ---------- заголовки разделов ---------- */

.sec-title { font-size: clamp(30px, 4.4vw, 76px); }
.sub-title { font-size: clamp(24px, 3vw, 50px); margin-top: .1em; }
.aud-title { max-width: 18ch; font-size: clamp(26px, 3.6vw, 62px); }

/* ---------- 3. Фильмы: вкладки ---------- */

.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: -14px 0 clamp(36px, 5vh, 66px);
}
.tab {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  border-radius: 100px; padding: 9px 18px; font: inherit;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.tab:hover { color: var(--graphite); border-color: rgba(43,39,36,.3); }
.tab.is-on { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }

[data-cat].is-hidden { display: none; }

/* ---------- главный фильм ---------- */

.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 66px); align-items: center;
  padding-bottom: clamp(50px, 8vh, 120px);
}
.feat-title { font-size: clamp(40px, 6.6vw, 118px); line-height: .9; margin: .1em 0 .18em; }
.enough-q {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.9vw, 30px); margin: 0 0 .9em; color: var(--burgundy);
}
.feat-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3vw, 36px); }

/* кнопка воспроизведения поверх кадра */
.play-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 4; width: clamp(56px, 5vw, 86px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(244,240,232,.75); background: rgba(24,18,15,.3);
  backdrop-filter: blur(4px); cursor: pointer;
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.play-dot::after {
  content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-left: 13px solid var(--ivory);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.play-dot:hover { background: var(--burgundy); border-color: var(--burgundy); transform: translate(-50%, -50%) scale(1.06); }

/* ---------- блок сериала ---------- */

.block { padding: clamp(46px, 7vh, 100px) 0; border-top: 1px solid var(--line); }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: clamp(16px, 2vw, 26px);
}
.blk-title { font-size: clamp(30px, 4.4vw, 74px); margin-top: .08em; }
.block .vgrid { margin-top: clamp(30px, 4vh, 58px); }
.vcard .cap h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.5vw, 25px); margin: 0; }
.licence {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: clamp(34px, 5vh, 64px); padding-top: 24px; border-top: 1px solid var(--line);
}

/* ---------- остальные фильмы ---------- */

.films { display: grid; gap: clamp(50px, 8vh, 120px); padding-top: clamp(40px, 6vh, 90px); border-top: 1px solid var(--line); }
.film .fmedia, .feature .fmedia { position: relative; overflow: hidden; background: #17120F; }
.films-note { margin-top: clamp(40px, 6vh, 80px); text-align: center; }
.films-note a { color: var(--burgundy); border-bottom: 1px solid currentColor; }

/* ---------- кейс ---------- */

.case-kicker { margin: 0 0 26px; }
.ba-hint { max-width: 40ch; }
.ba-second { margin-top: clamp(14px, 2vw, 28px); }

/* ---------- процесс ---------- */

.commercial { margin-top: clamp(44px, 6vh, 86px); padding-top: 26px; border-top: 1px solid var(--line); }
.commercial .lede { margin-top: .6em; }

/* ---------- перетаскиваемая лента ---------- */

.drag-wrap { position: relative; margin: clamp(30px, 4vh, 60px) 0 0; overflow: hidden; }
.drag-track { display: flex; gap: clamp(10px, 1.4vw, 22px); padding: 0 var(--gut); cursor: grab; will-change: transform; }
.drag-track.is-dragging { cursor: grabbing; }
.drag-track figure {
  margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 360px);
  aspect-ratio: 4/5; overflow: hidden; background: #17120F;
}
.drag-track img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.drag-hint { margin: 16px var(--gut) 0; }
.gal-lede { margin-bottom: 0; }
.gal-more { margin-top: clamp(30px, 4vh, 56px); }

/* ---------- метрики ---------- */

.metrics { margin-top: clamp(40px, 6vh, 84px); }

/* ---------- о себе ---------- */

.about-portrait { margin-top: clamp(12px, 1.6vw, 22px); overflow: hidden; background: #17120F; aspect-ratio: 4/5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- инструменты ---------- */

.kit-head { margin-top: clamp(56px, 9vh, 130px); }
.learning .lede { margin-top: .4em; }

/* ---------- финал ---------- */

.final-lede { margin-top: clamp(24px, 3vw, 46px); }
.final-place { margin-top: 1.2em; color: rgba(244,240,232,.8); }

/* ---------- полоса прогресса ---------- */

.progress {
  position: fixed; left: 0; top: 0; height: 2px; z-index: 100;
  width: 100%; transform: scaleX(0); transform-origin: left;
  background: var(--burgundy); pointer-events: none;
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: 1fr; align-items: start; }
  .st-actions { justify-content: flex-start; }
  .st-strip { grid-template-columns: repeat(2, 1fr); }
  .st-strip figure:nth-child(even) { margin-top: 0; }
}

@media (max-width: 720px) {
  .cover-kicker { letter-spacing: .22em; line-height: 1.8; }
  .tabs { gap: 6px; }
  .tab { padding: 8px 14px; font-size: 10px; }
  .st-head { font-size: clamp(30px, 9vw, 52px); }
  .drag-track figure { width: 68vw; }
  .licence { align-items: flex-start; }
}

/* размер монограммы в шапке */
.nav-mark { height: 26px; width: auto; flex: 0 0 auto; }
@media (max-width: 720px) { .nav-mark { height: 22px; } }

/* ---------- шапка: бренд ---------- */

.nav { gap: clamp(14px, 3vw, 46px); }
.nav-word {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(15px, 1.25vw, 21px); letter-spacing: .03em; white-space: nowrap;
}
.nav-word i {
  font-style: normal; font-family: var(--sans);
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.nav-links { gap: clamp(10px, 1.5vw, 26px); }
.nav-links a { font-size: clamp(10.5px, .82vw, 12px); }
@media (max-width: 1180px) { .nav-word { display: none; } }

/* ---------- обучение ---------- */

.teaching { background: var(--ivory-2); }
.teach-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 74px); align-items: start;
}
.teach-grid .lede + .lede { margin-top: 1.1em; }
.teach-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.4vw, 42px); }
.teach-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 40px); }

/* ---------- форма обратной связи ---------- */

.cform { margin-top: clamp(34px, 5vh, 62px); max-width: 720px; display: grid; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: grid; gap: 8px; }
.cf-field .label { color: rgba(244,240,232,.66); }
.cform input, .cform select, .cform textarea {
  font: inherit; font-size: 15px; color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid rgba(244,240,232,.32);
  padding: 9px 2px; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .35s var(--ease);
}
.cform textarea { resize: vertical; }
.cform select option { color: var(--graphite); }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-bottom-color: var(--ivory);
}
.cform .is-bad { border-bottom-color: #E9A08F; }
.cf-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.cf-foot .label { color: rgba(244,240,232,.75); }

@media (max-width: 1080px) {
  .teach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .teach-list { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ---------- шапка: светлая над обложкой, тёмная после ---------- */

.nav-marks { position: relative; display: block; width: 26px; height: 26px; flex: 0 0 auto; }
.nav-marks img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transition: opacity .45s var(--ease);
}
.nav-marks .m-dark { opacity: 0; }

/* состояние над тёмной обложкой */
.nav:not(.is-stuck) { color: var(--ivory); }
.nav:not(.is-stuck) .nav-word { color: var(--ivory); }
.nav:not(.is-stuck) .nav-word i { color: rgba(244, 240, 232, .72); }
.nav:not(.is-stuck) .nav-links a { color: var(--ivory); }
.nav:not(.is-stuck) .nav-links a::after { background: var(--ivory); }
.nav:not(.is-stuck) .nav-cta { border-color: rgba(244, 240, 232, .5); color: var(--ivory); }
.nav:not(.is-stuck) .nav-cta:hover { background: var(--ivory); color: var(--burgundy); border-color: var(--ivory); }
.nav:not(.is-stuck) .nav-toggle { color: var(--ivory); }
.nav:not(.is-stuck) .nav-marks .m-light { opacity: 1; }

/* читаемость поверх светлых участков кадра */
.nav:not(.is-stuck) .nav-word,
.nav:not(.is-stuck) .nav-links a,
.nav:not(.is-stuck) .nav-toggle { text-shadow: 0 1px 14px rgba(18, 13, 11, .55); }

/* состояние после обложки */
.nav.is-stuck .nav-marks .m-dark { opacity: 1; }
.nav.is-stuck .nav-marks .m-light { opacity: 0; }

/* раскрытое меню на телефоне всегда на светлой подложке */
.nav.is-open .nav-links a { color: var(--graphite); text-shadow: none; }
.nav.is-open .nav-links .nav-cta { border-color: var(--line); color: var(--graphite); }

.lic-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eps-note { margin-top: clamp(16px, 2vw, 24px); }
.eps-note a { color: var(--burgundy); border-bottom: 1px solid currentColor; }
