/* Кристалл — сайт mykristall.pro. Один файл стилей на все страницы.
   Тёмная гамма бренда: чёрно-синий фон, хром, лёд и рубин. Шрифты — свои, с самого сайта (SIL OFL 1.1):
   Unbounded — заголовки, Manrope — текст. Ни одного внешнего запроса. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Запасные начертания с метриками фирменных: пока шрифт грузится, строки не прыгают. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica"), local("Roboto");
  size-adjust: 101.9%;
  ascent-override: 104.6%;
  descent-override: 29.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Roboto Bold");
  size-adjust: 129.2%;
  ascent-override: 77%;
  descent-override: 19%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #03060c;
  --bg-2: #060b15;
  --bg-3: #0a1120;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #0a111e;
  --border: rgba(200, 222, 255, .10);
  --border-strong: rgba(210, 228, 255, .20);
  --text: #f1f5fb;
  --text-muted: #adb9cb;
  --text-dim: #8794aa;
  --ice: #cdeeff;
  --ice-2: #8fd0ff;
  --ice-3: #4ea8f2;
  --ruby: #ff3b5f;
  --ruby-2: #e0244a;
  --ruby-text: #ff6b86;
  --ok: #54d6a6;
  --accent: var(--ice-2);
  --accent-soft: rgba(143, 208, 255, .12);
  --glow-ice: rgba(78, 168, 242, .45);
  --glow-ruby: rgba(255, 59, 95, .40);
  --chrome: linear-gradient(180deg, #ffffff 0%, #eef3f9 38%, #b8c4d4 62%, #e9eef5 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: 32px;
  --header-h: 72px;
  --font: "Manrope", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Unbounded Fallback", "Manrope", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ───────── основа ───────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(78, 168, 242, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 59, 95, .035), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
source { display: none; } /* в flex-контейнерах <source> внутри picture не должен занимать место */
svg { flex-shrink: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s ease; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(143, 208, 255, .32); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: #050a14;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #050a14; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(840px + var(--gutter) * 2); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ───────── шапка ───────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(3, 6, 12, .78), rgba(3, 6, 12, .52));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}
.site-header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__star { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(255, 59, 95, .28)); transition: transform .5s var(--ease); }
.brand:hover .brand__star { transform: rotate(-8deg) scale(1.06); }
.brand__word { width: auto; height: 12px; opacity: .96; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 9px 13px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font-size: .94rem; font-weight: 600; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 1px; transform: rotate(45deg); background: var(--ruby); box-shadow: 0 0 10px var(--glow-ruby);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .06); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* ───────── кнопки ───────── */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: .005em; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .25s ease, filter .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 16px; }
.btn--primary {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 45%, #cdd7e4 100%); color: #050a14;
  border-color: rgba(255, 255, 255, .75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(20, 40, 70, .18) inset, 0 14px 36px -14px rgba(160, 214, 255, .65);
}
.btn--primary:hover { color: #050a14; transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(20, 40, 70, .18) inset, 0 18px 44px -14px rgba(160, 214, 255, .85); }
.btn--secondary {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .20); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset;
}
.btn--secondary:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .16); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.btn--sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 15px 26px; font-size: 1.04rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn small { display: block; font-size: .74rem; font-weight: 600; opacity: .72; letter-spacing: 0; }
.btn__text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* ───────── типографика разделов ───────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  color: var(--ruby-text); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; box-shadow: 0 0 10px var(--glow-ruby); }
.eyebrow--plain::before { display: none; }
.eyebrow--chip {
  gap: 10px; padding: 7px 14px 7px 12px; border-radius: 99px; letter-spacing: .16em;
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 640px) { .eyebrow--chip { letter-spacing: .09em; font-size: .7rem; padding: 7px 12px 7px 11px; } }
.eyebrow--chip::before { width: 7px; height: 7px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 0 3px rgba(255, 59, 95, .18), 0 0 14px var(--ruby); }
.display, .title, .subtitle, .notfound__code, .cta .title {
  font-family: var(--display);
}
.display {
  font-size: clamp(2.15rem, 1.25rem + 3.5vw, 4.25rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em;
}
.title {
  font-size: clamp(1.5rem, 1.02rem + 2vw, 2.65rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 600;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em;
}
.display em, .title em {
  font-style: normal;
  background: linear-gradient(100deg, #cfeeff 0%, var(--ice-2) 40%, #5cb0f4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -.02em; font-weight: 600; }
.lead { color: var(--text-muted); font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); line-height: 1.65; max-width: 640px; }
.section-head { max-width: 780px; margin: 0 0 52px; }
.section-head .lead { margin-top: 18px; }
.title + .lead, .subtitle + .lead { margin-top: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; box-shadow: 0 0 10px var(--glow-ruby); }
.section-head--center .eyebrow--plain::after { display: none; }

.section { position: relative; padding: clamp(76px, 8vw, 120px) 0; }
.section--tight { padding: clamp(56px, 6vw, 80px) 0; }
.section--band { background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .008)); }
.section--band::before, .section--band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 222, 255, .16) 30%, rgba(200, 222, 255, .16) 70%, transparent);
}
.section--band::before { top: 0; }
.section--band::after { bottom: 0; }

