/* ---------- Шрифты: Golos Text (OFL), локально ---------- */
@font-face { font-family: "Golos"; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-cyrillic.woff2) format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Golos"; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-latin.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Golos"; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-cyrillic.woff2) format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Golos"; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-latin.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Golos"; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-cyrillic.woff2) format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Golos"; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-latin.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Golos"; font-weight: 700; font-display: swap; src: url(fonts/GolosText-700-cyrillic.woff2) format("woff2"); unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Golos"; font-weight: 700; font-display: swap; src: url(fonts/GolosText-700-latin.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }

/* ---------- Токены ---------- */
:root {
  --bg: #0a0b0f;
  --bg-2: #101218;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #13151c;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f3f4f7;
  --text-2: #b3b8c3;
  --muted: #7d8391;
  --brand-a: #8b7bff;
  --brand-b: #4f8cff;
  --brand-c: #3dd6c4;
  --ok: #3ddc97;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  --radius: 28px;
  --radius-sm: 16px;
  --aurora-op: .55;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f4f0;
  --bg-2: #ecebe6;
  --surface: rgba(255, 255, 255, .7);
  --surface-2: rgba(255, 255, 255, .95);
  --surface-solid: #ffffff;
  --border: rgba(20, 22, 30, .08);
  --border-2: rgba(20, 22, 30, .14);
  --text: #121318;
  --text-2: #464b57;
  --muted: #7a7f8b;
  --shadow: 0 30px 70px -30px rgba(30, 30, 50, .28);
  --aurora-op: .35;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f4f0;
    --bg-2: #ecebe6;
    --surface: rgba(255, 255, 255, .7);
    --surface-2: rgba(255, 255, 255, .95);
    --surface-solid: #ffffff;
    --border: rgba(20, 22, 30, .08);
    --border-2: rgba(20, 22, 30, .14);
    --text: #121318;
    --text-2: #464b57;
    --muted: #7a7f8b;
    --shadow: 0 30px 70px -30px rgba(30, 30, 50, .28);
    --aurora-op: .35;
    color-scheme: light;
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Golos", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand-b); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in oklab, var(--brand-a) 45%, transparent); }

/* ---------- Фон ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-op); animation: drift 28s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, var(--brand-a), transparent 65%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 4vw; background: radial-gradient(circle, var(--brand-b), transparent 65%); animation-delay: -9s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 40vh; background: radial-gradient(circle, var(--brand-c), transparent 65%); opacity: calc(var(--aurora-op) * .5); animation-delay: -17s; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
}
.top::before {
  content: ""; position: absolute; inset: 8px 12px; z-index: -1; border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  opacity: 0; transition: opacity .3s;
}
.top.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; padding-left: 4px; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 600; color: var(--muted); }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; transition: background .2s, color .2s; }
.top-nav a:hover { background: var(--surface-2); color: var(--text); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(-12deg); }
.icon-btn svg { width: 19px; height: 19px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* ---------- Hero ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: min(780px, 88vh); padding: 40px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { margin: 0; font-size: clamp(44px, 7.2vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-a), var(--brand-b) 45%, var(--brand-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 560px; margin: 26px 0 34px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .25s var(--ease), box-shadow .25s, background .2s; cursor: pointer; border: 0; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--brand-b) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }
.stats { display: flex; gap: 36px; margin: 48px 0 0; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }

.hero-art { position: relative; height: 620px; perspective: 1400px; }
.phone {
  position: absolute; margin: 0; width: 270px; border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #2a2d36, #0d0e12); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12);
  transition: transform .8s var(--ease);
}
.phone img { border-radius: 36px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.p1 { left: 4%; top: 30px; transform: rotate(-7deg) translateZ(0); z-index: 2; }
.p2 { right: 2%; top: 90px; transform: rotate(6deg) scale(.92); }
.hero-art:hover .p1 { transform: rotate(-4deg) translateY(-10px); }
.hero-art:hover .p2 { transform: rotate(3deg) scale(.94) translateY(-6px); }
.chip-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface-solid) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: float 6s ease-in-out infinite;
}
.chip-float img { width: 30px; height: 30px; border-radius: 9px; }
.chip-float .dot { width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.c1 { left: -4%; bottom: 70px; }
.c2 { right: 0; top: 20px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Тулбар ---------- */
.toolbar {
  position: sticky; top: 72px; z-index: 10;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px; margin: 0 -10px 10px; border-radius: 24px;
  background: color-mix(in oklab, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.filters { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.filter { flex: none; padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: var(--text-2); cursor: pointer; font-weight: 500; font-size: 15px; transition: background .25s, color .25s; }
.filter[aria-selected="true"] { background: var(--text); color: var(--bg); }
.filter:not([aria-selected="true"]):hover { color: var(--text); background: var(--surface-2); }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); min-width: 280px; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--border-2); background: var(--surface-2); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
kbd { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-2); color: var(--muted); font: 500 13px/1 "Golos", system-ui; }

/* ---------- Секции ---------- */
.section { padding: 56px 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.section-head p { margin: 0; max-width: 460px; color: var(--muted); }

/* ---------- Карточки приложений (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  --a: #888; --b: #aaa;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 460px; padding: 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; text-align: left;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.card::before { /* фирменное свечение */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 0%), color-mix(in oklab, var(--a) 22%, transparent), transparent 45%),
    radial-gradient(120% 80% at 100% 100%, color-mix(in oklab, var(--b) 16%, transparent), transparent 60%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--a) 40%, var(--border)); box-shadow: 0 40px 80px -40px color-mix(in oklab, var(--a) 55%, transparent); }
