/* =========================================================
   RED ZONE — онлайн-кинотеатр. Стиль QIZIL HUDUD (milliybiz):
   тёмный фон, глубокий красный, срезанные углы, Benzin/BaseBloom + рукописный акцент
   ========================================================= */

:root {
  --bg: #050607;
  --bg-2: #0c0d0f;
  --bg-3: #16181b;
  --card: #101113;
  --red: #830101;
  --red-2: #b30000;
  --red-deep: #1c0000;
  --white: #fff;
  --cream: #fff;
  --line: #262729;
  --line-2: #383838;
  --muted: rgba(255,255,255,.66);
  --dim: rgba(255,255,255,.4);
  --green: #9bd77c;
  --radius: 15px;
  /* BaseBloom — латиница, Benzin — кириллица (браузер подставляет по символам) */
  --display: "BaseBloom", "Benzin", "Arial Black", sans-serif;
  --script: "Gently Milarea", "Marck Script", cursive;
  --body: "Neometric", system-ui, -apple-system, sans-serif;
  --light: "Neometric Light", "Neometric", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --f-display: var(--display); --f-body: var(--body); --f-script: var(--script); --f-mono: var(--mono);
  --u: calc(min(100vw, 1920px) / 1920);
  --gutter: calc(240 * var(--u));
  --header-h: max(64px, calc(90 * var(--u)));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: polygon(var(--c, 12px) 0, 100% 0, 100% calc(100% - var(--c, 12px)), calc(100% - var(--c, 12px)) 100%, 0 100%, 0 var(--c, 12px));
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--red) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--white); font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
::selection { background: var(--red-2); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.wrap, .container { width: min(calc(1440 * var(--u)), calc(100% - 80px)); margin-inline: auto; }
@media (max-width: 1100px) { .wrap, .container { width: calc(100% - 80px); } }
@media (max-width: 768px) { .wrap, .container { width: calc(100% - 40px); } }

/* текст «перекат» при наведении */
.roll { display: inline-block; transition: color .45s var(--ease); }
a:hover .roll, button:hover .roll { color: var(--red-2); }
.header a:hover .roll, .header button:hover .roll, .footer a:hover .roll, .mobile-menu a:hover .roll { color: var(--bg); }

/* ---------- Загрузка ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: #000; display: grid; place-content: center; justify-items: center; gap: 22px; }
.loader__logo { font: 400 clamp(44px, 6vw, 90px)/1 var(--display); letter-spacing: .02em; display: flex; align-items: center; gap: 6px; color: transparent; -webkit-text-stroke: 1px #9a0000; }
.loader__logo b { font-weight: 400; background: #730000; color: #000; -webkit-text-stroke: 0; padding: .06em .18em; clip-path: polygon(.2em 0, 100% 0, 100% calc(100% - .2em), calc(100% - .2em) 100%, 0 100%, 0 .2em); }
.loader__track { width: min(694px, 76vw); height: 10px; padding: 2px; background: #1c0000; border-radius: 999px; }
.loader__fill { display: block; height: 100%; background: #730000; border-radius: 999px; transform-origin: left; transform: scaleX(0); }
.loader__text { font: 400 clamp(26px, 4vw, 54px)/1 var(--display); color: #730000; letter-spacing: .06em; }
.loader__dots i { font-style: normal; animation: dot 1.2s infinite; }
.loader__dots i:nth-child(2) { animation-delay: .2s; } .loader__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 80%, 100% { opacity: .15; } 40% { opacity: 1; } }
.loader.is-done { pointer-events: none; }

/* ---------- Курсор ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 600; pointer-events: none; display: none; }
.cursor__lens { position: absolute; width: 20px; height: 20px; border-radius: 50%; translate: -50% -50%;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 4px 14px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.6); backdrop-filter: blur(6px) saturate(1.6);
  transition: width .5s var(--ease), height .5s var(--ease), transform .25s var(--ease); }
.cursor.is-hover .cursor__lens { width: 96px; height: 96px; -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.08); backdrop-filter: blur(10px) saturate(1.8) brightness(1.08); }
.cursor.is-down .cursor__lens { transform: scale(.82); }
.cursor__label { position: absolute; translate: -50% -50%; font: 400 12px var(--display); letter-spacing: .08em; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor__ripple { position: fixed; z-index: 599; pointer-events: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); translate: -50% -50%; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* ---------- Кнопка со срезанными углами ---------- */
.btn-cut, .btn {
  --c: 10px; position: relative; display: inline-grid; place-items: center; grid-auto-flow: column; gap: 10px;
  min-width: 164px; height: 46px; padding: 0 22px; font: 400 15px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
  background: var(--white); color: var(--white); clip-path: var(--cut); transition: transform .3s var(--ease), color .35s; white-space: nowrap; isolation: isolate;
}
.btn-cut::before, .btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--red); clip-path: var(--cut); }
.btn-cut::after, .btn::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--white); clip-path: var(--cut); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .btn-cut:hover::after, .btn:hover::after { transform: scaleY(1); }
  .btn-cut:hover, .btn:hover { color: var(--red); }
  .btn-cut:hover .roll { color: var(--red); }
}
.btn-cut:active, .btn:active { transform: scale(.96); }
.btn.ghost::before { background: var(--bg); }
.btn.light::before { background: var(--white); } .btn.light { color: var(--red); }
.btn.light::after { background: var(--red-2); } @media (hover: hover) { .btn.light:hover { color: #fff; } }
.btn.sm { height: 36px; min-width: 0; padding: 0 14px; font-size: 12px; --c: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font: 400 12px var(--display); border: 1px solid var(--line-2); color: var(--muted); transition: .25s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.badge { --c: 5px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font: 700 11px/1 var(--mono); letter-spacing: .06em; background: var(--red-2); color: #fff; clip-path: var(--cut); }
.badge.outline { background: rgba(0,0,0,.6); box-shadow: inset 0 0 0 1px var(--line-2); }
.badge.cream { background: #fff; color: var(--red); }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: var(--red); }
.header__inner { height: 100%; padding-inline: var(--gutter); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 4px; font: 400 26px/1 var(--display); letter-spacing: .02em; flex: none; transition: transform .5s var(--ease); }
.logo b { --c: 7px; font-weight: 400; background: #fff; color: var(--red); padding: 4px 8px 5px; clip-path: var(--cut); }
.logo:hover { transform: scale(1.04); }
.header__nav { margin-left: auto; display: flex; gap: calc(56 * var(--u)); margin-right: calc(20 * var(--u)); }
.nav-link { font: 400 max(14px, calc(18 * var(--u))) var(--display); position: relative; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; background: #ff7a6b; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-link.on::after { transform: scaleX(1); }
.header__search { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; flex: none; }
.header__search:hover { background: rgba(0,0,0,.2); }
.header__search svg { width: 20px; height: 20px; }
.header__burger { display: none; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .header__nav { display: none; }
  .header__search { margin-left: auto; }
  .header__inner > .btn-cut { display: none; }
  .header__burger { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; }
  .header__burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .4s var(--ease); }
  .header.menu-open .header__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .header.menu-open .header__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; position: fixed; inset: var(--header-h) 0 0; background: var(--red); padding: 0 20px 80px; text-align: center; }
  .mobile-menu .nav-link { font-size: 26px; }
  .btn-cut--big { height: 54px; min-width: 220px; font-size: 18px; margin-top: 30px; --c: 13px; }
}

/* ---------- Оверлей поиска ---------- */
.search-ov { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: calc(var(--header-h) + 5vh) 16px 16px; }
.search-ov__backdrop { position: absolute; inset: 0; background: rgba(5,6,7,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.search-ov__panel { --c: 22px; position: relative; width: min(680px, 100%); max-height: calc(100svh - var(--header-h) - 8vh); display: flex; flex-direction: column;
  padding: 40px 36px 28px; background: linear-gradient(160deg, #1a0606 0%, #0b0d0f 55%); clip-path: var(--cut); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.search-ov__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--red-2); }
.search-ov__script { font: 400 46px/1 var(--script); color: var(--red-2); text-align: center; margin-bottom: -6px; position: relative; z-index: 1; }
.search-ov__title { font: 400 clamp(26px, 4vw, 38px)/1 var(--display); text-align: center; margin-bottom: 22px; }
.search-ov__hint { margin-top: 16px; font: 13px/1.4 var(--light); color: var(--muted); text-align: center; }
.x-btn { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; z-index: 2; }
.x-btn span { grid-area: 1 / 1; width: 22px; height: 2px; background: #fff; transform: rotate(45deg); transition: background .3s; }
.x-btn span + span { transform: rotate(-45deg); }
.x-btn:hover span { background: var(--red-2); }
.cut-field { --c: 13px; display: flex; height: 56px; background: #fff; clip-path: var(--cut); flex: none; }
.cut-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding-left: 20px; font: 17px var(--body); color: var(--red); }
.cut-field input::placeholder { color: #ce8383; }
.cut-field input::-webkit-search-cancel-button { display: none; }
.cut-field button { width: 56px; display: grid; place-items: center; color: var(--red); transition: background .3s, color .3s; flex: none; }
.cut-field button:hover { background: var(--red); color: #fff; }
.suggest { margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 4px; }
.suggest a, .suggest button { display: flex; align-items: center; gap: 14px; padding: 8px; text-align: left; width: 100%; transition: background .25s; }
.suggest a:hover, .suggest a.active, .suggest button:hover, .suggest button.active { background: rgba(255,255,255,.07); }
.suggest img { width: 42px; height: 60px; object-fit: cover; background: var(--bg-3); flex: none; }
.suggest .t { font: 400 15px/1.2 var(--display); }
.suggest .s { font: 12px var(--light); color: var(--muted); margin-top: 3px; }
.suggest .ico { --c: 8px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--red-2); flex: none; clip-path: var(--cut); }
@media (max-width: 600px) { .search-ov__panel { padding: 40px 18px 22px; --c: 16px; } .search-ov__script { font-size: 38px; } }

/* =========================================================
   ГЛАВНАЯ
   ========================================================= */
.hero { position: relative; height: 420vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #1a0607; }
.hero__canvas { position: absolute; inset: -2%; width: 104%; height: 104%; max-width: none; }
.hero__shade { position: absolute; inset: 0; background: #050607; opacity: 0; pointer-events: none; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%, transparent 60%, rgba(0,0,0,.75)); }
.hero__heading { position: absolute; left: 50%; top: 47%; translate: -50% -50%; display: flex; flex-direction: column; align-items: flex-end; z-index: 2; pointer-events: none; text-align: right; width: max-content; max-width: 92vw; }
.hero__script { font: 400 max(48px, calc(121 * var(--u))) / .86 var(--script); color: var(--red-2); white-space: nowrap; position: relative; z-index: 2;
  padding: .45em .35em; margin: -.45em calc(18% - .35em) calc(-.32em - .45em) 0; }
.hero__script.is-masked:not(.is-shown) { --r: 0%; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--r) - 30%), transparent var(--r)); mask-image: linear-gradient(90deg, #000 calc(var(--r) - 30%), transparent var(--r)); }
.hero__title { font: 400 max(44px, calc(122 * var(--u))) / .9 var(--display); color: #fff; }
.hero__line { display: block; white-space: nowrap; }
.hero__info { position: absolute; left: var(--gutter); bottom: calc(70 * var(--u) + 40px); width: min(470px, 40vw); text-transform: uppercase; font: max(10px, calc(11 * var(--u))) / 1.35 var(--body); z-index: 2; }
.hero__kicker { display: inline-block; font-weight: 700; font-size: max(16px, calc(25 * var(--u))); margin-right: 10px; }
.hero__meta { display: inline-block; margin-right: 12px; opacity: .9; }
.hero__about { margin-top: 6px; font-family: var(--light); }
.hero__cta { position: absolute; right: var(--gutter); bottom: calc(70 * var(--u) + 40px); z-index: 3; display: flex; gap: 12px; }
.hero__progress { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px); display: flex; align-items: center; gap: 12px; font: 400 13px var(--display); letter-spacing: .1em; z-index: 2; }
.hero__progress-bar { width: 120px; height: 1px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__progress-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.hero__total { opacity: .5; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 11px var(--display); letter-spacing: .35em; z-index: 2; }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: line 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero { height: 320vh; }
  .hero__heading { top: 42%; }
  .hero__script { font-size: clamp(48px, 15vw, 84px); }
  .hero__title { font-size: clamp(40px, 13vw, 84px); }
  .hero__info { left: 20px; right: 20px; width: auto; bottom: 150px; font-size: 10px; }
  .hero__kicker { font-size: 15px; }
  .hero__cta { left: 20px; right: 20px; bottom: 80px; }
  .hero__cta .btn-cut { flex: 1; min-width: 0; height: 50px; --c: 12px; padding: 0 10px; font-size: 13px; }
  .hero__progress { right: 20px; top: calc(var(--header-h) + 20px); font-size: 11px; }
  .hero__progress-bar { width: 60px; }
  .hero__scroll { bottom: 18px; font-size: 9px; }
  .hero__scroll span { height: 26px; }
}

/* О КИНОТЕАТРЕ */
.about { padding: calc(114 * var(--u) + 40px) 0; background: var(--bg); }
.about__head { display: flex; justify-content: space-between; gap: 44px; }
.about__text { flex: 1; max-width: 1172px; }
.about__title { font: 400 clamp(18px, 1.5vw, 24px)/1.3 var(--display); }
.about__desc { margin-top: 10px; font: clamp(14px, 1.05vw, 16px)/1.4 var(--body); color: rgba(255,255,255,.88); }
.line-mask, .line-inner { display: block; }
.platforms { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 300px; align-content: start; }
.platforms li { --c: 14px; clip-path: var(--cut); background: rgba(255,255,255,.8); padding: 1px; transition: transform .5s var(--ease); }
.platforms li:hover { transform: translateY(-4px); }
.platforms li > span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; clip-path: var(--cut); background: var(--red); font: 400 15px var(--display); letter-spacing: .04em; }
.platforms li.wide { grid-column: 1 / -1; }
.platforms li.wide > span { height: 70px; font-size: 18px; }
.platforms svg { width: 22px; height: 22px; flex: none; }

.cards { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.vcard { transform-style: preserve-3d; }
.vcard__link { position: relative; display: block; aspect-ratio: 345 / 372; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.vcard__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; will-change: transform; filter: grayscale(.35) brightness(.8); transition: filter .6s var(--ease); }
.vcard__link:hover .vcard__img { filter: none; }
.vcard__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%, rgba(0,0,0,.88)); }
.vcard__meta { position: absolute; left: 16px; right: 76px; bottom: 16px; z-index: 2; }
.vcard__title { display: block; font: 400 clamp(14px, 1.15vw, 19px)/1.12 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.vcard__sub { display: block; font: 12px var(--light); color: var(--muted); margin-top: 6px; }
.vcard__q { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.vcard__play { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 48px; height: auto; transition: transform .4s var(--ease); }
.vcard__link:hover .vcard__play { transform: scale(1.15); }
.vcard__link::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%); opacity: 0; transition: opacity .3s; }
.vcard__link:hover::after { opacity: 1; }

.about__bottom { margin-top: 70px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.robot { display: flex; gap: 18px; align-items: flex-start; }
.robot__logo { width: 110px; height: 110px; flex: none; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255,255,255,.85); }
.robot__logo svg { width: 58px; height: 58px; }
.robot__title { font: 400 clamp(26px, 2.4vw, 40px)/1.4 var(--display); }
.robot__text { max-width: 520px; font: 14px/1.4 var(--body); color: rgba(255,255,255,.85); }
.find { width: min(420px, 100%); margin-top: 26px; flex: none; }
.find__title { display: flex; align-items: flex-end; gap: 4px; font: 400 clamp(20px, 1.6vw, 26px)/1.17 var(--display); }
.find__title img { width: 10px; height: 10px; margin-bottom: 4px; }
.find .cut-field { margin-top: 12px; }
.find__status { min-height: 1.4em; margin-top: 10px; font-size: 13px; color: #e3a7a7; }

/* ФИНАЛ */
.final { position: relative; min-height: calc(100svh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: calc(var(--header-h) + 20px) 20px calc(22svh + 30px); overflow: hidden; text-align: center; }
.final__script { font: 400 clamp(54px, 6vw, 110px)/.86 var(--script); color: var(--red-2); margin-bottom: clamp(-62px, -3.4vw, -30px); position: relative; z-index: 1; }
.final__title { font: 400 clamp(46px, 8vw, 150px)/.88 var(--display); position: relative; z-index: 1; }
.final__title > span { display: block; }
.final .btn-cut { position: relative; z-index: 1; height: 64px; min-width: 280px; font-size: 20px; --c: 16px; }
.final__ornament { position: absolute; left: 50%; top: calc(100% - 22svh); width: max(1300px, 78vw); translate: -50% 0; pointer-events: none; transform-origin: 50% 0; }
.final__ornament img { width: 100%; height: auto; animation: ornGlow 4s ease-in-out infinite; }
.final__ornament::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) no-repeat; background-size: 250% 100%;
  -webkit-mask: url("/img/ornament.webp") center / 100% 100% no-repeat; mask: url("/img/ornament.webp") center / 100% 100% no-repeat; mix-blend-mode: overlay; animation: ornShine 5s ease-in-out infinite; }
@keyframes ornGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(179,0,0,0)) brightness(1); } 50% { filter: drop-shadow(0 0 28px rgba(220,0,0,.55)) brightness(1.15); } }
@keyframes ornShine { 0% { background-position: 120% 0; } 60%,100% { background-position: -20% 0; } }
.char { display: inline; }

@media (max-width: 1100px) {
  .about__head { flex-direction: column; }
  .platforms { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .platforms li.wide { grid-column: auto; }
  .platforms li.wide > span, .platforms li > span { height: 58px; font-size: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__bottom { flex-direction: column; }
}
@media (max-width: 600px) {
  .about { padding: 64px 0; }
  .platforms { gap: 8px; }
  .platforms li > span, .platforms li.wide > span { height: 50px; font-size: 10px; gap: 6px; }
  .platforms svg { width: 15px; height: 15px; }
  .cards { display: flex; gap: 14px; margin: 26px -20px 0; padding: 10px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; perspective: none; }
  .cards::-webkit-scrollbar { display: none; }
  .vcard { flex: none; width: min(300px, calc(100vw - 70px)); scroll-snap-align: start; }
  .robot__logo { width: 76px; height: 76px; } .robot__logo svg { width: 40px; height: 40px; }
  .find { margin-top: 0; }
  .final { padding-bottom: calc(30vw + 30px); }
  .final__ornament { width: 140vw; top: calc(100% - 30vw); }
  .final .btn-cut { min-width: 240px; height: 56px; font-size: 16px; --c: 13px; }
}

/* ---------- Футер ---------- */
.footer { background: var(--red); }
.footer__inner { width: min(calc(1440 * var(--u)), calc(100% - 80px)); margin-inline: auto; padding: 30px 0 26px; display: grid; grid-template-columns: 1fr auto; gap: 30px 40px; font: 400 clamp(15px, 1.2vw, 22px)/.95 var(--display); }
.footer__title { font-size: clamp(28px, 3.2vw, 60px); max-width: 680px; transition: color .45s var(--ease); }
.footer__title:hover { color: var(--bg); }
.footer__social { display: flex; gap: 36px; flex-wrap: wrap; justify-content: flex-end; }
.footer__right { display: grid; gap: 12px; justify-items: end; align-content: end; }
.footer__copy { align-self: end; font-size: .8em; }
.footer__note { grid-column: 1 / -1; font: 11px/1.4 var(--light); color: rgba(255,255,255,.78); max-width: 900px; }
.badge18 { --c: 10px; display: grid; place-items: center; width: 60px; height: 50px; clip-path: var(--cut); background: #fff; color: var(--red); font-size: 18px; }
@media (max-width: 768px) {
  .footer__inner { width: calc(100% - 40px); grid-template-columns: 1fr; padding: 30px 0; }
  .footer__social { justify-content: space-between; gap: 14px; }
  .footer__right { justify-items: start; }
}

/* ---------- Внутренние страницы ---------- */
.page { padding-top: calc(var(--header-h) + 30px); min-height: 100svh; }
.loading { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 46px; height: 46px; border: 3px solid var(--line-2); border-top-color: var(--red-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section { padding: clamp(50px, 8vw, 110px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 40px); flex-wrap: wrap; }
.sec-title { font: 400 clamp(32px, 5.5vw, 90px)/.92 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.sec-title em { font: 400 .6em var(--script); color: var(--red-2); text-transform: none; margin-left: .15em; font-style: normal; }
.sec-head p { max-width: 440px; color: var(--muted); font-family: var(--light); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid .vcard__meta { left: 12px; right: 12px; bottom: 12px; } .grid .vcard__play { display: none; } }
.grid .vcard__link { aspect-ratio: 2 / 3; }
.empty { --c: 18px; text-align: center; padding: 50px 20px; background: var(--bg-2); clip-path: var(--cut); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.empty h3 { font: 400 clamp(22px, 3vw, 34px)/1.1 var(--display); color: #fff; margin: 0 0 12px; text-transform: uppercase; }
.empty p { margin: 0 auto 20px; max-width: 520px; font-family: var(--light); }

/* страница фильма */
.m-hero { position: relative; margin-top: calc(-1 * (var(--header-h) + 30px)); padding: calc(var(--header-h) + 50px) 0 50px; overflow: hidden; }
.m-hero .bg { position: absolute; inset: -40px; background-size: cover; background-position: center 25%; filter: blur(22px) brightness(.45) saturate(.6); transform: scale(1.1); }
.m-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(131,1,1,.55), rgba(5,6,7,.5) 50%, var(--bg)); }
.m-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(22px, 4vw, 56px); align-items: end; }
.m-poster { --c: 18px; clip-path: var(--cut); aspect-ratio: 2/3; background: var(--bg-3); }
.m-poster img { width: 100%; height: 100%; object-fit: cover; }
.m-title { font: 400 clamp(32px, 5.5vw, 96px)/.95 var(--display); text-transform: uppercase; margin: 12px 0 10px; overflow-wrap: anywhere; }
.m-orig { color: var(--muted); font-family: var(--light); margin-bottom: 18px; }
.m-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 14px; }
.m-facts b { color: #fff; }
.rating-big { display: inline-flex; align-items: baseline; gap: 6px; font: 400 28px/1 var(--display); color: #fff; }
.rating-big small { font: 600 12px var(--mono); color: var(--muted); }
.rating-big.none { font: 14px var(--body); color: var(--muted); }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) {
  .m-hero .wrap { grid-template-columns: 1fr; }
  .m-poster { width: 46%; max-width: 220px; }
  .m-actions .btn { flex: 1 1 auto; }
}
.m-body { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 4vw, 56px); padding-bottom: 80px; }
@media (max-width: 1060px) { .m-body { grid-template-columns: 1fr; } .m-body > aside { order: -1; } .robot-card { position: static !important; } }
.block { margin-bottom: 40px; }
.block h2 { font: 400 clamp(20px, 2vw, 28px)/1.1 var(--display); text-transform: uppercase; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.block h2 .mono { color: var(--red-2); }
.desc { color: rgba(255,255,255,.85); font: 16px/1.55 var(--light); max-width: 72ch; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { --c: 8px; padding: 9px 14px; background: var(--bg-3); font-size: 14px; clip-path: var(--cut); transition: background .3s; }
.person:hover { background: var(--red); }
.person.dir { background: var(--red); }

.robot-card { --c: 22px; position: sticky; top: calc(var(--header-h) + 20px); clip-path: var(--cut); background: var(--red); }
.robot-card .top { padding: 24px 24px 18px; }
.robot-card .q { font: 400 clamp(60px, 7.5vw, 100px)/.85 var(--display); margin: 14px 0 8px; }
.robot-card .sub { font: 14px var(--light); opacity: .92; }
.robot-card .reasons { background: #0b0c0d; padding: 20px 24px 24px; }
.robot-card ul { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.robot-card li { display: flex; gap: 10px; }
.robot-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.robot-card li.bad::before { content: "!"; color: #ffb35c; }
.robot-card .btns { display: grid; gap: 10px; }
.robot-card .btns .btn { width: 100%; }
.robot-card .scan { font: 600 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }

.sources { display: grid; gap: 10px; }
.src { --c: 14px; display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--bg-2); clip-path: var(--cut); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.src:hover { background: var(--bg-3); }
.src.best { background: linear-gradient(90deg, rgba(179,0,0,.28), var(--bg-2) 65%); box-shadow: inset 0 0 0 1px var(--red-2); }
.src.current { box-shadow: inset 0 0 0 2px #fff; }
.src .ql { font: 400 21px/1 var(--display); text-align: center; }
.src .ql small { display: block; font: 600 10px var(--mono); color: var(--muted); margin-top: 6px; letter-spacing: .08em; }
.src .info { min-width: 0; }
.src .row1 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.src .row2 { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.src .row2 span { white-space: nowrap; }
.src .dub.none { color: var(--dim); font-style: italic; }
.plat { display: inline-flex; align-items: center; gap: 6px; font: 400 13px var(--display); }
.plat i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.plat.rutube i { background: #00a2ff; } .plat.youtube i { background: #ff2a2a; }
@media (max-width: 600px) { .src { grid-template-columns: 60px 1fr; } .src .act { grid-column: 1 / -1; } .src .act .btn { width: 100%; } }

.player-wrap { --c: 18px; position: relative; background: #000; aspect-ratio: 16/9; clip-path: var(--cut); }
.player-wrap video, .player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-info { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 30px; color: var(--muted); font-size: 13px; }
.parts { display: flex; gap: 6px; flex-wrap: wrap; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 2; text-align: center; padding: 20px; }

.robot-run { --c: 18px; clip-path: var(--cut); padding: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--red-2); max-width: 640px; margin: 30px auto; }
.robot-run h3 { font: 400 26px/1 var(--display); text-transform: uppercase; margin: 0 0 18px; display: flex; gap: 10px; align-items: center; }
.robot-run ol { display: grid; gap: 10px; }
.robot-run li { display: flex; gap: 12px; align-items: center; color: var(--dim); transition: color .3s; }
.robot-run li.on { color: #fff; } .robot-run li.done { color: var(--muted); }
.robot-run li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.robot-run li.on i { border-color: var(--red-2); border-top-color: transparent; animation: spin .8s linear infinite; }
.robot-run li.done i { background: var(--red-2); border-color: var(--red-2); }

/* модалка, поля, тосты */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(5,6,7,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal .box { --c: 22px; width: min(460px, 100%); background: linear-gradient(160deg, #1a0606 0%, #0b0d0f 55%); clip-path: var(--cut); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); padding: 34px 28px 26px; position: relative; }
.modal .box::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--red-2); }
.modal h3 { font: 400 28px/1.05 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.modal p { color: var(--muted); margin: 0 0 18px; font-family: var(--light); }
.modal .btn { width: 100%; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font: 400 12px var(--display); letter-spacing: .06em; color: rgba(255,255,255,.85); }
.input { --c: 10px; height: 50px; width: 100%; border: 0; outline: 0; background: #fff; color: #000; padding: 0 16px; clip-path: var(--cut); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.input:focus { box-shadow: inset 0 0 0 2px var(--red-2); }
textarea.input { height: auto; min-height: 90px; padding: 12px 16px; resize: vertical; }
select.input { appearance: auto; }
.toasts { position: fixed; z-index: 700; left: 50%; top: calc(var(--header-h) + 20px); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { --c: 12px; clip-path: var(--cut); background: #fff; color: var(--red); padding: 14px 20px; font: 400 13px/1.3 var(--display); text-align: center; animation: toastIn .45s var(--ease); }
.toast.error { background: var(--red-2); color: #fff; }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* =========================================================
   HERO «ПОГРУЖЕНИЕ»: небо → линия воды → глубина
   ========================================================= */
.dive { height: 520vh; }
.dive__defs { position: absolute; width: 0; height: 0; }
.dive__sticky { background: #04101c; }
.dive__world { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; transform-origin: 50% 0; }
.dive__sky, .dive__under { display: block; width: 100%; object-fit: cover; }
.dive__sky, .dive__under { height: auto; min-height: 140vh; }
.dive__sky { object-position: 50% 100%; }
.dive__under { object-position: 50% 0; margin-top: -1px; }
/* the surface seen from below: bright foam band where the two photos meet */
.dive__surface { position: absolute; left: 0; right: 0; top: var(--seam, 165vh); translate: 0 -50%; height: 14vh; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(190,230,255,.28) 42%, rgba(255,255,255,.55) 50%, rgba(120,190,230,.3) 58%, transparent);
  mix-blend-mode: screen; filter: url(#rz-water); }
.dive__rays { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .35; --ry: 50vh;
  background: repeating-conic-gradient(from 168deg at 52% calc(var(--ry) - 30vh), rgba(255,255,255,0) 0deg, rgba(200,235,255,.16) 1.6deg, rgba(255,255,255,0) 4.5deg, rgba(255,255,255,0) 7deg);
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent); mask: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent);
  animation: rays 9s ease-in-out infinite alternate; }
@keyframes rays { from { transform: rotate(-1.5deg) scale(1.05); } to { transform: rotate(1.5deg) scale(1.1); } }
.dive__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dive__flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(220,245,255,.9), rgba(120,190,230,.35) 45%, transparent 75%); mix-blend-mode: screen; }
.dive__shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

.dive__heading { position: absolute; left: 50%; top: 46%; translate: -50% -50%; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; text-align: center; width: max-content; max-width: 94vw; }
.dive__script { margin: 0 0 -.35em; padding: .45em .35em; font-size: max(46px, calc(110 * var(--u))); color: #ff3b30; text-shadow: 0 4px 30px rgba(0,0,0,.45); position: relative; z-index: 3; }
.dive__title { position: relative; display: block; font: 400 max(56px, calc(190 * var(--u))) / .88 var(--display); letter-spacing: .01em; }
.dive__line { display: block; white-space: nowrap; }
.dive__dry { display: block; color: #f2f7fa; text-shadow: 0 6px 40px rgba(0,20,40,.45);
  /* scratches like an old print */
  background: linear-gradient(100deg, #fff 0 40%, #cfe2ec 40.3%, #fff 40.6% 72%, #d6e6ee 72.2%, #fff 72.5%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dive__wet { position: absolute; inset: 0; display: block; color: rgba(170,225,245,.78); filter: url(#rz-water); text-shadow: 0 0 22px rgba(120,200,240,.45); transform: translateX(4px) scaleY(1.03); transform-origin: 50% 0; }
.dive[data-tint="red"] .dive__world, .dive[data-tint="red"] .dive__rays { filter: hue-rotate(150deg) saturate(1.35) brightness(.92); }
.dive[data-tint="red"] .dive__wet { color: rgba(255,150,140,.8); text-shadow: 0 0 22px rgba(220,40,40,.45); }
.dive[data-tint="red"] .dive__script { color: #fff; }
.dive__label { opacity: .6; }
.dive .hero__vignette { display: none; }
@media (max-width: 900px) {
  .dive { height: 440vh; }
  .dive__heading { top: 40%; }
  .dive__title { font-size: clamp(50px, 17vw, 110px); }
  .dive__script { font-size: clamp(42px, 13vw, 80px); }
}

/* =========================================================
   Минимальная главная: поиск робота и «Смотреть вместе»
   ========================================================= */
.mini { padding: clamp(80px, 12vw, 160px) 0; text-align: center; position: relative; }
.mini + .mini { padding-top: 0; }
.mini__inner { display: flex; flex-direction: column; align-items: center; }
.mini__script { font: 400 clamp(40px, 5vw, 80px)/.9 var(--script); color: var(--red-2); margin-bottom: -.2em; position: relative; z-index: 1; }
.mini__title { font: 400 clamp(40px, 7vw, 120px)/.9 var(--display); text-transform: uppercase; }
.mini__text { max-width: 640px; margin: 22px auto 0; color: rgba(255,255,255,.82); font: clamp(15px, 1.2vw, 18px)/1.45 var(--light); }
.mini .find { width: min(760px, 100%); margin: 34px auto 0; }
.cut-field--big { height: 68px; --c: 16px; }
.cut-field--big input { font-size: 19px; padding-left: 26px; }
.cut-field--big button { width: 68px; }
.sites { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.sites li { --c: 8px; clip-path: var(--cut); padding: 8px 14px; background: var(--bg-3); font: 400 12px var(--display); letter-spacing: .04em; color: rgba(255,255,255,.8); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(1000px, 100%); margin: 40px auto 0; }
.steps3 li { --c: 16px; clip-path: var(--cut); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 22px 20px; text-align: left; font: 15px/1.4 var(--light); display: flex; flex-direction: column; gap: 14px; }
.steps3 b { font: 400 34px/1 var(--display); color: var(--red-2); }
.mini__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mini__actions .btn-cut { height: 56px; min-width: 240px; font-size: 16px; --c: 13px; }
.btn-cut--ghost::before { background: var(--bg); }
.plat.dailymotion i { background: #0d6efd; } .plat.commons i { background: #3a9b4c; }
/* logo image uploaded in the admin */
.logo img { height: 38px; width: auto; display: block; }
@media (max-width: 768px) {
  .steps3 { grid-template-columns: 1fr; }
  .cut-field--big { height: 58px; }
  .cut-field--big input { font-size: 16px; padding-left: 18px; }
  .mini__actions .btn-cut { flex: 1 1 100%; }
  .logo img { height: 30px; }
}
