/* Gregorys — портфолио, версия 2. Подача кейсов — как у студии Луч, характер — как у Pragmatica. */
:root {
  --bg: #ffffff;
  --ink: #0d0d0f;
  --ink-2: #2a2a2f;
  --muted: #6c6c75;
  --line: #ececef;
  --soft: #f4f4f5;
  --accent: #3a5bff;
  --green: #22c55e;
  --violet: #7c5cff;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter Tight', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --night: #0d0d0f;   /* тёмные блоки и кнопки — тёмные в обеих темах */
  --paper: #ffffff;   /* белые карточки и плашки */
  color-scheme: light;
}
/* тёмная тема: по настройке устройства или кнопкой в шапке (data-theme ставит скрипт в <head>) */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0b0d;
    --ink: #f2f2f4;
    --ink-2: #d4d4da;
    --muted: #9a9aa3;
    --line: #26262c;
    --soft: #17171b;
    --night: #1c1c21;
    --paper: #1c1c21;
    --accent: #6f86ff;
  }

@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
.ic { width: 18px; height: 18px; flex: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 14px;
  font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn.dark { background: var(--night); color: #fff; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.dark:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.ghost { border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #d0d0d6; }
.btn.sm { padding: 6px 16px 6px 6px; font-size: 13px; border-radius: 999px; }
.nav-cta .ava.xs { width: 26px; height: 26px; }
.btn.lg { padding: 18px 30px; font-size: 17px; border-radius: 18px; gap: 10px; }
.btn.lg .ic { width: 19px; height: 19px; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { transform: translateY(-2px); }
.btn.ghost-light { border: 1px solid rgba(255,255,255,.24); color: #fff; }
.btn.ghost-light:hover { background: rgba(255,255,255,.08); }

/* ссылка-«перекат»: текст уезжает вверх, снизу приезжает копия */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll span { position: relative; display: block; transition: transform .5s var(--ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover span { transform: translateY(-100%); }

/* аватар (фото или буква) */
.ava { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ava.mono { background: linear-gradient(135deg, #b9f3d6, #8f7bff); color: var(--ink); font-weight: 600; }
.ava.xs { width: 24px; height: 24px; font-size: 12px; }
.ava.lg { width: 76px; height: 76px; margin: 0 auto 22px; font-size: 30px; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }

/* ---------- шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 66px; padding: 0 28px;
  --nav-bg: rgba(255,255,255,.84);
  isolation: isolate;
  transition: color .4s;
}
/* подложка шапки: размытие и цвет плавно сходят на нет ниже шапки — без жёсткого края */
.nav::before { content: ''; position: absolute; inset: 0 0 -34px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--nav-bg) 0, var(--nav-bg) 55%, transparent 100%);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
  transition: background .4s; }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.langs { display: flex; padding: 3px; border-radius: 10px; background: var(--soft); }
.langs a { padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.langs a:hover { color: var(--ink); }
.langs a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- первый экран: по центру, ниже — карусель работ ---------- */
.hero { max-width: 1000px; margin: 0 auto; padding: 72px 24px 0; text-align: center; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 7px 15px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.16); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,.05); } }
.hero-title { font-size: clamp(40px, 5.6vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.lang-ka .hero-title { font-size: clamp(28px, 4.2vw, 60px); letter-spacing: -.01em; line-height: 1.15; }
.rot { display: inline-block; vertical-align: bottom; color: var(--accent); text-align: left; white-space: nowrap; transition: width .28s var(--ease); }
.rot-t { display: inline-block; transition: opacity .22s ease, filter .22s ease; }
.rot.fade .rot-t { transition-duration: .1s; }
.rot.fade .rot-t { opacity: 0; filter: blur(3px); }
.hero-text { max-width: 580px; margin: 24px auto 0; font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }


/* ---------- карусель работ в рамках устройств ---------- */
.showcase-wrap { padding-top: 0; overflow: hidden; }
.showcase {
  --tw: clamp(300px, 44vw, 600px); /* ширина iPad; iPhone считается от неё */
  /* блок выше устройств на 70px сверху и снизу: маска обрезает всё за его краями, а тени длинные */
  position: relative; height: calc(var(--tw) * .92 + 180px); margin-bottom: -70px; outline: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.dev { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%); transition: transform .9s var(--ease), opacity .6s; will-change: transform; -webkit-tap-highlight-color: transparent; }
.js .showcase:not(.ready) .dev:not(.is-active), html:not(.js) .dev:not(.is-active) { opacity: 0; }
.dev-frame { display: block; background: #0e0e10; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .6s; }
.dev.is-active .dev-frame { box-shadow: 0 50px 90px -30px rgba(10,10,30,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.dev-tab { width: var(--tw); aspect-ratio: 4 / 3; padding: calc(var(--tw) * .022); border-radius: calc(var(--tw) * .055); }
.dev-phone { width: calc(var(--tw) * .4); aspect-ratio: 9 / 19.5; padding: calc(var(--tw) * .012); border-radius: calc(var(--tw) * .07); }
.dev-scr { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--tw) * .034); background: var(--paper); }
.dev-phone .dev-scr { border-radius: calc(var(--tw) * .058); }
.dev-scr.dark { background: #1e1c28; }
/* Нарисованные интерфейсы рассчитаны на ширину окна 86% (iPad) и телефона 31% исходной картинки.
   Поэтому «контейнер» делаем шире экрана в 1/k раз, а сам интерфейс — шириной k·100cqw = ровно экран. */
.dev-in { position: absolute; top: 0; left: 0; display: block; width: calc(100% / var(--k)); height: 100%; container-type: inline-size; }
.dev-tab .dev-in { --k: .86; }
.dev-phone .dev-in { --k: .31; }
.dev-win { position: absolute; top: 0; left: 0; width: 86cqw; height: 100%; border-radius: 0; box-shadow: none; }
.dev-in .mk-scr { width: 31cqw; height: 100%; border-radius: 0; }
.ph-search { flex: none; height: 4.2cqw; border-radius: 2cqw; background: #f2f2f4; }
.ph-banner { display: flex; flex: none; flex-direction: column; justify-content: flex-end; gap: 1cqw; height: 13cqw; padding: 2cqw; border-radius: 1.8cqw; background: linear-gradient(135deg, #7f5fd6, #efa6f6); }
.ph-tabs { display: flex; justify-content: space-around; margin-top: auto; padding-top: 1.6cqw; border-top: 1px solid #f1f1f3; }
.ph-tabs i { width: 3cqw; height: 3cqw; border-radius: 1cqw; background: #e4e4e8; }
.ph-tabs i.on { background: #7f5fd6; }
.sc-bar { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; padding: 0 16px; }
.sc-cap { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--soft); transition: opacity .3s, background .2s; }
.sc-cap:hover { background: #ececee; }
.sc-cap.swap { opacity: 0; }
.sc-text { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.3; }
.sc-text b { font-size: 15px; font-weight: 600; }
.sc-text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-cap:hover .card-pill { background: var(--night); color: #fff; }

/* ---------- секции ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 150px 32px 0; scroll-margin-top: 70px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.section-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
h2 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.lang-ka h2 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -.01em; }
.lead { max-width: 540px; font-size: 16px; color: var(--muted); }

/* текст появляется по словам */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js .split.is-split .w > span { transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split.is-split.in .w > span { transform: none; }

/* ---------- работы: карточки с живыми кусками интерфейса ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--tint); }
.card-top { position: absolute; top: 24px; left: 26px; right: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card h3 { font-size: 21px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.card-top p { max-width: 320px; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.card-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.65); font-size: 13px; transition: background .25s, color .25s; }
.card-pill .ic { width: 14px; height: 14px; }
.card:hover .card-pill { background: var(--night); color: #fff; }
.card-status { position: absolute; left: 26px; bottom: 22px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: var(--paper); font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card .frw { transition: translate .7s var(--ease); }
.card:hover .frw:nth-child(1) { translate: -52% -52%; }
.card:hover .frw:nth-child(2) { translate: -47% -54%; }
.card:hover .frw:nth-child(3) { translate: -50% -46%; }

/* ---------- куски интерфейса ---------- */
.art { position: absolute; inset: 30% 0 0 0; container-type: inline-size; }
.art-in { position: absolute; inset: 0; font-size: clamp(7px, 2.7cqi, 17px); }
.art-stage { inset: 0; }
.art-stage .art-in { font-size: clamp(7px, 1.45cqi, 15px); }
.frw { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r); }
.fr {
  padding: 1em 1.15em; border-radius: 1.1em;
  background: var(--paper); color: #141416; font-size: 1em; line-height: 1.32;
  box-shadow: 0 1em 2.6em -.7em rgba(25,25,50,.24), 0 0 0 1px rgba(0,0,0,.04);
  animation: fl 7s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes fl { 50% { transform: translateY(-.45em); } }
.fr b { font-weight: 600; }
.fr small { display: block; font-size: .78em; color: #7a7a84; }
.fr p { font-size: .9em; }
.fr .ic { width: 1.1em; height: 1.1em; }
.fr-head { display: flex; align-items: center; gap: .45em; margin-bottom: .55em; font-size: .95em; font-weight: 600; }
.ok-i { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--green); color: #fff; }
.ok-i .ic { width: 1em; height: 1em; stroke-width: 2.8; }
.ok-i.sm { width: 1.25em; height: 1.25em; }
.fbtn { display: block; padding: .62em 1em; border-radius: .7em; background: #2563eb; color: #fff; font-size: .88em; font-weight: 600; text-align: center; }
.fbtn.dark { background: #111; }
.fbtn.gold { margin-top: .7em; background: #a07850; }
.fbtn.wa { display: flex; align-items: center; justify-content: center; gap: .4em; background: #22c55e; }
.fbtn.sm { display: inline-block; padding: .4em .75em; font-size: .8em; }

.fr-appointment { width: 17em; }
.ap-row { display: flex; gap: .8em; padding: .55em 0; border-top: 1px solid #f0f0f2; }
.ap-row b { min-width: 3em; font-size: .85em; color: #555; }
.ap-row i { display: block; font-style: normal; font-size: .92em; font-weight: 600; }
.ap-row.free i { color: #16a34a; }
.fr-arrived, .fr-ai { display: flex; align-items: center; gap: .6em; padding: .75em 1.15em; border-radius: 999px; font-size: .95em; font-weight: 600; white-space: nowrap; }
.fr-oki { display: flex; gap: .75em; width: 17.5em; background: #15151b; color: #fff; }
.oki-av { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: linear-gradient(135deg, #01b3ff, #7c5cff); color: #0d0d0f; }
.fr-oki p { margin-top: .15em; color: rgba(255,255,255,.8); }
.fr-okiTip { display: flex; flex-direction: column; align-items: flex-start; gap: .45em; padding: 0; background: none; box-shadow: none; }
.sugg { padding: .55em .95em; border-radius: 999px; background: var(--paper); font-size: .88em; white-space: nowrap; box-shadow: 0 .6em 1.6em -.6em rgba(25,25,50,.3), 0 0 0 1px rgba(0,0,0,.05); }
.fr-kpi { width: 16em; }
.bars { display: flex; align-items: flex-end; gap: .6em; height: 7em; }
.bars span { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3em; height: 100%; }
.bars i { width: 100%; border-radius: .4em; background: linear-gradient(to top, #2d7ff9, #8fd8ff); }
.bars small { font-size: .7em; }
.fr-patients { width: 14em; }
.pt-row { display: flex; align-items: center; gap: .6em; padding: .42em 0; font-size: .92em; }
.pav { display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; color: #fff; font-size: .8em; font-weight: 600; }
.pav.c0 { background: #f59e0b; } .pav.c1 { background: #3b82f6; } .pav.c2 { background: #ec4899; }
.fr-link { margin-top: .45em; font-size: .85em; font-weight: 600; color: #2563eb; }
.fr-roles { width: 23em; }
.rl-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: .6em; align-items: center; justify-items: center; }
.rl-grid small { font-size: .72em; }
.rl-grid b { justify-self: start; font-size: .9em; }
.no { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px dashed #d4d4da; }
.fr-chat { width: 16.5em; }
.grp { display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; background: #01b3ff; color: #fff; font-size: .8em; }
.cb { width: fit-content; max-width: 88%; margin-top: .45em; padding: .55em .8em; border-radius: 1em; font-size: .88em; }
.cb.in { background: #f1f1f4; border-bottom-left-radius: .3em; }
.cb.out { margin-left: auto; background: #2d7ff9; color: #fff; border-bottom-right-radius: .3em; }
.cb.file { display: flex; align-items: center; gap: .4em; }
.fr-lesson { width: 14.5em; }
.ls-video { display: grid; place-items: center; height: 6.5em; margin-bottom: .7em; border-radius: .8em; background: linear-gradient(135deg, #9fe3ff, #2d7ff9); color: #fff; }
.ls-video .ic { width: 2.2em; height: 2.2em; fill: #fff; }
.fr-lesson b { display: block; font-size: .92em; }
.prog { height: .42em; margin: .6em 0 .3em; overflow: hidden; border-radius: 1em; background: #f0f0f2; }
.prog i { display: block; height: 100%; border-radius: 1em; background: #2d7ff9; }
.fr-quiz { width: 15.5em; }
.qz { display: flex; align-items: center; gap: .5em; margin-top: .45em; padding: .5em .65em; border-radius: .7em; border: 1px solid #ececef; font-size: .88em; }
.qz.on { border-color: var(--green); background: #effbf3; }
.rd { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px solid #d4d4da; }
.fr-task, .fr-task2, .fr-doctor, .fr-order, .fr-tgNotice { display: flex; align-items: center; gap: .75em; }
.fr-task, .fr-task2 { width: 15em; }
.cbx { flex: none; width: 1.45em; height: 1.45em; border-radius: .4em; border: 1.8px solid #c9c9d0; }
.strike { color: #888; text-decoration: line-through; }
.fr-lock { display: flex; flex-direction: column; align-items: center; gap: .65em; width: 12em; padding: 1.4em; text-align: center; }
.dots { display: flex; gap: .6em; }
.dots i { width: .8em; height: .8em; border-radius: 50%; border: 1.5px solid #222; }
.dots i.f { background: #222; }
.fr-lock .face { width: 2.6em; height: 2.6em; color: #2d7ff9; }
.fid { font-size: .8em; color: #555; }
.fr-booking { width: 15.5em; }
.slots { display: flex; gap: .4em; margin: .7em 0; }
.slots span { flex: 1; padding: .45em 0; border-radius: .6em; border: 1px solid #e3e8f5; font-size: .85em; text-align: center; }
.slots .on { border-color: #2563eb; background: #2563eb; color: #fff; }
.fr-serp { width: 21em; }
.fr .url { display: flex; align-items: center; gap: .3em; color: #3c7a3c; }
.url .ic { width: 1em; height: 1em; }
.fr .sr-t { display: block; margin: .25em 0; color: #1a0dab; font-size: 1.02em; font-weight: 500; }
.fr-doctor { width: 15em; }
.doc-av { flex: none; width: 3em; height: 3em; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #f3d9c6 0 25%, transparent 26%), linear-gradient(#dbe8ff, #8fb5f7); }
.fr-blocks { width: 13.5em; }
.bl { display: flex; align-items: center; gap: .5em; margin-top: .3em; padding: .5em .6em; border-radius: .6em; font-size: .88em; color: #444; }
.bl .ic { width: 1em; height: 1em; color: #aaa; }
.bl.on { background: #eef3ff; color: #2563eb; outline: 1.5px dashed #2563eb; }
.fr-blockDrag { width: 12.5em; outline: .15em solid #8b5cf6; }
.mini-docs { display: flex; gap: .5em; }
.mini-docs i { flex: 1; height: 3.4em; border-radius: .6em; background: radial-gradient(circle at 50% 40%, #c9d8f5 0 22%, transparent 23%), #f1f4fb; }
.fr-article { width: 16.5em; }
.art-img { display: block; height: 6em; margin-bottom: .7em; border-radius: .8em; background: linear-gradient(135deg, #dbe8ff, #a5c4f7); }
.fr .atag { color: #2563eb; font-weight: 600; }
.fr-article b { display: block; margin: .3em 0; }
.fr-service { width: 13.5em; }
.sv-img { display: block; height: 6.5em; margin-bottom: .7em; border-radius: .8em; background: linear-gradient(135deg, #7a5a40, #c49d78 55%, #ead7bf); }
.fr-toggle { width: 15.5em; }
.tg-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .5em 0; border-top: 1px solid #f0f0f2; font-size: .88em; }
.sw { position: relative; width: 2.4em; height: 1.35em; border-radius: 1em; background: #ddd; }
.sw::after { content: ''; position: absolute; top: .15em; left: .15em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--paper); }
.sw.on { background: var(--green); }
.sw.on::after { left: 1.2em; }
.field { padding: .15em .6em; border: 1px solid #e5e5ea; border-radius: .4em; font-weight: 600; }
.thumb-s { width: 2.2em; height: 1.6em; border-radius: .3em; background: linear-gradient(135deg, #c49d78, #ead7bf); }
.fr-langs { white-space: nowrap; }
.lg { display: flex; gap: .4em; margin-top: .5em; }
.lg span { padding: .45em .85em; border-radius: 999px; border: 1px solid #ececef; font-size: .9em; }
.lg .on { border-color: #111; background: #111; color: #fff; }
.fr-request { width: 15.5em; }
.fr-request p { margin: .2em 0 .75em; }
.tg-av { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: #2aabee; color: #fff; }
.fr-product { width: 11.5em; }
.bottle { display: grid; place-items: end center; height: 7em; margin-bottom: .6em; padding-bottom: .6em; border-radius: .8em; background: linear-gradient(150deg, #fde4f4, #efa6f6); }
.bottle i { position: relative; width: 2.4em; height: 4.4em; border-radius: .7em .7em .5em .5em; background: var(--paper); box-shadow: inset 0 -1.2em 0 #f0c6f5; }
.bottle i::before { content: ''; position: absolute; top: -.8em; left: .7em; width: 1em; height: .9em; border-radius: .2em; background: #7f5fd6; }
.pr-row { display: flex; align-items: center; justify-content: space-between; margin-top: .5em; }
.fr-cart { width: 14.5em; }
.ct-row { display: flex; align-items: center; gap: .6em; padding: .35em 0; font-size: .9em; }
.ct-row i { flex: 1; height: .55em; border-radius: 1em; background: #ececf0; }
.ph-s { width: 2em; height: 2em; border-radius: .5em; }
.ct-total { display: flex; justify-content: space-between; margin: .3em 0 .6em; padding-top: .6em; border-top: 1px dashed #e3e3e8; font-size: .9em; }
.fr-order { width: 15.5em; }
.bell { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: #7f5fd6; color: #fff; }
.fr-order2 { display: flex; align-items: center; gap: .6em; padding: .6em .95em; border-radius: .8em .8em .3em .3em; white-space: nowrap; }
.tab-ic { display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: .3em; background: #111; color: #fff; font-size: .75em; font-weight: 700; }
.tab-x { margin-left: 1em; color: #aaa; }
.fr-flats { width: 16.5em; }
.fl-row { display: flex; align-items: center; gap: .6em; padding: .5em 0; border-top: 1px solid #f0f0f2; font-size: .9em; }
.fl-row span:nth-child(2) { flex: 1; }
.fl-img { width: 2.2em; height: 2.2em; border-radius: .5em; background: linear-gradient(135deg, #a3b2fb, #efa6f6); }
.code { display: flex; align-items: center; gap: .5em; margin-top: .4em; padding: .55em .85em; border: 1.5px dashed #7f5fd6; border-radius: .7em; font-weight: 700; letter-spacing: .04em; }
.code b { margin-left: .6em; color: #7f5fd6; }
.fr-ai { background: #8b5cf6; color: #fff; }
.spark .ic { width: 1.2em; height: 1.2em; }
.fr-aiText { width: 17.5em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: #8b5cf6; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fr-seo { width: 13.5em; }
.seo-row { display: flex; align-items: center; gap: .5em; padding: .35em 0; font-size: .9em; }
.seo-ok { margin-top: .5em; padding: .45em .7em; border-radius: .6em; background: #effbf3; color: #15803d; font-size: .85em; font-weight: 600; }



/* ---------- обо мне ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.about-card { display: flex; flex-direction: column; min-height: 460px; padding: 32px; border-radius: var(--radius); background: var(--night); color: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.about-label { margin-bottom: 18px; font-size: 13px; color: rgba(255,255,255,.5); }
.about-card h2 { margin-bottom: 18px; font-size: clamp(30px, 3.2vw, 44px); color: #fff; }
.lang-ka .about-card h2 { font-size: clamp(26px, 2.6vw, 36px); }
.about-card p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.72); }
.about-card p + p { margin-top: 12px; }
.about-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 32px; }
.about-photo { flex: none; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.about-foot .btn { flex: 1; justify-content: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { display: flex; flex-direction: column; min-height: 220px; padding: 26px; border-radius: var(--radius); background: var(--soft); }
.stat-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; }
.stat .odo { font-size: clamp(44px, 4.6vw, 64px); white-space: nowrap; }
.stat .unit { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); }
.stat p { margin-top: auto; padding-top: 20px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- ИИ в бизнесе: слева текст, справа — окно Оки один в один как в приложении East Clinic ---------- */
.ai { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.ai-lead { max-width: 480px; margin-top: 18px; font-size: 17px; color: var(--muted); }
.ai-case { max-width: 480px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.ai-case b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
.ai-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.ai-cta span { max-width: 240px; font-size: 14px; color: var(--muted); }

/* Оки: значения взяты из components/oki/OkiWindow.tsx и OkiWindowFx.web.tsx */
@property --oki-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.oki-stage {
  display: flex; justify-content: center; padding: 34px; border-radius: 40px; isolation: isolate;
  background:
    radial-gradient(55% 45% at 12% 88%, rgba(255,159,10,.55), transparent 70%),
    radial-gradient(50% 45% at 90% 78%, rgba(175,82,222,.5), transparent 70%),
    radial-gradient(60% 55% at 62% 6%, rgba(90,200,250,.55), transparent 70%),
    #e8ebf7;
}
.oki-wrap { position: relative; width: 100%; max-width: 520px; }
.oki-glow { position: absolute; inset: -2px; z-index: 0; border-radius: 46px; background: conic-gradient(from var(--oki-angle), #5AC8FA, #AF52DE, #FF2D55, #FF9F0A, #FFD60A, #5AC8FA); filter: blur(9px); opacity: 0; }
.oki-glow.hello { animation: oki-hello 1300ms cubic-bezier(.23,1,.32,1) both; }
.oki-glow.busy { opacity: .85; animation: oki-spin 3.2s linear infinite; }
@keyframes oki-hello { 0% { opacity: 0; --oki-angle: 0deg; } 30% { opacity: .9; } 100% { opacity: 0; --oki-angle: 200deg; } }
@keyframes oki-spin { to { --oki-angle: 360deg; } }
.oki-win {
  position: relative; z-index: 1; display: flex; flex-direction: column; height: 660px; overflow: hidden;
  border-radius: 44px; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Georgian', sans-serif;
  background-image: linear-gradient(to bottom, rgba(4,4,6,.96) 0%, rgba(6,6,9,.93) 38%, rgba(14,14,18,.70) 68%, rgba(40,40,46,.30) 100%);
  backdrop-filter: blur(34px) saturate(180%); -webkit-backdrop-filter: blur(34px) saturate(180%);
  box-shadow: 0 30px 90px rgba(0,0,0,.40), inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -1.5px 1px rgba(255,255,255,.30), inset 0 -22px 34px -18px rgba(255,255,255,.16);
}
.oki-head { display: flex; flex: none; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.oki-tool { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 26px; background: rgba(255,255,255,.13); }
.oki-tool .ic { width: 18px; height: 18px; color: #fff; }
.oki-tool.m { margin-left: -4px; }
.oki-tool.m .ic { width: 15px; height: 15px; color: rgba(255,255,255,.56); }
.oki-tool.x .ic { width: 16px; height: 16px; }
.oki-face { flex: none; width: 36px; height: 36px; object-fit: contain; transform: scale(1.27) translateY(-1.4%); filter: saturate(1.45) brightness(1.12) contrast(1.04); }
.oki-who b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; }
.oki-who small { display: block; font-size: 12.5px; line-height: 16px; color: rgba(255,255,255,.56); }
.oki-sp { flex: 1; }
.oki-thread { display: flex; flex: 1; flex-direction: column; gap: 16px; min-height: 0; padding: 4px 20px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.oki-thread::-webkit-scrollbar { display: none; }
.oki-hello { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 4px; }
.oki-hello img { width: 96px; height: 96px; filter: saturate(1.45) brightness(1.12) contrast(1.04); }
.oki-hello p { font-size: 24px; font-weight: 500; letter-spacing: -.3px; }
.oki-q { align-self: flex-end; max-width: 86%; padding: 9px 14px; border-radius: 20px; background: rgba(255,255,255,.13); border: .5px solid rgba(255,255,255,.16); font-size: 15.5px; line-height: 21px; animation: oki-in .35s var(--ease); }
.oki-a { display: flex; flex-direction: column; gap: 10px; font-size: 16.5px; line-height: 24px; animation: oki-in .45s var(--ease); }
@keyframes oki-in { from { opacity: 0; transform: translateY(10px); } }
.oki-skills { padding: 0 12px; border-radius: 20px; background: rgba(255,255,255,.13); }
.oki-skill { display: flex; gap: 11px; padding: 11px 0; border-top: .5px solid rgba(255,255,255,.16); }
.oki-skill:first-child { border-top: 0; }
.oki-sic { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.14); }
.oki-sic .ic { width: 16px; height: 16px; color: #fff; }
.oki-skill b { display: block; font-size: 15.5px; font-weight: 600; line-height: 20px; }
.oki-skill p { margin-top: 2px; font-size: 14px; line-height: 19px; color: rgba(255,255,255,.86); }
.oki-steps { display: flex; flex-direction: column; gap: 6px; }
.oki-step { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 19px; color: rgba(255,255,255,.56); }
.oki-step .ic { width: 15px; height: 15px; color: #34D399; stroke-width: 2.6; }
.oki-step.now { font-size: 15px; line-height: 20px; color: rgba(255,255,255,.86); }
.oki-dots { display: inline-flex; gap: 5px; }
.oki-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.56); animation: oki-dot 1.1s ease-in-out infinite; }
.oki-dots i:nth-child(2) { animation-delay: .15s; }
.oki-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes oki-dot { 0%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.oki-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #38383A; border-radius: 14px; background: rgba(14,14,18,.82); font-size: 14px; line-height: 19px; }
.oki-table th { padding: 7px 10px; background: rgba(255,255,255,.07); font-weight: 600; text-align: left; }
.oki-table td { padding: 7px 10px; border-top: 1px solid #38383A; color: rgba(255,255,255,.86); }
.oki-btn { align-self: flex-start; padding: 9px 16px; border-radius: 18px; background: var(--paper); color: #000; font-size: 14px; font-weight: 600; }
.oki-chips { display: flex; flex: none; gap: 8px; padding: 12px 20px 0; overflow-x: auto; scrollbar-width: none; }
.oki-chips::-webkit-scrollbar { display: none; }
.oki-chip { flex: none; height: 38px; padding: 0 15px; border-radius: 19px; background: rgba(255,255,255,.13); border: .5px solid rgba(255,255,255,.16); color: #fff; font-size: 14.5px; white-space: nowrap; transition: background .2s, opacity .3s; }
.oki-chip:hover { background: rgba(255,255,255,.2); }
.oki-chip:disabled { opacity: .45; cursor: default; }
.oki-ask { display: flex; flex: none; align-items: flex-end; gap: 8px; padding: 12px 20px 20px; }
.oki-field { display: flex; flex: 1; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 26px; background: rgba(255,255,255,.14); border: .5px solid rgba(255,255,255,.16); cursor: text; }
.oki-field input { width: 100%; padding: 0; border: 0; outline: none; background: none; color: #fff; font: inherit; font-size: 16px; line-height: 22px; }
.oki-field input::placeholder { color: rgba(255,255,255,.56); }
.oki-send { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); border: .5px solid rgba(255,255,255,.16); color: #fff; transition: background .2s, color .2s; }
.oki-send .ic { width: 18px; height: 18px; }
.oki-send .up { display: none; stroke-width: 2.4; }
.oki-send.on { background: var(--paper); border-color: transparent; color: #000; }
.oki-send.on .mic { display: none; }
.oki-send.on .up { display: block; }

.fr-calls { width: 21em; }
.cw { display: flex; align-items: center; gap: .22em; height: 3.2em; margin: .2em 0 .4em; }
.cw i { flex: 1; border-radius: .2em; }
.cw .a { background: #3a5bff; }
.cw .b { background: #c7cdf9; }
.cw-leg { display: flex; gap: 1em; margin-bottom: .5em; font-size: .78em; color: #6b6b75; }
.cw-leg span::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .35em; border-radius: 50%; vertical-align: -.05em; }
.cw-leg .a::before { background: #3a5bff; }
.cw-leg .b::before { background: #c7cdf9; }
.cw-tag { display: flex; align-items: center; gap: .55em; padding: .4em 0; border-top: 1px solid #f0f0f2; font-size: .88em; }
.ok-i.bad { background: #ef4444; }
.cw-sum { display: flex; align-items: center; gap: .45em; margin-top: .55em; padding: .6em .8em; border-radius: .7em; background: #f3f0ff; color: #5b3fd6; font-size: .85em; font-weight: 600; }
.fr-llm { display: flex; align-items: center; gap: .75em; white-space: nowrap; }
.llm-ic { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: #111; color: #fff; }
.fr-llm small { display: flex; align-items: center; gap: .4em; }
.fr-llm .dot { width: .55em; height: .55em; box-shadow: none; }

/* ---------- живая демо-админка ---------- */
.demo { display: grid; grid-template-columns: 360px 1fr; gap: 18px; padding: 24px; border-radius: 36px; background: var(--soft); }
.demo-admin { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 26px; background: var(--paper); box-shadow: 0 20px 40px -24px rgba(0,0,0,.2); }
.da-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.da-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.da-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.da-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(58,91,255,.12); }
.da-price { display: flex; gap: 8px; }
.da-price input { text-align: center; -moz-appearance: textfield; }
.da-price input::-webkit-outer-spin-button, .da-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.da-price button { flex: none; width: 46px; border: 1px solid var(--line); border-radius: 12px; font-size: 20px; transition: background .2s; }
.da-price button:hover { background: var(--soft); }
.da-price button:active { transform: scale(.94); }
.da-photos { display: flex; gap: 10px; }
.da-photos button { width: 58px; height: 58px; border-radius: 14px; transition: transform .2s var(--ease), box-shadow .2s; }
.da-photos button:hover { transform: translateY(-2px); }
.da-photos button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.da-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.da-sw { position: relative; flex: none; width: 48px; height: 28px; border-radius: 99px; background: #d9d9de; appearance: none; -webkit-appearance: none; cursor: pointer; transition: background .25s; }
.da-sw::before { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.da-sw:checked { background: var(--green); }
.da-sw:checked::before { transform: translateX(20px); }
.da-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-a { background: linear-gradient(135deg, #7a5a40, #c49d78 55%, #ead7bf); }
.ph-b { background: linear-gradient(135deg, #1f5f9e, #5aa6e0 55%, #c8e6ff); }
.ph-c { background: linear-gradient(135deg, #2f6b4f, #6cbf8f 55%, #d6f3e1); }
.demo-site { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--paper); box-shadow: 0 20px 40px -24px rgba(0,0,0,.2); }
.ds-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ds-top i { width: 10px; height: 10px; border-radius: 50%; background: #e3e3e7; }
.ds-top b { margin-left: 8px; padding: 5px 14px; border-radius: 99px; background: var(--soft); font-size: 12px; font-weight: 500; color: var(--muted); }
.ds-langs { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px; background: var(--soft); }
.ds-langs button { padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ds-langs button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ds-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; padding: 32px; background: linear-gradient(#faf7f3, #fff); }
.ds-card { position: relative; padding: 14px; border-radius: 22px; background: var(--paper); box-shadow: 0 14px 34px -16px rgba(60,40,20,.28); transition: opacity .4s, filter .4s; }
.ds-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: 14px; transition: opacity .3s; }
.ds-card b { display: block; min-height: 1.3em; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.ds-card small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.ds-btn { display: block; min-height: 40px; margin-top: 14px; padding: 10px; border-radius: 12px; background: #a07850; color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.ds-card.ghost i { display: block; height: 12px; width: 70%; margin-top: 4px; border-radius: 99px; background: #ecebe8; }
.ds-card.ghost i.s { width: 45%; margin-top: 10px; }
.ds-card.ghost .ds-btn { background: #e9e2da; }
.ds-hidden { position: absolute; top: 24px; left: 24px; padding: 5px 11px; border-radius: 99px; background: var(--night); color: #fff; font-size: 12px; opacity: 0; transition: opacity .3s; }
.ds-card.off { opacity: .45; filter: grayscale(1); }
.ds-card.off .ds-hidden { opacity: 1; }
.ds-card.flash { animation: flash .7s var(--ease); }
@keyframes flash { from { box-shadow: 0 0 0 0 rgba(58,91,255,.55), 0 14px 34px -16px rgba(60,40,20,.28); } to { box-shadow: 0 0 0 16px rgba(58,91,255,0), 0 14px 34px -16px rgba(60,40,20,.28); } }
.ds-toast { position: absolute; left: 50%; top: 62px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--night); color: #fff; font-size: 14px; white-space: nowrap; opacity: 0; transform: translate(-50%, -12px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; z-index: 2; }
.ds-toast .ic { width: 16px; height: 16px; color: #6ee7a0; stroke-width: 2.6; }
.ds-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- услуги вкладками ---------- */
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; margin-bottom: -1px; padding: 14px 20px; border-bottom: 2px solid transparent; font-size: 15px; color: var(--muted); transition: color .2s, border-color .3s; }
.tab:hover { color: var(--ink); }
.tab.on { border-color: var(--ink); color: var(--ink); }
.panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; padding: 44px 0 0; }
.js .panel { display: none; }
.js .panel.on { display: grid; animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.promise { font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.lang-ka .promise { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0; }
.panel-side p { font-size: 15px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.pills span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.panel-case { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--tint); transition: transform .3s var(--ease); }
.panel-case:hover { transform: translateY(-2px); }
.panel-case small { font-size: 12px; color: var(--muted); }
.panel-case .ic { margin-left: auto; }

/* ---------- принципы ---------- */
.pr-nav { display: flex; align-items: center; gap: 10px; }
.pr-count { margin-right: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-count b { color: var(--ink); font-weight: 500; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.round:hover { border-color: var(--ink); background: var(--night); color: #fff; }
.principles { display: grid; }
.pr { grid-area: 1 / 1; }
.pr p { max-width: 1020px; font-size: clamp(28px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1.14; }
.lang-ka .pr p { font-size: clamp(22px, 2.8vw, 40px); letter-spacing: 0; line-height: 1.3; }
.js .pr { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s; }
.js .pr.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s; }
html:not(.js) .principles { display: block; }
html:not(.js) .pr + .pr { margin-top: 28px; }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.sign b { color: var(--ink); font-weight: 500; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
.num { display: flex; flex-direction: column; min-height: 240px; padding: 26px 26px 24px; border-radius: var(--radius); background: var(--soft); transition: transform .4s var(--ease); }
a.num:hover { transform: translateY(-4px); }
.num p { margin-top: auto; padding-top: 24px; font-size: 14.5px; color: var(--muted); }
.num.dark { background: var(--night); color: #fff; }
.num.dark p { color: rgba(255,255,255,.62); }
.num-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; }
.num-link .ic { width: 14px; height: 14px; }

/* цифры-барабаны */
.odo { display: inline-flex; font-size: clamp(56px, 6vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.odo .dg { display: inline-block; height: 1em; overflow: hidden; }
.odo .dg > span { display: flex; flex-direction: column; transition: transform 1.6s var(--ease); transition-delay: calc(var(--k) * 90ms); }
.odo .dg > span > span { display: block; height: 1em; }

/* ---------- этапы ---------- */
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-no { padding-top: 4px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 6px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.step p { max-width: 640px; font-size: 15px; color: var(--muted); }

/* ---------- контакты ---------- */
.contact { position: relative; overflow: hidden; padding: 80px 32px; border-radius: 36px; background: var(--night); color: #fff; text-align: center; }
.contact::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none; background: radial-gradient(40% 50% at 30% 50%, rgba(132,227,184,.18), transparent 70%), radial-gradient(40% 50% at 70% 40%, rgba(58,91,255,.3), transparent 70%); }
.contact > * { position: relative; }
.contact h2 { margin-bottom: 14px; }
.contact p { max-width: 480px; margin: 0 auto 30px; font-size: 16px; color: rgba(255,255,255,.64); }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- подвал и меню-таблетка ---------- */
.footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; max-width: 1160px; margin: 0 auto; padding: 64px 32px 120px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer b { color: var(--ink); font-weight: 500; }
.footer-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.pill {
  position: fixed; left: 50%; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; background: rgba(18,18,22,.88); color: #fff; font-size: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  opacity: 0; transform: translate(-50%, 140%);
  transition: transform .6s var(--ease), opacity .4s;
}
.pill.show { opacity: 1; transform: translate(-50%, 0); }
.pill .roll { margin: 9px 14px; color: rgba(255,255,255,.82); }
.pill .roll:hover { color: #fff; }
.pill-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap; }
.pill-cta .ic { width: 15px; height: 15px; color: var(--accent); }

/* ---------- страница кейса ---------- */
.page-case .nav:not(.past) { --nav-bg: var(--c); color: #fff; }
.page-case .nav:not(.past) .nav-links { color: rgba(255,255,255,.86); }
.page-case .nav:not(.past) .langs { background: rgba(255,255,255,.14); }
.page-case .nav:not(.past) .langs a { color: rgba(255,255,255,.7); }
.page-case .nav:not(.past) .langs a.on { background: var(--paper); color: var(--ink); }
.page-case .nav:not(.past) .nav-cta { background: var(--paper); color: var(--ink); box-shadow: none; }
.cover { position: relative; overflow: hidden; padding: 40px 32px 0; border-radius: 0 0 44px 44px; background: var(--c); color: #fff; text-align: center; }
.back { position: absolute; top: 24px; left: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; transition: background .2s; }
.back:hover { background: rgba(255,255,255,.24); }
.back .ic { width: 16px; height: 16px; }
.cover-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 44px 0 22px; }
.cover-tags span { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-size: 13px; }
.cover-tags .soft { border-color: transparent; background: rgba(255,255,255,.92); color: var(--ink); }
.cover h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.lang-ka .cover h1 { font-size: clamp(32px, 5vw, 70px); letter-spacing: -.01em; line-height: 1.15; }
.cover-sum { max-width: 720px; margin: 22px auto 0; font-size: 19px; color: rgba(255,255,255,.82); }
.cover-shot { max-width: 1040px; margin: 60px auto 0; overflow: hidden; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 60px rgba(0,0,0,.25); will-change: transform; }
.vis-cover { aspect-ratio: 16 / 9; }

.passport { max-width: 1160px; margin: 0 auto; padding: 40px 32px 0; }
.passport dl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.passport dt { margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.passport dd { font-size: 15px; font-weight: 500; line-height: 1.35; }

.chapter { display: grid; grid-template-columns: 250px 1fr; gap: 40px; max-width: 1160px; margin: 0 auto; padding: 120px 32px 0; }
.ch-label { position: sticky; top: 96px; align-self: start; font-size: 14px; color: var(--muted); }
.ch-label span { color: var(--ink); font-weight: 600; }
.chapter.wide { grid-template-columns: 1fr; }
.chapter.wide .ch-label { position: static; }
.big-text { max-width: 840px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.012em; line-height: 1.4; }
.ch-body h4 { margin: 40px 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.tasks { list-style: none; max-width: 840px; }
.tasks li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.tasks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e8f8ee; color: #15803d; stroke-width: 2.6; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { padding: 28px; border-radius: var(--radius); background: var(--tint); }
.fact p { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

.pair { margin: 0 0 80px; }
.stage-box { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; border-radius: 34px; background: var(--tint); }
.stage-vis { position: absolute; top: 13%; left: 50%; width: 60%; overflow: hidden; border-radius: 22px 22px 0 0; transform: translateX(-50%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.stage-vis .vis { aspect-ratio: 4 / 3; }
.pair figcaption { max-width: 660px; margin: 26px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.focus-title { margin-bottom: 18px; font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.stage-box.focus { margin-top: 40px; background: var(--c); }
.design { display: flex; align-items: center; flex-wrap: wrap; gap: 56px; }
.swatches { display: flex; padding-left: 18px; }
.swatches span { width: 88px; height: 88px; margin-left: -18px; border-radius: 50%; border: 4px solid #fff; background: var(--s); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.type-sample { display: flex; flex-direction: column; }
.type-sample b { font-size: 96px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.type-sample span { margin-top: 8px; font-size: 16px; font-weight: 500; }
.type-sample small { font-size: 13px; color: var(--muted); }
.result-text { max-width: 900px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.lang-ka .result-text { font-size: clamp(20px, 2.1vw, 30px); letter-spacing: 0; }
.stack { margin-top: 22px; color: var(--muted); }

.industry { max-width: 1096px; margin: 130px auto 0; padding: 72px 32px; border-radius: 36px; background: var(--night); color: #fff; text-align: center; }
.industry h2 { margin-bottom: 30px; }
.more { margin-top: 130px; overflow: hidden; }
.more-head { max-width: 1160px; margin: 0 auto 30px; padding: 0 32px; }
.more-track { display: flex; gap: 14px; padding: 0 32px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.more-track::-webkit-scrollbar { display: none; }
.more-track.h { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
.card.mini { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; }
.more-track.few { max-width: 1160px; margin: 0 auto; padding: 0 32px 20px; overflow: visible; }
.more-track.few .card.mini { flex: 1 1 0; }

.next-case { position: relative; display: block; overflow: hidden; margin: 130px 16px 0; padding: 72px 32px 0; border-radius: 44px; background: var(--c); color: #fff; text-align: center; }
.next-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; }
.next-label .ic { width: 15px; height: 15px; }
.next-title { display: block; margin: 24px 0 10px; font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.lang-ka .next-title { font-size: clamp(34px, 5.5vw, 84px); letter-spacing: -.01em; }
.next-sum { display: block; font-size: 18px; opacity: .8; }
.next-shot { display: block; max-width: 900px; margin: 54px auto 0; overflow: hidden; border-radius: 26px 26px 0 0; transform: translateY(40px); transition: transform .8s var(--ease); }
.next-case:hover .next-shot { transform: translateY(0); }
.page-case .footer { padding-top: 48px; }

/* ---------- схематичные окна и телефоны ---------- */
.vis { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g); }
.vis-in { position: absolute; inset: 0; container-type: inline-size; }
.vis-portal   { --g: radial-gradient(120% 90% at 18% 0%, #4f9bff 0%, #1f59ee 72%); }
.vis-app      { --g: linear-gradient(160deg, #9fe3ff 0%, #01b3ff 55%, #2d7ff9 100%); }
.vis-clinic   { --g: linear-gradient(160deg, #d6e6ff 0%, #5b8ef0 100%); }
.vis-serenity { --g: linear-gradient(160deg, #f1e5d3 0%, #b48a64 100%); }
.vis-shop     { --g: linear-gradient(160deg, #f7dcf3 0%, #a68ae8 100%); }
.vis-builder  { --g: radial-gradient(120% 90% at 82% 0%, #4d3f82 0%, #15141c 72%); }
.mk { position: absolute; }
.ln { display: block; flex: none; height: 1.1cqw; border-radius: 1cqw; background: #e7e7eb; }
.ln.d { background: #2a2a30; }
.ln.big { height: 2cqw; }
.ln.w { background: rgba(255,255,255,.92); }
.ln.l { background: rgba(255,255,255,.18); }
.ln.l.on { background: #01b3ff; }
.av { flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #dfe5e2; }
.av.lg { width: 5.4cqw; height: 5.4cqw; background: linear-gradient(160deg, #e5edff, #b9cdf6); }
.mk-win { overflow: hidden; border-radius: 1.8cqw; background: var(--paper); box-shadow: 0 2.4cqw 6cqw rgba(0,0,0,.22); }
.mk-top { display: flex; align-items: center; gap: .8cqw; height: 4cqw; padding: 0 1.8cqw; border-bottom: 1px solid #f0f0f2; }
.mk-top i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #e2e2e6; }
.mk-top b { width: 34%; height: 1.9cqw; margin-left: 2cqw; border-radius: 1cqw; background: #f2f2f4; }
.mk-phone { padding: .9cqw; border-radius: 5cqw; background: #0e0e10; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.28); }
.mk-scr { position: relative; display: flex; flex-direction: column; gap: 1.4cqw; height: 100%; padding: 4.6cqw 2.2cqw 2.2cqw; overflow: hidden; border-radius: 4.2cqw; background: var(--paper); }
.mk-scr::before { content: ''; position: absolute; top: 1.2cqw; left: 50%; width: 32%; height: 1.8cqw; transform: translateX(-50%); border-radius: 1cqw; background: #0e0e10; }
.scr-head { display: flex; align-items: center; gap: 1.2cqw; padding-bottom: 1.4cqw; border-bottom: 1px solid #f1f1f3; }
.dash { display: grid; grid-template-columns: 22% 1fr; height: calc(100% - 4cqw); }
.dash-side { display: flex; flex-direction: column; gap: 1.7cqw; padding: 2.4cqw 2cqw; background: #13261f; }
.dash-logo { width: 3cqw; height: 3cqw; margin-bottom: 1cqw; border-radius: .8cqw; background: #01b3ff; }
.dash-main { display: flex; flex-direction: column; gap: 2cqw; min-width: 0; padding: 2.4cqw; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.pill-mini { width: 9cqw; height: 2.6cqw; border-radius: 2cqw; background: #111; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.kpi { display: flex; flex-direction: column; gap: 1.3cqw; padding: 1.6cqw; border: 1px solid #efeff1; border-radius: 1.3cqw; }
.kpi em { display: block; height: 2.2cqw; border-radius: .6cqw; background: #1f8f63; }
.kpi em.b { background: #3b82f6; }
.kpi em.o { background: #f59e0b; }
.chart { display: flex; align-items: flex-end; gap: .9cqw; height: 16cqw; padding: 1.6cqw; border-radius: 1.3cqw; background: #f5f8f6; }
.chart i { flex: 1; border-radius: .5cqw .5cqw .2cqw .2cqw; background: linear-gradient(to top, #2d7ff9, #8fd8ff); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 1.4cqw; padding: 1.1cqw 0; border-bottom: 1px solid #f1f1f3; }
.tag-mini { width: 6cqw; height: 1.9cqw; margin-left: auto; border-radius: 1cqw; background: #e3f6ec; }
.bub { flex: none; height: 4.4cqw; border-radius: 2cqw; }
.bub.in { align-self: flex-start; background: #f1f1f4; border-bottom-left-radius: .6cqw; }
.bub.out { align-self: flex-end; background: #2d7ff9; border-bottom-right-radius: .6cqw; }
.bub.img { width: 62%; height: 13cqw; background: linear-gradient(135deg, #ffd3bd, #ff8f6b); }
.scr-input { flex: none; height: 4cqw; margin-top: auto; border-radius: 2cqw; border: 1px solid #ececef; }
.video { display: grid; place-items: center; flex: none; height: 15cqw; border-radius: 1.6cqw; background: linear-gradient(135deg, #9fe3ff, #2d7ff9); }
.play { position: relative; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: rgba(255,255,255,.92); }
.play::after { content: ''; position: absolute; left: 1.8cqw; top: 1.3cqw; border-left: 1.4cqw solid #2d7ff9; border-top: .9cqw solid transparent; border-bottom: .9cqw solid transparent; }
.lesson-s { display: flex; align-items: center; gap: 1.2cqw; padding: 1.1cqw; border-radius: 1.3cqw; background: #f7f7f8; }
.n-dot { display: grid; place-items: center; flex: none; width: 2.8cqw; height: 2.8cqw; border-radius: 50%; background: #e7e7ea; color: #555; font-size: 1.4cqw; font-weight: 600; }
.n-dot.on { background: #2d7ff9; color: #fff; }
.site { display: flex; flex-direction: column; gap: 2.8cqw; padding: 2.4cqw 3cqw; }
.site-nav { display: flex; align-items: center; gap: 2cqw; }
.logo-dot { width: 3cqw; height: 3cqw; margin-right: 1cqw; border-radius: 50%; background: #2563eb; }
.btn-mini { display: block; flex: none; width: 9cqw; height: 2.8cqw; margin-left: auto; border-radius: 2cqw; background: #2563eb; }
.btn-mini.wide { width: 14cqw; margin: 1cqw 0 0; }
.btn-mini.light { margin: 1.2cqw auto 0; background: rgba(255,255,255,.88); }
.btn-mini.dark { margin-top: auto; background: #111; }
.site-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; align-items: center; }
.site-copy { display: flex; flex-direction: column; gap: 1.4cqw; }
.site-img { position: relative; height: 22cqw; overflow: hidden; border-radius: 2cqw; background: linear-gradient(160deg, #dbe8ff, #8fb5f7); }
.doc { position: absolute; bottom: 0; left: 50%; width: 52%; height: 62%; transform: translateX(-50%); border-radius: 48% 48% 0 0 / 38% 38% 0 0; background: linear-gradient(#fff, #e5eeff); }
.doc::before { content: ''; position: absolute; left: 50%; top: -48%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #f3d9c6; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.doc-card { display: flex; flex-direction: column; align-items: center; gap: 1cqw; padding: 1.8cqw 1.2cqw; border: 1px solid #eef0f6; border-radius: 1.4cqw; }
.spa-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; height: 27cqw; background: linear-gradient(135deg, #7a5a40, #c49d78 55%, #ead7bf); }
.spa-list { display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.6cqw; }
.spa-item { display: flex; align-items: center; gap: 1.6cqw; }
.spa-item .ln:last-child { margin-left: auto; }
.sq { flex: none; width: 5cqw; height: 5cqw; border-radius: 1.2cqw; background: linear-gradient(#ead7bf, #c49d78); }
.adm-row { display: flex; align-items: center; justify-content: space-between; padding: 1.2cqw 0; border-bottom: 1px solid #f1f1f3; }
.tgl { position: relative; flex: none; width: 4.4cqw; height: 2.4cqw; border-radius: 2cqw; background: #e3e3e7; }
.tgl::after { content: ''; position: absolute; top: .3cqw; left: .3cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--paper); }
.tgl.on { background: var(--green); }
.tgl.on::after { left: 2.3cqw; }
.cart-dot { width: 2.6cqw; height: 2.6cqw; margin-left: auto; border-radius: 50%; background: #9b6cf0; }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw 1.3cqw; }
.prod { display: flex; flex-direction: column; gap: .9cqw; }
.ph { display: block; flex: none; height: 11cqw; border-radius: 1.4cqw; }
.ph.sm { width: 5cqw; height: 5cqw; }
.p1 { background: linear-gradient(150deg, #fde4f4, #efa6f6); }
.p2 { background: linear-gradient(150deg, #e2e8ff, #a3b2fb); }
.p3 { background: linear-gradient(150deg, #fff3cc, #fbcf4f); }
.p4 { background: linear-gradient(150deg, #dcfbe6, #80e7a6); }
.mk-card { display: flex; flex-direction: column; gap: 1.7cqw; padding: 2.6cqw; border-radius: 2.2cqw; background: var(--paper); box-shadow: 0 2.4cqw 6cqw rgba(40,10,80,.22); }
.cart-row { display: flex; align-items: center; gap: 1.4cqw; }
.cart-row .ln:last-child { margin-left: auto; }
.cart-total { display: flex; justify-content: space-between; padding-top: 1.6cqw; border-top: 1px dashed #e6e6ea; }
.mk-win.dark { background: #1e1c28; }
.mk-win.dark .mk-top { border-color: rgba(255,255,255,.07); }
.mk-win.dark .mk-top i { background: rgba(255,255,255,.16); }
.mk-win.dark .mk-top b { background: rgba(255,255,255,.07); }
.bld { display: grid; grid-template-columns: 17% 1fr; height: calc(100% - 4cqw); }
.bld-side { display: flex; flex-direction: column; gap: 1.4cqw; padding: 2.2cqw 1.8cqw; border-right: 1px solid rgba(255,255,255,.07); }
.thumb { height: 5cqw; border-radius: 1cqw; background: rgba(255,255,255,.08); }
.bld-canvas { display: flex; flex-direction: column; gap: 1.8cqw; margin: 2.4cqw; padding: 2.4cqw; border-radius: 1.4cqw; background: var(--paper); }
.sec { display: flex; flex-direction: column; gap: 1.2cqw; padding: 2cqw; border: 1.5px dashed #e3e3ea; border-radius: 1.2cqw; }
.sec.hero-s { background: #f5f2ff; }
.sec.cols { flex-direction: row; gap: 1.4cqw; }
.sec.cols span { flex: 1; height: 8cqw; border-radius: 1cqw; background: #f1f1f4; }
.mk-drag { display: flex; flex-direction: column; gap: 1.2cqw; padding: 2.2cqw; border-radius: 1.4cqw; background: var(--paper); outline: .35cqw solid #8b5cf6; transform: rotate(-4deg); box-shadow: 0 3cqw 6cqw rgba(0,0,0,.4); }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .split.is-split .w > span, .js .pr { transform: none !important; transition: opacity .3s !important; }
  .odo .dg > span { transition: none; }
}

/* ---------- планшет ---------- */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav-links { display: none; }
  .demo { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-card { min-height: 0; }
  .ai { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 110px 20px 0; }
  .panel { grid-template-columns: 1fr; gap: 24px; }
  .chapter { grid-template-columns: 1fr; gap: 18px; padding: 90px 20px 0; }
  .ch-label { position: static; }
  .passport { padding: 32px 20px 0; }
  .passport dl { grid-template-columns: repeat(2, 1fr); }
  .stage-box { aspect-ratio: 4 / 3; }
  .stage-vis { width: 76%; }
  .art-stage .art-in { font-size: clamp(7px, 2.2cqi, 15px); }
  .footer { padding: 48px 20px 110px; }
}

/* ---------- телефон ---------- */
@media (max-width: 680px) {
  .nav { height: 58px; padding: 0 16px; }
  .nav-cta { display: none; }
  .hero { padding: 44px 16px 0; }
  .showcase { --tw: 78vw; }
  .sc-text small { display: none; }
  .sc-cap { padding-left: 18px; }
  .ds-top i { display: none; }
  .ds-top b { margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hero-text { font-size: 16px; }
  .hero-cta .btn.lg { width: 100%; justify-content: center; padding: 16px 22px; font-size: 16px; }
      .demo { padding: 12px; border-radius: 26px; }
  .about-stats { grid-template-columns: 1fr; }
  .stat { min-height: 170px; }
  .oki-stage { padding: 10px; border-radius: 28px; }
  .oki-win { height: 600px; border-radius: 34px; }
  .oki-glow { border-radius: 36px; }
  .ds-body { grid-template-columns: 1fr; padding: 20px; }
  .ds-card.ghost { display: none; }
  .section { padding: 90px 16px 0; }
  .works, .nums, .facts-grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 5 / 5.2; }
  .card-top { top: 18px; left: 18px; right: 16px; }
  .card h3 { font-size: 18px; }
  .card-pill { display: none; }
  .art { inset: 34% 0 0 0; }
  .num { min-height: 190px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .contact, .industry { padding: 56px 20px; border-radius: 26px; }
  .contact-btns .btn { width: 100%; justify-content: center; }
  .footer { flex-direction: column; padding: 40px 16px 110px; }
  .footer-r { align-items: flex-start; }
  .pill { bottom: 12px; max-width: calc(100vw - 20px); font-size: 13px; }
  .pill .roll { margin: 8px 10px; }
  .pill .roll:nth-child(n+2) { display: none; }
  .cover { padding: 76px 16px 0; border-radius: 0 0 30px 30px; }
  .back { top: 18px; left: 16px; }
  .cover-tags { margin-top: 0; }
  .cover-sum { font-size: 16px; }
  .cover-shot { margin-top: 40px; border-radius: 18px 18px 0 0; }
  .passport dl { grid-template-columns: 1fr 1fr; gap: 16px; }
  .chapter { padding: 72px 16px 0; }
  .stage-box { aspect-ratio: 4 / 4.2; border-radius: 24px; }
  .stage-vis { top: 10%; width: 84%; }
  .art-stage .art-in { font-size: clamp(6.5px, 2.6cqi, 14px); }
  .pair { margin-bottom: 56px; }
  .pair figcaption { font-size: 16px; }
  .swatches span { width: 60px; height: 60px; }
  .design { gap: 28px; }
  .industry { margin: 90px 16px 0; }
  .more-head, .more-track { padding-left: 16px; padding-right: 16px; }
  .more-track.few { flex-direction: column; padding: 0 16px 20px; }
  .more-track.few .card.mini { flex: none; width: 100%; }
  .next-case { margin: 90px 10px 0; padding: 52px 18px 0; border-radius: 30px; }
}
/* лента «Больше кейсов», пока закреплена, стоит по центру экрана */
.more.pinning { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 80px); }

/* сцена без макета: куски интерфейса крупнее, сама сцена ниже */
.stage-box.solo { aspect-ratio: 16 / 7; }
.stage-box.solo .art-stage .art-in { font-size: clamp(8px, 2cqi, 21px); }
@media (max-width: 980px) { .stage-box.solo { aspect-ratio: 4 / 3; } .stage-box.solo .art-stage .art-in { font-size: clamp(7px, 2.8cqi, 18px); } }
@media (max-width: 680px) { .stage-box.solo { aspect-ratio: 4 / 5; } .stage-box.solo .art-stage .art-in { font-size: clamp(7px, 3.2cqi, 16px); } }
/* на телефоне куски интерфейса в сценах без макета — аккуратной стопкой, без наложений */
@media (max-width: 680px) {
  .stage-box.solo { aspect-ratio: auto; padding: 40px 16px; }
  .stage-box.solo .art-stage { position: relative; inset: auto; }
  .stage-box.solo .art-in { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 13px !important; }
  .stage-box.solo .frw { position: relative; left: auto; top: auto; translate: none; }
}

/* ---------- настоящие снимки интерфейсов в рамках ---------- */
.mk-win > .shot { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top left; }
.mk-scr.has-shot { padding: 0; gap: 0; }
/* у снимков своя шапка экрана — «чёлку» не рисуем, иначе она закрывает заголовок */
.mk-scr.has-shot::before { display: none; }
.mk-scr > .shot { display: block; flex: none; width: 100%; height: auto; }
.dev-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* телефон: строка состояния сверху, снимок под ней */
.dev-phone .dev-scr { display: flex; flex-direction: column; container-type: inline-size; }
.dev-phone .dev-img { position: static; flex: 1; min-height: 0; height: auto; object-position: top center; }
.mk-scr.has-shot { container-type: inline-size; }
.sbar { position: relative; z-index: 1; display: flex; flex: none; align-items: center; justify-content: space-between; height: 13cqw; padding: 1.2cqw 7cqw 0 9.5cqw; color: #0e0e10; }
.sbar.on-dark { color: #fff; }
.sbar b { font: 600 4.3cqw/1 -apple-system, 'SF Pro Text', Inter, sans-serif; letter-spacing: -.01em; }
.sbar .island { position: absolute; top: 3cqw; left: 50%; width: 31cqw; height: 9cqw; transform: translateX(-50%); border-radius: 5cqw; background: #000; }
.sb-ic { display: flex; align-items: center; gap: 1.5cqw; }
.sb-ic svg { display: block; height: 3.1cqw; width: auto; fill: currentColor; }
.sb-ic svg:last-child { height: 3.4cqw; }

/* нечётная последняя карточка — во всю ширину; картинку держим в середине того же размера, что у соседних */
@media (min-width: 681px) {
  .works > .card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 12 / 5; }
  .works > .card:last-child:nth-child(odd) .art { top: 16%; left: 25%; right: 25%; }
}


/* ================= подробные страницы кейсов (src/landing.mjs) ================= */
/* ---------- экран и глубина резкости ---------- */
.ld-screen { position: relative; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px rgba(14, 26, 61, .08), 0 30px 60px -28px rgba(10, 30, 90, .35); }
.ld-img { display: block; width: 100%; height: auto; }
/* слои размытия лежат точно поверх резкого снимка, пиксель в пиксель — иначе текст двоится.
   У края рамки размытие становится прозрачным, и там просвечивает резкий снимок, а не фон: ореола нет */
.ld-dof { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ld-dof .ld-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-dof.d1 .ld-img { filter: blur(1.4px); }
.ld-dof.d2 .ld-img { filter: blur(3.6px); }
.ld-dof.d3 .ld-img { filter: blur(7px); }
/* дальний угол экрана — левый верхний (так стоит наклон), ближний — правый нижний */
.ld-dof.d1 { -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 22%, transparent 42%, transparent 70%, #000 92%); mask-image: linear-gradient(135deg, #000 0%, #000 22%, transparent 42%, transparent 70%, #000 92%); }
.ld-dof.d2 { -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 10%, transparent 28%, transparent 86%, rgba(0,0,0,.7) 100%); mask-image: linear-gradient(135deg, #000 0%, #000 10%, transparent 28%, transparent 86%, rgba(0,0,0,.7) 100%); }
.ld-dof.d3 { -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 15%); mask-image: linear-gradient(135deg, #000 0%, transparent 15%); }


/* ---------- фон как у портала: светлая основа, тёплое и голубые пятна (как shell-aurora), без точек ---------- */
.pbg { position: relative; isolation: isolate; background:
  radial-gradient(60% 70% at 0% 0%, rgba(255, 196, 150, .55), transparent 70%),
  radial-gradient(55% 65% at 100% 8%, rgba(140, 186, 255, .6), transparent 70%),
  radial-gradient(60% 60% at 30% 100%, rgba(255, 214, 180, .45), transparent 70%),
  radial-gradient(55% 60% at 100% 100%, rgba(160, 200, 255, .55), transparent 70%),
  #f2f4f7; }

/* ---------- обложка: экран под углом ---------- */
.ld-scene { position: relative; width: min(1180px, 100%); margin: 56px auto 0; aspect-ratio: 16 / 9.4; perspective: 2000px; container-type: inline-size; }
.ld-scene-in { --rx: 20; --ry: -18; --rz: 5; position: absolute; inset: 4% 11% 6%; display: flex; align-items: center; transform-style: preserve-3d; transform-origin: 50% 55%; transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotateZ(calc(var(--rz) * 1deg)); }
.ld-scene .ld-screen.mon { width: 100%; border-radius: 1.6cqw; box-shadow: 0 0 0 .9cqw #0b1124, 0 0 0 calc(.9cqw + 1px) rgba(255,255,255,.08), 0 6cqw 10cqw -3cqw rgba(4, 14, 52, .55); }

/* ---------- стеклянные карточки ---------- */
.ld-gl { position: absolute; left: var(--x); top: var(--y); z-index: 3; translate: -50% -50%; rotate: var(--r); display: flex; flex-direction: column; gap: .35em; width: max-content; min-width: 11em; max-width: 19em; padding: 1em 1.15em; border-radius: 1.3em; background: linear-gradient(140deg, rgba(255,255,255,.88), rgba(255,255,255,.64)); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 1.4em 3em -1.2em rgba(10, 30, 90, .4), 0 .2em .6em rgba(10, 30, 90, .07); color: #0e1a3d; font-size: clamp(11px, 1.35cqi, 16px); line-height: 1.25; }
.ld-gl small { font-size: .8em; opacity: .62; }
.ld-gl b { font-weight: 600; }
.ld-gl p { margin: 0; }
.ld-gl .ld-big { white-space: nowrap; font-size: 2.1em; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.ld-gl.blue { background: linear-gradient(140deg, rgba(1,179,255,.95), rgba(45,127,249,.93)); color: #fff; border-color: rgba(255,255,255,.35); }
.ld-gl.blue small { opacity: .82; }
.ld-gl.dark { flex-direction: row; align-items: flex-start; gap: .8em; background: rgba(8, 15, 40, .78); color: #fff; border-color: rgba(255,255,255,.12); }
.ld-gl.dark p { margin-top: .2em; font-size: .92em; opacity: .82; }
.ld-gl:has(.ld-call) { flex-direction: row; align-items: center; gap: .75em; }
.ld-gl > div { display: flex; flex-direction: column; gap: .15em; }
.ld-oki-av { flex: none; width: 2.7em; height: 2.7em; object-fit: contain; }
.ld-ok { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: rgba(255,255,255,.25); }
.ld-gl:not(.blue) .ld-ok { background: #e3f7ea; color: #16a34a; }
.ld-ok svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ld-call { display: grid; flex: none; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #22c55e; color: #fff; }
.ld-call .ic { width: 1.2em; height: 1.2em; }
.ld-dots { display: flex; gap: .28em; margin-top: .35em; }
.ld-dots i { width: .4em; height: .4em; border-radius: 50%; background: currentColor; opacity: .25; }
.ld-dots i.on { opacity: 1; background: #d6ff5c; }
.ld-chip { align-self: flex-start; margin-top: .35em; padding: .38em .85em; border-radius: 999px; background: #0e1a3d; color: #fff; font-size: .8em; }
.ld-up { align-self: flex-start; padding: .2em .6em; border-radius: 999px; background: #e3f7ea; color: #16a34a; font-size: .8em; font-weight: 600; }
.ld-bar { height: .42em; margin-top: .45em; overflow: hidden; border-radius: 1em; background: rgba(255,255,255,.3); }
.ld-bar i { display: block; height: 100%; border-radius: inherit; background: var(--paper); }

/* ---------- общие заголовки разделов ---------- */
.ld-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ld-n { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.ld-head h2 { margin: 14px 0 18px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.ld-head p { font-size: 19px; line-height: 1.55; color: var(--muted); }

/* ---------- «Главное»: карусель ---------- */
.ld-hl { padding: 120px 0 40px; overflow: hidden; }
.ld-hl-top { width: min(1180px, calc(100% - 32px)); margin: 0 auto 32px; }
.ld-hl-top h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.035em; }
.ld-hl-track { display: flex; gap: 18px; padding: 0 max(16px, calc((100% - 1180px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100% - 1180px) / 2)); scrollbar-width: none; }
.ld-hl-track::-webkit-scrollbar { display: none; }
.ld-hl-card { position: relative; flex: none; width: min(860px, 82vw); aspect-ratio: 16 / 10.5; overflow: hidden; scroll-snap-align: start; border-radius: 44px; }
.ld-hl-txt { position: absolute; top: 34px; left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.ld-hl-txt b { font-size: clamp(20px, 2.1vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.ld-hl-txt span { font-size: 16px; color: var(--muted); }
.ld-hl-shot { position: absolute; left: 9%; right: 9%; top: 26%; }
.ld-hl-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.ld-hl-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef1f6; color: var(--ink); cursor: pointer; transition: background .2s; }
.ld-hl-btn:hover { background: #e2e7ef; }
.ld-hl-btn .ic { width: 18px; height: 18px; }
.ld-hl-dots { display: flex; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #eef1f6; }
.ld-hl-dots i { width: 8px; height: 8px; border-radius: 99px; background: #b8c0cc; transition: width .3s, background .3s; }
.ld-hl-dots i.on { width: 26px; background: var(--night); }

/* ---------- большой экран с текстом ---------- */
.ld-big-sec { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 0; }
.ld-big-stage { position: relative; padding: 6% 7% 0; overflow: hidden; border-radius: 44px; container-type: inline-size; }
.ld-big-in .ld-screen { border-radius: 26px 26px 0 0; }
.ld-feats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 980px; margin: 44px auto 0; }
.ld-feats3 > div { display: flex; flex-direction: column; gap: 12px; }
.ld-fi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--c); }
.ld-fi .ic { width: 20px; height: 20px; }
.ld-feats3 p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.ld-feats3 b { color: var(--ink); font-weight: 600; }

/* ---------- бенто (как у Луча) ---------- */
.ld-bento-sec { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 0; }
.ld-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ld-tile { position: relative; overflow: hidden; border-radius: 44px; container-type: inline-size; }
.ld-tile.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7.6; }
.ld-tile.half { aspect-ratio: 1 / 1; }
.ld-tile.tall { grid-column: 1 / -1; aspect-ratio: 16 / 7.6; }
.ld-tile-shot { position: absolute; }
.ld-tile .ld-gl { font-size: clamp(11px, 2.4cqi, 17px); }
.ld-tile.wide .ld-gl, .ld-tile.tall .ld-gl { font-size: clamp(11px, 1.4cqi, 17px); }

/* ---------- Оки ---------- */
.ld-oki { position: relative; margin: 140px 12px 0; padding: clamp(90px, 11vw, 150px) 0 300px; overflow: hidden; border-radius: 44px 44px 0 0; color: #fff; background: none; }
.ld-oki::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  /* низ раздела плавно растворяется в белом фоне страницы: много промежуточных шагов, без светлой полосы и края */
  background: radial-gradient(60% 260px at 50% calc(100% - 260px), rgba(45,127,249,.18), transparent 70%),
    linear-gradient(to bottom, #060609 0, #08080b calc(100% - 420px), #0d0e12 calc(100% - 360px), #1a1b21 calc(100% - 300px), #33353d calc(100% - 245px), #5c5f69 calc(100% - 195px), #8e919a calc(100% - 150px), #bdc0c7 calc(100% - 105px), #e2e4e8 calc(100% - 60px), #f7f8f9 calc(100% - 25px), var(--bg) 100%); }
.ld-oki-edge { position: absolute; top: -40px; left: 8%; right: 8%; height: 80px; z-index: 0; border-radius: 50%; background: conic-gradient(from var(--oki-angle), #5AC8FA, #AF52DE, #FF2D55, #FF9F0A, #FFD60A, #5AC8FA); filter: blur(40px); opacity: .55; animation: oki-spin 9s linear infinite; pointer-events: none; }
.ld-oki > *:not(.ld-oki-edge) { position: relative; z-index: 1; }
.ld-oki-head { max-width: 780px; margin: 0 auto; padding: 0 16px; text-align: center; }
.ld-oki .ld-n { color: #7fd6ff; }
.ld-oki-face { display: block; width: 96px; height: 96px; margin: 26px auto 8px; object-fit: contain; }
.ld-oki h2 { font-size: clamp(36px, 4.6vw, 66px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.ld-oki-head p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.72); }
.ld-oki-tabs { width: min(1080px, calc(100% - 32px)); margin: 64px auto 0; }
.ld-oki-stage { display: grid; }
.ld-oki-pane { grid-area: 1 / 1; opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ld-oki-pane.on { opacity: 1; transform: none; }
.ld-oki-pane .ld-screen { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -30px rgba(0, 0, 0, .7); }
.ld-seg { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 32px auto 0; padding: 5px; overflow-x: auto; border-radius: 999px; background: rgba(255,255,255,.08); }
.ld-seg button { flex: none; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: 14px; cursor: pointer; transition: background .25s, color .25s; }
.ld-seg button.on { background: var(--paper); color: #0e1a3d; }
.ld-seg-txt { display: grid; max-width: 620px; margin: 22px auto 0; text-align: center; }
.ld-seg-txt p { grid-area: 1 / 1; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.72); opacity: 0; transition: opacity .4s; }
.ld-seg-txt p.on { opacity: 1; }
.ld-spheres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: min(1180px, calc(100% - 32px)); margin: 100px auto 0; }
.ld-sph { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); }
.ld-sph-top { display: flex; align-items: center; gap: 10px; }
.ld-sph-top small { flex: 1; font-size: 13px; line-height: 1.25; opacity: .7; }
.ld-sph-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(140deg, #01b3ff, #2d7ff9); }
.ld-sph-ic .ic { width: 20px; height: 20px; color: #fff; }
.ld-st { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.ld-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.ld-st.st-dev::before { background: #ffb547; }
.ld-sph h4 { font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.ld-sph p { flex: 1; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.66); }
.ld-q { align-self: flex-start; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(1,179,255,.16); color: #bfe9ff; font-size: 14px; line-height: 1.35; }
.ld-server { background: linear-gradient(140deg, rgba(1,179,255,.34), rgba(45,127,249,.22)); border-color: rgba(127,214,255,.3); }

/* ---------- стена экранов (как у Apple) ---------- */
.ld-wall { padding: 110px 0 0; overflow: hidden; }
.ld-wall-head { max-width: 760px; margin: 0 auto 56px; padding: 0 16px; text-align: center; }
.ld-wall-head h2 { font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.035em; }
.ld-wall-head p { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.ld-wall-view { position: relative; }
.ld-wall-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 22px; width: 140vw; margin-left: -20vw; transform-origin: 50% 30%; }
.ld-wall-grid .ld-screen { border-radius: 22px; box-shadow: 0 0 0 1px rgba(14, 26, 61, .08), 0 24px 50px -24px rgba(10, 30, 90, .35); transition: filter .6s; }
/* край стены «не в фокусе», как у объектива */
.ld-wall-grid .ring1 { filter: blur(2.5px); }

@media (max-width: 980px) {
  .ld-spheres { grid-template-columns: repeat(2, 1fr); }
  .ld-feats3 { grid-template-columns: 1fr; gap: 18px; max-width: 520px; }
  .ld-feats3 > div { flex-direction: row; align-items: flex-start; }
  .ld-wall-grid { width: 220vw; margin-left: -60vw; gap: 14px; }
}
@media (max-width: 680px) {
  .ld-scene { aspect-ratio: 4 / 3.1; margin-top: 36px; }
  .ld-scene-in { inset: 8% 4% 8%; }
  .ld-scene .ld-gl { font-size: 10px; min-width: 9em; }
  .ld-gl.hide-m { display: none; }
  .ld-head p, .ld-wall-head p { font-size: 16px; }
  .ld-hl { padding: 56px 0 70px; }
  .ld-hl-top { margin-bottom: 20px; }
  .ld-hl-card { width: 86vw; aspect-ratio: 4 / 4.6; border-radius: 26px; }
  .ld-hl-txt { top: 24px; padding: 0 18px; gap: 4px; }
  .ld-hl-txt b { font-size: 20px; }
  .ld-hl-txt span { font-size: 14px; line-height: 1.35; }
  /* снимок начинается ниже подписи и уходит за правый и нижний край */
  .ld-hl-shot { left: 7%; right: -45%; top: 40%; }
  .ld-hl-shot .ld-screen { border-radius: 14px; }
  .ld-hl-nav { margin-top: 20px; }
  .ld-big-sec, .ld-bento-sec { padding-top: 96px; }
  .ld-big-stage { border-radius: 26px; padding: 8% 0 0 6%; }
  .ld-big-in { width: 170%; }
  .ld-bento { grid-template-columns: 1fr; }
  .ld-tile, .ld-tile.wide, .ld-tile.tall, .ld-tile.half { aspect-ratio: 1 / 1; border-radius: 26px; }
  .ld-tile .ld-tile-shot { left: 7% !important; top: 10% !important; width: 230% !important; }
  .ld-tile .ld-gl { font-size: 12px; }
  .ld-spheres { grid-template-columns: 1fr; margin-top: 60px; }
  .ld-wall-grid { width: 300vw; margin-left: -100vw; }
}

.ld-film video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0b1124; }

/* ================= живое окно Оки (src/oki-demo.mjs) — повторяет .portal-ai-* портала ================= */
@property --pai-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.okd { width: min(1180px, calc(100% - 32px)); margin: 64px auto 0; container-type: inline-size; }
/* 1em = 16 «пикселей портала» при ширине сцены 1260 — окно везде в тех же пропорциях */
.okd-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 30px; font-size: calc(100cqw / 90); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 110px -40px rgba(0,0,0,.8); background: #eef2f8; }
.okd-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.okd-sc.on { opacity: 1; visibility: visible; transition: opacity .45s; }
.okd-page { position: absolute; inset: 0; }
.okd-page img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.okd-progress { position: absolute; left: 50%; bottom: 1.2em; z-index: 9; width: 9em; height: .28em; translate: -50% 0; overflow: hidden; border-radius: 1em; background: rgba(10,14,30,.18); }
.okd-progress i { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(0); border-radius: inherit; background: rgba(10,14,30,.6); }

/* появление «из стекла»: сверху, с 0.9 и из размытия — как @starting-style у .portal-ai-card */
[data-okd] [data-at] { transition: opacity .26s cubic-bezier(.23,1,.32,1); }
[data-okd] [data-at]:not(.on) { opacity: 0; }
[data-okd] p[data-at]:not(.on), [data-okd] .okd-tr[data-at]:not(.on), [data-okd] .okd-drow[data-at]:not(.on), [data-okd] .okd-chips:not(.on), [data-okd] .okd-task:not(.on), [data-okd] .okd-chart:not(.on), [data-okd] .okd-table:not(.on), [data-okd] .okd-day:not(.on) { display: none; }
[data-okd] .okd-step.on, [data-okd] .okd-tr.on, [data-okd] .okd-drow.on, [data-okd] .okd-chips.on, [data-okd] .okd-task.on, [data-okd] .okd-user.on { animation: okd-in .26s cubic-bezier(.23,1,.32,1) both; }
@keyframes okd-in { from { opacity: 0; transform: translateY(6px); } }

.okd-win, .okd-pop { position: absolute; z-index: 5; color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Noto Sans Georgian', sans-serif;
  --ink: #fff; --text: rgba(255,255,255,.86); --muted: rgba(255,255,255,.56); --chip: rgba(255,255,255,.13); --line: rgba(255,255,255,.16);
  transform-origin: top center; transition: opacity .26s cubic-bezier(.23,1,.32,1), transform .46s cubic-bezier(.22,1,.36,1), filter .32s cubic-bezier(.23,1,.32,1), width .42s cubic-bezier(.32,.72,0,1); }
.okd-win { top: 2.2em; left: 50%; width: 36.25em; margin-left: -18.125em; }
.okd-win.okd-listen { width: 18.75em; margin-left: -9.375em; }
.okd-win:not(.on), .okd-pop:not(.on) { opacity: 0; transform: translateY(-1.1em) scale(.9); filter: blur(12px); }
.okd-body { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 2.75em;
  background: linear-gradient(to bottom, rgba(4,4,6,.96) 0%, rgba(6,6,9,.93) 38%, rgba(14,14,18,.7) 68%, rgba(40,40,46,.3) 100%);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  box-shadow: 0 1.9em 5.6em rgba(0,0,0,.4), inset 0 0 0 1px var(--line), inset 0 -1.5px 1px rgba(255,255,255,.3), inset 0 -1.4em 2.1em -1.1em rgba(255,255,255,.16); }
.okd-glow { position: absolute; inset: -2px; z-index: -1; border-radius: 2.9em; background: conic-gradient(from var(--pai-angle), #5AC8FA, #AF52DE, #FF2D55, #FF9F0A, #FFD60A, #5AC8FA); filter: blur(9px); opacity: 0; transition: opacity .32s; }
.busy > .okd-glow { opacity: .85; animation: okd-spin 3.2s linear infinite; }
.hello > .okd-glow { animation: okd-hello 1.3s cubic-bezier(.23,1,.32,1) both; }
@keyframes okd-spin { to { --pai-angle: 360deg; } }
@keyframes okd-hello { 0% { opacity: 0; --pai-angle: 0deg; } 30% { opacity: .9; } 100% { opacity: 0; --pai-angle: 200deg; } }

/* «Слушаю…» — узкое окошко с Оки и волнами */
.okd-listen .okd-body { align-items: center; padding: 1em 1.75em 4.6em; text-align: center; }
.okd-mascot { width: 5.5em; height: 5.5em; object-fit: contain; animation: okd-bob 2.4s ease-in-out infinite; }
@keyframes okd-bob { 50% { transform: translateY(-.25em) scale(1.03); } }
.okd-pill-t { position: relative; height: 1.4em; margin-top: .25em; font-size: 1.06em; font-weight: 500; }
.okd-pill-t > span, .okd-pill-s > span { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; }
.okd-pill-s { position: relative; height: 1.2em; font-size: .81em; color: var(--muted); }
.okd-caption { min-height: 2.6em; margin-top: .55em; font-size: .9em; line-height: 1.35; color: var(--ink); text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.okd-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 4.9em; -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); animation: okd-breath 1.1s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes okd-breath { from { transform: scaleY(.7); } to { transform: scaleY(1.25); } }
.okd-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; mix-blend-mode: screen; }
.okd-wave.a { filter: blur(10px); opacity: .85; animation: okd-wa 3.4s linear infinite; }
.okd-wave.b { filter: blur(14px); opacity: .6; animation: okd-wb 2.6s linear infinite reverse; }
.okd-wave.c { filter: blur(7px); opacity: .8; animation: okd-wa 4.6s linear infinite; }
@keyframes okd-wa { to { transform: translateX(-50%); } }
@keyframes okd-wb { to { transform: translateX(-33.3333%); } }

/* шапка окна */
.okd-top { display: flex; align-items: center; gap: .5em; height: 4em; padding: .5em 1.5em 0 1.5em; }
.okd-face { width: 2.6em; height: 2.6em; object-fit: contain; }
.okd-who { flex: 1; min-width: 0; line-height: 1.2; }
.okd-who b { display: block; font-size: .94em; font-weight: 600; }
.okd-who small { display: block; overflow: hidden; font-size: .75em; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.okd-tool { display: grid; flex: none; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--chip); color: var(--muted); }
.okd-tool .ic { width: .95em; height: .95em; }
.okd-scroll { display: flex; flex-direction: column; justify-content: flex-end; gap: 1em; max-height: 30em; padding: .4em 2em .6em; overflow: hidden; }
/* длинный ответ не уходит под поле: как в чате, видно последнее, верх уезжает под шапку */
.okd-scroll > * { flex-shrink: 0; }
.okd-user { padding-right: 2.5em; font-size: .875em; line-height: 1.35; color: var(--muted); }
.okd-status { margin: -.35em 0; font-size: .94em; }
.okd-shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--ink) 50%, var(--muted) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: okd-sh 1.6s linear infinite; }
@keyframes okd-sh { to { background-position: -200% 0; } }
.okd-step { display: flex; align-items: center; gap: .4em; margin: -.35em 0; font-size: .81em; line-height: 1.3; color: var(--muted); }
.okd-ck { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.okd-ans { padding-right: 1.5em; font-size: 1.06em; line-height: 1.4; color: var(--text); }
.okd-ans.sm { font-size: .97em; }
.okd-ans [data-type].typing::after { content: ''; display: inline-block; width: .5em; height: .5em; margin-left: .2em; border-radius: 50%; background: var(--night); vertical-align: middle; animation: okd-dot .8s ease-in-out infinite; }
@keyframes okd-dot { 50% { opacity: .3; } }

/* таблица ответа — как .portal-ai-md */
.okd-table { overflow: hidden; border-radius: .75em; box-shadow: inset 0 0 0 1px var(--line); font-size: .81em; }
.okd-tr { display: grid; grid-template-columns: 1fr 3.6em 3.6em 3.2em; border-top: 1px solid rgba(255,255,255,.1); }
.okd-tr span { padding: .45em .6em; }
.okd-tr span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.okd-tr.th { border-top: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); font-weight: 600; }
.okd-tr .down { color: #ffb4a8; }
.okd-tr .up { color: #6ee7a8; }

.okd-chips { display: flex; flex-wrap: wrap; gap: .5em; }
.okd-chip { display: inline-flex; align-items: center; gap: .35em; height: 2.5em; padding: 0 1em; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); font-size: .875em; font-weight: 500; transition: background .2s, transform .15s; }
.okd-chip .ic { width: .95em; height: .95em; opacity: .7; transform: rotate(-45deg); }
.okd-chip.tap.pressed { background: rgba(255,255,255,.22); transform: scale(.97); }

/* поле ввода */
.okd-comp { display: flex; align-items: flex-end; gap: .5em; padding: .5em 1.25em 1.25em; }
.okd-field { display: flex; flex: 1; align-items: center; min-height: 2.75em; padding: .62em 1em; border-radius: 1.4em; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: .94em; }
.okd-ph { color: var(--muted); }
.okd-input [data-type].typing::after { content: ''; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; background: var(--paper); vertical-align: -.2em; animation: okd-dot .8s steps(1) infinite; }
.okd-mic { display: grid; flex: none; place-items: center; width: 2.75em; height: 2.75em; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.okd-mic .ic { width: 1.05em; height: 1.05em; }

/* график — столбики как «Battery Usage» */
.okd-chart { padding: .9em 1em .7em; border-radius: 1.25em; background: rgba(255,255,255,.08); }
.okd-chart small { font-size: .78em; color: var(--muted); }
.okd-bars { display: flex; align-items: flex-end; gap: .55em; height: 8.2em; margin-top: .5em; }
.okd-bcol { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.okd-bcol i { display: block; width: 100%; height: 0; border-radius: .45em; background: rgba(255,255,255,.28); transition: height .7s cubic-bezier(.23,1,.32,1); }
.okd-bcol.on i { height: calc(var(--h) * .78); }
.okd-bcol.hot i { background: #4da3ff; }
.okd-bcol b { font-size: .75em; font-weight: 600; margin-bottom: .25em; }
.okd-bcol span { margin-top: .35em; font-size: .62em; color: var(--muted); }

/* карточка задачи — как TaskCard */
.okd-task { display: flex; align-items: center; gap: .75em; padding: .8em 1em; border-radius: 1.25em; background: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.okd-ring { flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.okd-task-t { flex: 1; min-width: 0; line-height: 1.25; }
.okd-task-t b { display: block; font-size: .875em; font-weight: 500; }
.okd-task-t small { font-size: .75em; color: var(--muted); }
.okd-task-ok { display: inline-flex; align-items: center; gap: .3em; color: #6ee7a8; font-size: .75em; white-space: nowrap; }

/* плашка «от Оки» у колокольчика — как OkiPop */
.okd-pop { top: 4.6em; right: 1.4em; width: 20em; transform-origin: top right; }
.okd-pop .okd-body { padding: 1em; border-radius: 1.9em; background: linear-gradient(to bottom, rgba(4,4,6,.96) 0%, rgba(8,8,11,.94) 55%, rgba(22,22,27,.84) 100%); }
.okd-pop .okd-glow { border-radius: 2em; }
.okd-pop::before { content: ''; position: absolute; top: -.3em; right: 1.5em; width: .75em; height: .75em; rotate: 45deg; border-radius: 3px; background: rgba(4,4,6,.96); }
.okd-pop-in { display: flex; align-items: flex-start; gap: .6em; }
.okd-pop-face { width: 2.75em; height: 2.75em; margin: -.25em 0 0 -.25em; object-fit: contain; }
.okd-pop-in b { display: block; font-size: .94em; font-weight: 600; line-height: 1.3; }
.okd-pop-in p { margin-top: .25em; font-size: .84em; line-height: 1.5; color: var(--text); }
.okd-pop-act { display: flex; justify-content: flex-end; gap: .4em; margin-top: .9em; }
.okd-btn { display: inline-flex; align-items: center; height: 2.1em; padding: 0 .95em; border-radius: 999px; background: var(--paper); color: #000; font-size: .84em; font-weight: 600; }
.okd-btn.ghost { background: var(--chip); color: var(--ink); }

/* карточка дня — как DayCard */
.okd-day { padding: .7em .5em .5em; border-radius: 1.25em; background: rgba(255,255,255,.08); }
.okd-day > small { display: block; padding: 0 .5em .35em; font-size: .75em; color: var(--muted); }
.okd-drow { display: flex; align-items: center; gap: .65em; padding: .5em .5em; border-radius: .8em; font-size: .84em; }
.okd-drow.now { background: rgba(77,163,255,.18); }
.okd-dot { display: grid; flex: none; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.okd-dot.done { background: rgba(110,231,168,.2); box-shadow: none; color: #6ee7a8; }
.okd-dot .okd-ck { width: .85em; height: .85em; }
.okd-dt { width: 2.8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.okd-dx { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.okd-drow.done .okd-dx { color: var(--muted); }
.okd-soon { flex: none; padding: .15em .55em; border-radius: 999px; background: #4da3ff; color: #fff; font-size: .78em; font-weight: 600; }
.okd-joy { position: absolute; left: -1.2em; top: -2.2em; z-index: 3; width: 7em; height: 7em; object-fit: contain; pointer-events: none; }
.okd-joy.on { animation: okd-joy 2.2s cubic-bezier(.23,1,.32,1) both; }
@keyframes okd-joy { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.1) rotate(-6deg); } 32% { transform: scale(1) rotate(3deg); } 44% { transform: rotate(0); } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(.9em, 1.2em) scale(.38); } }

/* подсказка «пробел» и курсор */
.okd-key { position: absolute; left: 50%; bottom: 3.6em; z-index: 6; display: flex; align-items: center; gap: .7em; padding: .55em 1.1em .55em .55em; translate: -50% 0; border-radius: 999px; background: rgba(8,12,30,.82); color: #fff; font-size: .94em; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1em 2.5em -1em rgba(0,0,0,.5); }
.okd-key kbd { display: inline-grid; place-items: center; min-width: 7em; height: 2em; padding: 0 1em; border-radius: .6em; background: linear-gradient(#fff, #e7ebf3); color: #0e1a3d; font: 600 .84em/1 inherit; box-shadow: 0 .18em 0 #aab4c8; }
.okd-key.on kbd { animation: okd-press 1.2s ease-in-out .35s both; }
@keyframes okd-press { 0%, 100% { transform: none; box-shadow: 0 .18em 0 #aab4c8; } 25%, 90% { transform: translateY(.14em); box-shadow: 0 .04em 0 #aab4c8; } }
.okd-cursor { position: absolute; z-index: 10; width: 1.6em; height: 1.6em; margin: -.15em 0 0 -.25em; pointer-events: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6.2 1.6L9.6 19z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.okd-tap { position: absolute; left: var(--x); top: var(--y); z-index: 9; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(77,163,255,.45); pointer-events: none; }
.okd-tap.on { animation: okd-tap .5s ease-out both; }
@keyframes okd-tap { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.ld-oki .okd .ld-seg { margin-top: 28px; }
@media (max-width: 680px) {
  .okd-stage { aspect-ratio: 3 / 4.3; font-size: calc(100cqw / 30); border-radius: 22px; }
  .okd-win { top: 1em; width: 27.6em; margin-left: -13.8em; }
  .okd-win.okd-listen { width: 17em; margin-left: -8.5em; }
  .okd-scroll { max-height: 26em; padding: .3em 1.4em .5em; }
  .okd-pop { right: .8em; width: 18em; }
}
@media (prefers-reduced-motion: reduce) { .okd-wave, .okd-mascot, .busy > .okd-glow, .okd-shimmer, .okd-waves { animation: none; } }

/* ---------- раздел Оки: окно под углом + сцены по умениям ---------- */
.okd-tiltwrap { position: relative; width: min(1180px, calc(100% - 32px)); margin: 70px auto 0; perspective: 2000px; }
.okd-tiltin { --rx: 20; --ry: -18; --rz: 5; transform-style: preserve-3d; transform-origin: 50% 55%; transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotateZ(calc(var(--rz) * 1deg)); }
.okd-tiltin .okd { width: 100%; margin: 0; }
.okd.tilt .okd-stage { box-shadow: 0 0 0 .7em #0b1124, 0 0 0 calc(.7em + 1px) rgba(255,255,255,.1), 0 6em 9em -3em rgba(0,0,0,.8); }
/* размытие живого окна: слои backdrop-filter с маской — дальний угол мягче, середина резкая */
.okd-dof { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.okd-dof.d1 { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 18%, transparent 40%, transparent 72%, #000 96%); mask-image: linear-gradient(135deg, #000 0%, #000 18%, transparent 40%, transparent 72%, #000 96%); }
.okd-dof.d2 { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 18%); mask-image: linear-gradient(135deg, #000 0%, transparent 18%); }

.okd-rows { display: flex; flex-direction: column; gap: clamp(90px, 10vw, 150px); width: min(1180px, calc(100% - 32px)); margin: clamp(110px, 12vw, 170px) auto 0; }
.okd-row { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.okd-row.flip { grid-template-columns: 1.28fr .72fr; }
.okd-row.flip .okd-row-txt { order: 2; }
.okd-row .okd { width: 100%; margin: 0; }
.okd-row .okd-stage { border-radius: 26px; font-size: calc(100cqw / 70); }
/* в строках портал чуть крупнее, чтобы окно Оки читалось */
.okd-row .okd-page img { width: 128.6%; height: 128.6%; }
.okd-row-tag { display: flex; align-items: center; gap: 10px; }
.okd-row-tag small { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #7fd6ff; }
.okd-row-txt h3 { margin: 14px 0 16px; font-size: clamp(26px, 2.9vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.okd-row-txt p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.7); }
.okd-server { display: flex; align-items: center; gap: 18px; width: min(880px, calc(100% - 32px)); margin: 110px auto 0; padding: 26px 30px; border-radius: 30px; background: linear-gradient(140deg, rgba(1,179,255,.3), rgba(45,127,249,.2)); border: 1px solid rgba(127,214,255,.3); }
.okd-server h4 { font-size: 22px; font-weight: 500; }
.okd-server p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* новые части окна */
.okd-ul { display: flex; flex-direction: column; gap: .35em; margin: -.3em 0 0; padding-left: 1.2em; font-size: .94em; line-height: 1.4; color: var(--text); }
.okd-ul li:not(.on) { display: none; }
.okd-ul li.on { animation: okd-in .26s cubic-bezier(.23,1,.32,1) both; }
.okd-srcs { display: flex; flex-wrap: wrap; gap: .4em; }
.okd-srcs:not(.on) { display: none; }
.okd-src { display: inline-flex; align-items: center; gap: .4em; height: 2.2em; padding: 0 .85em; border-radius: 999px; background: rgba(77,163,255,.18); color: #bfe0ff; font-size: .78em; }
.okd-src .ic { width: .95em; height: .95em; }
.okd-src .ic:last-child { transform: rotate(-45deg); opacity: .7; }
.okd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.okd-card { display: flex; flex-direction: column; gap: .25em; padding: .75em .9em; border-radius: 1.1em; background: rgba(255,255,255,.1); font-size: .84em; line-height: 1.3; }
.okd-card:not(.on) { display: none; }
.okd-card.on { animation: okd-in .3s cubic-bezier(.23,1,.32,1) both; }
.okd-card small { font-size: .85em; color: var(--muted); }
.okd-card b { font-weight: 500; }
.okd-card.hot { background: rgba(255,120,100,.16); }
.okd-card.hot small { color: #ffb4a8; }
.okd-card.wide { grid-column: 1 / -1; }
.okd-finds { display: flex; flex-direction: column; gap: .35em; }
.okd-find { display: grid; grid-template-columns: .8em auto 1fr; grid-template-rows: auto auto; column-gap: .55em; padding: .55em .8em; border-radius: .9em; background: rgba(255,255,255,.08); font-size: .84em; }
.okd-find:not(.on) { display: none; }
.okd-find.on { animation: okd-in .26s cubic-bezier(.23,1,.32,1) both; }
.okd-find i { grid-row: 1 / 3; align-self: center; width: .6em; height: .6em; border-radius: 50%; background: #6ee7a8; }
.okd-find.bad i { background: #ff8a7a; }
.okd-find.ok i { background: rgba(255,255,255,.4); }
.okd-find b { font-weight: 500; }
.okd-find .v { justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.okd-find.bad .v { color: #ffb4a8; }
.okd-find.good .v { color: #6ee7a8; }
.okd-find small { grid-column: 2 / 4; font-size: .9em; color: var(--muted); }
.okd-spot { position: absolute; z-index: 6; border-radius: 1.2em; box-shadow: 0 0 0 9999px rgba(6,10,24,.45), 0 0 0 2px #2d7ff9, 0 0 0 .5em rgba(45,127,249,.25); transition: opacity .35s; }
.okd-tour { --chip: rgba(255,255,255,.13); --ink: #fff; position: absolute; z-index: 7; display: flex; gap: .6em; width: 21em; padding: 1em; border-radius: 1.6em; color: #fff; background: linear-gradient(to bottom, rgba(4,4,6,.96), rgba(18,18,24,.9)); box-shadow: 0 1.4em 3em -1em rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.14); font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif; }
.okd-tour:not(.on) { transform: translateY(.6em); }
.okd-tour img { width: 2.75em; height: 2.75em; object-fit: contain; }
.okd-tour small { font-size: .75em; color: rgba(255,255,255,.56); }
.okd-tour p { margin-top: .2em; font-size: .88em; line-height: 1.45; }
.okd-tour-act { display: flex; justify-content: flex-end; gap: .4em; margin-top: .7em; }
.okd-joy.tour { left: auto; right: 8%; top: auto; bottom: 8%; }
.okd-attach { display: flex; align-items: center; gap: .6em; align-self: flex-end; padding: .4em .8em .4em .4em; border-radius: 1em; background: rgba(255,255,255,.1); font-size: .8em; color: var(--text); }
.okd-attach:not(.on) { display: none; }
.okd-scan { display: flex; flex-direction: column; gap: .2em; width: 2.6em; height: 3.2em; padding: .35em; border-radius: .4em; background: #f4f1ea; }
.okd-scan i { height: .25em; border-radius: 1em; background: #b9b2a3; }
.okd-scan i:nth-child(2) { width: 70%; }
.okd-scan i:nth-child(4) { width: 55%; }
.okd-slides { display: flex; gap: .5em; }
.okd-slides:not(.on) { display: none; }
.okd-slide { position: relative; flex: 1; aspect-ratio: 16 / 9; padding: .5em; border-radius: .6em; background: linear-gradient(140deg, #1f59ee, #01b3ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.okd-slide.s1 { background: #f3f7ff; }
.okd-slide.s2 { background: linear-gradient(140deg, #0e1a3d, #1f59ee); }
.okd-slide b { display: block; width: 60%; height: .45em; border-radius: 1em; background: rgba(255,255,255,.9); }
.okd-slide.s1 b { background: #1f59ee; }
.okd-slide i { display: block; width: 80%; height: .25em; margin-top: .35em; border-radius: 1em; background: rgba(255,255,255,.5); }
.okd-slide.s1 i { background: #b8c6e3; }
.okd-slide em { position: absolute; right: .5em; bottom: .5em; width: 35%; height: 40%; border-radius: .3em; background: rgba(255,255,255,.35); }
.okd-slide.s1 em { background: linear-gradient(to top, #2d7ff9 50%, #cfe0ff 50%); }
.okd-doc { display: flex; align-items: center; gap: .75em; padding: .65em 1em .65em .65em; border-radius: 1.25em; background: rgba(255,255,255,.13); }
.okd-doc:not(.on) { display: none; }
.okd-doc.on { animation: okd-in .26s cubic-bezier(.23,1,.32,1) both; }
.okd-doc-ic { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .9em; background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.16)); }
.okd-doc-ic .ic { width: 1.1em; height: 1.1em; }
.okd-doc b { display: block; font-size: .875em; font-weight: 500; }
.okd-doc small { font-size: .75em; color: var(--muted); }

@media (max-width: 980px) {
  .okd-row, .okd-row.flip { grid-template-columns: 1fr; }
  .okd-row.flip { grid-template-columns: 1fr; }
  .okd-row.flip .okd-row-txt { order: 0; }
}
@media (max-width: 680px) {
  .okd-tiltin { --rx: 8; --ry: -6; --rz: 2; }
  .okd-row .okd-stage { font-size: calc(100cqw / 30); }
  .okd-row .okd-page img { width: 100%; height: 100%; }
  /* урок с подсветкой привязан к местам на снимке — на телефоне сцена остаётся широкой */
  .okd.wide .okd-stage { aspect-ratio: 16 / 10; font-size: calc(100cqw / 40); }
  .okd.wide .okd-page img { width: 128.6%; height: 128.6%; }
  .okd-cards { grid-template-columns: 1fr; }
}

/* светлый цвет палитры иначе сливается с фоном */
.swatches span { box-shadow: 0 0 0 1px rgba(14,26,61,.08); }
/* телефон: тёмный раздел Оки на всю ширину экрана */
@media (max-width: 680px) {
  .ld-oki { margin-left: 0; margin-right: 0; border-radius: 32px 32px 0 0; }
  .ld-oki-head p { font-size: 16px; }
}
/* телефон: скругления окна Оки соразмерны маленькой сцене (снаружи 22, окно 20, поле 14) */
@media (max-width: 680px) {
  .okd-stage, .okd-row .okd-stage { border-radius: 22px; }
  .okd-body { border-radius: 20px; }
  .okd-glow { border-radius: 21px; }
  .okd-pop .okd-body { border-radius: 18px; }
  .okd-pop .okd-glow { border-radius: 19px; }
  .okd-field { border-radius: 14px; }
  .okd-chart, .okd-day, .okd-task, .okd-doc, .okd-card { border-radius: 12px; }
  .okd-table { border-radius: 10px; }
  .okd-top { padding-left: 1.1em; padding-right: 1.1em; }
  .okd-scroll { padding-left: 1.2em; padding-right: 1.2em; }
  .okd-comp { padding: .45em .9em .9em; }
}

/* ---------- «Свой ИИ»: крупно по центру, как блоки Apple про чип ---------- */
.own { width: min(1180px, calc(100% - 32px)); margin: clamp(150px, 16vw, 240px) auto 0; text-align: center; }
.own-tag { display: block; font-size: clamp(15px, 1.5vw, 21px); font-weight: 600; color: #fff; }
.own-h { margin: 14px auto 0; max-width: 1000px; font-size: clamp(42px, 7vw, 104px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.own-h span { display: block; color: #fff; }
.own-h .g { background: linear-gradient(95deg, #7fd6ff 0%, #4da3ff 45%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.own-lead { max-width: 760px; margin: 34px auto 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,255,255,.58); }
.own-lead b { color: #fff; font-weight: 600; }

/* схема: модель в центре, подписи вокруг, тонкие линии с бегущей точкой */
.own-vis { position: relative; aspect-ratio: 16 / 8; margin-top: clamp(40px, 5vw, 80px); container-type: inline-size; background: radial-gradient(40% 60% at 50% 50%, rgba(45,127,249,.22), transparent 70%); }
.own-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.own-ln { fill: none; stroke: rgba(127,214,255,.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.own-end { fill: #7fd6ff; opacity: .8; }
.own-dot { fill: #bfe9ff; filter: drop-shadow(0 0 1.2px #7fd6ff); offset-distance: 0%; animation: own-run 3s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--d); }
@keyframes own-run { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.own-lbl { position: absolute; z-index: 2; display: grid; grid-template-columns: auto; gap: .2em; translate: 0 -50%; font-size: clamp(11px, 1.2cqw, 16px); }
.own-lbl.l { translate: calc(-100% - 1.1em) -50%; text-align: right; justify-items: end; }
.own-lbl.r { translate: 1.1em -50%; text-align: left; justify-items: start; }
.own-lbl .ic { width: 1.6em; height: 1.6em; margin-bottom: .35em; color: #7fd6ff; }
.own-lbl b { font-size: 1.25em; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.own-lbl small { font-size: .95em; color: rgba(255,255,255,.5); white-space: nowrap; }
.own-core { position: absolute; left: 50%; top: 50%; width: 20cqw; height: 20cqw; translate: -50% -50%; }
.own-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(127,214,255,.22); animation: own-pulse 4s ease-out infinite; }
.own-ring.r2 { animation-delay: 2s; }
@keyframes own-pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.own-glow { position: absolute; inset: 8%; z-index: 2; border-radius: 30%; background: conic-gradient(from var(--pai-angle), #5AC8FA, #AF52DE, #FF2D55, #FF9F0A, #FFD60A, #5AC8FA); filter: blur(16px); opacity: .85; animation: okd-spin 3.2s linear infinite; }
.own-chip { position: absolute; inset: 9%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; border-radius: 30%; color: #fff; font-size: clamp(11px, 1.5cqw, 19px);
  background: linear-gradient(to bottom, #050507 0%, #0a0a0f 55%, #17171e 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -1.5px 1px rgba(255,255,255,.3); }
.own-chip img { width: 44%; height: auto; margin-bottom: .2em; animation: okd-bob 2.4s ease-in-out infinite; }
.own-chip b { font-weight: 600; }
.own-chip small { font-size: .72em; color: rgba(255,255,255,.55); }

/* три карточки: номер, утверждение, пояснение */
.own-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 80px); text-align: left; }
.own-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 30px 34px; border-radius: 28px; background: #121318; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.own-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #4da3ff; }
.own-card > b { font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.own-card > p { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.58); }
@media (max-width: 980px) { .own-cards { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .own { width: calc(100% - 24px); margin-top: 120px; }
  /* телефон: модель сверху, умения списком в две колонки под ней */
  .own-vis { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; padding-top: 62cqw; }
  .own-lines { display: none; }
  .own-core { top: 0; width: 52cqw; height: 52cqw; translate: -50% 0; }
  .own-chip { font-size: 4cqw; }
  .own-lbl, .own-lbl.l, .own-lbl.r { position: static; translate: none; text-align: left; justify-items: start; font-size: 13px; }
  .own-lbl small { white-space: normal; }
  .own-card { padding: 24px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .own-dot, .own-ring, .own-chip img, .own-glow { animation: none; } }

/* шапка над тёмным блоком: тёмное стекло, светлый текст */
.nav.on-dark { --nav-bg: rgba(10,10,14,.72); color: #fff; }
.nav.on-dark .nav-links { color: rgba(255,255,255,.82); }
.nav.on-dark .langs { background: rgba(255,255,255,.1); }
.nav.on-dark .langs a { color: rgba(255,255,255,.6); }
.nav.on-dark .langs a.on { background: var(--paper); color: var(--ink); }
.nav.on-dark .nav-cta { background: var(--paper); color: var(--ink); }

/* стена: увеличенная сетка не наезжает на заголовок раздела */
.ld-wall-view { overflow: hidden; }
.ld-wall-head { position: relative; z-index: 2; }

/* телефон: подписи схемы ровной сеткой, короче хвост тёмного раздела, меньше пустоты у стены */
@media (max-width: 680px) {
  .own-vis { align-items: start; gap: 22px 16px; }
  .own-lbl, .own-lbl.l, .own-lbl.r { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 14px; }
  .own-lbl .ic { width: 22px; height: 22px; margin-bottom: 6px; }
  .own-lbl b { font-size: 16px; }
  .own-lbl small { font-size: 12.5px; line-height: 1.35; }
  .ld-oki { padding-bottom: 260px; }
  .ld-wall { padding-top: 80px; }
  .ld-wall-head { margin-bottom: 32px; }
}
@media (max-width: 680px) {
  /* подписи схемы отступают от края так же, как текст карточек под ними */
  .own-vis { padding-left: 24px; padding-right: 24px; }
}
/* над обложкой кейса шапка одного цвета с ней — без размытия, иначе на стыке светлая полоса */
.page-case .nav:not(.past)::before { inset: 0; background: var(--c); -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }

/* «небольшой бюджет» — спокойная типографика, как заголовок блока: без плашки, градиентов и чипов */
.own-budget { max-width: 820px; margin: clamp(70px, 8vw, 120px) auto 0; text-align: center; }
.own-budget h3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; color: #fff; }
.own-budget p { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: rgba(255,255,255,.58); }
.own-budget ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 0; padding: 0; list-style: none; }
.own-budget li { padding: 0 18px; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.82); }
.own-budget li + li { border-left: 1px solid rgba(255,255,255,.12); }
.own-budget .okd-ck { display: none; }
@media (max-width: 680px) { .own-budget ul { grid-template-columns: 1fr; gap: 14px; } .own-budget li + li { border-left: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); } }

/* ================= страница приложения (src/landing-app.mjs): экраны в iPhone ================= */
/* корпус — официальная рамка Apple iPhone 17 Pro (Apple Design Resources), картинка 1350×2760 поверх экрана.
   Прозрачное окно экрана: x 72–1277, y 69–2690 → отступы 5.333 % по бокам и 2.5 % сверху/снизу.
   «Островок» нарисован на самой рамке, поэтому свой не рисуем. cqw здесь — от ширины телефона (экран = 89.33cqw). */
.ap-phone { position: relative; aspect-ratio: 1350 / 2760; container-type: inline-size; }
/* тень — отдельным слоем по форме корпуса: filter: drop-shadow вместе со стеклом рядом (backdrop-filter) давал в Chrome цветной прямоугольник */
.ap-phone::before { content: ''; position: absolute; inset: 1% 2%; z-index: 0; border-radius: 16% / 7.6%; box-shadow: 0 4cqw 9cqw -1cqw rgba(10,30,90,.35); pointer-events: none; }
.ap-phone::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: url(../assets/devices/iphone-17-pro-silver.webp) center / 100% 100% no-repeat; }
.ap-phone.blue::after { background-image: url(../assets/devices/iphone-17-pro-blue.webp); }
.ap-scr { position: absolute; z-index: 1; top: 2.5%; bottom: 2.5%; left: 5.333%; right: 5.333%; display: flex; flex-direction: column; overflow: hidden; border-radius: 14cqw; background: var(--paper); }
.ap-scr > img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top center; }
.ap-home { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; height: 7.8cqw; align-items: flex-end; padding-bottom: 1.9cqw; pointer-events: none; }
.ap-home i { width: 31cqw; height: 1.2cqw; border-radius: 1cqw; background: #000; opacity: .85; }
.ap-home.dk i { background: var(--paper); }
.ap-sb { position: relative; z-index: 2; display: flex; flex: none; align-items: center; justify-content: space-between; height: 10.8cqw; padding: 1.4cqw 7.2cqw 0 10.2cqw; color: #0b0c10; }
.ap-sb.dk { color: #fff; }
.ap-sb b { font: 600 3.9cqw/1 -apple-system, 'SF Pro Text', Inter, sans-serif; letter-spacing: -.01em; }
.ap-sb > span { display: flex; align-items: center; gap: 1.4cqw; }
.ap-sb svg { display: block; height: 2.9cqw; width: auto; fill: currentColor; }
.ap-sb svg:last-child { height: 3.2cqw; }
.ap-island { display: none; } /* «островок» есть на рамке Apple */
.ap-ava { width: 2.4em; height: 2.4em; border-radius: 50%; object-fit: cover; flex: none; }
.ap-msg { display: flex; align-items: flex-start; gap: .65em; }
.ap-msg p { margin-top: .15em; font-size: .92em; opacity: .75; }
.ap-stack { display: flex; margin-top: .3em; }
.ap-stack .ap-ava { width: 1.9em; height: 1.9em; margin-right: -.45em; border: 2px solid #2d7ff9; }

/* обложка: три телефона веером под углом */
.ap-hero { position: relative; width: min(1100px, 100%); margin: 50px auto 0; aspect-ratio: 16 / 9.4; perspective: 2000px; container-type: inline-size; }
.ap-hero-in { --rx: 20; --ry: -18; --rz: 5; position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 55%; transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotateZ(calc(var(--rz) * 1deg)); }
.ap-hero .ap-phone { position: absolute; top: 3%; width: 24%; }
.ap-hero .ap-h0 { left: 14%; top: 11%; }
.ap-hero .ap-h1 { left: 38%; z-index: 2; }
.ap-hero .ap-h2 { left: 62%; top: 11%; }

/* пара телефонов на светлой сцене */
.ap-stage { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 6%; padding: 6% 8% 0; overflow: hidden; border-radius: 44px; aspect-ratio: 16 / 9; container-type: inline-size; }
.ap-stage .ap-phone { width: 29%; flex: none; }
.ap-stage .ap-p1 { margin-top: 8%; }
.ap-stage.flip .ap-p0 { margin-top: 8%; } .ap-stage.flip .ap-p1 { margin-top: 0; }
.ap-stage .ld-gl { font-size: clamp(11px, 1.35cqi, 16px); }
/* ряд из четырёх — шире контейнера, лесенкой */
.ap-wide { width: min(1320px, calc(100% - 32px)); }
.ap-row { display: flex; justify-content: center; align-items: flex-start; gap: 3.5%; padding: 5% 5% 0; overflow: hidden; border-radius: 44px; aspect-ratio: 16 / 8.6; }
.ap-row .ap-phone { width: 21%; flex: none; }
.ap-row .ap-r1, .ap-row .ap-r3 { margin-top: 6%; }

/* три плитки с телефоном */
.ap-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-tile { position: relative; overflow: hidden; aspect-ratio: 1 / 1.15; border-radius: 36px; padding: 12% 18% 0; }
.ap-tile .ap-phone { width: 100%; }

/* «Главное» с телефоном */
.ap-hl .ap-hl-shot { position: absolute; left: 50%; top: 27%; width: 29%; translate: -50% 0; }
.ap-hl .ap-hl-shot .ap-phone { width: 100%; }

/* тёмная часть: живой Оки в телефоне, четыре состояния, «Один код» */
.ap-dark .own { margin-top: clamp(120px, 13vw, 190px); }
.okm { width: min(1180px, calc(100% - 32px)); margin: 64px auto 0; }
.okm-stage { position: relative; display: flex; justify-content: center; aspect-ratio: auto; padding: 0 0 50px; overflow: visible; border-radius: 0; background: none; box-shadow: none; font-size: 16px; container-type: normal; }
.okm .okd-sc { position: relative; inset: auto; }
.okm-phone { width: min(440px, 80vw); }
/* телефон с Оки стоит под углом, как окно Оки у портала, и выпрямляется при прокрутке (main.js) */
.okm-tilt { perspective: 2000px; }
.okm-tilt .okd-tiltin { --rx: 16; --ry: -14; --rz: 4; }
.okm-dev::before { box-shadow: 0 30px 60px rgba(0,0,0,.7); }
.okm-dev .ap-scr { container-type: inline-size; }
/* 1em внутри телефона = 1 pt экрана iPhone (390 pt по ширине) */
.okm-win { top: 14cqw; left: 2.6cqw; right: 2.6cqw; width: auto; margin: 0; font-size: 3.85cqw; }
.okm-win .okd-body { border-radius: 11.3cqw; }
.okm-win .okd-glow { border-radius: 11.8cqw; }
.okm-win .okd-top { height: auto; padding: 1em 1.25em .75em; gap: .75em; }
.okm-win .okd-face { width: 2.25em; height: 2.25em; }
.okm-win .okd-who b { font-size: .94em; } .okm-win .okd-who small { position: relative; height: 1.25em; font-size: .78em; }
.okm-win .okd-who small > span { position: absolute; left: 0; white-space: nowrap; }
.okm-win .okd-tool { width: 2em; height: 2em; }
.okm-listen { position: relative; padding: .4em 1.25em 1.25em; text-align: center; }
/* как в приложении: подпись по центру, кнопки ✕ и «Готово» внизу окна поверх волн */
.okm-listen:not(.on) { display: none; }
.okm-listen p { padding: 5.6em 0 1.4em; font-size: 1.06em; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.okm-btns { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.okm-btns .okd-tool { width: 2.75em; height: 2.75em; background: rgba(255,255,255,.18); color: #fff; }
.okm-done { display: inline-flex; align-items: center; gap: .55em; height: 2.75em; padding: 0 1em 0 1.15em; border-radius: 1.6em; background: var(--paper); color: #000; font-size: .94em; font-weight: 600; }
.okm-done i { width: .8em; height: .8em; border-radius: .2em; background: #000; }
.okm-listen .okd-waves { height: 4.9em; border-radius: 0 0 2.75em 2.75em; }
.okm-scroll { max-height: 46em; padding: 0 1.25em .6em; }
.okm-scroll:not(.on) { display: none; }
.okm-q { align-self: flex-end; max-width: 86%; padding: .55em .9em; border-radius: 1.25em; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: .97em; line-height: 1.35; }
.okm-win .okd-ans { padding-right: 0; font-size: 1em; }
.okm-win .okd-tr { grid-template-columns: 1fr 3.3em 3.3em; }
.okm-win .okd-comp { padding: .5em 1em 1em; }
.okm-win .okd-comp:not(.on) { display: none; }
/* палец зажимает Оки в нижнем меню */
.okm-press { position: absolute; left: 50%; bottom: 7.7%; z-index: 4; width: 15cqw; height: 15cqw; translate: -50% 50%; border-radius: 50%; background: rgba(45,127,249,.28); box-shadow: 0 0 0 0 rgba(45,127,249,.45); }
.okm-press.on { animation: okm-press 1.4s ease-out infinite; }
@keyframes okm-press { 0% { box-shadow: 0 0 0 0 rgba(45,127,249,.5); } 100% { box-shadow: 0 0 0 7cqw rgba(45,127,249,0); } }

.ap-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 34px); width: min(1180px, calc(100% - 32px)); margin: 90px auto 0; }
.ap-states figure { margin: 0; }
.ap-states .ap-phone::before { box-shadow: 0 24px 40px rgba(0,0,0,.6); }
.ap-states figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.ap-states figcaption b { font-size: 19px; font-weight: 500; color: #fff; }
.ap-states figcaption span { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.6); }

.ap-core { position: absolute; left: 50%; top: 50%; width: 15cqw; translate: -50% -50%; }
.ap-core .own-ring { inset: auto; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.ap-glow { inset: 1% 2%; border-radius: 16% / 7.6%; filter: blur(20px); opacity: .95; }
.ap-core .ap-phone.core { position: relative; z-index: 3; width: 100%; }

/* стена телефонов */
.ap-wall { grid-template-columns: repeat(6, 1fr); gap: 24px; width: 112vw; margin-left: -6vw; }
.ap-wall .ap-phone.ring1 { filter: blur(2.5px); }

@media (max-width: 980px) { .ap-states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .ap-hero { aspect-ratio: 4 / 4.4; }
  .ap-hero-in { --rx: 10; --ry: -8; --rz: 2; }
  .ap-hero .ap-phone { width: 34%; }
  .ap-hero .ap-h0 { left: 3%; } .ap-hero .ap-h1 { left: 33%; } .ap-hero .ap-h2 { left: 63%; }
  .ap-stage { aspect-ratio: 1 / 1.08; border-radius: 26px; gap: 5%; padding: 8% 6% 0; }
  .ap-stage .ap-phone { width: 44%; }
  .ap-row { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 5%; padding: 7% 6% 0; border-radius: 26px; height: 150vw; }
  .ap-row .ap-phone { width: 100%; }
  .ap-row .ap-r1, .ap-row .ap-r3 { margin-top: 10%; }
  .ap-trio { grid-template-columns: 1fr; }
  .ap-tile { aspect-ratio: 1 / 1; border-radius: 26px; padding: 9% 25% 0; }
  .ap-hl .ap-hl-shot { width: 46%; top: 36%; }
  .ap-states { grid-template-columns: 1fr 1fr; gap: 26px 14px; margin-top: 60px; }
  .ap-states figcaption b { font-size: 16px; } .ap-states figcaption span { font-size: 13px; }
  .ap-core { width: 34cqw; top: 0; translate: -50% 0; }
  .ap-dark .own-vis { padding-top: 84cqw; }
  .ap-wall { grid-template-columns: repeat(4, 1fr); width: 150vw; margin-left: -25vw; gap: 12px; }
}

/* настоящие карточки из интерфейса поверх сцен: как в приложении, только с мягкой тенью отрыва */
.ap-ui { position: absolute; left: var(--x); top: var(--y); z-index: 4; width: var(--w); height: auto; translate: -50% -50%; rotate: var(--r); border-radius: 1.4cqw;
  filter: drop-shadow(0 1.6cqw 3cqw rgba(10,30,90,.22)) drop-shadow(0 .2cqw .5cqw rgba(10,30,90,.08)); pointer-events: none; }
@media (max-width: 680px) { .ap-ui.hide-m { display: none; } .ap-hero .ap-ui { width: calc(var(--w) * 1.5); } }

/* ===== карточки интерфейса вёрсткой (src/ui-cards.mjs) =====
   Карточка свёрстана в px своего настоящего размера (--dw — ширина при 1x) и целиком
   масштабируется zoom'ом под ширину обёртки .ap-ui: tan(atan2(a, b)) = a / b — число из двух длин. */
@font-face { font-family: 'UC Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'UC Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'UC Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* как next/font: чего нет в подмножествах Inter (→ и т. п.), берётся из Arial, подогнанного под Inter */
@font-face { font-family: 'UC Inter Fallback'; src: local('Arial'); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }

div.ap-ui { container-type: inline-size; }
.ui-card { position: relative; width: calc(var(--dw) * 1px); zoom: tan(atan2(100cqw, calc(var(--dw) * 1px)));
  overflow: hidden; text-align: left; white-space: normal; letter-spacing: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ui-card b { font-weight: inherit; }
.ui-card img { object-fit: cover; }
.ui-card .uc-ic { flex: none; }
.uc-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* — приложение: системный шрифт, как у React Native Web; белая карточка 30 — */
.uc-app { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Noto Sans Georgian', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: normal; color: #0F172A; background: var(--paper); border-radius: 30px; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
.uc-app .uc-m { color: #64748B; }
.uc-app .uc-up { color: #12B76A; font-weight: 600; }

/* строка чата (chat/index.tsx): аватар 54, имя 15/600, время 13/600 синее, превью 15/20 в две строки, счётчик 20 */
.uc-ui-chat-row { border-radius: 18px; }
.uc-chat { display: flex; align-items: center; padding: 6px 14px 6px 10px; }
.uc-ava { position: relative; flex: none; width: 54px; height: 54px; margin-right: 12px; }
.uc-ava img { width: 54px; height: 54px; border-radius: 50%; background: #E4E7EF; }
.uc-ava i { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 50%; background: #10B981; border: 2px solid #fff; }
.uc-chat-c { flex: 1; min-width: 0; }
.uc-chat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.uc-chat-top b { flex-shrink: 1; min-width: 0; margin-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.uc-chat-top span { flex: none; font-size: 13px; font-weight: 600; color: #2D7FF9; }
.uc-chat-bot { display: flex; align-items: flex-start; }
.uc-chat-bot p { flex: 1; min-width: 0; margin-right: 8px; font-size: 15px; line-height: 20px; color: #64748B;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-badge { flex: none; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #2D7FF9; color: #fff; font-size: 11px; font-weight: 700; }

/* выручка на главной (components/RevenueCard.tsx): поля 20, сумма 22/700, линия 106×44 */
.uc-ui-revenue { padding: 0 20px 20px; }
.uc-arev-row { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.uc-arev-l { flex: 1; min-width: 0; }
.uc-arev-l > .uc-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-arev-v { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; white-space: nowrap; }
.uc-arev-v b { font-size: 22px; font-weight: 700; }
.uc-arev-p { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; white-space: nowrap; }
.uc-arev-p b { font-weight: 600; color: #0F172A; }
.uc-arev-p .uc-up { font-size: 13px; }
.uc-spark { display: block; flex: none; overflow: visible; }
.uc-arev-s { margin-top: 4px; font-size: 13px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-arev-s b { font-weight: 600; color: #0F172A; }

/* уведомление (notifications.tsx): поля 16, кружок 44 с иконкой 22, заголовок 15.5/21/700, текст 14/19 */
.uc-nrow { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.uc-bubble { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.uc-nbody { flex: 1; min-width: 0; }
.uc-ntop { display: flex; align-items: flex-start; gap: 8px; }
.uc-ntitle { flex: 1; min-width: 0; font-size: 15.5px; line-height: 21px; font-weight: 700 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-ntime { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 2px; font-size: 13px; font-weight: 600; color: #2D7FF9; white-space: nowrap; }
.uc-ntime i { width: 8px; height: 8px; border-radius: 4px; background: #2D7FF9; }
.uc-nmsg { margin-top: 3px; font-size: 14px; line-height: 19px; color: #64748B;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* «Вы изучаете» (academy.tsx): 290 шириной, поля 16, обложка 70 r16, название 16/20/500, полоса 6 */
.uc-course { display: flex; align-items: center; gap: 16px; padding: 16px; }
.uc-cover { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(162deg, #9ACCFF 0%, #7CB0FF 38%, #5B8CFF 78%, #5788FA 100%); }
.uc-cover i { position: absolute; background: rgba(255,255,255,.14); }
.uc-cover .c1 { width: 56px; height: 56px; right: -16px; top: -16px; border-radius: 50%; }
.uc-cover .c2 { width: 22px; height: 22px; left: -10px; top: 10px; border-radius: 6px; rotate: -12deg; background: rgba(255,255,255,.16); }
.uc-cover .c3 { width: 26px; height: 26px; left: -14px; bottom: -14px; border-radius: 50%; background: rgba(255,255,255,.1); }
.uc-cover span { position: relative; font-size: 29px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; filter: drop-shadow(0 2px 3px rgba(20,40,120,.18)); }
.uc-course-c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-course-c > b { margin-bottom: 6px; font-size: 16px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-course-m { margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #878FA2; }
.uc-track { display: block; height: 6px; border-radius: 28px; background: #F6F7FA; overflow: hidden; }
.uc-track i { display: block; height: 6px; border-radius: 28px; background: #2D7FF9; }

/* календарь событий (EventCalendarCard): подпись и дата 12/16, название 16/20/500, сетка 5×5 клеток 11 */
.uc-event { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 20px; }
.uc-event-c { flex: 1; min-width: 0; }
.uc-event-c > .uc-m { font-size: 12px; line-height: 16px; color: #666E81; }
.uc-event-c > .uc-m:first-child { margin-bottom: 8px; }
.uc-event-c > .uc-m:last-child { margin-top: 8px; }
.uc-event-c > b { font-size: 16px; line-height: 20px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-cal { flex: none; display: flex; gap: 2px; }
.uc-cal > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.uc-cal b { margin-bottom: 4px; font-size: 9px; line-height: 11px; font-weight: 500; color: #878FA2; }
.uc-cal i { width: 11px; height: 11px; border-radius: 4px; background: #E4E7EF; }
.uc-cal i.on { background: #2D7FF9; }

/* — портал: Inter, как в портале (cv02 cv11 ss01), строка 1.5; блок 24 на фоне — */
.uc-portal { font-family: 'UC Inter', 'UC Inter Fallback', Inter, -apple-system, BlinkMacSystemFont, 'Noto Sans Georgian', sans-serif; font-feature-settings: 'cv02', 'cv11', 'ss01';
  font-size: 14px; line-height: 1.5; color: #0F172A; background: var(--paper); border-radius: 24px; }
.uc-portal .uc-pm { color: #64748B; }
.uc-portal .uc-pup { color: #059669; }

/* RevenueCard: поля 20, сумма 26/700, справа линия 120×44 */
.uc-p-revenue { background: #FEFCFC; }
.uc-prev { display: flex; align-items: center; gap: 16px; padding: 20px; }
.uc-prev-l { flex: 1; min-width: 0; }
.uc-prev-l > .uc-pm { font-size: 13px; }
.uc-prev-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 6px; }
.uc-prev-v b { font-size: 26px; font-weight: 700; line-height: 1; }
.uc-prev-v .uc-pup { font-size: 13px; font-weight: 500; }
.uc-prev-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 12px; color: #64748B; }
.uc-prev-p b, .uc-prev-s b { font-weight: 600; color: #0F172A; }
.uc-prev-p .uc-pup { font-weight: 500; }
.uc-prev-s { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 12px; color: #64748B; }
.uc-prev-r { flex: none; width: 120px; }
.uc-prev-r .uc-spark { width: 100%; }

/* «Первичные → Выручка» (витрина дашборда) */
.uc-p-faces { background: #FDFCFD; padding: 20px; }
.uc-faces-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.uc-faces-top > div { min-width: 0; }
.uc-faces-e { font-size: 13px; font-weight: 500; }
.uc-faces-t { margin-top: 2px; font-size: 19px; font-weight: 600; line-height: 1.375; letter-spacing: -0.01em; }
.uc-faces-s { margin-top: 4px; font-size: 13px; }
.uc-round { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,23,42,.035); color: #0F172A; }
.uc-faces-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.uc-faces-a { flex: none; display: flex; align-items: center; }
.uc-faces-a img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #E9EDF3; }
.uc-faces-a img + img { margin-left: -10px; }
.uc-faces-w { min-width: 0; }
.uc-faces-w b { display: block; font-size: 13.5px; font-weight: 600; }
.uc-faces-w p { font-size: 12.5px; line-height: 1.375; color: #64748B; }
.uc-faces-b { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.055); font-size: 13px; color: #64748B; font-variant-numeric: tabular-nums; }
.uc-faces-k { display: flex; flex-wrap: wrap; column-gap: 12px; }
.uc-faces-b b { font-weight: 600; }
.uc-faces-b .r { color: #DC2626; } .uc-faces-b .g { color: #059669; } .uc-faces-b .o { color: #B45309; } .uc-faces-b .k { color: #0F172A; }
.uc-faces-b .uc-ml { margin-left: 6px; }

/* «Заявки с сайта»: две компактные плитки MetricTile */
.uc-p-bookings { background: #F9FCFF; padding: 20px; }
.uc-book-t { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; }
.uc-book-t span { display: flex; color: #64748B; }
.uc-book-s { margin-top: 2px; font-size: 13px; }
.uc-book-g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 20px; }
.uc-tile { display: flex; flex-direction: column; min-width: 0; }
.uc-tile-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.uc-tile-h span { font-size: 14px; color: #64748B; }
.uc-tile-h b { flex: none; font-size: 13px; font-weight: 600; }
.uc-tile-v { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.uc-tile-v > b { font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: -0.4px; }
.uc-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.uc-bars i { display: block; width: 5px; border-radius: 3px; background: #12B76A; }
.uc-tile-s { margin-top: 4px; font-size: 13px; color: #64748B; }

/* окошко Оки (OkiPop): тёмное стекло 30, поля 16, лицо 44, кнопки 36 */
.uc-p-oki-hint { padding: 16px; border-radius: 30px; color: #fff;
  background: linear-gradient(to bottom, #0E0E10 0%, #171719 55%, #3B3B3E 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -1.5px 1px rgba(255,255,255,.26), inset 0 -18px 28px -16px rgba(255,255,255,.12); }
.uc-oki-x { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.13); color: rgba(255,255,255,.56); }
.uc-oki-row { display: flex; align-items: flex-start; gap: 10px; padding-right: 32px; }
.uc-oki-face { flex: none; width: 44px; height: 44px; margin: -4px 0 0 -4px; object-fit: contain !important; }
.uc-oki-c { min-width: 0; }
.uc-oki-t { font-size: 15px; font-weight: 600; line-height: 1.375; }
.uc-oki-p { margin-top: 4px; font-size: 13.5px; line-height: 1.625; color: rgba(255,255,255,.86); }
.uc-oki-p .uc-oki-m { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.56); }
.uc-oki-a { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.uc-oki-a span { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; font-size: 13.5px; }
.uc-oki-g { padding: 0 14px; font-weight: 500; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.uc-oki-b { padding: 0 16px; font-weight: 600; background: var(--paper); color: #000; }

/* «Идут сейчас» (CallsHubScreen): иконка 44 r14, «Войти» 44 во всю ширину, две круглые 44 */
.uc-p-call-live { background: #FFFBF7; padding: 20px; }
.uc-live-h { font-size: 17px; font-weight: 600; }
.uc-live-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.uc-live-ic { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(45,127,249,.10); color: #2D7FF9; }
.uc-live-ic i { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #059669; box-shadow: 0 0 0 2px #fff; }
.uc-live-c { flex: 1; min-width: 0; }
.uc-live-t { font-size: 15.5px; font-weight: 600; }
.uc-live-s { font-size: 13px; color: #64748B; }
.uc-live-s b { font-weight: 600; color: #059669; }
.uc-people { flex: none; display: flex; }
.uc-people img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ring); background: #E9EDF3; }
.uc-people img + img { margin-left: -8px; }
.uc-live-btns { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.uc-join { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 999px;
  background: #2D7FF9; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.uc-rb { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(15,23,42,.035); color: #0F172A; }

/* карточка прошедшей встречи: серая 16, заголовок 16/600, пункты 14/20 */
.uc-p-call-sum { display: flex; flex-direction: column; background: #EFF4F7; border-radius: 16px; }
.uc-sum { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.uc-sum-h { display: flex; align-items: baseline; gap: 12px; }
.uc-sum-h > b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.uc-ker { flex: none; padding: 2px 8px; border-radius: 8px; background: rgba(124,58,237,.12); color: #7C3AED; font-size: 12px; font-weight: 500; }
.uc-sum-time { flex: none; font-size: 13px; color: #64748B; font-variant-numeric: tabular-nums; }
.uc-sum ul { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.uc-sum li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; color: #1E293B; }
.uc-sum li i { flex: none; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: #94A3B8; }
.uc-sum li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-sum-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.uc-sum-pp, .uc-sum-n { display: flex; align-items: center; font-size: 13px; color: #64748B; }
.uc-sum-pp { gap: 8px; } .uc-sum-n { gap: 6px; }

/* звонок на компьютере под рядом телефонов */
.ap-desk { position: relative; margin-top: 14px; padding: 5% 7% 0; overflow: hidden; border-radius: 44px; }
.ap-desk .ld-screen { border-radius: 22px 22px 0 0; box-shadow: 0 0 0 1px rgba(14,26,61,.08), 0 30px 60px -28px rgba(10,30,90,.45); }
@media (max-width: 680px) { .ap-desk { border-radius: 26px; padding: 7% 5% 0; } .ap-desk .ld-screen { border-radius: 12px 12px 0 0; } }

/* стена экранов растворяется книзу — не обрывается краем секции */
.ld-wall-view { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%); }

/* карточки кейсов на главной — настоящий интерфейс */
.art-real { container-type: inline-size; }
.art-real .rc-ui { z-index: 2; transition: translate .7s var(--ease); }
.art-real .rc-phone { position: absolute; left: var(--x); top: var(--y); width: var(--w); translate: -50% -50%; rotate: var(--r); transition: translate .7s var(--ease); }
.card:hover .art-real > :nth-child(1) { translate: -52% -53%; }
.card:hover .art-real > :nth-child(2) { translate: -47% -52%; }
.card:hover .art-real > :nth-child(3) { translate: -50% -46%; }
@media (max-width: 680px) { .works > .card .art-real .rc-phone:not(.is-tab) { width: calc(var(--w) * 1.15); } .works > .card .art-real { top: 34%; } }

.rc-tab { position: relative; aspect-ratio: 2640 / 1880; container-type: inline-size; }
.rc-tab::after { content: ''; position: absolute; inset: 0; z-index: 2; background: url(../assets/devices/ipad-pro-11-silver.webp) center / 100% 100% no-repeat; pointer-events: none; }
.rc-tab::before { content: ''; position: absolute; inset: 2% 2.5%; border-radius: 4%; box-shadow: 0 4cqw 8cqw -2cqw rgba(10,30,90,.35); }
.rc-tab-scr { position: absolute; z-index: 1; top: 5.638%; bottom: 5.638%; left: 4.167%; right: 4.167%; overflow: hidden; border-radius: 2.2cqw; background: var(--paper); }
.rc-tab-scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Serenity: тёплые сцены и тёмный блок в тонах студии */
.ser-row:has(.ap-r2:last-child) .ap-phone { width: 25%; }
.ser-dark { padding-top: clamp(90px, 10vw, 140px); }
.ser-dark .own { margin-top: 0; }
@media (max-width: 680px) { .ser-row:has(.ap-r2:last-child) { grid-template-columns: repeat(3, 1fr); height: auto; padding-bottom: 0; gap: 8px; } .ser-row:has(.ap-r2:last-child) .ap-phone { width: 100%; margin-top: 0 !important; } .ser-row:has(.ap-r2:last-child) .ap-r1 { margin-top: 12% !important; } }
.ser-dark .own-h .g { background: linear-gradient(95deg, #f3d9b8 0%, #d9a774 50%, #b98a5e 100%); -webkit-background-clip: text; background-clip: text; }
.ser-dark .own-lbl .ic, .ser-dark .own-num { color: #e2b98a; }
.ser-dark .own-ln { stroke: rgba(226,185,138,.4); }
.ser-dark .own-dot { fill: #f6dfc2; filter: drop-shadow(0 0 1.2px #e2b98a); }
.ser-dark .own-end { fill: #e2b98a; }
.ser-dark .own-glow { background: conic-gradient(from var(--pai-angle), #f6dfc2, #d9a774, #8a6a4f, #f2c38f, #f6dfc2); }
.ser-dark .ld-oki-edge { background: conic-gradient(from var(--oki-angle), #f6dfc2, #d9a774, #8a6a4f, #f2c38f, #f6dfc2); opacity: .45; }

/* обложка Serenity: экран сайта смещён влево, телефон с админкой стоит рядом справа */
.ser-scene .ld-scene-in { inset: 6% 24% 8% 4%; }
.ser-hero-phone { position: absolute; z-index: 4; right: 6%; top: 9%; width: 20%; rotate: 4deg; }
@media (max-width: 680px) { .ser-scene .ld-scene-in { inset: 10% 22% 10% 0; } .ser-hero-phone { right: 2%; width: 30%; } }

/* ===== Serenity: свои блоки ===== */
/* ряд телефонов без «лесенки»: все целиком, по нижнему краю */
.ser-row { aspect-ratio: auto !important; align-items: flex-end; padding-bottom: 5% !important; }
.ser-row .ap-phone { margin-top: 0 !important; }

/* история записи: телефон закреплён, шаги листаются */
.ser-story { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 0; }
.ser-story-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.ser-story-dev { position: sticky; top: 90px; align-self: start; height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; border-radius: 44px; background: radial-gradient(70% 60% at 50% 40%, #f6e7d4, #efe2d2 60%, #ead9c4); }
.ser-story-stack { position: relative; width: min(300px, 62%); aspect-ratio: 1350 / 2760; }
.ser-story-scr { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ser-story-scr.on { opacity: 1; transform: none; }
.ser-story-scr .ap-phone { width: 100%; }
.ser-story-steps { margin: 0; padding: 2vh 0 22vh; list-style: none; }
.ser-story-mini { display: none; }
.ser-story-tx { display: flex; flex-direction: column; gap: 10px; }
.ser-story-steps li { display: flex; flex-direction: column; min-height: 62vh; justify-content: center; opacity: .28; transition: opacity .4s; }
.ser-story-steps li.on { opacity: 1; }
.ser-story-tx > span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--c); }
.ser-story-tx > b { font-size: clamp(28px, 3vw, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.ser-story-tx > p { max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* полоса крупных цифр */
.ser-nums { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; width: min(1180px, calc(100% - 32px)); margin: 120px auto 0; padding: 50px 0; border-top: 1px solid var(--line, #e7e3dd); border-bottom: 1px solid var(--line, #e7e3dd); }
.ser-nums > div { padding: 0 28px; }
.ser-nums > div + div { border-left: 1px solid var(--line, #e7e3dd); }
.ser-nums b { display: block; font-size: clamp(60px, 7vw, 104px); font-weight: 600; line-height: .95; letter-spacing: -.05em; background: linear-gradient(170deg, #b98a5e, #6e5038); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ser-nums span { display: block; margin-top: 6px; font-size: 20px; font-weight: 500; }
.ser-nums p { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* переключатель светлая / тёмная */
.ser-seg-stage { display: grid; }
.ser-seg-pane { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
.ser-seg-pane.on { opacity: 1; }
.ser-seg-pane .ld-screen { border-radius: 22px; box-shadow: 0 0 0 1px rgba(14,26,61,.08), 0 40px 80px -36px rgba(40,25,10,.45); }
.ser-seg { background: #efe7dc; }
.ser-seg button { color: #6b5a48; }
.ser-seg button.on { background: #1d1a17; color: #fff; }

/* было / стало */
.ser-compare { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 0; }
.ser-cmp { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.ser-cmp-col { padding: 34px 36px 38px; border-radius: 32px; }
.ser-cmp-col h4 { margin-bottom: 22px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ser-cmp-col p { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(0,0,0,.07); font-size: 16px; line-height: 1.45; }
.ser-cmp-col.was { background: #f4f2ef; color: #8b857d; }
.ser-cmp-col.was p { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.ser-cmp-col.now { background: #1d1a17; color: #f6efe6; }
.ser-cmp-col.now p { border-color: rgba(255,255,255,.1); }
.ser-cmp-col.now .okd-ck { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #e2b98a; opacity: 1; }

@media (max-width: 860px) {
  .ser-story-in { grid-template-columns: 1fr; }
  .ser-story { padding-top: 90px; }
  .ser-story-dev { display: none; }
  .ser-story-steps { padding: 0; }
  .ser-story-steps li { display: grid; grid-template-columns: 40% 1fr; gap: 18px; align-items: center; min-height: 0; padding: 26px 0; opacity: 1; border-top: 1px solid var(--line, #e7e3dd); }
  .ser-story-steps li:first-child { border-top: 0; }
  .ser-story-mini { display: block; }
  .ser-story-mini .ap-phone { width: 100%; }
  .ser-story-tx { gap: 6px; }
  .ser-story-tx > b { font-size: 21px; }
  .ser-story-tx > p { font-size: 15px; }
  .ser-nums { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .ser-nums > div { padding: 24px 4px; }
  .ser-nums > div + div { border-left: 0; border-top: 1px solid var(--line, #e7e3dd); }
  .ser-cmp { grid-template-columns: 1fr; }
}

/* Serenity: тёплые фоны студии вместо голубых портала */
.ser-page .pbg:not(.ap-dark) { background:
  radial-gradient(60% 70% at 0% 0%, rgba(236, 196, 156, .55), transparent 70%),
  radial-gradient(55% 65% at 100% 8%, rgba(214, 176, 138, .42), transparent 70%),
  radial-gradient(60% 60% at 30% 100%, rgba(248, 222, 196, .55), transparent 70%),
  radial-gradient(55% 60% at 100% 100%, rgba(196, 156, 118, .32), transparent 70%),
  #f6f0e9; }

/* Serenity: ссылка на живой сайт */
.ser-visit { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 30px auto 0; padding: 14px 22px 14px 24px; border-radius: 999px; background: var(--paper); color: #2a211a; font-size: 16px; font-weight: 500; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(40, 25, 10, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.ser-visit span { color: #8a6a4f; }
.ser-visit svg { width: 18px; height: 18px; rotate: -45deg; }
.ser-visit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(40, 25, 10, .55); }
.ser-live { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: clamp(70px, 9vw, 120px) auto 0; text-decoration: none; text-align: center; }
.ser-live small { font-size: 15px; letter-spacing: .02em; color: rgba(246, 239, 230, .6); }
.ser-live b { display: inline-flex; align-items: center; gap: .18em; font-size: clamp(38px, 7.4vw, 104px); font-weight: 600; line-height: 1; letter-spacing: -.045em; background: linear-gradient(95deg, #f3d9b8 0%, #d9a774 55%, #b98a5e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ser-live svg { width: .62em; height: .62em; rotate: -45deg; color: #d9a774; transition: translate .3s var(--ease); }
.ser-live:hover svg { translate: .06em -.06em; }
@media (max-width: 680px) { .ser-visit { margin-top: 22px; font-size: 15px; padding: 12px 18px 12px 20px; } .ser-hero-phone { top: 12%; width: 27%; } }
/* Serenity: низ тёмного блока тёплый, без голубого свечения портала */
.ser-dark::before { background: radial-gradient(60% 260px at 50% calc(100% - 260px), rgba(217, 167, 116, .16), transparent 70%),
  linear-gradient(to bottom, #090706 0, #0b0908 calc(100% - 420px), #120f0c calc(100% - 360px), #211b16 calc(100% - 300px), #3c332b calc(100% - 245px), #635950 calc(100% - 195px), #948a7f calc(100% - 150px), #c2bab0 calc(100% - 105px), #e6e1db calc(100% - 60px), #f8f6f3 calc(100% - 25px), var(--bg) 100%); }
.ser-live b { padding-bottom: .14em; }

/* ---------- портал: «Рассмотреть ближе» — экран приближается к выбранному месту ---------- */
.ld-cl-in { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 56px; }
.ld-cl-stage { padding: clamp(18px, 4%, 44px); border-radius: 44px; }
.ld-cl-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 1.2vw; box-shadow: 0 0 0 1px rgba(15, 23, 41, .06), 0 30px 60px -30px rgba(10, 30, 80, .45); background: #f2f4f7; }
.ld-cl-img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform-origin: 0 0; transform: translate(var(--tx), var(--ty)) scale(var(--s)); transition: transform 1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.ld-cl-list { margin: 0; padding: 0; list-style: none; }
.ld-cl-list li + li { border-top: 1px solid var(--line, #e6e8ec); }
.ld-cl-list button { display: flex; flex-direction: column; gap: 0; width: 100%; padding: 18px 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.ld-cl-list b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: #9aa0aa; transition: color .3s; }
.ld-cl-list span { display: block; max-height: 0; overflow: hidden; font-size: 15.5px; line-height: 1.5; color: var(--muted); opacity: 0; transition: max-height .45s var(--ease), opacity .35s, margin .45s var(--ease); }
.ld-cl-list button.on b, .ld-cl-list button:hover b { color: var(--ink, #0b0c10); }
.ld-cl-list button.on span { max-height: 7.5em; opacity: 1; margin-top: 8px; }
@media (max-width: 860px) {
  .ld-cl-in { grid-template-columns: 1fr; margin-top: 36px; }
  .ld-cl-stage { padding: 14px; border-radius: 28px; }
  .ld-cl-frame { border-radius: 10px; }
  .ld-cl-list b { font-size: 18px; }
}

/* ---------- портал: крупная фраза, слова проявляются при прокрутке ---------- */
.ld-say { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: clamp(120px, 14vw, 200px) 0 0; }
.ld-say p { margin: 0; font-size: clamp(32px, 4.6vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.ld-say span { color: #d3d6dc; transition: color .35s; }
.ld-say span.on { color: var(--ink, #0b0c10); }

/* ---------- приложение: уведомления падают на экран ---------- */
.ap-push-stage { display: flex; justify-content: center; padding: clamp(40px, 6vw, 80px) 0; border-radius: 44px; margin-top: 56px; }
.ap-push-ph { width: min(340px, 62%); }
.ap-push { position: absolute; z-index: 3; top: 12.5cqw; left: 3.5cqw; right: 3.5cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.ap-push-c { container-type: inline-size; opacity: 0; transform: translateY(-60%) scale(.96); transition: opacity .5s, transform .7s cubic-bezier(.2, .9, .25, 1.15); transition-delay: calc(var(--i) * .9s + .3s); }
.ap-push-c .ui-card { box-shadow: 0 10px 28px -10px rgba(15, 23, 41, .35), 0 0 0 1px rgba(15, 23, 41, .05); }
[data-push].on .ap-push-c { opacity: 1; transform: none; }
@media (max-width: 680px) { .ap-push-stage { border-radius: 28px; } .ap-push-ph { width: 72%; } }

/* ---------- приложение: бегущая лента коллег (строки как в «Мои коллеги») ---------- */
.ap-mq { display: flex; flex-direction: column; gap: 14px; margin-top: 56px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ap-mq-row { overflow: hidden; }
.ap-mq-track { display: flex; width: max-content; animation: ap-mq 60s linear infinite; }
.ap-mq-row.rev .ap-mq-track { animation-direction: reverse; animation-duration: 70s; }
.ap-mq:hover .ap-mq-track { animation-play-state: paused; }
.ap-mq-set { display: flex; gap: 14px; padding-right: 14px; }
@keyframes ap-mq { to { transform: translateX(-50%); } }
.ap-mate { display: flex; align-items: center; gap: 14px; padding: 12px 24px 12px 12px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px rgba(15, 23, 41, .05), 0 10px 26px -16px rgba(15, 23, 41, .28); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Noto Sans Georgian', sans-serif; white-space: nowrap; }
.ap-mate-ava { position: relative; flex: none; width: 52px; height: 52px; }
.ap-mate-ava img { width: 52px; height: 52px; border-radius: 50%; background: #e4e7ef; object-fit: cover; }
.ap-mate-ava i { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 2.5px #fff; }
.ap-mate > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.ap-mate b { font-size: 16.5px; font-weight: 600; color: #0f172a; }
.ap-mate small { font-size: 14px; color: #64748b; }
@media (prefers-reduced-motion: reduce) { .ap-mq-track { animation: none; } .ap-push-c { transition: none; } .ld-cl-img { transition: none; } }
@media (max-width: 680px) { .ap-mq { margin-top: 36px; gap: 10px; } .ap-mate { padding: 10px 18px 10px 10px; border-radius: 20px; } .ap-mate-ava, .ap-mate-ava img { width: 44px; height: 44px; } .ap-mate b { font-size: 15px; } .ap-mate small { font-size: 13px; } }
/* лента коллег: место под тень, чтобы её не срезало */
.ap-mq { gap: 0; }
.ap-mq-row { padding: 10px 0 26px; margin-bottom: -12px; }
/* «Следующий кейс» с обложкой кейса: устройства уходят за нижний край, как на обложке */
.next-shot.scene { max-width: 1180px; overflow: visible; border-radius: 0; transform: translateY(24px); }
.next-shot.scene .ld-scene, .next-shot.scene .ap-hero { margin-top: 0; }
.next-case:hover .next-shot.scene { transform: translateY(0); }
/* пометка: данные на экранах выдуманы */
.demo-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.demo-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; opacity: .7; }
.works + .demo-note { justify-content: center; margin-top: 26px; text-align: left; }

/* ---------- витрина на главной: обложки кейсов без подложки, соседние выглядывают по краям ---------- */
.hs { --sw: min(1000px, 80vw); position: relative; height: calc(var(--sw) * .7); margin: 30px 0 0; overflow: hidden; outline: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.hs-slide { --o: 0; --s: 1; position: absolute; left: 50%; top: 0; width: var(--sw); display: block; opacity: 1; transform: translateX(-50%) translateX(calc(var(--o) * var(--sw) * .84)) scale(var(--s)); transform-origin: 50% 40%; transition: transform .9s var(--ease), opacity .7s; -webkit-tap-highlight-color: transparent; }
.hs-slide:not(.is-active) { opacity: .45; cursor: pointer; }
.hs-slide:not(.is-active) .hs-scene { pointer-events: none; }
.hs-scene { width: 100%; }
.hs-scene .ld-scene, .hs-scene .ap-hero { width: 100%; margin-top: 0; }
.hs + .sc-bar { margin-top: 8px; }
@media (max-width: 680px) { .hs { --sw: 78vw; height: calc(var(--sw) * .86); margin-top: 24px; } }


/* ---------- страница «Как происходит работа» ---------- */
.wk-hero { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: clamp(120px, 14vw, 180px) 0 0; text-align: center; }
.wk-hero h1 { margin: 18px 0 24px; font-size: clamp(42px, 7vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.wk-hero p { max-width: 680px; margin: 0 auto 32px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.wk-steps, .wk-get { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 80px); width: min(1180px, calc(100% - 32px)); margin: clamp(110px, 12vw, 170px) auto 0; }
.wk-side { position: sticky; top: 110px; align-self: start; }
.wk-steps h2, .wk-get h2 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }
.wk-time { margin-top: 44px; }
.wk-time b { display: block; font-size: clamp(64px, 7vw, 104px); font-weight: 600; line-height: .95; letter-spacing: -.05em; color: var(--c); }
.wk-time span { display: block; margin-top: 6px; font-size: 22px; font-weight: 500; }
.wk-time p { max-width: 280px; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.wk-list { margin: 0; padding: 0; list-style: none; }
.wk-list li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 38px 0; border-top: 1px solid var(--line, #e6e8ec); }
.wk-list li:first-child { border-top: 0; padding-top: 8px; }
.wk-no { padding-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--c); }
.wk-list h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.wk-list p { max-width: 580px; margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.wk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.wk-tiles figure { margin: 0; }
.wk-tile { display: flex; justify-content: center; height: clamp(360px, 36vw, 520px); padding-top: 44px; overflow: hidden; border-radius: 36px; }
.wk-tile .ap-phone { width: 64%; }
.wk-tiles figcaption { margin-top: 18px; }
.wk-tiles figcaption b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.wk-tiles figcaption span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.wk-crm { position: relative; margin-top: 56px; padding: 6% 14% 0 6%; overflow: hidden; border-radius: 44px; }
.wk-crm .ld-screen { width: 100%; border-radius: 14px 14px 0 0; }
.wk-crm .ld-img { display: block; width: 100%; height: auto; }
.wk-crm-ph { position: absolute; right: 5%; bottom: -14%; width: 21%; }
.wk-get-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 0; padding: 0; list-style: none; }
.wk-get-list li { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line, #e6e8ec); font-size: 18px; line-height: 1.45; }
.wk-get-list .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--c); }
.wk-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 17px; font-weight: 500; color: var(--ink, #0b0c10); text-decoration: none; }
.wk-more .ic { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.wk-more:hover .ic { translate: 4px 0; }
@media (max-width: 860px) {
  .wk-steps, .wk-get { grid-template-columns: 1fr; gap: 24px; }
  .wk-side { position: static; }
  .wk-time { margin-top: 22px; }
  .wk-list li { grid-template-columns: 44px 1fr; gap: 10px; padding: 28px 0; }
  .wk-list p { font-size: 16px; }
  .wk-tiles { grid-template-columns: 1fr; gap: 34px; margin-top: 36px; }
  .wk-tile { height: 440px; border-radius: 28px; }
  .wk-tile .ap-phone { width: 62%; }
  .wk-crm { margin-top: 36px; padding: 7% 18% 0 5%; border-radius: 28px; }
  .wk-crm-ph { width: 30%; bottom: -10%; }
  .wk-get-list { grid-template-columns: 1fr; }
  .wk-get-list li { font-size: 16px; padding: 16px 0; }
}
.wk-hero .btn { display: inline-flex; width: auto; }
/* «Как происходит работа»: своя админка (обои «Закат» уже на самих экранах) */
.wk-ak { position: relative; margin-top: 56px; padding-right: 9%; }
.wk-ak-mon { overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 1px rgba(60, 30, 20, .08), 0 40px 80px -36px rgba(110, 60, 40, .55); }
.wk-ak-mon img, .wk-ak-shot img { display: block; width: 100%; height: auto; }
.wk-ak-ph { position: absolute; right: 0; bottom: -9%; width: 22%; }
.wk-ak-cap { max-width: 520px; margin: 26px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.wk-ak-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 80px; }
.wk-ak-tiles figure { margin: 0; }
.wk-ak-shot { position: relative; overflow: hidden; aspect-ratio: 1280 / 880; border-radius: 22px; box-shadow: 0 0 0 1px rgba(60, 30, 20, .08), 0 24px 50px -30px rgba(110, 60, 40, .5); }
.wk-ak-shot img { width: 100%; height: 100%; object-fit: cover; }
.wk-ak-tiles figcaption { margin-top: 16px; }
.wk-ak-tiles b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.wk-ak-tiles figcaption span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.wk-ak-mob { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: 90px; padding: clamp(36px, 5vw, 64px); border-radius: 44px; background:
  radial-gradient(70% 80% at 0% 0%, rgba(157, 179, 227, .55), transparent 70%), radial-gradient(70% 80% at 100% 100%, rgba(194, 127, 110, .5), transparent 70%), linear-gradient(160deg, #eef0f8, #f6dcc6 60%, #e9c4b8); }
.wk-ak-mtx h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.wk-ak-mtx p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #5b4a44; }
.wk-ak-row { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.wk-ak-row .ap-phone { width: 31%; flex: none; }
.wk-ak-row .ap-phone:nth-child(2) { margin-bottom: 6%; }
.wk-ak-sec .ld-feats3 { margin-top: 60px; }
@media (max-width: 860px) {
  .wk-ak { margin-top: 36px; padding-right: 14%; }
  .wk-ak-mon { border-radius: 12px; }
  .wk-ak-ph { width: 30%; bottom: -14%; }
  .wk-ak-cap { margin-top: 40px; }
  .wk-ak-tiles { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
  .wk-ak-shot { border-radius: 16px; }
  .wk-ak-mob { grid-template-columns: 1fr; margin-top: 60px; padding: 28px 18px 34px; border-radius: 28px; }
}

/* ---------- страница «Своя админка» ---------- */
.am-top { width: min(1180px, calc(100% - 32px)); margin: 70px auto 0; }
.am-note { justify-content: center; width: min(1180px, calc(100% - 32px)); margin: 60px auto 0; }
.am-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; margin: 56px 0 0; padding: 0; list-style: none; }
.am-mods li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 22px 0; border-top: 1px solid var(--line, #e6e8ec); }
.am-mods .ld-fi { grid-row: 1 / 3; }
.am-mods b { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.am-mods small { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.am-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.am-tiles figure { margin: 0; }
.am-tiles figcaption { margin-top: 16px; }
.am-tiles b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.am-tiles figcaption span { display: block; max-width: 480px; margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.am-mob { margin-top: 0; }
.am-look .ser-seg-stage { margin-top: 48px; }
.am-look .ser-seg-pane .ld-screen { box-shadow: 0 0 0 1px rgba(14,26,61,.08), 0 40px 80px -36px rgba(20,40,110,.45); }
.am-look .ld-screen img { display: block; width: 100%; height: auto; }
.am-seg { background: #eef0f5; }
.am-seg button { color: #4b5563; }
.am-seg button.on { background: #0b0c10; color: #fff; }
.am-safe-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: 44px; background: #0b0c10; color: #fff; }
.am-safe-in h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 50px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.am-safe-in p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.65); }
.am-safe-in ul { margin: 22px 0 0; padding: 0; list-style: none; }
.am-safe-in li { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 16px; }
.am-safe-in .okd-ck { flex: none; width: 20px; height: 20px; color: #7ea2ff; opacity: 1; }
.am-safe-shot { overflow: hidden; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.am-safe-shot img { display: block; width: 100%; height: auto; }
.am-cmp .ser-cmp-col.now { background: #0b0c10; }
.am-cmp .ser-cmp-col.now .okd-ck { color: #7ea2ff; }
@media (max-width: 860px) {
  .am-top { margin-top: 44px; }
  .am-mods { grid-template-columns: 1fr; margin-top: 30px; }
  .am-tiles { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .am-safe-in { grid-template-columns: 1fr; padding: 30px 20px; border-radius: 28px; }
}
/* «Своя админка»: крупные планы — экран под наклоном, куски интерфейса парят и тоже изогнуты */
.am-hero { padding-top: clamp(40px, 5vw, 64px); }
.am-scene { margin-top: 30px; }
.am-scene .ld-screen.mon { box-shadow: 0 0 0 .9cqw #0b1124, 0 0 0 calc(.9cqw + 1px) rgba(255,255,255,.08), 0 6cqw 10cqw -3cqw rgba(60, 30, 20, .45); }
.am-focus.flip .ld-scene-in { --ry: 18; --rz: -5; }
.am-tilt { perspective: 1400px; border-radius: 0; }
.am-tilt img { display: block; width: 100%; height: auto; transform: rotateY(-14deg) rotateX(8deg); transform-origin: 50% 50%; }
.am-focus.flip .am-tilt img { transform: rotateY(14deg) rotateX(8deg); }
.am-tilt.far { z-index: 2; filter: blur(3.2px) drop-shadow(0 1.6cqw 3cqw rgba(10,30,90,.18)); opacity: .92; }
.am-dark { padding-top: clamp(90px, 10vw, 140px); }
.am-dark .own { margin-top: 0; }
@media (max-width: 680px) { .am-focus .ap-ui { width: calc(var(--w) * 1.1); max-width: 30%; } .am-focus .ap-ui:not(.far) { top: min(var(--y), 46%); left: min(var(--x), 80%); } .am-focus .ld-feats3 { margin-top: 44px; } .am-hero { padding-top: 40px; } }

/* «Своя админка»: глубина резкости одним слоем с заранее размытой картинкой (дёшево при прокрутке) */
.am-dof { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 12%, transparent 40%, transparent 78%, rgba(0,0,0,.6) 100%); mask-image: linear-gradient(135deg, #000 0%, #000 12%, transparent 40%, transparent 78%, rgba(0,0,0,.6) 100%); }
.am-dof .ld-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-tilt.far { filter: none; opacity: .95; }
.am-tilt, .am-scene .ld-scene-in, .am-fan .ld-scene-in { will-change: transform; }
/* телефоны крупно: веер на закатном фоне */
.am-mstage { position: relative; margin-top: 50px; overflow: hidden; border-radius: 44px; background:
  radial-gradient(70% 80% at 0% 0%, rgba(157, 179, 227, .6), transparent 70%), radial-gradient(70% 80% at 100% 100%, rgba(194, 127, 110, .55), transparent 70%), linear-gradient(160deg, #eef0f8, #f6dcc6 60%, #e9c4b8); }
.am-fan { margin: 0 auto; }
.am-mob-sec .ld-feats3 { margin-top: 50px; }
/* обзор: экраны компьютера на 3 колонки, телефоны на 1 — высоту ряда задаёт телефон */
.am-wall { grid-template-columns: repeat(7, 1fr); align-items: stretch; width: 130vw; margin-left: -15vw; gap: 22px; }
.am-wall .am-wd { position: relative; grid-column: span 3; overflow: hidden; border-radius: 20px; box-shadow: 0 0 0 1px rgba(14,26,61,.08), 0 24px 50px -24px rgba(60,30,20,.35); }
.am-wall .am-wd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.am-wall .ap-phone { width: 100%; }
@media (max-width: 680px) {
  .am-mstage { border-radius: 28px; margin-top: 30px; }
  .am-fan .ap-ui { width: calc(var(--w) * 1.5); }
  .am-wall { width: 240vw; margin-left: -70vw; gap: 10px; }
  .am-wall .am-wd { border-radius: 10px; }
}
@media (max-width: 680px) { .am-fan { aspect-ratio: 4 / 3.3; } .am-fan .ap-phone { top: 6%; } .am-fan .ap-h0, .am-fan .ap-h2 { top: 13%; } }
/* «Обзор»: стена рисуется один раз и дальше только масштабируется (без перерисовки на каждом кадре) */
.am-wall { will-change: transform; contain: layout paint; }
.am-wall .am-wd { box-shadow: 0 0 0 1px rgba(14,26,61,.08), 0 14px 30px -18px rgba(60,30,20,.35); }
.am-wall .ap-phone::before { box-shadow: 0 2cqw 4cqw -1cqw rgba(10,30,90,.25); }
.am-wallsec .ld-wall-view { -webkit-mask-image: none; mask-image: none; }
.am-wallsec .ld-wall-view::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }

/* «Обзор» как у Apple HomeView: секция прилипает, камера отъезжает от одного экрана к сетке устройств */
.am-zoom { padding-top: 120px; }
.am-zoom-track { height: 280vh; }
.am-zoom-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.am-zoom-grid { --h: clamp(150px, 21vh, 240px); display: flex; flex-direction: column; align-items: center; gap: calc(var(--h) * .12); transform-origin: 0 0; }
.am-zrow { display: flex; gap: calc(var(--h) * .12); }
.am-zrow.odd { transform: translateX(calc(var(--h) * .55)); }
.am-zt { flex: none; height: var(--h); }
.am-zt.ph .ap-phone { height: 100%; width: auto; }
.am-zt.dk { aspect-ratio: 16 / 10.4; padding: calc(var(--h) * .035); border-radius: calc(var(--h) * .1); background: #0b0c10; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 calc(var(--h) * .12) calc(var(--h) * .22) calc(var(--h) * -.1) rgba(20,30,60,.4); }
.am-zscr { width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--h) * .07); background: #e9e4ef; }
.am-zscr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
@media (max-width: 680px) { .am-zoom { padding-top: 80px; } .am-zoom-grid { --h: 22vh; } .am-zoom-track { height: 240vh; } }
@media (prefers-reduced-motion: reduce) { .am-zoom-track { height: auto; } .am-zoom-pin { position: static; height: auto; padding: 40px 0; } }

/* «Обзор»: края сетки растворяются в фоне, а не срезаются линией, когда блок отлипает */
.am-zoom-pin::before, .am-zoom-pin::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; height: 16vh; pointer-events: none; }
.am-zoom-pin::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.am-zoom-pin::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
/* «ИИ в вашем бизнесе»: колонки не шире экрана (окно Оки раньше распирало их до 540px на телефоне) */
.ai > * { min-width: 0; }
@media (max-width: 860px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.am-zoom-pin::after { height: 26vh; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
/* логотип Grig в шапке */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand .logo { display: block; width: auto; height: 30px; }
@media (max-width: 680px) { .brand .logo { height: 26px; } }

/* логотип Grig в шапке: знак + «studio» */
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.brand .logo { display: block; width: auto; height: 30px; align-self: center; }
.brand-sub { font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: #8a8a93; transform: translateY(2px); }
@media (max-width: 680px) { .brand .logo { height: 26px; } .brand-sub { font-size: 15px; } }

/* ---------- тёмная тема: включается сама по настройке устройства ---------- */
[data-theme="dark"] .nav { --nav-bg: rgba(11,11,13,.84); }
[data-theme="dark"] .ser-story-dev { background: radial-gradient(70% 60% at 50% 40%, #2a2219, #1f1a14 60%, #18140f); }
/* оттенки проекта приглушаем до тёмных */
[data-theme="dark"] .card, [data-theme="dark"] .panel-case, [data-theme="dark"] .fact, [data-theme="dark"] .stage-box { background: color-mix(in srgb, var(--tint) 9%, #141418); }
[data-theme="dark"] .ld-fi { background: color-mix(in srgb, var(--c) 18%, #141418); }
[data-theme="dark"] .card-pill { border-color: rgba(255,255,255,.12); background: rgba(20,20,24,.7); color: var(--ink); }
[data-theme="dark"] .cover-tags .soft { background: rgba(20,20,24,.85); color: var(--ink); }
[data-theme="dark"] .pbg { background:
    radial-gradient(60% 70% at 0% 0%, rgba(255, 150, 90, .16), transparent 70%),
    radial-gradient(55% 65% at 100% 8%, rgba(90, 140, 255, .2), transparent 70%),
    radial-gradient(60% 60% at 30% 100%, rgba(255, 170, 120, .12), transparent 70%),
    radial-gradient(55% 60% at 100% 100%, rgba(110, 160, 255, .18), transparent 70%),
    #131317; }
[data-theme="dark"] .ser-page .pbg:not(.ap-dark) { background:
    radial-gradient(60% 70% at 0% 0%, rgba(236, 176, 120, .16), transparent 70%),
    radial-gradient(55% 65% at 100% 100%, rgba(196, 146, 98, .14), transparent 70%),
    #16130f; }
/* тёмные блоки чуть светлее фона страницы, чтобы читались края */
[data-theme="dark"] .am-safe-in, [data-theme="dark"] .am-cmp .ser-cmp-col.now, [data-theme="dark"] .ser-cmp-col.now, [data-theme="dark"] .own-card { background: var(--night); }
[data-theme="dark"] .ser-cmp-col.was { background: var(--soft); color: var(--muted); }
[data-theme="dark"] .ser-cmp-col p { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .ser-cmp-col.was p { text-decoration-color: rgba(255,255,255,.3); }
/* переключатели и кнопки */
[data-theme="dark"] .am-seg, [data-theme="dark"] .ser-seg, [data-theme="dark"] .ld-hl-dots { background: var(--soft); }
[data-theme="dark"] .am-seg button, [data-theme="dark"] .ser-seg button { color: var(--muted); }
[data-theme="dark"] .am-seg button.on, [data-theme="dark"] .ser-seg button.on { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .ld-hl-btn { background: var(--soft); }
[data-theme="dark"] .ld-hl-btn:hover, [data-theme="dark"] .sc-cap:hover { background: #222228; }
/* края стены и «Обзора» растворяются в тёмном фоне */
[data-theme="dark"] .am-wallsec .ld-wall-view::after { background: linear-gradient(to bottom, transparent, var(--bg)); }
[data-theme="dark"] .am-zoom-pin::before { background: linear-gradient(var(--bg), transparent); }
[data-theme="dark"] .am-zoom-pin::after { background: linear-gradient(transparent, var(--bg) 85%); }
[data-theme="dark"] .am-zscr { background: #1c1c21; }

/* тёмная тема: низ тёмных блоков с Оки уходит в тёмный фон, а не в белый */
[data-theme="dark"] .ld-oki::before { background: radial-gradient(60% 260px at 50% calc(100% - 260px), rgba(45,127,249,.16), transparent 70%), linear-gradient(to bottom, #060609 0, #08080b calc(100% - 300px), var(--bg) 100%); }
[data-theme="dark"] .ser-dark::before { background: radial-gradient(60% 260px at 50% calc(100% - 260px), rgba(217, 167, 116, .14), transparent 70%), linear-gradient(to bottom, #090706 0, #0b0908 calc(100% - 300px), var(--bg) 100%); }

/* ---------- шапка: язык одной кнопкой, свет/ночь и меню ---------- */
.hb { position: relative; }
.hb > summary { list-style: none; }
.hb > summary::-webkit-details-marker { display: none; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; min-width: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.hbtn:hover { background: color-mix(in srgb, var(--ink) 9%, var(--soft)); }
.hbtn:active { transform: scale(.95); }
.hbtn .ic { width: 18px; height: 18px; }
.hbtn .chev { width: 13px; height: 13px; margin-right: -2px; opacity: .55; transition: transform .2s var(--ease); }
.hb[open] .chev { transform: rotate(180deg); }
.theme-btn, .menu-btn { padding: 0; }
.theme-btn .sun, [data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
.menu-btn { display: none; }
.hb[open] .menu-btn .i-menu, .menu-btn .i-close { display: none; }
.hb[open] .menu-btn .i-close { display: block; }
.hpop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: flex; flex-direction: column; min-width: 180px; padding: 6px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0,0,0,.35); animation: hpop .2s var(--ease); }
@keyframes hpop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.hpop a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.hpop a:hover { background: var(--soft); }
.hpop a .ic { width: 18px; height: 18px; color: var(--accent); }
.hmenu { width: min(300px, calc(100vw - 32px)); }
.hmenu a { padding: 13px 16px; font-size: 18px; letter-spacing: -.01em; }
.hmenu .btn { justify-content: center; margin-top: 6px; background: var(--ink); color: var(--bg); }
.hmenu .btn:hover { background: var(--ink); opacity: .9; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  /* меню на телефоне и планшете — на весь экран под шапкой */
  .hmenu { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; width: auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 0; background: var(--bg); box-shadow: none; animation: hmenu .28s var(--ease); }
  .hmenu a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: clamp(26px, 7.4vw, 34px); font-weight: 500; letter-spacing: -.03em; }
  .hmenu a:hover { background: none; }
  .hmenu .btn { margin-top: auto; padding: 18px; border: 0; border-radius: 999px; font-size: 17px; letter-spacing: 0; }
  html.menu-open { overflow: hidden; }
  html.menu-open .pill { display: none; }
  html.menu-open .nav { --nav-bg: var(--bg); }
}
@media (max-width: 680px) { .hmenu { top: 58px; } }
@keyframes hmenu { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hpop { animation: none; } }
/* поверх цветной обложки кейса и тёмных блоков кнопки полупрозрачные */
.page-case .nav:not(.past) .hbtn, .nav.on-dark .hbtn { background: rgba(255,255,255,.14); color: #fff; }
.page-case .nav:not(.past) .hbtn:hover, .nav.on-dark .hbtn:hover { background: rgba(255,255,255,.24); }
/* значки в списках на телефоне не сжимаются */
.ld-fi { flex: none; }
/* логотип берёт цвет шапки: на цветной обложке и тёмных блоках — белый, в остальных местах — цвета текста */
.brand { color: inherit; transition: color .4s; }
.brand-sub { color: currentColor; opacity: .55; }
/* снимки сайта Serenity в телефоне: срезаем полоску текста, которая выглядывала над шапкой сайта */
.ap-scr > img:is([src*="ser-m-booking"], [src*="ser-m-hero"], [src*="ser-m-services"], [src*="ser-m-contact"]) { margin-top: -3%; }
/* «Как я работаю»: телефон в плитке по высоте плитки, без растягивания (рамка не сплющивается) */
.wk-tile { align-items: flex-start; }
.wk-tile .ap-phone { width: auto; height: 100%; }
/* где zoom из формулы не работает (Safari), карточку не показываем, пока скрипт не посчитал масштаб */
@supports not (zoom: tan(atan2(1px, 1px))) { .ui-card:not([style*="zoom"]) { visibility: hidden; } }