.card.span-7 { grid-column: span 7; }
.card.span-5 { grid-column: span 5; }
.card.span-6 { grid-column: span 6; }
.card-top { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.app-glyph { display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--a), var(--b)); }
.app-glyph svg { width: 28px; height: 28px; stroke-width: 1.9; }
.card-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.card-domain { color: var(--muted); font-size: 14px; }
.card-arrow { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); transition: transform .4s var(--ease), background .3s, color .3s; flex: none; }
.card-arrow svg { width: 18px; height: 18px; }
.card:hover .card-arrow { background: var(--text); color: var(--bg); transform: rotate(-45deg); }
.card-tagline { margin: 18px 0 14px; font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.card-media { position: relative; margin-top: auto; padding-top: 26px; display: flex; justify-content: center; gap: 14px; }
.card-media .mini-phone { width: 46%; max-width: 210px; border-radius: 28px; padding: 6px; background: linear-gradient(160deg, #2a2d36, #0d0e12); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.1); margin-bottom: -150px; transition: transform .6s var(--ease); }
.card-media .mini-phone img { border-radius: 23px; }
.card-media .mini-phone:nth-child(2) { transform: translateY(40px); }
.card:hover .mini-phone:nth-child(1) { transform: translateY(-12px); }
.card:hover .mini-phone:nth-child(2) { transform: translateY(24px); }
.card-media .browser { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: var(--surface-solid); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); margin-bottom: -70px; transition: transform .6s var(--ease); }
.card:hover .browser { transform: translateY(-10px); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.browser-bar span { margin: 0 auto; padding: 2px 14px; font-size: 11px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.browser { position: relative; }
.browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.card[data-id="family"] .browser img { transform: scale(1.75); transform-origin: 50% 46%; }

/* Сервисы */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card.service { min-height: 290px; }
.card.service .card-tagline { font-size: 17px; margin-bottom: 18px; }
.card.service .svc-product { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.access-dot { display: inline-flex; align-items: center; gap: 7px; }
.access-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-open { color: var(--ok); }
.tone-invite { color: #f5b74e; }
.tone-private { color: #9aa3b5; }

.card.hidden { display: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- О сайте ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.about-card h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.about-card p { margin: 0; color: var(--text-2); }
.about-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--brand-a), var(--brand-b)); }
.about-card:nth-child(2) .about-ico { background: linear-gradient(140deg, var(--brand-b), var(--brand-c)); }
.about-card:nth-child(3) .about-ico { background: linear-gradient(140deg, var(--brand-c), #9be37a); }
.about-ico svg { width: 24px; height: 24px; }
.install { margin-top: 18px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--border-2); display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.install h3 { margin: 0; font-size: 18px; }
.install ol { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.install li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.install li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-weight: 600; font-size: 13px; }
.install li svg { width: 18px; height: 18px; color: var(--brand-b); }
.install p { grid-column: 2; margin: 0; color: var(--muted); font-size: 14px; }

.foot { max-width: 1240px; margin: 60px auto 0; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.foot p { margin: 0; }
.foot a:hover { color: var(--text); }
.noscript { max-width: 800px; margin: 20px auto; padding: 0 24px; }
.noscript a { text-decoration: underline; }

/* ---------- Детальная карточка ---------- */
dialog {
  --a: #888; --b: #aaa;
  width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 1px solid var(--border-2); border-radius: 32px;
  background: var(--bg); color: var(--text); box-shadow: 0 50px 120px -20px rgba(0,0,0,.7);
  overflow: hidden;
}
dialog[open] { display: flex; animation: pop .5s var(--ease); }
dialog::backdrop { background: rgba(5, 6, 10, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .35s ease; }
dialog.closing { animation: pop-out .25s ease forwards; }
dialog.closing::backdrop { animation: fade .25s ease reverse forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet:focus { outline: none; }
.sheet { flex: 1; overflow-y: auto; overscroll-behavior: contain; position: relative; isolation: isolate; }
.sheet::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(80% 100% at 15% 0%, color-mix(in oklab, var(--a) 30%, transparent), transparent 60%),
              radial-gradient(60% 80% at 100% 10%, color-mix(in oklab, var(--b) 22%, transparent), transparent 60%);
}
.d-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; pointer-events: none; }
.d-bar > * { pointer-events: auto; }
.d-nav { display: flex; gap: 8px; }
.d-close, .d-step { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.d-close:hover, .d-step:hover { background: var(--surface-2); }
.d-close svg, .d-step svg { width: 18px; height: 18px; }
.d-head { padding: 0 48px 8px; margin-top: -20px; }
.d-id { display: flex; align-items: center; gap: 18px; }
.d-id .app-icon { width: 76px; height: 76px; border-radius: 20px; }
.d-id .app-glyph svg { width: 38px; height: 38px; }
.d-kicker { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.d-head h2 { margin: 2px 0 0; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.02; }
.d-tagline { margin: 26px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; max-width: 30ch; text-wrap: balance; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.d-actions .btn-primary { background: linear-gradient(120deg, var(--a), var(--b)); color: #fff; box-shadow: 0 14px 34px -12px var(--a); }
.d-gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 48px 10px; scrollbar-width: none; }
.d-gallery::-webkit-scrollbar { display: none; }
.d-gallery figure { margin: 0; flex: none; scroll-snap-align: center; }
.d-gallery .g-phone { width: 250px; border-radius: 40px; padding: 8px; background: linear-gradient(160deg, #2a2d36, #0d0e12); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.d-gallery .g-phone img { border-radius: 32px; }
.d-gallery .g-wide { width: min(760px, 82vw); border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow); background: var(--surface-solid); }
.d-gallery figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 250px; }
.d-gallery .g-wide + figcaption, .d-gallery figure:has(.g-wide) figcaption { max-width: none; }
.d-top.split { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding-right: 32px; }
.d-top.split .d-gallery { padding: 0 16px 0 0; overflow: visible; }
.d-top.split .d-gallery figure:nth-child(2) { transform: translateY(40px); }
.d-top.split .d-gallery figcaption { display: none; }
.d-top.split + .d-body { padding-top: 70px; }
.d-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 30px 48px 48px; }
.d-lead { margin: 0 0 30px; font-size: 18px; color: var(--text-2); line-height: 1.65; text-wrap: pretty; }
.d-body h3 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.feature-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--a); background: color-mix(in oklab, var(--a) 14%, transparent); margin-bottom: 14px; }
.feature-ico svg { width: 20px; height: 20px; }
.feature h4 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.d-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.side-card h3 { margin-bottom: 12px; }
.side-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.access-big { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { padding: 6px 11px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.url-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.url-row code { flex: 1; font: 500 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 4px; border-radius: 8px; }
.copy:hover { color: var(--text); }
.copy svg { width: 17px; height: 17px; }
.pwa-steps { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.pwa-steps li + li { margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; translate: -50% 20px; opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: .3s var(--ease); pointer-events: none; }
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------- Появление при прокрутке ---------- */
@supports (animation-timeline: view()) {
  .card, .about-card, .install {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
}
.hero-copy > * { animation: in .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-art { animation: in 1.2s .15s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .card.span-7, .card.span-5 { grid-column: span 6; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; gap: 10px; }
  .hero-art { height: 480px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .top-nav { display: none; }
  .icon-btn { margin-left: auto; }
  .card.span-7, .card.span-5, .card.span-6 { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
  .install p { grid-column: 1; }
  .d-body { grid-template-columns: 1fr; }
  .d-top.split { display: block; padding-right: 0; }
  .d-top.split .d-gallery { padding: 30px 48px 10px; overflow-x: auto; }
  .d-top.split .d-gallery figure:nth-child(2) { transform: none; }
  .d-top.split .d-gallery figcaption { display: block; }
  .d-top.split + .d-body { padding-top: 30px; }
}
@media (max-width: 640px) {
  main, .top { padding-left: 16px; padding-right: 16px; }
  .hero-art { height: 400px; }
  .phone { width: 170px; border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 25px; }
  .p1 { left: 6%; }
  .c1 { left: 0; bottom: 30px; }
  .c2 { right: 0; top: 0; }
  .stats { gap: 22px; }
  .stats dt { font-size: 24px; }
  .toolbar { position: static; margin: 0 -6px 6px; padding: 6px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .search { min-width: 0; flex: 1 1 100%; height: 44px; }
  .search kbd { display: none; }
  .bento, .services { gap: 14px; }
  .services { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 22px; border-radius: 24px; }
  .card.app { min-height: 440px; }
  .card.service { min-height: 0; }
  .card-tagline { font-size: 17px; }
  .foot { flex-direction: column; }

  dialog { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; }
  dialog[open] { animation: sheet-up .45s var(--ease); }
  dialog.closing { animation: sheet-down .25s ease forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
  .d-bar { padding: 12px; }
  .d-head { padding: 0 20px 4px; margin-top: -8px; }
  .d-id .app-icon { width: 60px; height: 60px; border-radius: 16px; }
  .d-gallery, .d-top.split .d-gallery { padding: 26px 20px 6px; gap: 14px; }
  .d-gallery .g-phone { width: 210px; border-radius: 34px; padding: 6px; }
  .d-gallery .g-phone img { border-radius: 28px; }
  .d-body { padding: 24px 20px 40px; gap: 28px; }
  .features { grid-template-columns: 1fr; }
  .d-lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