@media (forced-colors: active) {
  .display, .title, .display em, .title em, .notfound__code { background: none; color: CanvasText; }
}

/* ───────── главный экран с видео ───────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
  min-height: clamp(640px, 100svh, 940px); display: grid; align-items: center;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: #020409 url("/assets/media/hero-poster.jpg") 58% 50% / cover no-repeat;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, .94) 0%, rgba(3, 6, 12, .80) 30%, rgba(3, 6, 12, .30) 58%, rgba(3, 6, 12, .10) 78%, rgba(3, 6, 12, .35) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, .55) 0%, rgba(3, 6, 12, 0) 22%, rgba(3, 6, 12, 0) 68%, var(--bg) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 96px; }
.hero__text .lead { margin: 26px 0 0; }
.hero__actions { margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-dim); font-size: .9rem; }
.hero__meta > li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero__meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; }
.hero__meta a:hover { color: #fff; }
.hero__meta svg { width: 16px; height: 16px; color: var(--ice-2); }
.hero__meta > :empty, .hero__meta > li:has(> span:empty) { display: none; }
.hero__art { position: relative; display: grid; place-items: center; }

.hero-logo { position: relative; width: min(430px, 100%); margin-inline: auto; isolation: isolate; }
.hero-logo::before {
  content: ""; position: absolute; inset: -18% -22%; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2, 4, 9, .82), rgba(2, 4, 9, .45) 55%, transparent 75%);
}
.hero-logo__glow {
  position: absolute; inset: 6% 8% 20%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 59, 95, .42), rgba(255, 59, 95, .12) 45%, rgba(78, 168, 242, .18) 62%, transparent 78%);
  filter: blur(26px);
}
.hero-logo__img { width: 100%; height: auto; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .7)); }
.hero-logo__ring {
  position: absolute; left: 50%; top: 45%; width: 118%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(200, 225, 255, .10);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
}
.hero-logo__ring--2 { width: 142%; border-style: dashed; border-color: rgba(200, 225, 255, .07); }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo__img { animation: float 10s ease-in-out infinite; }
  .hero-logo__glow { animation: pulse 6s ease-in-out infinite; }
  .hero-logo__ring--2 { animation: spin 90s linear infinite; }
  .hero__text > * { animation: rise .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4) { animation-delay: .24s; }
  .hero__text > :nth-child(5) { animation-delay: .32s; }
  .hero__art { animation: appear 1.4s var(--ease) .1s both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Строка платформ под главным экраном */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--text-dim); font-size: .88rem; font-weight: 600; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.platforms svg { width: 18px; height: 18px; color: var(--text-muted); }

/* ───────── карточки, сетки ───────── */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -44px rgba(0, 0, 0, .9);
}
.card h3 { margin: 20px 0 8px; font-size: 1.14rem; letter-spacing: -.005em; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease, background-color .3s ease; }
.card--link:hover {
  color: inherit; transform: translateY(-4px); border-color: rgba(190, 228, 255, .26);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 60px -34px rgba(78, 168, 242, .45);
}
.card--link:hover .tile { border-color: rgba(205, 238, 255, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 30px -10px var(--glow-ice); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

.tile {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: radial-gradient(120% 120% at 25% 15%, rgba(205, 238, 255, .20), rgba(78, 168, 242, .07) 55%, rgba(255, 255, 255, .02));
  border: 1px solid rgba(205, 238, 255, .20); color: var(--ice);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 28px -16px var(--glow-ice);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tile svg { width: 24px; height: 24px; }
/* Звёзды (внутренняя единица) — утверждённым знаком, а не рисованной звездой. */
.i-star { flex-shrink: 0; width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(255, 59, 95, .3)); }
.chips .i-star { width: 18px; height: 18px; }
.note .i-star { width: 24px; height: 24px; margin-top: 1px; }
.tile--ruby {
  background: radial-gradient(120% 120% at 25% 15%, rgba(255, 150, 170, .24), rgba(255, 59, 95, .10) 55%, rgba(255, 255, 255, .02));
  border-color: rgba(255, 120, 145, .30); color: #ffd0da; box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 28px -16px var(--glow-ruby);
}

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
}
.pillar h3 { margin: 20px 0 8px; font-size: 1.18rem; }
.pillar p { color: var(--text-muted); }
.section--after-hero { padding-top: 0; }
.pillars--overlap { position: relative; z-index: 2; margin-top: -72px; }

/* ───────── две колонки: текст и иллюстрация ───────── */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.split--reverse .split__media { order: -1; }
.split__media { display: grid; place-items: center; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; margin: 0; padding-left: 38px; color: var(--text-muted); }
.checklist li strong { color: var(--text); font-weight: 700; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 24px; height: 24px; border-radius: 8px;
  background: rgba(143, 208, 255, .10) url("/assets/img/check.svg") center / 14px 14px no-repeat;
  border: 1px solid rgba(205, 238, 255, .22);
}

/* Кадр с картинкой: скругление, хромовая кромка, свечение */
.shot {
  position: relative; width: 100%; margin: 0; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #05080f; border: 1px solid rgba(210, 228, 255, .14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 90px -40px rgba(0, 0, 0, .95), 0 30px 80px -50px var(--glow-ice);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 6, 12, .55)), linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 30%);
}
.shot figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 10px; color: #fff; font-size: .9rem; font-weight: 700;
}
.shot figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 12px var(--ruby); }

