/* =========================================================================
   Fyr H1 — первый телефон Fyr. Кино, как у Apple: телефон висит над
   гигантской типографикой, фон перетекает между главами, цвета и плёнка
   едут лентой вбок, камера влетает в экран и в объектив, фонарь светит
   в тёмной главе. Общие элементы Fyr — в fyr-page.css.
   ========================================================================= */

:root[data-h1] {
  --ice: #DCEBFF;
  --ice-2: #9CC4FF;
  --kodak: #F5B70F;
  --page-bg: #05070A;
  --tint: 31, 63, 75;
  --tint-2: 79, 179, 200;
}
:root[data-h1][data-color="mars"] { --tint: 142, 67, 41; --tint-2: 255, 138, 92; }
:root[data-h1][data-color="sunset"] { --tint: 217, 155, 168; --tint-2: 255, 179, 138; }
:root[data-h1][data-color="mountain"] { --tint: 86, 92, 98; --tint-2: 220, 230, 240; }
:root[data-h1][data-color="kodak"] { --tint: 227, 162, 26; --tint-2: 255, 201, 60; }

:root[data-h1], :root[data-h1] body { background: var(--page-bg); }
:root[data-h1] body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 40%, rgba(var(--tint), .22), transparent 70%);
  transition: background .8s;
}

/* Слои: фон → контент → телефон → иней. Телефон висит над текстом и не ловит клики */
:root[data-h1] main, :root[data-h1] .site-footer { position: relative; z-index: 4; }
:root[data-h1] .stage { z-index: 5; pointer-events: none; }
.h1-frost {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none;
  --melt: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent calc(var(--melt) * 120%), #000 calc(var(--melt) * 120% + 22%));
  mask-image: radial-gradient(circle at 50% 46%, transparent calc(var(--melt) * 120%), #000 calc(var(--melt) * 120% + 22%));
}
.h1-grain {
  position: fixed; inset: -50%; z-index: 7; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: h1-grain 1s steps(6) infinite;
}
@keyframes h1-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
:root[data-h1] .fy-header { z-index: 60; }

/* ---------- Шапка, прогресс, рельс ---------- */

.h1-header__model { margin-left: -16px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; letter-spacing: .1em; color: var(--ice); }
.h1-header__buy { font-family: var(--mono); }
.h1-progress { position: fixed; left: 0; right: 0; top: var(--header-h); height: 2px; z-index: 61; pointer-events: none; }
.h1-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ice)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--glow); }

.h1-rail { position: fixed; right: 18px; top: 50%; z-index: 55; translate: 0 -50%; display: grid; gap: 10px; }
.h1-rail a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 7, 10, .6); transition: background-color .3s, border-color .3s, transform .3s; }
.h1-rail a span {
  position: absolute; right: 18px; top: 50%; translate: 6px -50%; white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--fg);
  padding: 6px 9px; border-radius: 8px; background: rgba(10, 14, 21, .92); border: 1px solid var(--line-2);
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.h1-rail a:hover span, .h1-rail a:focus-visible span, .h1-rail a.is-on span { opacity: 1; translate: 0 -50%; }
.h1-rail a.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.5); box-shadow: 0 0 14px var(--glow); }

/* ---------- Общая сетка глав ---------- */

.h1s { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 64px) 0 clamp(70px, 12vh, 140px); }
.h1s:has(> .h1-pin) { display: block; padding: 0; min-height: 0; }
.h1-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.h1-pin > .h1s__inner { height: 100%; display: grid; align-items: center; padding-top: var(--header-h); }
.h1s__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--gutter) + 24px) 0 var(--gutter); }
.h1s__text { position: relative; max-width: min(520px, 40vw); }
.fy--left .h1s__text { margin-left: auto; }
.h1s__text--center { max-width: 980px; margin: 0 auto; text-align: center; }
.h1s__text--center .lead { margin-inline: auto; }
.h1s .lead { margin-top: 18px; color: rgba(244, 247, 255, .74); max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.h1s .eyebrow { color: var(--accent-text); }
.h1-h2 { margin-top: 12px; font-size: clamp(40px, 5.6vw, 92px); font-weight: 780; line-height: .98; letter-spacing: -.05em; text-transform: lowercase; }
.h1-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.h1-split .h1s__text { max-width: 540px; }
.h1-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--header-h) var(--gutter) 0; }

/* Подпись главы в закреплённых сценах — сверху слева */
.h1-cap { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 40px); z-index: 3; max-width: min(560px, 46vw); }
.h1-cap--center { left: 50%; translate: -50% 0; text-align: center; }
.h1-cap__h { margin-top: 10px; font-size: clamp(32px, 4vw, 64px); font-weight: 760; line-height: 1; letter-spacing: -.045em; text-transform: lowercase; }
.h1-cap__lead { margin-top: 14px; color: rgba(244, 247, 255, .72); max-width: 44ch; line-height: 1.5; }

