/* =========================================================
   CINEMA — видео-first стиль
   полноэкранное видео, letterbox, видео внутри букв,
   прокрутка видео скроллом, лента роликов, таймкод
   ========================================================= */
:root {
  --bg: #070707; --bg-2: #111110; --fg: #f4f1ea; --muted: #9a958b; --line: rgba(244, 241, 234, .12);
  --accent: #d9b36c; --accent-2: #f4f1ea; --accent-3: #8a6d3b;
  --font-d: 'Tenor Sans', Georgia, serif; --font-b: 'Manrope', system-ui, sans-serif; --font-m: 'JetBrains Mono', monospace;
  --radius: 6px; --ease: cubic-bezier(.7, 0, .2, 1); --curtain: #070707; --curtain-2: #d9b36c; --cursor: #f4f1ea; --cursor-fg: #070707;
}
h1, h2, h3 { font-family: var(--font-d); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; }
.h-xl { font-size: clamp(40px, min(6.6vw, 11vh), 118px); }
.h-lg { font-size: clamp(34px, 4.8vw, 76px); }
.h-md { font-size: clamp(22px, 2.4vw, 34px); }
.gold { color: var(--accent); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 540px; }
.tc { font-family: var(--font-m); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.tc i { width: 8px; height: 8px; border-radius: 50%; background: #e5322d; animation: cn-rec 1.2s steps(2) infinite; }
@keyframes cn-rec { 50% { opacity: 0; } }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 70px); max-width: 860px; }

/* ---------- Видео ---------- */
video.cn-v { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-2); }
.cn-grain::after { content: ''; position: absolute; inset: -50%; pointer-events: none; z-index: 3; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: cn-grain .6s steps(4) infinite; }
@keyframes cn-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } 100% { transform: translate(0, 0); } }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 28px; border-radius: var(--radius);
  background: var(--accent); color: #0b0a08; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; isolation: isolate;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.btn:hover::after { transform: scaleY(1); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { color: #0b0a08; }
.btn--play .ico { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(0, 0, 0, .15); }