/* ───────── телефон с чатом ───────── */

.phone {
  position: relative; width: 320px; max-width: 100%; aspect-ratio: 320 / 652;
  padding: 11px; border-radius: 50px;
  background: linear-gradient(150deg, #e9eef5 0%, #8f9bb0 18%, #2b3547 40%, #0d131e 62%, #5d6a80 88%, #cfd7e2 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 60px 100px -40px rgba(0, 0, 0, .95), 0 0 90px -30px var(--glow-ice);
}
.phone__screen {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  border-radius: 40px; overflow: hidden; background: #070c16; color: #eaf2ff; font-size: 13px; line-height: 1.4;
  box-shadow: 0 0 0 3px #000;
}
.phone__island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 3; }
.phone__status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 14px 26px 0; font-size: 12px; font-weight: 700; }
.phone__status svg { width: 42px; height: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; background: rgba(10, 18, 32, .94); border-bottom: 1px solid rgba(200, 222, 255, .08); }
.chat-head__back { width: 18px; height: 18px; color: #8fd0ff; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(145deg, #8fd0ff, #245a9c); }
.avatar--ruby { background: linear-gradient(145deg, #ff8aa0, #b3123a); }
.avatar--mint { background: linear-gradient(145deg, #5fe0b8, #127a67); }
.chat-head__name { font-weight: 700; font-size: 14px; }
.chat-head__sub { color: #93a4bd; font-size: 11.5px; }
.chat-head__icons { display: flex; gap: 12px; margin-left: auto; color: #8fd0ff; }
.chat-head__icons svg { width: 18px; height: 18px; }
.chat-body {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 10px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(60, 120, 200, .28), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(150, 20, 60, .22), transparent 60%),
    url("/assets/img/chat-pattern.svg") center / 180px auto repeat, #080f1c;
}
.day-chip { align-self: center; padding: 3px 10px; border-radius: 12px; background: rgba(5, 10, 20, .6); color: #c1cee2; font-size: 11px; font-weight: 700; }
.bubble { position: relative; max-width: 82%; padding: 7px 10px 6px; border-radius: 16px 16px 16px 5px; background: #141f33; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.bubble__author { display: block; margin-bottom: 1px; color: #ff8aa0; font-weight: 700; font-size: 12px; }
.bubble__author--blue { color: #8fd0ff; }
.bubble__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; color: #8ea0bb; font-size: 10.5px; }
.bubble__meta svg { width: 15px; height: 10px; }
.bubble--out { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: linear-gradient(160deg, #2f6fc2, #1f4f93); }
.bubble--out .bubble__meta { color: #d1e6ff; }
.bubble--media { padding: 3px; }
.bubble--media .bubble__meta { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #fff; float: none; }
.bubble__photo { width: 100%; border-radius: 13px 13px 3px 13px; }
.voice { display: flex; align-items: center; gap: 8px; min-width: 188px; }
.voice__play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #8fd0ff; color: #06121f; }
.voice__play svg { width: 14px; height: 14px; }
.voice__wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.voice__wave i { display: block; width: 3px; border-radius: 2px; background: #8fd0ff; }
.voice__wave i:nth-child(n+14) { background: #3a5577; }
.voice__time { color: #8ea0bb; font-size: 10.5px; }
.voice__wave .h5 { height: 5px; }
.voice__wave .h6 { height: 6px; }
.voice__wave .h7 { height: 7px; }
.voice__wave .h8 { height: 8px; }
.voice__wave .h9 { height: 9px; }
.voice__wave .h10 { height: 10px; }
.voice__wave .h11 { height: 11px; }
.voice__wave .h12 { height: 12px; }
.voice__wave .h13 { height: 13px; }
.voice__wave .h14 { height: 14px; }
.voice__wave .h15 { height: 15px; }
.voice__wave .h16 { height: 16px; }
.voice__wave .h17 { height: 17px; }
.voice__wave .h18 { height: 18px; }
.voice__wave .h19 { height: 19px; }
.voice__wave .h20 { height: 20px; }
.file { display: flex; align-items: center; gap: 9px; }
.file__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.file__icon svg { width: 18px; height: 18px; }
.file__name { font-weight: 700; }
.file__size { color: #cfe3ff; font-size: 11px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 18px; background: rgba(10, 18, 32, .96); border-top: 1px solid rgba(200, 222, 255, .08); }
.composer__field { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 18px; background: #141f33; color: #7f8fa8; }
.composer__field svg, .composer__mic svg { width: 18px; height: 18px; }
.composer__mic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #8fd0ff; color: #06121f; }
.phone-wrap { position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(150%, 100vw); aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(78, 168, 242, .22), rgba(255, 59, 95, .08) 55%, transparent 72%);
}
.phone-wrap .float-card { position: absolute; }
.float-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 16px;
  background: rgba(12, 20, 36, .82); border: 1px solid rgba(210, 228, 255, .20); color: #f1f5fb; font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.float-card svg { width: 20px; height: 20px; color: var(--ice-2); }
.float-card small { display: block; color: #a3b3c9; font-weight: 600; font-size: 11.5px; }
.float-card--a { left: -92px; top: 22%; }
.float-card--b { right: -76px; bottom: 20%; }
@media (prefers-reduced-motion: no-preference) {
  .float-card--a { animation: bob 6s ease-in-out infinite; }
  .float-card--b { animation: bob 6s ease-in-out 3s infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ───────── фильм ───────── */

.film { max-width: 1060px; margin: 0 auto; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; isolation: isolate; background: #000;
  border: 1px solid rgba(220, 234, 255, .18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 50px 120px -50px rgba(78, 168, 242, .55), 0 40px 100px -60px rgba(255, 59, 95, .45), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.film__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film__cover {
  position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; background: #000; color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.film__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s ease; }
.film__cover:hover img, .film__cover:focus-visible img { transform: scale(1.03); filter: brightness(1.1) saturate(1.05); }
.film__cover:focus-visible { outline: 3px solid var(--ice); outline-offset: -3px; border-radius: 28px; }
.film__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%; background: rgba(3, 6, 12, .46); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), background-color .3s ease;
}
.film__play svg { width: 36px; height: 36px; margin-left: 6px; }
.film__cover:hover .film__play, .film__cover:focus-visible .film__play { transform: scale(1.07); background: rgba(255, 59, 95, .55); border-color: rgba(255, 255, 255, .8); }
.film__label {
  position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}
.film__label strong { font-family: var(--display); font-size: clamp(1rem, .9rem + .6vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; }
.film__label span { color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 700; letter-spacing: .06em; }
.film__caption { margin: 18px 0 0; color: var(--text-dim); font-size: .92rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .film__play::after {
    content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
    animation: ring 2.8s ease-out infinite;
  }
}
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

/* ───────── приложения ───────── */

.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 26px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border); background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 70px -48px rgba(0, 0, 0, .95);
}
.app-card::before {
  content: ""; position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 168, 242, .16), transparent 70%);
}
.app-card--ruby::before { background: radial-gradient(closest-side, rgba(255, 59, 95, .14), transparent 70%); }
.app-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-card__head h3 { font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
.app-card__head p { margin: 3px 0 0; color: var(--text-dim); font-size: .9rem; }
.app-card > p { color: var(--text-muted); }
.app-card .actions { margin-top: auto; padding-top: 22px; }
.app-card__meta { margin: 12px 0 0; color: var(--text-dim); font-size: .88rem; }
.app-card__meta:empty { display: none; }
.soon {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 22px 26px; border-radius: 20px;
  border: 1px dashed var(--border-strong); color: var(--text-muted); background: rgba(255, 255, 255, .02);
}
.soon strong, .soon h2 { color: var(--text); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  background: rgba(143, 208, 255, .12); border: 1px solid rgba(143, 208, 255, .22); color: var(--ice); font-size: .76rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
}
.badge--ruby { background: rgba(255, 59, 95, .13); border-color: rgba(255, 90, 120, .3); color: #ffc2cf; }
.badge--ok { background: rgba(84, 214, 166, .12); border-color: rgba(84, 214, 166, .28); color: var(--ok); }
.badge--soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Сборка для Windows: класс из подстановки WIN_CLASS на контейнере — win-ready (есть установщик), win-portable (и переносная),
   win-soon (сборки нет: «скоро», ссылки на /apps#desktop). */
.win-soon .if-win, .win-ready .if-no-win,
.win-soon .if-portable, .win-ready:not(.win-portable) .if-portable { display: none !important; }
.split.win-soon { grid-template-columns: minmax(0, 1fr); }

.facts { display: grid; gap: 0; margin: 22px 0 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .02); }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 16px; }
.facts > div + div { border-top: 1px solid var(--border); }
.facts > div:has(> dd:empty) { display: none; }
.facts dt { color: var(--text-dim); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: .84rem; font-weight: 500; line-height: 1.5; word-break: break-all; }
.copy-btn { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: transparent; color: var(--accent); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--accent-soft); }

/* ───────── шаги ───────── */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li {
  position: relative; margin: 0; padding: 30px 28px 28px; border-radius: var(--radius); counter-increment: step;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.steps li::before {
  content: "0" counter(step); display: block; margin-bottom: 18px;
  font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(180deg, #ffffff, #7f8ea5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin: 0 0 8px; font-size: 1.14rem; }
.steps p { color: var(--text-muted); font-size: .98rem; }
.path {
  display: inline; padding: 1px 7px; border-radius: 7px; background: rgba(143, 208, 255, .10); border: 1px solid rgba(143, 208, 255, .16);
  color: var(--text); font-weight: 700; font-size: .92em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ───────── вопросы ───────── */

.faq-list { display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  transition: border-color .25s ease, background-color .25s ease;
}
.faq[open] { border-color: rgba(205, 238, 255, .24); background: linear-gradient(180deg, rgba(143, 208, 255, .07), rgba(255, 255, 255, .015)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(143, 208, 255, .10) url("/assets/img/plus.svg") center / 14px 14px no-repeat; border: 1px solid rgba(205, 238, 255, .18);
  transition: transform .3s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.faq__body { padding: 0 22px 20px; color: var(--text-muted); }
.faq__body p, .faq__body li { max-width: 72ch; }
.faq__body strong { color: var(--text); }
.faq-group { margin-top: 56px; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group > h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.faq-group > h2 .tile { width: 42px; height: 42px; border-radius: 13px; }
.faq-group > h2 .tile svg { width: 22px; height: 22px; }

/* ───────── призыв ───────── */

.cta {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 64px); border-radius: 34px; text-align: center;
  background: #04070d; border: 1px solid rgba(220, 234, 255, .16); color: #f1f5fb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 60px 120px -60px rgba(78, 168, 242, .45);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(46% 70% at 50% 50%, rgba(3, 6, 12, .78), rgba(3, 6, 12, .35) 75%), linear-gradient(180deg, rgba(3, 6, 12, .15), rgba(3, 6, 12, .6));
}
.cta .title { color: transparent; }
.cta .lead { margin: 16px auto 32px; color: #c3cfdf; }
.cta__star { width: 104px; height: 104px; margin: 0 auto 26px; filter: drop-shadow(0 14px 34px rgba(255, 59, 95, .35)); }
@media (prefers-reduced-motion: no-preference) { .cta__star { animation: float 9s ease-in-out infinite; } }

/* ───────── внутренние страницы ───────── */

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 84px) 0 52px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 85% 20%, rgba(78, 168, 242, .16), transparent 70%),
    radial-gradient(35% 50% at 0% 0%, rgba(255, 59, 95, .08), transparent 70%);
}
.page-hero--art { padding-bottom: 76px; min-height: 480px; }
.page-hero--art::before {
  background:
    linear-gradient(90deg, rgba(3, 6, 12, .96) 0%, rgba(3, 6, 12, .86) 34%, rgba(3, 6, 12, .40) 66%, rgba(3, 6, 12, .30) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, .55) 0%, rgba(3, 6, 12, 0) 30%, rgba(3, 6, 12, 0) 62%, var(--bg) 100%);
}
.page-hero__art { position: absolute; inset: 0; z-index: -2; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.page-hero + .section--tight { padding-top: 36px; }
.page-hero .lead { margin-top: 22px; }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero__icon { width: 72px; height: 72px; margin: 0 0 26px; }
.page-hero--center .page-hero__icon { margin-left: auto; margin-right: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--text); font-size: .92rem; font-weight: 600; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .2s ease, background-color .2s ease;
}
.chips a:hover { color: #fff; border-color: rgba(205, 238, 255, .35); background: rgba(143, 208, 255, .10); }
.chips svg { width: 16px; height: 16px; color: var(--ice-2); }
.page-hero--center .chips { justify-content: center; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; padding: 80px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature:nth-of-type(even) .feature__media { order: -1; }
.feature__text .tile { margin-bottom: 22px; }
.feature__text h2 { font-family: var(--display); font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.feature__text > p { margin-top: 16px; color: var(--text-muted); font-size: 1.06rem; }
.feature__media {
  position: relative; display: grid; place-items: center; min-height: 320px; padding: 36px; border-radius: 30px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border);
  background: radial-gradient(80% 90% at 50% 0%, rgba(78, 168, 242, .14), transparent 70%), radial-gradient(60% 60% at 100% 100%, rgba(255, 59, 95, .07), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.feature__media > svg { width: 100%; max-width: 440px; height: auto; }
.feature__media--phone { padding: 44px 20px; }
.mini-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.mini-list li { position: relative; margin: 0; padding-left: 24px; color: var(--text-muted); }
.mini-list li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--ice-3)); box-shadow: 0 0 10px var(--glow-ice); }

.prose { max-width: 780px; }
.prose h2 { margin: 2.6rem 0 .9rem; font-size: 1.4rem; letter-spacing: -.015em; scroll-margin-top: 96px; }
.prose h3 { margin: 1.8rem 0 .6rem; font-size: 1.12rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul li::marker { color: var(--ruby); }
.prose > :first-child { margin-top: 0; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; padding-bottom: 110px; }
.toc {
  position: sticky; top: calc(var(--header-h) + 24px); padding: 20px 20px 22px; border-radius: 18px;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); font-size: .92rem;
}
.toc strong { display: block; margin-bottom: 12px; color: var(--text-dim); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.7em; color: var(--text-dim); }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--text-dim); font-size: .92rem; }

.note { display: flex; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(143, 208, 255, .22); background: rgba(143, 208, 255, .06); color: var(--text-muted); }
.note > svg { width: 22px; height: 22px; margin-top: 2px; color: var(--ice-2); }
.note strong { color: var(--text); }
.note--ruby { border-color: rgba(255, 90, 120, .30); background: rgba(255, 59, 95, .07); }
.note--ruby > svg { color: var(--ruby-text); }
.note p { margin: 4px 0 0; }

.section-num { display: block; margin-bottom: 6px; color: var(--ruby-text); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.terms-block { padding: 30px 0 20px; border-top: 1px solid var(--border); }
.terms-block:first-child { border-top: 0; padding-top: 0; }
.terms-block h2 { margin-top: 0; }

/* ───────── контакт ───────── */

.mail {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  border: 1px solid rgba(205, 238, 255, .24); background: rgba(143, 208, 255, .08); color: #fff; font-weight: 800; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.mail:hover { color: #fff; background: rgba(143, 208, 255, .14); border-color: rgba(205, 238, 255, .4); }
.mail svg { width: 20px; height: 20px; color: var(--ice-2); }

/* ───────── бренд ───────── */

.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.logo-tile { display: flex; flex-direction: column; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.logo-tile__view { display: grid; place-items: center; min-height: 300px; padding: 36px; }
.logo-tile__view--dark { background: radial-gradient(70% 90% at 50% 30%, #0e1a2e, #010204 75%); }
.logo-tile__view--light { background: radial-gradient(70% 90% at 50% 20%, #ffffff, #e3e9f2); }
.logo-tile__view img { width: auto; max-width: 100%; height: auto; }
.logo-tile__view img.mark { max-height: 220px; }
.logo-tile__view img.lockup { max-height: 250px; }
.logo-tile__view img.icon { max-height: 180px; border-radius: 22%; }
.logo-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.logo-tile__foot strong { font-size: .98rem; }
.logo-tile__foot span { display: block; color: var(--text-dim); font-size: .86rem; }
.logo-tile__links { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-tile__links .btn { white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.swatch { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.swatch__chip { height: 96px; }
.swatch__body { padding: 12px 16px 14px; }
.swatch__body strong { display: block; }
.swatch__body code { color: var(--text-muted); }
.sw-night { background: #03060c; } .sw-deep { background: #0a1a33; } .sw-chrome { background: linear-gradient(180deg, #ffffff, #b8c4d4 60%, #e9eef5); }
.sw-ice { background: #cdeeff; } .sw-crystal { background: #4ea8f2; } .sw-ruby { background: #e0244a; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rules .card h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.rules .card h3 svg { width: 22px; height: 22px; }
.rules .ok h3 svg { color: var(--ok); }
.rules .no h3 svg { color: var(--ruby-text); }
.rules ul { margin: 14px 0 0; color: var(--text-muted); }

/* ───────── новое ───────── */

.timeline { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 0 0 42px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--ruby), rgba(143, 208, 255, .5) 30%, transparent); }
.release { position: relative; margin: 0; }
.release::before {
  content: ""; position: absolute; left: -37px; top: 32px; width: 15px; height: 15px; border-radius: 4px; transform: rotate(45deg);
  background: linear-gradient(145deg, #ffffff, #8fd0ff 50%, #2c6fc0); box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--glow-ice);
}
.release:first-child::before { background: linear-gradient(145deg, #ffd0da, #ff3b5f 55%, #9c0f30); box-shadow: 0 0 0 5px var(--bg), 0 0 20px var(--glow-ruby); }
.release .card { padding: 30px; }
.release__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.release__head h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.release li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin: 0; }
.release li .tile { width: 44px; height: 44px; border-radius: 13px; }
.release li .tile svg { width: 22px; height: 22px; }
.release li strong { display: block; font-size: 1.02rem; }
.release li span { color: var(--text-muted); font-size: .96rem; }
.release .more { margin-top: 20px; }

/* ───────── открыть ссылку, 404 ───────── */

.open-main { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 90px); padding: 64px 0 80px; }
.link-card {
  position: relative; width: min(540px, 100%); margin: 0 auto; padding: 46px 40px 36px; border-radius: 32px; text-align: center;
  border: 1px solid rgba(220, 234, 255, .18);
  background: linear-gradient(180deg, rgba(20, 30, 50, .72), rgba(8, 13, 24, .82));
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 60px 120px -50px rgba(0, 0, 0, .95), 0 40px 100px -60px var(--glow-ice);
}
.link-card__icon { position: relative; width: 120px; height: 120px; margin: 0 auto 24px; isolation: isolate; }
.link-card__icon::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 59, 95, .32), rgba(78, 168, 242, .14) 55%, transparent 75%);
}
.link-card__icon img { width: 100%; height: 100%; }
.link-card__kind { margin: 0 0 10px; color: var(--ruby-text); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.link-card h1 { font-family: var(--display); font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.link-card__desc { margin: 14px auto 0; max-width: 410px; color: var(--text-muted); }
.link-card__url { display: inline-block; max-width: 100%; margin: 18px 0 0; padding: 6px 12px; border-radius: 10px; background: rgba(143, 208, 255, .08); border: 1px solid rgba(143, 208, 255, .14); color: var(--text-muted); font-family: var(--mono); font-size: .84rem; overflow-wrap: anywhere; }
.link-card .actions { flex-direction: column; margin-top: 28px; }
.link-card__hint { margin: 16px 0 0; color: var(--text-dim); font-size: .9rem; }
.link-card__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .92rem; }

.backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(3, 6, 12, .35), var(--bg) 85%); }

.notfound { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 90px); padding: 80px 0; text-align: center; }
.notfound .link-card__icon { width: 104px; height: 104px; }
.notfound__code {
  margin: 0 0 12px; font-size: clamp(5rem, 3rem + 10vw, 9.5rem); font-weight: 700; line-height: 1; letter-spacing: -.06em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── мелкие компоненты ───────── */

.more { margin: 26px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.more a svg { width: 18px; height: 18px; transition: transform .2s ease; }
.more a:hover svg { transform: translateX(3px); }
.more--center { text-align: center; margin-top: 34px; }
.h-gap { margin-top: 22px; }
.split--top { align-items: start; }
.lead--center { margin-left: auto; margin-right: auto; }
.small-print { margin: 20px 0 0; font-size: .88rem; }
.note--gap { margin-top: 16px; }
.note--lead { margin-bottom: 8px; }
.card .note { margin: 22px 0 6px; }
.card.install h3 { margin-top: 0; font-size: 1.18rem; }
.card.install h3.h-gap { margin-top: 28px; }
.steps-mini { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: mini; display: grid; gap: 14px; }
.steps-mini li { position: relative; margin: 0; padding-left: 42px; color: var(--text-muted); counter-increment: mini; }
.steps-mini li strong { color: var(--text); }
.steps-mini li::before {
  content: counter(mini); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(143, 208, 255, .10); border: 1px solid rgba(205, 238, 255, .22); color: var(--ice); font-weight: 800; font-size: .88rem;
}
.cmd-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.cmd-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
.cmd-list span { color: var(--text-dim); font-size: .88rem; }
.cmd-list code { padding: 8px 11px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); color: var(--text); font-size: .84rem; word-break: break-all; }
.soon--big { margin-top: 0; padding: 30px 32px; }
.soon--big p { margin-top: 8px; }
.doc-meta span:has(> .ph:empty), .swatch__body span { display: block; margin-top: 2px; font-size: .84rem; }

/* ───────── иллюстрации (SVG в разметке): цвета — из палитры ───────── */

.il-bg { fill: #0a1120; }
.il-panel { fill: #111b2e; }
.il-panel2 { fill: #18253c; }
.il-line { fill: rgba(200, 222, 255, .22); }
.il-text-bar { fill: #7b8aa2; }
.il-text { fill: #f1f5fb; }
.il-muted { fill: #8794aa; }
.il-accent, .il-accent-t { fill: #8fd0ff; }
.il-ink, .il-ink-f { fill: #06101e; }
.il-soft { fill: rgba(143, 208, 255, .14); }
.il-soft-2 { fill: rgba(200, 222, 255, .22); }
.il-ruby { fill: #ff3b5f; }
.il-ok { fill: #54d6a6; }
.il-out { fill: #2f6fc2; }
.il-edge { fill: none; stroke: rgba(200, 222, 255, .22); }
.il-edge-s { stroke: rgba(200, 222, 255, .22); stroke-width: 1; }
.il-edge-fill { fill: rgba(200, 222, 255, .10); }
.il-ring { fill: none; stroke: #0a1120; stroke-width: 3; }
.il-dash { fill: none; stroke: rgba(200, 222, 255, .22); }
.il-icon { stroke: #adb9cb; }
.il-icon-muted { stroke: #8794aa; }
.il-icon-accent { stroke: #8fd0ff; }
.il-icon-ink { stroke: #06101e; }
.il-icon-white { stroke: #fff; }
.il-qr { fill: #0b1b30; }
.il-qr-bg { fill: #ffffff; }
.feature__media svg text, .split__media svg text { font-family: var(--font); }
.split__media > svg { width: 100%; max-width: 480px; height: auto; }

/* ───────── подвал ───────── */

.site-footer {
  position: relative; padding: 76px 0 36px; background: linear-gradient(180deg, #03060c, #010204);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 95, .35) 20%, rgba(200, 222, 255, .22) 50%, rgba(78, 168, 242, .35) 80%, transparent);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-about .brand__star { width: 46px; height: 46px; }
.footer-about .brand__word { height: 13px; }
.footer-about p { margin-top: 18px; max-width: 300px; color: var(--text-dim); font-size: .94rem; }
.footer-mail { font-weight: 700; }
.footer-mail a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(143, 208, 255, .35); }
.footer-mail a:hover { color: #fff; border-bottom-color: var(--ice); }
.footer-col h2 { margin: 8px 0 16px; color: var(--text); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .88rem; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: #fff; }

/* ───────── адаптивность ───────── */

@media (min-width: 1680px) {
  :root { --wrap: 1280px; }
  html { font-size: 17px; }
}

@media (max-width: 1180px) {
  .site-nav a { padding: 8px 9px; font-size: .9rem; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .float-card--a { left: -40px; }
  .float-card--b { right: -30px; }
  .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-cards > :first-child { grid-column: 1 / -1; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .header-cta .btn--ghost { display: none; }
  .site-header__bar { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .hero { min-height: 0; align-items: start; }
  .hero__grid { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; padding-bottom: 88px; text-align: center; }
  .hero__art { order: -1; }
  .hero-logo { width: min(300px, 64vw); }
  .hero__text .lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__meta, .platforms { justify-content: center; }
  .hero::before {
    background: linear-gradient(180deg, rgba(3, 6, 12, .45) 0%, rgba(3, 6, 12, .25) 26%, rgba(3, 6, 12, .78) 52%, rgba(3, 6, 12, .94) 74%, var(--bg) 100%);
  }
  .hero__video, .hero__media { object-position: 72% 50%; background-position: 72% 50%; }
  .pillars--overlap { margin-top: -48px; }
  .split, .feature { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__media, .feature:nth-of-type(even) .feature__media { order: 0; }
  .grid--3, .grid--4, .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .float-card--a { left: -20px; }
  .float-card--b { right: -16px; }
  .page-hero--art { min-height: 0; }
  .page-hero--art::before {
    background: linear-gradient(180deg, rgba(3, 6, 12, .55) 0%, rgba(3, 6, 12, .72) 45%, rgba(3, 6, 12, .9) 75%, var(--bg) 100%);
  }
}

@media (max-width: 860px) {
  /* Мобильное меню: без JS — прокручиваемая строка ссылок, с JS — выпадающая панель. */
  .site-header__bar { flex-wrap: wrap; height: auto; min-height: 64px; gap: 0 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-cta { margin-left: auto; }
  .site-nav {
    order: 3; width: 100%; margin: 8px calc(var(--gutter) * -1) -2px; padding: 0 calc(var(--gutter) - 8px);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .js .site-header__bar { flex-wrap: nowrap; min-height: 64px; padding-top: 0; padding-bottom: 0; height: 64px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    width: auto; margin: 0; padding: 12px var(--gutter) 20px; overflow: visible;
    background: rgba(3, 6, 12, .97); border-bottom: 1px solid var(--border); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .8);
  }
  .js .menu-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .js .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
  .js .site-nav a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .app-cards, .grid--2, .rules, .logo-tiles { grid-template-columns: 1fr; }
  .app-cards > :first-child { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .grid--3, .grid--4, .pillars { grid-template-columns: 1fr; }
  .card, .pillar { padding: 24px; }
  .app-card { padding: 26px 22px; }
  .cta { border-radius: 26px; }
  .brand { gap: 10px; }
  .brand__star { width: 36px; height: 36px; }
  .brand__word { height: 11px; }
  .header-cta .btn { padding: 7px 13px; font-size: .88rem; min-height: 38px; }
  .hero__actions .btn { width: 100%; }
  .hero__grid { padding-bottom: 72px; }
  .page-hero { padding: calc(var(--header-h) + 52px) 0 40px; }
  .page-hero--art { padding-bottom: 52px; }
  .feature { padding: 56px 0; gap: 32px; }
  .feature__media { min-height: 0; padding: 22px; border-radius: 24px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq__body { padding: 0 18px 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .link-card { padding: 36px 22px 26px; border-radius: 26px; }
  .timeline { padding-left: 30px; }
  .timeline::before { left: 6px; }
  .release::before { left: -30px; width: 13px; height: 13px; }
  .release .card { padding: 22px; }
  .phone { width: 290px; }
  .float-card { display: none; }
  .soon { flex-direction: column; align-items: flex-start; }
  .cmd-list li { grid-template-columns: 1fr; gap: 4px; }
  .grid--4 .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; padding: 18px; }
  .grid--4 .card .tile { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; }
  .grid--4 .card .tile svg { width: 22px; height: 22px; }
  .grid--4 .card h3 { margin: 1px 0 0; font-size: 1.04rem; }
  .grid--4 .card p { font-size: .94rem; }
  .steps li { padding: 22px; }
  .steps li::before { font-size: 1.9rem; margin-bottom: 12px; }
  .cta .btn { width: 100%; }
  .film__frame { border-radius: 20px; }
  .film__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .film__play svg { width: 28px; height: 28px; }
  .film__label { left: 16px; right: 16px; bottom: 14px; }
  .film__label span { display: none; }
  .shot { border-radius: 20px; }
  .logo-tile__foot { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .header-cta .btn--ghost { display: none; }
}

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

@media print {
  .site-header, .site-footer, .cta, .toc, .menu-toggle, .hero__media, .film { display: none !important; }
  body { background: #fff; color: #000; }
  .display, .title { background: none; color: #000; }
  .prose p, .prose li { color: #000; }
}