/* Буквы заголовков: JS режет на .ch и бросает их по одной */
[data-chars] .ch { display: inline-block; will-change: transform; }
[data-chars] .w { display: inline-block; white-space: nowrap; }

/* Гигантские надписи за телефоном */
.h1-mega {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; user-select: none;
  font-weight: 800; letter-spacing: -.07em; line-height: .8; white-space: nowrap;
}
.h1-mega--hero { display: flex; justify-content: center; align-items: center; gap: .02em; font-size: min(58vw, 92vh); }
.h1-mega--hero span {
  background: linear-gradient(180deg, rgba(220, 235, 255, .9), rgba(156, 196, 255, .35) 55%, rgba(47, 107, 255, .05));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 60px rgba(47, 107, 255, .25));
}
.h1-mega--chip, .h1-mega--cam { font-size: min(30vw, 46vh); color: transparent; -webkit-text-stroke: 1.5px rgba(156, 196, 255, .2); justify-content: end; padding-right: 4vw; }
.h1-mega--cam { justify-content: center; padding: 0; }

/* ---------- 0. Первый экран ---------- */

.h1s--intro { min-height: 100vh; min-height: 100svh; align-items: end; overflow: hidden; padding-bottom: clamp(36px, 7vh, 80px); }
.h1-intro { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--gutter) + 24px) 0 var(--gutter); display: grid; gap: 18px; }
.h1-intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 6vw, 120px); align-items: end; }
.h1-hero { display: grid; gap: 12px; }
.h1-hero__model { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--ice-2); }
.h1-hero__big {
  font-size: clamp(44px, 6.4vw, 112px); font-weight: 790; letter-spacing: -.055em; line-height: .92; text-transform: lowercase;
  color: #F4F7FF; text-shadow: 0 0 40px rgba(47, 107, 255, .35); perspective: 600px;
}
.h1-hero__big .w:last-child { color: var(--ice-2); }
[data-chars] { perspective: 700px; }
.h1-intro__side { justify-self: end; max-width: 400px; }
.h1-hero__sub { font: 650 clamp(20px, 2vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; color: var(--ice); text-shadow: 0 0 30px rgba(156, 196, 255, .45); }
.h1-intro__lead { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(244, 247, 255, .7); }
.h1-intro .fy-hero__buy { margin-top: 20px; }
.h1-intro .fy-note { margin-top: 14px; }
.h1-scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 2; display: grid; justify-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.h1-scroll i { width: 1px; height: 36px; background: linear-gradient(var(--ice), transparent); animation: h1-drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes h1-drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Бегущая строка */
.h1-ticker { position: relative; z-index: 4; overflow: hidden; border-block: 1px solid var(--line); background: rgba(5, 7, 10, .7); padding: 18px 0; }
.h1-ticker__track { display: flex; width: max-content; gap: 56px; animation: h1-tick 38s linear infinite; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1-ticker__track span { display: inline-flex; align-items: center; gap: 56px; }
.h1-ticker__track span::after { content: '◆'; font-size: 8px; color: var(--accent); }
@keyframes h1-tick { to { transform: translateX(-50%); } }

/* ---------- 1. Обещание ---------- */

.h1-quote { margin-top: 22px; max-width: 30ch; }
.h1-quote__old {
  display: inline; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.02em;
  color: rgba(244, 247, 255, calc(1 - var(--cross, 0) * .55));
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-position: 0 58%; background-size: calc(var(--cross, 0) * 100%) 3px;
}
.h1-quote cite { display: block; margin-top: 12px; font-size: 12px; font-style: normal; color: var(--muted); }
.h1-quote cite a { color: var(--accent-text); }
.h1-promise { margin-top: 36px; max-width: 13ch; font-size: clamp(48px, 8vw, 150px); line-height: .92; letter-spacing: -.06em; text-transform: lowercase; font-weight: 800; }
.h1-word { display: inline-block; opacity: calc(.08 + var(--o, 0) * .92); transform: translateY(calc((1 - var(--o, 0)) * 40px)) scale(calc(.92 + var(--o, 0) * .08)); filter: blur(calc((1 - var(--o, 0)) * 10px)); }
.h1-word:last-child { background: linear-gradient(100deg, var(--ice), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-counter { display: flex; justify-content: center; gap: clamp(20px, 6vw, 70px); margin-top: 36px; flex-wrap: wrap; }
.h1-counter dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h1-counter dd { margin-top: 6px; font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; color: var(--fg); transition: color .4s, text-shadow .4s; }
.h1-counter dd.is-new { color: var(--ice); text-shadow: 0 0 24px var(--glow); }
.h1s--promise .fy-jab { margin-inline: auto; }

/* ---------- 2. Корпус: цифры на весь экран ---------- */

.h1-stats { position: absolute; inset: 0; z-index: 1; }
.h1-stat { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; opacity: 0; will-change: transform, opacity; }
.h1-stat__num {
  display: block; font-size: min(34vw, 64vh); font-weight: 820; letter-spacing: -.07em; line-height: .8;
  background: linear-gradient(180deg, #fff, rgba(var(--tint-2), .55) 70%, rgba(var(--tint-2), .05)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h1-stat__unit { margin-top: 2vh; font: 600 clamp(16px, 1.8vw, 26px)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.h1-stat__note { position: absolute; left: var(--gutter); bottom: 12vh; max-width: 30ch; text-align: left; font-size: 15px; line-height: 1.5; color: rgba(244, 247, 255, .72); }
.h1-readout { position: absolute; right: calc(var(--gutter) + 30px); bottom: 32px; z-index: 3; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.h1-readout b { color: var(--accent-text); font-weight: 600; }

/* ---------- 3. Цвета: лента панелей ---------- */

.h1-hpin { overflow: hidden; }
.h1-htrack { display: flex; height: 100%; width: max-content; will-change: transform; }
.h1-cpanel {
  position: relative; flex: none; width: 100vw; height: 100%; display: grid; align-content: end; padding: 0 var(--gutter) 20vh;
  background:
    radial-gradient(60% 70% at 72% 50%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 70%),
    radial-gradient(40% 40% at 78% 40%, color-mix(in srgb, var(--c3) 35%, transparent), transparent 70%),
    linear-gradient(160deg, var(--c1), #05070A 80%);
}
.h1-cpanel .eyebrow { color: color-mix(in srgb, var(--c3) 80%, #fff); }
.h1-cpanel__name { margin-top: 8px; font-size: min(13vw, 22vh); font-weight: 820; letter-spacing: -.06em; line-height: .86; text-transform: lowercase; color: #fff; }
.h1-cpanel__note { margin-top: 16px; max-width: 36ch; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.5; }
.h1-swatches { position: absolute; left: var(--gutter); bottom: 7vh; z-index: 3; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(5, 7, 10, .55); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.h1-swatches button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; transition: border-color .25s, transform .25s; }
.h1-swatches i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.h1-swatches button[aria-checked="true"] { border-color: #fff; transform: scale(1.12); }

/* ---------- 4. Иней: макро спинки на весь экран ---------- */

.h1s--frost { min-height: 110vh; min-height: 110svh; overflow: hidden; align-items: stretch; padding: calc(var(--header-h) + 8vh) 0 6vh; touch-action: pan-y; }
.h1-ice { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.h1-ice__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 7, 10, .78) 0%, rgba(5, 7, 10, .45) 38%, transparent 62%), linear-gradient(0deg, rgba(5, 7, 10, .7), transparent 34%); }
.h1-ice__inner { display: grid; grid-template-rows: 1fr auto; gap: 40px; pointer-events: none; }
.h1-ice__inner .h1s__text { align-self: center; max-width: min(560px, 46vw); }
.h1-ice__inner a, .h1-ice__inner button { pointer-events: auto; }
.h1-ice__h { font-size: clamp(48px, 7vw, 120px); text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
.h1s--frost .lead { color: rgba(244, 247, 255, .85); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.h1-ice__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; color: #05070A; background: rgba(240, 248, 255, .9); transition: opacity .6s, transform .6s var(--ease); }
.h1-ice__hint i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #05070A; animation: h1-breath 2.2s var(--ease) infinite; }
@keyframes h1-breath { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.h1-ice__hint.is-hidden { opacity: 0; transform: translateY(8px); }
.h1-ice__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h1-ice__facts li {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 22px;
  background: rgba(8, 12, 20, .42); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.h1-ice__facts b { font-size: 17px; letter-spacing: -.01em; color: #fff; }
.h1-ice__facts span { font-size: 14px; line-height: 1.45; color: rgba(244, 247, 255, .74); }

/* ---------- 5. Экран на всё окно ---------- */

.h1-take {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px;
  background: radial-gradient(70% 60% at 50% 40%, #0F1E44, #04060C 75%);
  opacity: 0; visibility: hidden; transform: scale(1.08);
}
.h1-take__ball { position: absolute; left: 0; right: 0; bottom: 16vh; width: 100%; height: 90px; }
.h1-take__num { display: flex; align-items: baseline; gap: 14px; }
.h1-take__num b { font-size: min(30vw, 52vh); font-weight: 820; letter-spacing: -.07em; line-height: .8; color: #fff; font-variant-numeric: tabular-nums; }
.h1-take__num span { font-size: clamp(20px, 2.4vw, 36px); color: var(--accent-text); }
.h1-take__bar { width: min(560px, 80vw); height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.h1-take__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ice)); transform: scaleX(.006); transform-origin: left; }
.h1-take__note { font-size: clamp(16px, 1.6vw, 22px); color: rgba(244, 247, 255, .8); min-height: 1.4em; }
.h1-take__foot { position: absolute; bottom: 30px; left: 0; right: 0; font-size: 11px; letter-spacing: .08em; color: var(--muted); }

.h1-band { position: relative; z-index: 4; padding: clamp(70px, 12vh, 140px) 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 14, 21, .85), rgba(5, 7, 10, .95)); }
.h1-stb { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.h1-stb__fig svg { width: clamp(120px, 14vw, 190px); height: auto; overflow: visible; }
.h1-stb__body { fill: rgba(16, 22, 34, .9); stroke: var(--line-2); stroke-width: 2; }
.h1-stb__screen { fill: rgba(47, 107, 255, .22); stroke: var(--accent); stroke-width: 1.5; }
.h1-big { font-size: clamp(64px, 10vw, 170px); font-weight: 780; letter-spacing: -.06em; line-height: .88; color: var(--fg); margin-top: 10px; }
.h1-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 26px; max-width: 560px; }
.h1-mini dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1-mini dd { margin-top: 4px; font-size: 15px; color: var(--fg); }

/* ---------- 6. Разлёт ---------- */

.h1-layers { display: grid; gap: 6px; margin-top: 26px; }
.h1-layers li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: rgba(244, 247, 255, .28); transform: translateX(-14px); transition: color .4s, transform .6s var(--ease); }
.h1-layers li span { font-size: 11px; color: var(--muted); }
.h1-layers li.is-on { color: var(--fg); transform: none; }
.h1-layers li.is-on span { color: var(--accent-text); }

/* ---------- 7. Плитки ---------- */

.h1-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; margin-top: 56px; }
.h1-tile { position: relative; padding: 26px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 28, 44, .9), rgba(8, 11, 17, .9)); overflow: hidden; }
.h1-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 50% at var(--mx, 50%) var(--my, 0%), rgba(127, 164, 255, .14), transparent 70%); opacity: 0; transition: opacity .3s; }
.h1-tile:hover::after { opacity: 1; }
.h1-tile--cpu { grid-column: span 3; grid-row: span 2; }
.h1-tile--gpu { grid-column: span 3; grid-row: span 2; }
.h1-tile--vc { grid-column: span 4; }
.h1-tile--nm, .h1-tile--npu { grid-column: span 1; }
.h1-tile__k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.h1-tile__big { margin-top: 8px; font-size: 14px; color: var(--muted); }
.h1-tile__big b { font-size: clamp(40px, 4.6vw, 72px); font-weight: 780; letter-spacing: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.h1-tile__huge { margin-top: 10px; font-size: clamp(30px, 3.2vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--fg); overflow-wrap: anywhere; }
.h1-tile__huge small { font-size: .42em; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.h1-cores__list { display: grid; gap: 9px; margin-top: 22px; }
.h1-cores__list li { display: grid; grid-template-columns: 56px 1fr 80px; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.h1-cores__list i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--ice-2)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.h1-cores__list li.is-prime i { background: linear-gradient(90deg, var(--accent), var(--ice)); box-shadow: 0 0 14px var(--glow); }
.h1-cores__list b { font-weight: 600; color: var(--fg); text-align: right; }
.h1-bento.is-on .h1-cores__list i { transform: scaleX(var(--f)); }
.h1-bento.is-on .h1-cores__list li:nth-child(n+3) i { transition-delay: .15s; }
.h1-bento.is-on .h1-cores__list li:nth-child(n+6) i { transition-delay: .3s; }
.h1-gpu { display: block; width: 100%; aspect-ratio: 3 / 2; margin: 16px 0; }
.h1-tile--vc svg { width: 100%; height: auto; margin-top: 10px; }
.h1-vc__plate { fill: rgba(200, 120, 74, .16); stroke: rgba(227, 165, 122, .5); stroke-width: 1.5; }
.h1-vc__plate--2 { fill: rgba(47, 107, 255, .1); stroke: rgba(127, 164, 255, .45); }
.h1-vc__flow { fill: none; stroke: #FFB98A; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 22; opacity: .3; }
.h1-vc__flow--back { stroke: var(--ice-2); }
.h1-tile--vc.is-on .h1-vc__flow { opacity: 1; animation: h1-flow 1.4s linear infinite; }
.h1-tile--vc.is-on .h1-vc__flow--back { animation-duration: 2s; }
@keyframes h1-flow { to { stroke-dashoffset: -64; } }
.h1-vc__hot { fill: rgba(255, 120, 70, .5); stroke: #FF8A5C; stroke-width: 2; }
.h1-tile--vc.is-on .h1-vc__hot { animation: h1-pulse 1.6s ease-in-out infinite; transform-origin: 300px 110px; }
@keyframes h1-pulse { 50% { transform: scale(1.18); } }
.h1-tile--vc text { fill: #fff; font: 700 13px var(--mono); text-anchor: middle; }

/* ---------- 8. Камеры: видоискатель ---------- */

.h1-vf { position: absolute; inset: 0; z-index: 2; --iris: 0%; clip-path: circle(var(--iris) at 50% 50%); background: #000; visibility: hidden; }
.h1-vf__scene { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 78% 42%; will-change: transform; }
.h1-vf__grid { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(33.3% - .5px), rgba(255, 255, 255, .22) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255, 255, 255, .22) 66.6%, transparent calc(66.6% + .5px)),
  linear-gradient(transparent calc(33.3% - .5px), rgba(255, 255, 255, .22) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255, 255, 255, .22) 66.6%, transparent calc(66.6% + .5px)); }
.h1-vf__focus { position: absolute; left: 74%; top: 36%; width: 90px; height: 90px; translate: -50% -50%; border: 2px solid #FFC93C; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); animation: h1-focus 2.4s var(--ease) infinite; }
@keyframes h1-focus { 0%, 100% { transform: scale(1); } 12% { transform: scale(.84); } 24% { transform: scale(1); } }
.h1-vf__top { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 18px); display: flex; justify-content: center; gap: 24px; font-size: 12px; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.h1-vf__rec::before { content: '●'; margin-right: 6px; color: #FF4D4D; animation: h1-blink 1s steps(2) infinite; }
@keyframes h1-blink { 50% { opacity: 0; } }
.h1-vf__zoom { position: absolute; left: 50%; bottom: 7vh; translate: -50% 0; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.h1-vf__zoom span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: rgba(255, 255, 255, .7); transition: background-color .3s, color .3s, transform .3s; }
.h1-vf__zoom span.is-on { background: rgba(255, 201, 60, .95); color: #141414; transform: scale(1.12); font-weight: 700; }
.h1-cams { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; z-index: 3; width: min(460px, 40vw); min-height: 380px; }
.h1-cam {
  position: absolute; inset: 0 auto auto 0; width: 100%; padding: 22px 24px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 7, 10, .62); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0; transform: translateY(30px) scale(.97); clip-path: inset(0 0 100% 0 round 24px);
  transition: opacity .5s, transform .7s var(--ease), clip-path .8s var(--ease);
}
.h1-cam.is-on { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 24px); }
.h1-cam header span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #FFC93C; }
.h1-cam h3 { margin-top: 6px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.h1-cam dl { display: grid; gap: 7px; margin-top: 14px; }
.h1-cam dl div { display: grid; grid-template-columns: 106px 1fr; gap: 12px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; line-height: 1.45; }
.h1-cam dt { color: rgba(244, 247, 255, .55); }
.h1-cam dd { color: rgba(244, 247, 255, .92); }
.h1-cam__ring { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--kodak); }
.h1-cam__ring::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--kodak); }

/* ---------- 9. Kodak: лента плёнки ---------- */

.h1-cap--kodak .eyebrow { color: var(--kodak); }
.h1-film { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -38%; }
.h1-film__track {
  display: flex; gap: 26px; width: max-content; padding: 26px 26px; background: #0B0B0C; will-change: transform;
  border-block: 1px solid rgba(245, 183, 15, .2); position: relative;
}
.h1-film__track::before, .h1-film__track::after {
  content: ''; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .16) 18px 30px);
}
.h1-film__track::before { top: 7px; }
.h1-film__track::after { bottom: 7px; }
.h1-film__frame { position: relative; flex: none; width: min(62vw, 92vh); aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #000; transform: scale(var(--s, .9)); opacity: var(--o, .55); transition: transform .5s var(--ease), opacity .5s; }
.h1-film__frame.is-on { --s: 1; --o: 1; box-shadow: 0 30px 100px -30px rgba(245, 183, 15, .45); }
.h1-film__frame canvas { display: block; width: 100%; height: 100%; }
.h1-film__frame[data-profile="warm"] canvas { filter: sepia(.22) saturate(1.18) contrast(1.04) brightness(1.04); }
.h1-film__frame[data-profile="portrait"] canvas { filter: saturate(.88) contrast(.94) brightness(1.07) hue-rotate(-6deg); }
.h1-film__frame[data-profile="slide"] canvas { filter: saturate(1.5) contrast(1.22) brightness(.97); }
.h1-film__frame[data-profile="bw"] canvas { filter: grayscale(1) contrast(1.28) brightness(1.02); }
.h1-film__frame[data-profile="cine"] canvas { filter: hue-rotate(14deg) saturate(.86) contrast(1.12) brightness(.95); }
.h1-film__no { position: absolute; left: 16px; top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #FFC93C; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.h1-film__date { position: absolute; right: 18px; bottom: 14px; font-size: clamp(14px, 1.6vw, 22px); font-weight: 700; color: #FF8A2A; text-shadow: 0 0 8px rgba(255, 110, 30, .8); }
.h1-film__bar { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 30px); bottom: 6vh; z-index: 3; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.h1-film__now { font-size: 13px; letter-spacing: .04em; color: var(--kodak); min-width: 300px; }
.h1-film__bar .fy-small { margin: 0; }
.h1s--kodak .btn--accent { background: var(--kodak); color: #141414; }
.h1-film__flash { position: absolute; inset: 0; z-index: 9; background: #fff; opacity: 0; pointer-events: none; }

/* ---------- 10. Citadel Extreme: сейф собирается на прокрутке ---------- */

.h1s--citadel .h1-pin { background: radial-gradient(60% 60% at 50% 55%, rgba(47, 107, 255, .18), transparent 70%); }
.h1-vault { position: absolute; inset: 0; display: grid; place-items: center; --turn: 0; --build: 0; --lock: 0; --alarm: 0; }
.h1-vault__zero {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none;
  opacity: calc(var(--zero, 0) * .9); transform: scale(calc(.8 + var(--zero, 0) * .2));
}
.h1-vault__zero b { font-size: min(70vw, 120vh); font-weight: 820; line-height: .8; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 2px rgba(127, 164, 255, .22); }
.h1-vault__svg { position: relative; width: min(58vh, 50vw); height: auto; overflow: visible; transform: scale(calc(.55 + var(--build) * .45)); }
.h1-vault__r { fill: none; transform-origin: 200px 200px; transition: stroke .3s; }
.h1-vault__r--0 { stroke: rgba(127, 164, 255, .1); stroke-width: 1; stroke-dasharray: 2 6; transform: rotate(calc(var(--turn) * -120deg)); opacity: var(--b0, 0); }
.h1-vault__r--1 { stroke: rgba(160, 190, 255, .28); stroke-width: 10; stroke-dasharray: 30 12; transform: rotate(calc(var(--turn) * 300deg)); opacity: var(--b1, 0); }
.h1-vault__r--2 { stroke: rgba(47, 107, 255, .7); stroke-width: 8; stroke-dasharray: 60 16; transform: rotate(calc(var(--turn) * -420deg)); opacity: var(--b2, 0); }
.h1-vault__r--3 { stroke: rgba(156, 196, 255, .7); stroke-width: 4; stroke-dasharray: 4 10; transform: rotate(calc(var(--turn) * 540deg)); opacity: var(--b3, 0); }
.h1-vault__bolts { transform-origin: 200px 200px; transform: rotate(calc(var(--turn) * 180deg)); opacity: var(--b1, 0); }
.h1-vault__bolts rect { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); transform-box: fill-box; transform-origin: center; }
.h1-vault__core { fill: #0A0E15; stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 calc(10px + var(--lock) * 30px) rgba(47, 107, 255, .9)); }
.h1-vault__label { fill: var(--fg); font: 800 30px var(--sans); text-anchor: middle; }
.h1-vault__sub { fill: var(--accent-text); font: 600 7px var(--mono); letter-spacing: .14em; text-anchor: middle; }
.h1-vault__scan { stroke: #FF4D4D; stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 8px #FF4D4D); }
.h1-vault.is-alarm .h1-vault__scan { animation: h1-scan 1.1s linear infinite; }
@keyframes h1-scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(400px); opacity: 0; } }
.h1-vault.is-alarm .h1-vault__r--2, .h1-vault.is-alarm .h1-vault__r--1 { stroke: rgba(255, 77, 77, .75); }
.h1-vault.is-alarm .h1-vault__core { stroke: #FF4D4D; filter: drop-shadow(0 0 22px rgba(255, 77, 77, .9)); animation: h1-alarm .4s steps(2) infinite; }
.h1-vault.is-alarm .h1-vault__bolts rect { fill: #FF4D4D; filter: drop-shadow(0 0 6px #FF4D4D); }
@keyframes h1-alarm { 50% { stroke: var(--accent); } }
/* слои защиты на орбите вокруг сейфа */
.h1-vault__tags { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.h1-vault__tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  translate: calc(cos(var(--a)) * var(--rad) - 50%) calc(sin(var(--a)) * var(--rad) - 50%);
  --rad: min(37vh, 33vw);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .05em; color: var(--fg);
  background: rgba(5, 10, 30, .7); border: 1px solid rgba(127, 164, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.85); transition: opacity .5s, transform .6s var(--ease);
}
.h1-vault__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.h1-vault__tag.is-on { opacity: 1; transform: none; }
.h1-vault__panel {
  position: absolute; right: calc(var(--gutter) + 30px); bottom: 5vh; z-index: 3; width: min(380px, 30vw);
  padding: 20px 22px; border-radius: 22px; border: 1px solid rgba(127, 164, 255, .25);
  background: rgba(4, 8, 24, .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.h1-vault__panel .btn { width: 100%; }
.h1-vault__panel .fy-jab { margin-top: 14px; font-size: 13px; }
.h1-log { display: grid; gap: 6px; margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: rgba(244, 247, 255, .72); }
.h1-log:empty { display: none; }
.h1-log li { padding-left: 16px; position: relative; animation: h1-in .35s var(--ease) both; }
.h1-log li::before { content: '›'; position: absolute; left: 0; color: #FF6B6B; }
.h1-log li:last-child { color: var(--ice); }
.h1-log li:last-child::before { color: var(--accent-text); }
@keyframes h1-in { from { opacity: 0; transform: translateX(-8px); } }

/* ---------- 11. Рубильник: свой ползунок ---------- */

.h1-rub { display: grid; grid-template-columns: 54px 1fr; gap: 18px; margin-top: 28px; align-items: stretch; --pos: 0; }
.h1-rub__rail { position: relative; border-radius: 27px; background: #0F131B; border: 1px solid var(--line-2); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .6); }
.h1-rub__rail i {
  position: absolute; left: 6px; right: 6px; height: calc((100% - 12px) / 3); top: calc(6px + var(--pos) * (100% - 12px) / 3);
  border-radius: 20px; background: linear-gradient(180deg, #5B8CFF, var(--accent)); box-shadow: 0 6px 20px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: top .45s cubic-bezier(.3, 1.4, .5, 1);
}
.h1-rub__rail i::after { content: ''; position: absolute; inset: 30% 30%; background: repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, .35) 3px 5px); border-radius: 2px; }
.h1-rub__opts { display: grid; gap: 8px; }
.h1-rub__opts button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 14, 21, .6); color: var(--muted); font-size: 15px; text-align: left; cursor: pointer; transition: color .25s, border-color .25s, background-color .25s; }
.h1-rub__opts button b { font: 700 13px var(--mono); color: var(--accent-text); }
.h1-rub__opts button[aria-checked="true"] { color: var(--fg); border-color: rgba(127, 164, 255, .5); background: rgba(47, 107, 255, .1); }
.h1-rub__list { display: grid; gap: 7px; margin-top: 20px; max-width: 420px; font-size: 13px; }
.h1-rub__list li { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); transition: color .3s, background-color .3s, border-color .3s; }
.h1-rub__list b { color: var(--accent-text); font-weight: 600; }
.h1-rub__list li.is-off { color: rgba(244, 247, 255, .35); background: rgba(255, 77, 77, .05); border-color: rgba(255, 77, 77, .25); }
.h1-rub__list li.is-off b { color: #FF6B6B; }

/* ---------- 12. Фонарь: темнота с лучом ---------- */

.h1s--torch { overflow: hidden; }
.h1-dark {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #000;
  --bx: 26%; --by: 30%; --r: 0%;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at var(--bx) var(--by), transparent var(--r), rgba(0, 0, 0, .55) calc(var(--r) + 12%), #000 calc(var(--r) + 34%));
  mask-image: radial-gradient(ellipse 60% 80% at var(--bx) var(--by), transparent var(--r), rgba(0, 0, 0, .55) calc(var(--r) + 12%), #000 calc(var(--r) + 34%));
  opacity: .92;
}
.h1s--torch .h1s__inner { z-index: 6; }
.h1s--torch .fy-switch { position: relative; z-index: 7; }
.h1s--torch[data-torch-color="red"] .h1-h2 { color: #FF8A8A; }

/* ---------- 13. CamelOS ---------- */

.h1-caravan { margin-top: 26px; max-width: 440px; }
.h1-caravan svg { width: 100%; height: auto; }
.h1-caravan__path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 8; }
.h1-caravan__dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.h1-caravan__dot--b { fill: var(--ice); }
.h1-caravan__dev circle, .h1-caravan__dev rect { fill: #0A0E15; stroke: var(--line-2); stroke-width: 2; }
.h1-caravan__dev--h1 rect { stroke: var(--accent); }
.h1-caravan__dev text { fill: var(--fg); font: 700 12px var(--mono); text-anchor: middle; }

/* ---------- 14. Характеристики ---------- */

.h1-specgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.h1-specgrid .h1-tile { min-height: 190px; display: grid; align-content: space-between; }
.h1-fullspec { margin-top: 26px; border: 1px solid var(--line); border-radius: 24px; padding: 6px 24px; background: rgba(8, 11, 17, .8); }
.h1-fullspec summary { cursor: pointer; padding: 16px 0; font-size: 13px; letter-spacing: .06em; color: var(--accent-text); list-style: none; }
.h1-fullspec summary::after { content: ' +'; }
.h1-fullspec[open] summary::after { content: ' −'; }
.h1-fullspec .spec { margin-top: 0; margin-bottom: 14px; }
.h1s--specs .fy-jab { margin-top: 20px; }

/* ---------- 15. Цена ---------- */

.h1s--price .fy-switch { margin-top: 22px; }
.h1s--price .fy-hex--big { font-size: clamp(48px, 6vw, 96px); }

/* Без JS — всё видно, демо прячутся */
html:not(.js) .h1-frost, html:not(.js) .h1-rail, html:not(.js) .h1-progress, html:not(.js) .h1-vault__demo { display: none; }
html:not(.js) .h1-stat, html:not(.js) .h1-cam { position: static; opacity: 1; transform: none; clip-path: none; }
html:not(.js) .h1-pin { height: auto; }

@media (prefers-reduced-motion: reduce) {
  .h1-grain, .h1-ticker__track, .h1-scroll i, .h1-vc__flow, .h1-vc__hot, .h1-vf__focus, .h1-vf__rec::before { animation: none !important; }
}

@media (max-width: 1100px) {
  .h1-rail { display: none; }
  .h1-header__model { display: none; }
  .h1-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h1-tile--cpu, .h1-tile--gpu, .h1-tile--vc { grid-column: span 2; grid-row: auto; }
  .h1-tile--nm, .h1-tile--npu { grid-column: span 1; }
}

@media (max-width: 760px) {
  :root[data-h1] .fy-header { gap: 12px; }
  :root[data-h1] .fy-back { white-space: nowrap; }
  :root[data-h1] .fy-back--osmium { display: none; }
  .h1s__inner, .h1-intro { padding: 0 var(--gutter); }
  .h1s { padding-top: calc(var(--header-h) + 40px); }
  .h1-intro__grid, .h1-split, .h1-stb { grid-template-columns: 1fr; }
  .h1-intro__side { justify-self: start; }
  .h1-hero__big { font-size: clamp(40px, 12vw, 64px); }
  .h1s__text, .fy--left .h1s__text { max-width: none; margin-left: 0; }
  .h1-ice__inner .h1s__text { max-width: none; }
  .h1-ice__facts { grid-template-columns: 1fr; }
  .h1-ice__shade { background: linear-gradient(0deg, rgba(5, 7, 10, .85), rgba(5, 7, 10, .35) 60%, rgba(5, 7, 10, .55)); }
  .h1-vault__svg { width: 86vw; translate: 0 -6vh; }
  .h1-vault__tag { --rad: 34vw; font-size: 9px; padding: 6px 9px; white-space: normal; max-width: 34vw; text-align: center; line-height: 1.3; }
  .h1-vault__panel { left: var(--gutter); right: var(--gutter); width: auto; bottom: 3vh; padding: 14px 16px; }
  .h1-vault__panel .fy-jab { display: none; }
  .h1-cap { left: var(--gutter); right: var(--gutter); max-width: none; translate: none; }
  .h1-cap--center { left: var(--gutter); }
  .h1-cap__lead { display: none; }
  .h1-stat__note { bottom: 9vh; right: var(--gutter); }
  .h1-cpanel { padding-bottom: 22vh; }
  .h1-cpanel__name { font-size: 18vw; }
  .h1-cams { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 14vh; translate: none; min-height: 300px; }
  .h1-cam { padding: 16px 18px; }
  .h1-cam dl div { grid-template-columns: 88px 1fr; font-size: 12.5px; }
  .h1-cam dl div:nth-child(n+5) { display: none; }
  .h1-vf__top { font-size: 10px; gap: 12px; }
  .h1-film__frame { width: 82vw; }
  .h1-film__bar { right: var(--gutter); bottom: 4vh; }
  .h1-film__now { min-width: 0; }
  .h1-specgrid { grid-template-columns: 1fr 1fr; }
  .h1-mini { grid-template-columns: 1fr; }
  .h1-take__ball { bottom: 20vh; }
  .h1-readout { display: none; }
  .fy-hex--big .fy-hex__tip { min-width: min(250px, calc(100vw - 32px)); }
}
