/* Camera0 — сайт. Цвета и формы — из приложения: перивинкль, роза, приглушённые цвета Google, тема Astro/OLED. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations"), url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08070f;
  --bg-2: #0e0c1d;
  --ink: #14122b;
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f3f2fb;
  --muted: #a9a7c3;
  --dim: #85839f;
  --accent: #9fa8f2;
  --rose: #d59bc0;
  --violet: #8e7cc3;
  --gb: #6c8edb;
  --gr: #d9786e;
  --gy: #d8b65e;
  --gg: #6fb28a;
  --teal: #6cc3c8;
  --grad: linear-gradient(90deg, var(--gb), var(--accent) 50%, var(--rose));
  --iris: conic-gradient(from 0deg, #8fb0ff, #b49cf0, #f59a8e, #f5d26b, #86ddaa, #8fb0ff);
  --glow: 1;
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --hdr: 68px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
:root[data-theme="oled"] {
  --bg: #000;
  --bg-2: #000;
  --ink: #000;
  --card: rgba(255, 255, 255, .03);
  --glow: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .6s var(--ease);
}
/* Подложка как themeBackground() в приложении: индиго + мягкие пятна цветов Google снизу и сверху. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(80vw 70vh at 8% 100%, rgba(108, 142, 219, .14), transparent 70%),
    radial-gradient(70vw 60vh at 96% 100%, rgba(111, 178, 138, .09), transparent 70%),
    radial-gradient(70vw 60vh at 80% 0%, rgba(217, 120, 110, .07), transparent 70%),
    linear-gradient(rgba(20, 18, 43, .55), rgba(20, 18, 43, .55));
  opacity: var(--glow);
  transition: opacity .6s var(--ease);
}
/* Лёгкое зерно плёнки. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.i18n-wait body { visibility: hidden; }

img, svg, canvas, video { display: block; max-width: 100%; }
svg { fill: currentColor; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgba(159, 168, 242, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(100% - clamp(32px, 6vw, 96px), 1220px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ── типографика ── */
.h2 {
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 780;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { margin-top: 22px; max-width: 62ch; font-size: clamp(17px, 1.55vw, 19.5px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.grad-text {
  background: linear-gradient(90deg, #8fb0ff, #b49cf0 25%, #f59a8e 50%, #f5d26b 70%, #86ddaa 85%, #8fb0ff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.sec { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.sec__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ── кнопки ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn__ico { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; opacity: .7; margin-bottom: 2px; }
.btn--grad, .btn--store {
  color: #15132a;
  background: var(--grad);
  box-shadow: 0 10px 40px -10px rgba(159, 168, 242, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--grad:hover, .btn--store:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(213, 155, 192, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--store { font-size: 19px; letter-spacing: -.01em; }
.btn--store .btn__ico { width: 24px; height: 24px; }
.btn--ghost, .btn--os {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover, .btn--os:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--os { font-size: 17px; }
.btn[data-soon] { cursor: default; opacity: .72; }
.btn[data-soon]:hover { transform: none; background: rgba(255, 255, 255, .045); }
.btn[data-soon]::after {
  content: attr(data-soon);
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #15132a;
  background: var(--grad);
}

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip--glass { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot--live { background: var(--gg); box-shadow: 0 0 0 4px rgba(111, 178, 138, .18); animation: pulse 2.4s ease-in-out infinite; }
.dot--gold { background: var(--gy); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111, 178, 138, 0); } }

/* ── прогресс прокрутки ── */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 60;
    background: var(--grad);
    transform-origin: 0 50%;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ── шапка ── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background-color .4s var(--ease), border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(9, 8, 18, .62); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
:root[data-theme="oled"] .hdr.is-solid { background: rgba(0, 0, 0, .72); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .25s, background-color .25s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--text); background: rgba(159, 168, 242, .12); }
.hdr__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hdr__end { margin-left: 0; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; }
.lang span { padding: 6px 10px; border-radius: 999px; color: var(--dim); transition: color .25s, background-color .25s; }
:root[lang="ru"] .lang [data-l="ru"], :root[lang="en"] .lang [data-l="en"] { color: var(--ink); background: var(--accent); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.burger svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.nav-open .burger svg { transform: rotate(180deg); }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: calc(.45 + var(--glow) * .55); }
.aurora i { position: absolute; border-radius: 50%; animation: drift 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(108, 142, 219, .32), transparent); }
.aurora i:nth-child(2) { width: 60vmax; height: 60vmax; right: -20vmax; top: 10vmax; background: radial-gradient(closest-side, rgba(213, 155, 192, .22), transparent); animation-duration: 26s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 50vmax; height: 50vmax; left: 20vmax; bottom: -32vmax; background: radial-gradient(closest-side, rgba(111, 178, 138, .16), transparent); animation-duration: 30s; animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__title { margin-top: 26px; font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.048em; font-weight: 800; }
.hero__lead { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.55vw, 20px); color: var(--muted); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__note { margin-top: 22px; font-size: 14px; color: var(--dim); }
.hero__stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 560px; }
.halo {
  position: absolute;
  width: min(118%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--iris);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 66%, #000 69%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 58%, #000 66%, #000 69%, transparent 100%);
  opacity: calc(.25 + var(--glow) * .3);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); animation: bob 2.6s ease-in-out infinite; }
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bob { 50% { transform: translateY(6px); } }

.float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(20, 18, 43, .55);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 60px);
}
.float--a { top: 14%; left: 2%; }
.float--b { top: 28%; right: 0; animation-delay: -2s; }
.float--c { bottom: 24%; left: -2%; animation-delay: -4s; }
.float--d { bottom: 10%; right: 6%; animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ── телефон с интерфейсом камеры ── */
.phone {
  --ry: -14deg;
  --rx: 6deg;
  position: relative;
  z-index: 2;
  width: clamp(250px, 27vw, 330px);
  aspect-ratio: 9 / 19.5;
  container-type: inline-size;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.phone__frame {
  position: absolute;
  inset: 0;
  padding: 2.6cqw;
  border-radius: 14cqw;
  background: linear-gradient(150deg, #34314f, #0d0c17 38%, #0d0c17 70%, #2a2840);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px #05040b, 0 60px 120px -30px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(108, 142, 219, .35);
}
.phone__screen { position: relative; height: 100%; border-radius: 11.6cqw; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.phone__screen::before { content: ""; position: absolute; top: 3.4cqw; left: 50%; width: 7cqw; height: 7cqw; margin-left: -3.5cqw; border-radius: 50%; background: #0b0b10; box-shadow: inset 0 0 0 1px #1c1c26; z-index: 5; }
.cam-top { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; padding: 13.5cqw 3cqw 4cqw; }
.cp { display: inline-grid; place-items: center; height: 7.6cqw; padding: 0 2.6cqw; border-radius: 99px; background: #1c1b22; border: .35cqw solid #2d2c36; font-size: 3.3cqw; font-weight: 700; color: #f2f2f5; white-space: nowrap; transition: color .4s, background-color .4s, border-color .4s; }
.cp--ico { width: 7.6cqw; padding: 0; }
.cp svg { width: 4.2cqw; height: 4.2cqw; }
.cp--flash { color: var(--gy); background: #2c2614; border-color: #463c1c; }
.cp--raw { color: #6c6a78; }
.cam-view { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #111; }
.cam-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: filter .8s var(--ease), transform .8s var(--ease); }
.ov { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.ov-focus__box { position: absolute; left: 34%; top: 36%; width: 30%; aspect-ratio: 1; border: .6cqw solid #e6c35c; transition: transform .6s var(--spring); transform: scale(1.35); }
.ov-focus__ev { position: absolute; left: 68%; top: 36%; width: .5cqw; height: 30%; background: linear-gradient(#e6c35c, rgba(230, 195, 92, .3)); border-radius: 1cqw; }
.ov-focus__ev::before { content: ""; position: absolute; left: 50%; top: 18%; width: 4cqw; height: 4cqw; margin-left: -2cqw; border-radius: 50%; background: #e6c35c; }
.ov-pad { display: grid; place-content: center; text-align: center; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.ov-pad__title { font-size: 8cqw; font-weight: 800; letter-spacing: .14em; }
.ov-pad__sub { font-size: 3.6cqw; font-weight: 600; opacity: .9; }
.ov-portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-long i { position: absolute; left: -10%; width: 120%; height: 1cqw; border-radius: 2cqw; filter: blur(.25cqw); transform: rotate(-8deg); }
.ov-long i:nth-child(1) { top: 66%; background: linear-gradient(90deg, transparent, #ff6b5e 30%, #ffd2a6 70%, transparent); }
.ov-long i:nth-child(2) { top: 71%; background: linear-gradient(90deg, transparent, #fff3d6 25%, #ffe2a8 75%, transparent); }
.ov-long i:nth-child(3) { top: 75%; height: .6cqw; background: linear-gradient(90deg, transparent, #ff8a6b 40%, transparent); }
.ov-scale, .ov-pro { position: absolute; left: 50%; bottom: 4cqw; translate: -50% 0; padding: 1.6cqw 3.6cqw; border-radius: 99px; background: rgba(0, 0, 0, .55); font-size: 3.3cqw; font-weight: 600; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.ov-scale b, .ov-pro b { color: var(--accent); }
.ov-pro { display: flex; gap: 2.8cqw; }
.phone[data-mode="clean"] .ov-focus, .phone[data-mode="pretty"] .ov-focus { opacity: 1; }
.phone[data-mode="clean"] .ov-focus__box, .phone[data-mode="pretty"] .ov-focus__box { transform: scale(1); }
.phone[data-mode="pretty"] .ov-pad { opacity: 1; animation: padfade 2.6s var(--ease) forwards; }
@keyframes padfade { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
.phone[data-mode="pretty"] .cam-img { filter: saturate(1.3) contrast(1.06) brightness(1.05) hue-rotate(-8deg); }
.phone[data-mode="portrait"] .ov-portrait { opacity: 1; }
.phone[data-mode="portrait"] .cam-img { filter: blur(1.4cqw) brightness(.9); transform: scale(1.12); }
.phone[data-mode="long"] .ov-long { opacity: 1; }
.phone[data-mode="long"] .cam-img { filter: brightness(.6) saturate(.9); }
.phone[data-mode="night"] .ov-night { opacity: 1; }
.phone[data-mode="night"] .cam-img { filter: brightness(.48) saturate(.75) hue-rotate(18deg); }
.phone[data-mode="pro"] .ov-pro { opacity: 1; }
.phone[data-mode="pro"] .cam-img { filter: contrast(1.1) saturate(.95) sepia(.12); }
.cam-bottom { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; background: #000; transition: background-color .6s; }
:root[data-theme="astro"] .cam-bottom { background: linear-gradient(#0a0914, #14122b); }
.cam-rainbow { position: absolute; inset: 0 0 auto; height: .45cqw; background: linear-gradient(90deg, var(--gb), var(--gr), var(--gy), var(--gg)); opacity: .55; }
.cam-zoom { display: flex; gap: 1cqw; padding: 1.4cqw; border-radius: 99px; background: #26252c; transition: opacity .4s; }
.cam-zoom span { display: grid; place-items: center; width: 10.4cqw; height: 10.4cqw; border-radius: 50%; font-size: 3.6cqw; font-weight: 700; color: #e9e9ee; }
.cam-zoom .on { background: #101015; color: var(--accent); }
.phone[data-mode="pro"] .cam-zoom { opacity: .35; }
.cam-modes { width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.cam-modes__track { display: flex; gap: 5.6cqw; width: max-content; transition: transform .7s var(--ease); }
.cam-modes__track span { position: relative; font-size: 3.9cqw; font-weight: 750; letter-spacing: .12em; color: #e4e4ea; transition: color .4s; }
.cam-modes__track span.on { color: var(--accent); }
.cam-modes__track span[data-m="pretty"].on::after { content: ""; position: absolute; right: -2cqw; top: -.6cqw; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--rose); }
.cam-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 7cqw; }
.cam-thumb { width: 11cqw; height: 11cqw; border-radius: 2.6cqw; overflow: hidden; border: .4cqw solid rgba(255, 255, 255, .5); background: #222; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
.cam-shutter { position: relative; width: 19cqw; height: 19cqw; border-radius: 50%; border: 1.1cqw solid #fff; display: grid; place-items: center; transition: transform .25s var(--spring); }
.cam-shutter i { width: 80%; height: 80%; border-radius: 50%; background: #fff; transition: background-color .4s, border-radius .4s, width .4s, height .4s; }
.cam-shutter.press { transform: scale(.88); }
.phone[data-mode="pretty"] .cam-shutter i { background: #e9e7ff; }
.phone[data-mode="pretty"] .cam-shutter { border-color: #fff; box-shadow: -1.1cqw 0 0 -0.2cqw rgba(159, 168, 242, .6); }
.cam-flip { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: #1d1c24; color: #ddd; }
.cam-flip svg { width: 5.6cqw; height: 5.6cqw; }

/* ── бегущая строка ── */
.marquee { position: relative; overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: clamp(28px, 4vw, 56px); width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-size: clamp(30px, 4.6vw, 60px); font-weight: 800; letter-spacing: .06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.marquee span:nth-child(3n + 2) { color: rgba(159, 168, 242, .9); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── режимы ── */
.modes { display: grid; grid-template-columns: 1fr minmax(300px, 380px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.modes__cap { margin: 0 0 10px 18px; font-size: 13px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.modes__list a { position: relative; display: block; padding: 14px 18px; border-radius: 18px; border: 1px solid transparent; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.modes__list a b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .14em; transition: color .3s; }
.modes__list a span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.modes__list a:hover { background: var(--card); border-color: var(--line); }
.modes__list a.is-on { background: var(--card-2); border-color: var(--line-2); transform: translateX(4px); }
.modes__list[data-group="video"] a.is-on { transform: translateX(-4px); }
.modes__list a.is-on b { color: var(--accent); }
.modes__list a.is-on::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad); }
.mp { position: relative; padding: 14px; border-radius: 34px; background: linear-gradient(#0c0b17, #14122b); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); touch-action: pan-x; user-select: none; -webkit-user-select: none; outline-offset: 6px; }
:root[data-theme="oled"] .mp { background: #000; }
.mp__view { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #111; }
.mp__view img { width: 100%; height: 100%; object-fit: cover; transition: filter .7s var(--ease), transform .7s var(--ease); }
.mp__badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.recdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff453a; animation: blink 1.2s steps(2) infinite; }
.mp[data-group="photo"] .mp__badge .recdot { display: none; }
@keyframes blink { 50% { opacity: .25; } }
.mp__strips { position: relative; height: 46px; margin-top: 12px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.mp__strip { position: absolute; left: 50%; top: 0; height: 46px; display: flex; align-items: center; gap: 22px; width: max-content; transition: transform .6s var(--ease), opacity .5s; }
.mp__strip span { font-size: 14.5px; font-weight: 750; letter-spacing: .13em; color: #e4e4ea; cursor: pointer; transition: color .3s; }
.mp__strip span.on { color: var(--accent); }
.mp__strip--video span.on { color: #ff8a80; }
.mp[data-group="photo"] .mp__strip--video { transform: translate(var(--tx, -50%), 46px); opacity: 0; }
.mp[data-group="photo"] .mp__strip--photo { transform: translate(var(--tx, -50%), 0); }
.mp[data-group="video"] .mp__strip--photo { transform: translate(var(--tx, -50%), -46px); opacity: 0; }
.mp[data-group="video"] .mp__strip--video { transform: translate(var(--tx, -50%), 0); }
.mp__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; }
.mp .cam-thumb { width: 44px; height: 44px; border-radius: 12px; border-width: 2px; }
.mp .cam-shutter { width: 74px; height: 74px; border-width: 4px; }
.mp[data-group="video"] .cam-shutter i { width: 70%; height: 70%; background: #ff453a; }
.mp__swap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1d1c24; color: #ddd; transition: transform .5s var(--spring), background-color .3s; }
.mp__swap:hover { background: #2a2934; }
.mp__swap svg { width: 22px; height: 22px; }
.mp[data-group="video"] .mp__swap { transform: rotate(180deg); }
.mp__hint { text-align: center; font-size: 13px; color: var(--dim); padding-bottom: 4px; }
.mp[data-m="pretty"] .mp__view img, .mp[data-m="vpretty"] .mp__view img { filter: saturate(1.3) contrast(1.06) brightness(1.05) hue-rotate(-8deg); }
.mp[data-m="portrait"] .mp__view img { filter: blur(6px) brightness(.9); transform: scale(1.08); }
.mp[data-m="long"] .mp__view img { filter: brightness(.65); }
.mp[data-m="night"] .mp__view img, .mp[data-m="vnight"] .mp__view img { filter: brightness(.5) saturate(.75) hue-rotate(18deg); }
.mp[data-m="pro"] .mp__view img { filter: contrast(1.12) sepia(.14); }
.mp[data-m="slow"] .mp__view img { transform: scale(1.18); }
.mp[data-m="lapse"] .mp__view img { filter: saturate(1.2) brightness(1.08); transform: scale(1.06) translateX(-2%); }
.mp[data-m="video"] .mp__view img { transform: scale(1.04); }

/* ── Pretty: студия стиля ── */
.studio { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 36px; background: var(--card); border: 1px solid var(--line); }
.studio__view { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #0f0d1e url(../img/scene-640.webp) center / cover; touch-action: pan-y; }
.studio__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__page { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: scale(.96); }
.studio__page.show { opacity: 1; transform: none; }
.studio__page b { font-size: clamp(30px, 5vw, 58px); font-weight: 800; letter-spacing: .16em; }
.studio__page span { font-size: clamp(14px, 1.5vw, 18px); font-weight: 600; opacity: .92; }
.studio__tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; }
.studio__tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.studio.is-orig .studio__tag i { background: #fff; }
.studio__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pages pad" "side side"; gap: 18px 16px; align-content: center; padding: 8px 6px; }
.studio__pages { grid-area: pages; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.studio__preset { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 14px 7px 10px; border-radius: 99px; background: #1d1c26; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.studio__preset svg { width: 16px; height: 16px; color: var(--pc, var(--accent)); }
.studio__pages [role="tab"] { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 6px; border-radius: 12px; font-size: 16px; font-weight: 600; color: #c9c8d8; transition: color .25s, background-color .25s; }
.studio__pages [role="tab"] i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s var(--spring); }
.studio__pages [role="tab"].dirty i { opacity: 1; transform: none; }
.studio__pages [role="tab"][aria-selected="true"] { color: var(--accent); font-weight: 750; }
.studio__pages [role="tab"]:hover { background: rgba(255, 255, 255, .05); }
.studio__padwrap { grid-area: pad; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.studio__read { min-height: 44px; display: flex; flex-direction: column; align-items: center; font-size: 15px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.studio__help { font-size: 12.5px; color: var(--dim); }
.pad {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1;
  border-radius: 30px;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .28) 1.2px, transparent 1.6px) 0 0 / 12.5% 12.5%,
    linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) 0 50% / 100% 1px no-repeat,
    linear-gradient(135deg, #4a4870, #24223f 55%, #2c2a48);
  background-position: 6.25% 6.25%, 50% 0, 0 50%, 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 50px -20px rgba(0, 0, 0, .8);
  outline-offset: 4px;
}
.pad:active { cursor: grabbing; }
.pad__x, .pad__y { position: absolute; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); pointer-events: none; }
.pad__x { left: 50%; bottom: 8px; translate: -50% 0; }
.pad__y { left: 8px; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; transform: rotate(180deg); }
.pad__knob { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(159, 168, 242, .55), 0 0 0 14px rgba(159, 168, 242, .18), 0 6px 18px rgba(0, 0, 0, .5); pointer-events: none; transition: left .45s var(--spring), top .45s var(--spring); }
.pad.drag .pad__knob { transition: none; }
.studio__side { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14px; font-weight: 650; transition: background-color .25s, border-color .25s, transform .3s var(--spring); }
.presets button svg { width: 18px; height: 18px; color: var(--c); }
.presets button:hover { background: rgba(255, 255, 255, .08); }
.presets button[aria-checked="true"] { background: rgba(159, 168, 242, .14); border-color: rgba(159, 168, 242, .45); }
.presets button:active { transform: scale(.95); }
.hold { align-self: stretch; padding: 13px 18px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: 14.5px; font-weight: 650; color: var(--muted); user-select: none; -webkit-user-select: none; touch-action: none; transition: background-color .25s, color .25s; }
.hold:hover, .hold.on { background: rgba(255, 255, 255, .06); color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts li { position: relative; padding: 22px 4px 0; }
.facts li::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.facts b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ── две колонки ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(36px, 6vw, 96px); }
.split--rev .split__copy { order: 2; }
.ticks { display: grid; gap: 12px; margin-top: 30px; }
.ticks li { position: relative; padding-left: 34px; font-size: 16px; color: var(--muted); line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2315132a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad);
}

/* ── элементы управления ── */
.ctrl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 18px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ctrl__row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; font-weight: 650; color: var(--muted); }
.ctrl__row output { font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ctrl .range { grid-column: 1; }
.ctrl .range:last-child, .ctrl .range + .ctrl__scale { grid-column: 1 / -1; }
.ctrl__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: -4px; }
.range { --val: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gb), var(--accent), var(--rose)) 0 0 / var(--val) 100% no-repeat, rgba(255, 255, 255, .12); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--grad); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(159, 168, 242, .35), 0 4px 12px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(159, 168, 242, .35), 0 4px 12px rgba(0, 0, 0, .5); }
.range:active::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(159, 168, 242, .3), 0 4px 12px rgba(0, 0, 0, .5); }
.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 750; transition: background-color .3s, border-color .3s, color .3s; }
.toggle i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dim); transition: background .3s, border-color .3s; }
.toggle[aria-pressed="true"] { background: rgba(159, 168, 242, .14); border-color: rgba(159, 168, 242, .5); color: var(--accent); }
.toggle[aria-pressed="true"] i { border-color: transparent; background: var(--grad); }
.seg { display: inline-flex; padding: 4px; margin-top: 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.seg button { padding: 9px 20px; border-radius: 99px; font-size: 14px; font-weight: 750; letter-spacing: .06em; color: var(--muted); transition: background-color .3s, color .3s; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--ink); }

/* ── Portrait ── */
.bokeh { --blur: .45; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #2a2350, #0d0b1a 70%); isolation: isolate; }
.bokeh__bg { position: absolute; inset: -6%; filter: blur(calc(var(--blur) * 22px)); transform: scale(calc(1 + var(--blur) * .06)); }
.bokeh__bg i { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 80%, #fff) 0 30%, var(--c) 55%, transparent 71%); opacity: calc(.95 - var(--blur) * .35); scale: calc(.22 + var(--blur) * 1.05); mix-blend-mode: screen; }
.bokeh__person { position: absolute; left: 0; right: 0; bottom: 0; height: 96%; width: 100%; filter: drop-shadow(0 0 30px rgba(0, 0, 0, .5)); transition: filter .5s; }
.bokeh__tag { position: absolute; left: 14px; top: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(0, 0, 0, .45); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.bokeh.is-pretty .bokeh__bg { filter: blur(calc(var(--blur) * 22px)) saturate(1.35) hue-rotate(-12deg); }
.bokeh.is-pretty .bokeh__person { filter: drop-shadow(0 0 30px rgba(0, 0, 0, .5)) saturate(1.2) brightness(1.06); }
.bokeh.is-pretty .bokeh__tag span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Night ── */
.sec--night { background: linear-gradient(transparent, rgba(7, 6, 18, .7) 20%, rgba(7, 6, 18, .7) 80%, transparent); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #cfd6ff, transparent); background-size: 340px 340px; -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.stack { position: relative; border-radius: var(--r); overflow: hidden; background: #05040c; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line); }
.stack canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.stack__hud { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(5, 4, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stack__hud b { color: var(--text); }
.stack__mode { padding: 3px 10px; border-radius: 99px; background: #5b4f8f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.stack.is-astro .stack__mode { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); text-shadow: 0 0 8px rgba(255, 255, 255, .9); }
.stack__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.stack__bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s linear; }
.iso { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.iso span { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); }
.iso .on { color: var(--accent); border-color: rgba(159, 168, 242, .4); }

/* ── Long-exp ── */
.trails { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #070611; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line); }
.trails canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#trailsFx { mix-blend-mode: screen; }
.trails__ring { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; }
.trails__ring circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 3; }
.trails__ring .arc { stroke: #fff; stroke-dasharray: 107; stroke-dashoffset: 107; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; animation: arc var(--exp, 2s) linear infinite; }
@keyframes arc { to { stroke-dashoffset: 0; } }
.range--ticks { --val: 60%; }

/* ── PRO ── */
.pro { max-width: 920px; margin-inline: auto; padding: 18px; border-radius: 36px; background: var(--card); border: 1px solid var(--line); }
.pro__view { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0f0d1e url(../img/scene-640.webp) center / cover; }
.pro__view canvas:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.pro__grain { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; opacity: 0; pointer-events: none; }
.pro__meter { position: absolute; right: 14px; top: 14px; display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 14px; border-radius: 99px; background: rgba(0, 0, 0, .5); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pro__meter b { font-size: 15px; color: var(--text); letter-spacing: 0; }
.pro__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pro__bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.pro__bar small { font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: .04em; }
.pro__bar b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pro__bar b.man { color: var(--accent); }
.pro__bar button[aria-selected="true"] { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.pro__dial { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pro__auto { flex: none; width: 48px; height: 48px; border-radius: 50%; font-weight: 800; font-size: 16px; border: 1px solid var(--line-2); color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.pro__auto[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: transparent; }
.ruler { position: relative; flex: 1; height: 64px; overflow: hidden; border-radius: 16px; background: rgba(0, 0, 0, .25); cursor: grab; touch-action: pan-y; -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); user-select: none; -webkit-user-select: none; }
.ruler.drag { cursor: grabbing; }
.ruler__track { position: absolute; left: 50%; top: 0; bottom: 0; display: flex; align-items: flex-start; will-change: transform; }
.ruler__track span { position: relative; flex: none; width: 22px; height: 100%; }
.ruler__track span::before { content: ""; position: absolute; left: 50%; top: 10px; width: 1.5px; height: 12px; background: rgba(255, 255, 255, .3); translate: -50% 0; }
.ruler__track span.major::before { height: 20px; background: rgba(255, 255, 255, .7); }
.ruler__track span em { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ruler__needle { position: absolute; left: 50%; top: 6px; width: 3px; height: 28px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px rgba(159, 168, 242, .8); }
.ruler.is-auto .ruler__track { opacity: .35; }

/* ── видео ── */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rec { grid-column: 1 / 4; grid-row: 1 / 3; position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; background: #000; isolation: isolate; }
.rec__feeds { position: absolute; inset: 0; transition: filter .45s var(--ease), transform .45s var(--ease); }
.rec.is-switching .rec__feeds { filter: blur(22px) brightness(.85); transform: scale(1.06); }
.rec__feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .01s .3s; }
.rec__feed--front { opacity: 0; background: radial-gradient(28% 36% at 50% 46%, #e7b9a3, #c98f7a 60%, transparent 62%), radial-gradient(44% 30% at 50% 100%, #3b3478, transparent 72%), radial-gradient(90% 90% at 30% 20%, #6c8edb, #2a2350 70%); }
.rec.is-front .rec__feed--front { opacity: 1; }
.rec.is-front .rec__feed--back { opacity: 0; }
.rec__hud { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; }
.rec__time, .rec__spec { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px; background: rgba(0, 0, 0, .5); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rec__controls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 36px; }
.rec__torch, .rec__flip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; }
.rec__torch { color: var(--gy); }
.rec__torch svg, .rec__flip svg { width: 22px; height: 22px; }
.rec__flip { transition: transform .5s var(--spring), background-color .25s; }
.rec__flip:hover { background: rgba(0, 0, 0, .7); }
.rec.is-front .rec__flip { transform: rotate(180deg); }
.rec__btn { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.rec__btn i { width: 28px; height: 28px; border-radius: 7px; background: #ff453a; }
.rec__hint { position: absolute; left: 0; right: 0; bottom: 100px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vcard { position: relative; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.vcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.vcard h3 { font-size: 19px; font-weight: 780; letter-spacing: -.01em; }
.vcard p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.vcard__art { position: relative; height: 70px; margin: -4px 0 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.ball { position: absolute; left: 8%; width: 14px; height: 14px; border-radius: 50%; animation: roll 1s ease-in-out infinite alternate; }
.ball--fast { top: 18px; background: var(--dim); }
.ball--slow { top: 40px; background: var(--grad); animation-duration: 4s; box-shadow: 0 0 14px rgba(159, 168, 242, .7); }
@keyframes roll { to { left: calc(92% - 14px); } }
.vcard--lapse .sun { position: absolute; left: 10%; bottom: -14px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(#fff6da, #f5d26b 60%, #f59a8e); box-shadow: 0 0 22px rgba(245, 210, 107, .7); animation: sunarc 3s ease-in-out infinite; }
@keyframes sunarc { 0% { transform: translate(0, 0); } 50% { transform: translate(180%, -48px); } 100% { transform: translate(360%, 0); } }
.vcard--lapse .cloud { position: absolute; top: 12px; left: -30%; width: 46px; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .35); animation: cloud 1.4s linear infinite; }
.vcard--lapse .cloud--2 { top: 34px; width: 30px; animation-duration: 1.9s; animation-delay: -.7s; }
@keyframes cloud { to { left: 110%; } }

/* ── под капотом ── */
.fg { padding: clamp(22px, 3vw, 36px); border-radius: 32px; background: var(--card); border: 1px solid var(--line); }
.fg__head { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: baseline; }
.fg__head h3 { font-size: 22px; font-weight: 780; }
.fg__head p { color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.fg__rows { position: relative; display: grid; gap: 14px; margin-top: 26px; }
.fg__row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 14px; }
.fg__lbl { font-size: 13px; font-weight: 700; color: var(--dim); }
.fg__lane { position: relative; height: 36px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.fg__lane i { border-radius: 6px; background: rgba(255, 255, 255, .05); }
.fg__lane--cam i:nth-child(odd) { background: rgba(255, 255, 255, .14); }
.fg__lane--scr i { background: rgba(255, 255, 255, .14); animation: tick 4.8s linear infinite; }
.fg__lane--scr i:nth-child(even) { background: rgba(159, 168, 242, .2); }
.fg__lane--scr i:nth-child(even).gen, .fg__lane--scr i:nth-child(even) { box-shadow: inset 0 0 0 1px rgba(159, 168, 242, .35); }
@keyframes tick { 0%, 6% { filter: brightness(2.2); } 12%, 100% { filter: none; } }
.fg__play { position: absolute; left: 94px; top: -6px; bottom: -6px; width: 2px; background: #fff; box-shadow: 0 0 12px #fff; border-radius: 2px; animation: play 4.8s linear infinite; }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(var(--fgw, 600px)); } }
.fg__legend { display: flex; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.fg__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.k { width: 14px; height: 14px; border-radius: 4px; }
.k--cam { background: rgba(255, 255, 255, .3); }
.k--gen { background: rgba(159, 168, 242, .45); box-shadow: inset 0 0 0 1px rgba(159, 168, 242, .7); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stat { padding: 26px 24px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.stat b { font-size: clamp(46px, 5.6vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__u { margin-left: 4px; font-size: 20px; font-weight: 750; color: var(--accent); }
.stat p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ── галерея ── */
.split--gallery { align-items: center; }
.split--gallery .split__demo { display: flex; flex-direction: column; align-items: center; }
.gphone { position: relative; width: clamp(260px, 30vw, 340px); aspect-ratio: 9 / 18.5; overflow: hidden; padding: 9px; border-radius: 46px; background: linear-gradient(150deg, #34314f, #0d0c17 38%, #0d0c17 70%, #2a2840); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -40px rgba(0, 0, 0, .9); }
.gphone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: linear-gradient(#0b0a16, #14122b); }
:root[data-theme="oled"] .gphone__screen { background: #000; }
.gal__top { display: flex; justify-content: space-between; align-items: center; padding: 44px 18px 10px; }
.gal__top b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gal__fav svg { width: 20px; height: 20px; color: #ff6b8b; }
.gal { position: relative; height: calc(100% - 82px); overflow: hidden; padding: 0 3px; touch-action: pan-y; }
.gal__sec { display: block; padding: 10px 8px 6px; font-size: 13px; font-weight: 750; color: #e6e5f0; }
.gal__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 2px; }
.gal[data-cols="mosaic"] .gal__grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
.gal[data-cols="mosaic"] .t.w { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal[data-cols="mosaic"] .t.h { grid-row: span 2; aspect-ratio: 1 / 2; }
.t { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--bgimg, #222); background-size: cover; background-position: center; will-change: transform; }
.t.set { box-shadow: inset 0 0 0 2px var(--set, #9fa8f2); }
.t.set::after { content: attr(data-n); position: absolute; right: 4px; bottom: 3px; font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px #000; }
.t .bd { position: absolute; left: 4px; top: 4px; padding: 1px 5px; border-radius: 6px; font-size: 8px; font-weight: 800; letter-spacing: .05em; line-height: 1.5; }
.t .bd--p { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: var(--grad); }
.t .bd--n { background: #5b4f8f; }
.t .bd--r { background: #6b5a2c; color: #f5d26b; }
.t .bd--l { background: #2f6f73; color: #b6eef0; }
.t .bd--a { background: #000; color: #fff; text-shadow: 0 0 6px #fff; }
.t .hr { position: absolute; right: 4px; top: 4px; width: 11px; height: 11px; color: #ff6b8b; }
.gal[data-cols="7"] .t .bd, .gal[data-cols="10"] .t .bd, .gal[data-cols="7"] .t .hr, .gal[data-cols="10"] .t .hr, .gal[data-cols="10"] .t.set::after { display: none; }
.gal__scroller { position: absolute; right: 4px; top: 120px; bottom: 30px; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.gal__scroller i { position: absolute; left: -1px; top: 18%; width: 6px; height: 46px; border-radius: 6px; background: rgba(255, 255, 255, .6); animation: scrub 6s ease-in-out infinite; }
.gal__scroller span { position: absolute; right: 14px; top: 18%; padding: 5px 10px; border-radius: 99px; background: #26252c; font-size: 11px; font-weight: 750; white-space: nowrap; animation: scrub 6s ease-in-out infinite; }
@keyframes scrub { 50% { transform: translateY(160px); } }
.zoombar { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.zoombar button { width: 42px; height: 42px; border-radius: 50%; font-size: 22px; font-weight: 600; transition: background-color .25s; }
.zoombar button:hover { background: rgba(255, 255, 255, .08); }
.zoombar button:disabled { opacity: .3; cursor: default; background: none; }
.zoombar span { min-width: 92px; text-align: center; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ── кадры (заглушки под RAW) ── */
.bento { counter-reset: shot; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 236px); grid-auto-flow: dense; gap: 12px; }
.shot {
  counter-increment: shot;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 18% 12%, var(--a) 0, transparent 62%),
    radial-gradient(110% 90% at 88% 86%, var(--b) 0, transparent 62%),
    radial-gradient(70% 60% at 62% 32%, var(--c) 0, transparent 70%),
    #110f22;
}
.shot--xl { grid-column: span 2; grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }
.shot::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; background: 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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; transition: opacity .6s; }
.shot::after {
  content: "RAW · " counter(shot, decimal-leading-zero) "\A assets/shots/shot-" counter(shot, decimal-leading-zero) ".jpg";
  white-space: pre;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 2;
  color: rgba(255, 255, 255, .78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 14px 14px / 18px 2px no-repeat, linear-gradient(#fff, #fff) 14px 14px / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 14px) 14px / 18px 2px no-repeat, linear-gradient(#fff, #fff) calc(100% - 14px) 14px / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) 14px calc(100% - 14px) / 18px 2px no-repeat, linear-gradient(#fff, #fff) 14px calc(100% - 14px) / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 14px) calc(100% - 14px) / 18px 2px no-repeat, linear-gradient(#fff, #fff) calc(100% - 14px) calc(100% - 14px) / 2px 18px no-repeat;
  opacity: .9;
  transition: opacity .6s;
}
.shot.is-loaded::after, .shot.is-loaded::before { opacity: 0; }
.shot img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.shot.is-loaded img { opacity: 1; transform: scale(1); }
.shot.is-loaded { cursor: zoom-in; }
.shot.is-loaded:hover img { transform: scale(1.035); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .85); }
.shot__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge--pretty { color: #15132a; background: var(--grad); }
.badge--night { background: #5b4f8f; }
.badge--astro { background: #000; text-shadow: 0 0 8px rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.badge--raw { background: #6b5a2c; color: #f5d26b; }
.badge--long { background: #2f6f73; color: #c4f2f4; }

.compare { --pos: 50%; position: relative; margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #0f0d1e; user-select: none; -webkit-user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--before.is-fallback { filter: saturate(.42) contrast(.78) brightness(.9); }
.compare__img--after.is-fallback { filter: saturate(1.25) contrast(1.07) brightness(1.03); }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__lbl { position: absolute; top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); font-size: 12px; font-weight: 800; letter-spacing: .14em; pointer-events: none; }
.compare__lbl--l { left: 14px; }
.compare__lbl--r { right: 14px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px rgba(0, 0, 0, .5); pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.compare__handle svg { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #15132a; }
.compare__handle svg:first-of-type { right: 5px; }
.compare__handle svg:last-of-type { left: 5px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ── настройки ── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 780; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card__art { position: relative; height: 92px; border-radius: 16px; background: rgba(0, 0, 0, .28); display: grid; place-items: center; overflow: hidden; }
.art-format i { width: 64px; height: 48px; border: 2px solid var(--accent); border-radius: 6px; animation: fmt 6s var(--ease) infinite; }
@keyframes fmt { 0%, 20% { width: 64px; height: 48px; } 25%, 45% { width: 84px; height: 47px; } 50%, 70% { width: 52px; height: 52px; } 75%, 95% { width: 72px; height: 54px; } 100% { width: 64px; height: 48px; } }
.art-level { background-image: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)), linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)), linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)), linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)); background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%; background-position: 0 33%, 0 66%, 33% 0, 66% 0; background-repeat: no-repeat; }
.art-level i { width: 110px; height: 2px; border-radius: 2px; background: #fff; animation: level 4s var(--ease) infinite; }
@keyframes level { 0% { transform: rotate(-9deg); } 45% { transform: rotate(0); background: #fff; } 55%, 85% { transform: rotate(0); background: #e6c35c; } 100% { transform: rotate(-9deg); } }
.art-timer b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 30px; font-weight: 800; background: conic-gradient(var(--accent) var(--t, 100%), rgba(255, 255, 255, .1) 0); -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 86%); }
.art-timer { position: relative; }
.art-timer::after { content: "3"; position: absolute; font-size: 30px; font-weight: 800; }
.art-timer b { color: transparent; animation: timer 3s linear infinite; }
@property --t { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes timer { to { --t: 0%; } }
.art-mirror { grid-template-columns: auto auto; justify-content: center; gap: 44px; }
.art-mirror i { width: 34px; height: 46px; border-radius: 22px 22px 6px 6px; background: linear-gradient(90deg, var(--gb), var(--rose)); }
.art-mirror i:last-child { transform: scaleX(-1); opacity: .5; }
.art-mirror::after { content: ""; position: absolute; top: 18px; bottom: 18px; left: 50%; border-left: 2px dashed rgba(255, 255, 255, .25); }
.art-quality b { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-sound { grid-auto-flow: column; justify-content: center; align-items: end; align-content: center; gap: 7px; }
.art-sound i { width: 8px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.art-sound i:nth-child(2) { height: 22px; }
.art-sound i:nth-child(3) { height: 32px; }
.art-sound::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 2.5px; margin: -1px 0 0 -38px; border-radius: 2px; background: var(--gr); transform: rotate(-32deg); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.art-lang { grid-auto-flow: column; justify-content: center; gap: 22px; font-size: 28px; font-weight: 800; }
.art-lang span { color: var(--dim); animation: lang 4.5s infinite; }
.art-lang span:nth-child(2) { animation-delay: 1.5s; }
.art-lang span:nth-child(3) { animation-delay: 3s; }
@keyframes lang { 0%, 30% { color: var(--accent); } 35%, 100% { color: var(--dim); } }
.card--theme { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr); }
.theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-switch button { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); font-size: 14px; font-weight: 750; transition: border-color .3s, background-color .3s; }
.theme-switch button[aria-checked="true"] { border-color: rgba(159, 168, 242, .6); background: rgba(159, 168, 242, .08); }
.sw { width: 100%; height: 44px; border-radius: 12px; }
.sw--astro { background: radial-gradient(60% 120% at 10% 100%, rgba(108, 142, 219, .5), transparent), radial-gradient(50% 100% at 95% 100%, rgba(111, 178, 138, .35), transparent), #14122b; }
.sw--oled { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* ── ПК ── */
.sync { position: relative; aspect-ratio: 5 / 4; }
.sync__laptop { position: absolute; right: 0; top: 6%; width: 84%; }
.sync__lscreen { aspect-ratio: 16 / 10; padding: 10px; border-radius: 18px 18px 6px 6px; background: #0b0a16; border: 6px solid #24223a; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
:root[data-theme="astro"] .sync__lscreen { background: linear-gradient(#0b0a16, #14122b); }
.sync__bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.sync__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3850; }
.sync__bar span { margin-left: 8px; }
.sync__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sync__grid i { aspect-ratio: 4 / 3; border-radius: 6px; background: rgba(255, 255, 255, .05); animation: fill 6s var(--ease) infinite; }
.sync__grid i:nth-child(4n + 1) { --tile: linear-gradient(135deg, #f59a8e, #6c8edb); }
.sync__grid i:nth-child(4n + 2) { --tile: linear-gradient(135deg, #3b3478, #f5d26b); }
.sync__grid i:nth-child(4n + 3) { --tile: linear-gradient(135deg, #6fb28a, #9fa8f2); }
.sync__grid i:nth-child(4n) { --tile: linear-gradient(135deg, #d59bc0, #14122b); }
.sync__grid i:nth-child(1) { animation-delay: 0s; } .sync__grid i:nth-child(2) { animation-delay: .25s; } .sync__grid i:nth-child(3) { animation-delay: .5s; } .sync__grid i:nth-child(4) { animation-delay: .75s; }
.sync__grid i:nth-child(5) { animation-delay: 1s; } .sync__grid i:nth-child(6) { animation-delay: 1.25s; } .sync__grid i:nth-child(7) { animation-delay: 1.5s; } .sync__grid i:nth-child(8) { animation-delay: 1.75s; }
.sync__grid i:nth-child(9) { animation-delay: 2s; } .sync__grid i:nth-child(10) { animation-delay: 2.25s; } .sync__grid i:nth-child(11) { animation-delay: 2.5s; } .sync__grid i:nth-child(12) { animation-delay: 2.75s; }
@keyframes fill { 0%, 8% { background: rgba(255, 255, 255, .05); transform: scale(.9); } 14%, 88% { background: var(--tile); transform: none; } 100% { background: rgba(255, 255, 255, .05); } }
.sync__base { height: 12px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#35334f, #1b1a2b); }
.sync__phone { position: absolute; left: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 18.5; padding: 5px; border-radius: 22px; background: linear-gradient(150deg, #34314f, #0d0c17 40%, #2a2840); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); z-index: 2; }
.sync__pscreen { height: 100%; border-radius: 17px; padding: 26px 5px 5px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 3px; background: linear-gradient(#0b0a16, #14122b); overflow: hidden; }
.sync__pscreen i { aspect-ratio: 1; border-radius: 4px; }
.sync__pscreen i:nth-child(1) { background: linear-gradient(135deg, #f59a8e, #6c8edb); } .sync__pscreen i:nth-child(2) { background: linear-gradient(135deg, #3b3478, #f5d26b); }
.sync__pscreen i:nth-child(3) { background: linear-gradient(135deg, #6fb28a, #9fa8f2); } .sync__pscreen i:nth-child(4) { background: linear-gradient(135deg, #d59bc0, #14122b); }
.sync__pscreen i:nth-child(5) { background: linear-gradient(135deg, #6cc3c8, #3b3478); } .sync__pscreen i:nth-child(6) { background: linear-gradient(135deg, #f5d26b, #d9786e); }
.sync__fly { position: absolute; left: 13%; bottom: 40%; z-index: 3; }
.sync__fly i { position: absolute; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f59a8e, #6c8edb); box-shadow: 0 10px 20px rgba(0, 0, 0, .5); opacity: 0; offset-path: path("M0 0 C 60 -150, 200 -170, 300 -110"); animation: fly 3s var(--ease) infinite; }
.sync__fly i:nth-child(2) { background: linear-gradient(135deg, #3b3478, #f5d26b); animation-delay: 1s; }
.sync__fly i:nth-child(3) { background: linear-gradient(135deg, #6fb28a, #9fa8f2); animation-delay: 2s; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; transform: scale(.6); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; transform: scale(1.2); } }
.sync__beam { position: absolute; left: 14%; right: 30%; bottom: 46%; height: 140px; border-radius: 50%; border-top: 2px dashed rgba(159, 168, 242, .3); transform: rotate(-12deg); pointer-events: none; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ── финал ── */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); border-radius: 44px; background: var(--card); border: 1px solid var(--line); }
.final__glow { position: absolute; left: 50%; top: -40%; z-index: -1; width: 900px; aspect-ratio: 1; margin-left: -450px; border-radius: 50%; background: var(--iris); opacity: calc(.08 + var(--glow) * .14); -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); animation: spin 30s linear infinite; }
.final__logo { position: relative; width: 132px; height: 132px; margin: 0 auto 28px; display: grid; place-items: center; }
.final__logo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--iris); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%, #000 97%, transparent 99%); mask: radial-gradient(closest-side, transparent 88%, #000 90%, #000 97%, transparent 99%); animation: spin 8s linear infinite; }
.final__logo img { width: 112px; height: 112px; filter: drop-shadow(0 20px 40px rgba(108, 142, 219, .4)); }
.final .lead { margin-inline: auto; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.final__note { margin-top: 22px; font-size: 14px; color: var(--dim); }

/* ── FAQ ── */
.faq { max-width: 860px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 24px 48px 24px 0; font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ── подвал ── */
.ftr { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14.5px; color: var(--muted); }
.ftr__nav a:hover { color: var(--text); }
.ftr__legal { flex-basis: 100%; font-size: 13px; color: var(--dim); }

/* ── просмотр кадра ── */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 4, 12, .94); color: var(--text); }
.lb::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb[open] { display: grid; place-items: center; animation: lbin .35s var(--ease); }
@keyframes lbin { from { opacity: 0; } }
.lb__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 16px; }
.lb__fig img { max-width: min(94vw, 1800px); max-height: 80dvh; border-radius: 14px; object-fit: contain; animation: lbimg .45s var(--ease); }
@keyframes lbimg { from { opacity: 0; transform: scale(.96); } }
.lb__fig figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.lb__btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); transition: background-color .25s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; margin-top: -24px; }
.lb__next { right: 16px; top: 50%; margin-top: -24px; }

/* ── появление при прокрутке ── */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .h2.reveal, .js .hero__title.reveal { filter: blur(10px); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* Анимации вне экрана стоят. */
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ── адаптив ── */
@media (max-width: 1080px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .modes__panel { grid-column: 1 / -1; order: -1; max-width: 400px; margin: 0 auto 8px; width: 100%; }
  .modes__list[data-group="video"] a.is-on { transform: translateX(4px); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --hdr: 62px; }
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: var(--hdr) 0 auto;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 80px -10px rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 20px; font-weight: 700; border-radius: 14px; }
  .nav-open .hdr { background: rgba(8, 7, 15, .97); border-color: var(--line); }
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stage { min-height: 0; padding: 28px 0 40px; }
  .phone { --ry: 0deg; --rx: 0deg; width: clamp(240px, 62vw, 320px); }
  .scroll-hint { display: none; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: 0; }
  .studio { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--theme { grid-column: auto; }
  .theme-switch { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 26vw, 220px); }
  .sync { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hdr .btn--sm { display: none; }
  .hero { padding-top: calc(var(--hdr) + 28px); }
  .float { font-size: 12.5px; padding: 8px 12px; }
  .float--a { left: 0; top: 10%; }
  .float--b { right: 0; top: 30%; }
  .float--c { left: 0; bottom: 22%; }
  .float--d { right: 0; bottom: 10%; }
  .btn { width: 100%; justify-content: center; }
  .btn--sm { width: auto; }
  .hero__cta, .final__cta, .dl { width: 100%; }
  .modes { grid-template-columns: 1fr; }
  .studio { padding: 12px; border-radius: 28px; }
  .studio__panel { gap: 16px 10px; padding: 4px 0; }
  .studio__pages [role="tab"] { font-size: 15px; padding: 6px 8px 6px 4px; }
  .pad { width: min(100%, 210px); }
  .facts, .facts--3 { grid-template-columns: 1fr; margin-top: 28px; }
  .pro { padding: 12px; border-radius: 28px; }
  .pro__bar b { font-size: 15px; }
  .video-grid { grid-template-columns: 1fr; }
  .rec { aspect-ratio: 4 / 5; }
  .rec__controls { gap: 26px; }
  .fg__head { grid-template-columns: 1fr; }
  .fg__row { grid-template-columns: 1fr; gap: 6px; }
  .fg__play { left: 0; }
  .fg__lane { grid-template-columns: repeat(16, 1fr); }
  .fg__lane i:nth-child(n + 17) { display: none; }
  .stats { gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat__u { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 8px; }
  .shot { border-radius: 16px; }
  .shot::after { font-size: 11px; letter-spacing: .1em; }
  .shot--wide { grid-column: span 2; }
  .shot figcaption { padding: 28px 10px 9px; font-size: 11.5px; gap: 7px; }
  .compare { aspect-ratio: 4 / 3; border-radius: 18px; }
  .final { border-radius: 30px; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; margin-top: 0; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
}
@media (max-width: 380px) {
  .studio__panel { grid-template-columns: 1fr; grid-template-areas: "pages" "pad" "side"; }
  .studio__pages { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .studio__preset { margin: 0 4px 0 0; }
}
@media (hover: none) {
  .card:hover, .vcard:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}

/* Eclipse — подписка: чёрная карточка с затмением (как тема Eclipse в приложении). */
.eclipse-card { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: 22px; background: #000; border: 1px solid rgba(242, 200, 121, .22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 24px 60px -30px rgba(242, 200, 121, .35);
  background-image: radial-gradient(1px 1px at 18% 30%, #fff8, transparent), radial-gradient(1px 1px at 72% 22%, #fff6, transparent), radial-gradient(1px 1px at 88% 78%, #fff7, transparent), radial-gradient(1.2px 1.2px at 44% 84%, #ffe9c4aa, transparent); }
.eclipse-card b { display: block; font-size: 17px; color: #f2c879; letter-spacing: -.01em; }
.eclipse-card p { margin: 6px 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.eclipse-card__price { display: inline-block; font-weight: 800; font-size: 16px; background: linear-gradient(90deg, #f2c879, #f59a8e 55%, #b49cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eclipse-card small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.eclipse-card__disk { position: relative; flex: none; width: 46px; height: 46px; margin: 4px; border-radius: 50%; background: #000; isolation: isolate; }
.eclipse-card__disk::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1; filter: blur(3px);
  background: conic-gradient(from 210deg, #f2c879, #f59a8e, #d59bc0, #b49cf0, #8fb0ff, #86ddaa, #f2c879); animation: c0spin 24s linear infinite; }
.eclipse-card__disk i { position: absolute; inset: 0; border-radius: 50%; background: #000; }
@keyframes c0spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .eclipse-card__disk::before { animation: none; } }

/* Скачивание: заметки под кнопками для ПК; неактивная кнопка Google Play. */
.dl__note { margin-top: 14px; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.dl__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dl__note a:hover { color: var(--text); }
.btn[aria-disabled="true"] { opacity: .6; }