/* ---------- Навигация ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease), background .4s; }
.nav.is-scrolled { background: rgba(7, 7, 7, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 80px; }
.nav__logo { font-family: var(--font-d); font-size: 22px; letter-spacing: .18em; text-transform: uppercase; }
.nav__links { display: flex; gap: 34px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav__links a:hover { color: var(--fg); }
.nav .btn { height: 46px; padding: 0 20px; font-size: 12px; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ---------- Hero с letterbox ---------- */
.cn-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.cn-hero__media { position: absolute; inset: 0; z-index: 0; }
.cn-hero__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 7, 7, .55) 0%, rgba(7, 7, 7, .1) 35%, rgba(7, 7, 7, .35) 60%, rgba(7, 7, 7, .92) 100%), radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, .6)); }
.cn-bar { position: absolute; left: 0; right: 0; height: 50vh; background: var(--bg); z-index: 4; }
.cn-bar--t { top: 0; transform-origin: top; }
.cn-bar--b { bottom: 0; transform-origin: bottom; }
.cn-hero .container { position: relative; z-index: 5; padding-bottom: clamp(30px, 6vh, 70px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.cn-hero__txt { display: grid; gap: clamp(14px, 2.2vh, 22px); }
.cn-who { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-who span { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; font-size: 13px; background: rgba(0, 0, 0, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cn-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-hook { font-size: 13.5px; color: rgba(244, 241, 234, .75); }
.cn-facts { display: grid; gap: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.cn-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cn-fact:last-child { border-bottom: 0; }
.cn-fact b { display: block; font-family: var(--font-d); font-size: clamp(28px, 2.8vw, 42px); font-weight: 400; line-height: 1.05; color: var(--accent); }
.cn-fact span { font-size: 13px; color: rgba(244, 241, 234, .7); }
.cn-hud { position: absolute; z-index: 5; top: 96px; left: 0; right: 0; }
.cn-hud .container { display: flex; justify-content: space-between; }
@media (max-width: 900px) {
  .cn-hero { height: auto; min-height: 100svh; padding-top: 120px; }
  .cn-hero .container { grid-template-columns: 1fr; }
  .cn-facts { grid-template-columns: repeat(3, 1fr); border-left: 0; padding-left: 0; border-top: 1px solid var(--line); gap: 10px; }
  .cn-fact { border-bottom: 0; }
  .cn-hud { display: none; }
}

/* ---------- Видео внутри букв ---------- */
.cn-knock { position: relative; height: 100svh; overflow: hidden; }
.cn-knock video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-knock__mask { position: absolute; inset: 0; background: var(--bg); color: #fff; mix-blend-mode: multiply; display: grid; place-items: center; }
.cn-knock__word { font-family: var(--font-d); text-transform: uppercase; font-size: clamp(80px, 19vw, 360px); line-height: .85; letter-spacing: -.01em; text-align: center; white-space: nowrap; will-change: transform; }
.cn-knock__cap { position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 2; text-align: center; }

/* ---------- Прокрутка видео скроллом ---------- */
.cn-scrub { position: relative; height: 100svh; overflow: hidden; }
.cn-scrub video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-scrub::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 7, 7, .85), rgba(7, 7, 7, .2) 60%); }
.cn-scrub .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.cn-chapters { position: relative; width: min(520px, 100%); min-height: 260px; }
.cn-chapter { position: absolute; inset: 0; display: grid; gap: 14px; align-content: center; opacity: 0; visibility: hidden; }
.cn-chapter b { font-family: var(--font-m); font-size: 12px; color: var(--accent); letter-spacing: .12em; }
.cn-chapter h3 { font-size: clamp(30px, 3.6vw, 56px); }
.cn-chapter p { color: rgba(244, 241, 234, .75); }
.cn-scrub__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .1); }
.cn-scrub__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cn-scrub .container { flex-direction: column; justify-content: center; align-items: flex-start; gap: 34px; }
.cn-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.cn-steps button { position: relative; overflow: hidden; padding: 12px 18px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; color: rgba(244, 241, 234, .7); font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, border-color .3s; }
.cn-steps button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.cn-steps button.on { color: #fff; border-color: var(--accent); }
.cn-scrub__tc { position: absolute; right: 24px; bottom: 20px; z-index: 3; }

/* ---------- Кадр раскрывается на весь экран ---------- */
.cn-frame { height: 100svh; display: grid; place-items: center; overflow: hidden; position: relative; }
.cn-frame__media { position: relative; width: 44vw; aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; will-change: width, border-radius; }
.cn-frame__txt { position: absolute; z-index: 2; inset: auto 0 10vh; text-align: center; }
@media (max-width: 900px) { .cn-frame__media { width: 86vw; } }

/* ---------- Лента роликов ---------- */
.cn-reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cn-clip { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); isolation: isolate; }
.cn-clip img, .cn-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.cn-clip video { opacity: 0; }
.cn-clip.is-playing video { opacity: 1; }
.cn-clip:hover img, .cn-clip:hover video { transform: scale(1.06); }
.cn-clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85)); z-index: 1; }
.cn-clip__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: grid; gap: 6px; }
.cn-clip__txt h3 { font-size: 24px; }
.cn-clip__txt span { font-size: 13.5px; color: rgba(244, 241, 234, .75); }
.cn-clip__price { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Список услуг / цены ---------- */
.cn-price { border-top: 1px solid var(--line); }
.cn-price__row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .5s var(--ease); }
.cn-price__row:hover { padding-left: 14px; }
.cn-price__row h3 { font-size: clamp(20px, 2vw, 28px); }
.cn-price__row p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 620px; }
.cn-price__row b { font-family: var(--font-d); font-weight: 400; font-size: clamp(20px, 2vw, 28px); color: var(--accent); white-space: nowrap; }

/* ---------- Карточки ---------- */
.cn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cn-card { background: var(--bg); padding: 32px 28px; display: grid; gap: 14px; align-content: start; transition: background .5s; }
.cn-card:hover { background: var(--bg-2); }
.cn-card .ico { width: 30px; height: 30px; color: var(--accent); }
.cn-card h3 { font-size: 22px; }
.cn-card p { color: var(--muted); font-size: 15px; }

/* ---------- Отзывы ---------- */
.cn-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cn-review { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.cn-review p { font-size: 16px; line-height: 1.6; }
.cn-review footer { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cn-stars { display: flex; gap: 3px; color: var(--accent); }
.cn-stars .ico { width: 15px; height: 15px; fill: currentColor; }

/* ---------- CTA ---------- */
.cn-cta-sec { position: relative; overflow: hidden; border-radius: 16px; min-height: 520px; display: flex; align-items: center; }
.cn-cta-sec video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-cta-sec::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 7, 7, .92) 30%, rgba(7, 7, 7, .35)); }
.cn-cta-sec .h-lg { font-size: clamp(30px, 3.4vw, 54px); }
.cn-cta-sec__in { position: relative; z-index: 2; padding: clamp(30px, 6vw, 80px); max-width: 720px; display: grid; gap: 18px; }
.cn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cn-form input { height: 58px; padding: 0 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); color: var(--fg); }
.cn-form input:focus { outline: none; border-color: var(--accent); }
.cn-form .btn { grid-column: 1 / -1; justify-content: center; }
.form-ok { font-family: var(--font-d); font-size: 28px; text-transform: uppercase; color: var(--accent); }
@media (max-width: 600px) { .cn-form { grid-template-columns: 1fr; } }

.footer { padding: 50px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .container { display: grid; gap: 20px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer__note { font-size: 12px; opacity: .7; }
