@font-face {
  font-family: 'Roboto Flex';
  src: url('/fonts/rf-cyrillic.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto Flex';
  src: url('/fonts/rf-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Roboto Flex';
  src: url('/fonts/rf-rub.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  unicode-range: U+20BD;
}
@font-face {
  font-family: 'Onest Logo';
  src: url('/fonts/onest-logo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}

:root {
  --ink-1000: #050506;
  --ink-950: #0a0a0b;
  --ink-900: #111113;
  --ink-850: #17171a;
  --ink-800: #1e1e22;
  --ink-700: #2a2a30;
  --ink-600: #3d3d45;
  --ink-500: #62626c;
  --ink-400: #8b8b96;
  --ink-300: #b3b3bc;
  --ink-200: #d5d5db;
  --ink-100: #e9e9ed;
  --ink-50: #f4f4f6;
  --white: #fff;

  /* акцент проекта: оранжевый Autoposter, точка знака и статусы */
  --orange: #ff5a26;
  --orange-hi: #ff7144;
  --orange-lo: #e94c1a;
  --cream: #f2f0eb;
  --ok: #3dff8c;
  --err: #ff6a5c;

  --font: 'Roboto Flex', 'Arial Nova', Arial, system-ui, sans-serif;
  --wide: 151%;
  --text-w: 100%;
  --poster: 38%;

  --fs-display: clamp(2.5rem, calc(6 * var(--vw)), 6.25rem);
  --fs-display-2: clamp(2.125rem, calc(4.6 * var(--vw)), 4.75rem);
  --fs-h2: clamp(1.875rem, calc(3.4 * var(--vw)), 3.5rem);
  --fs-h3: clamp(1.25rem, calc(1.6 * var(--vw)), 1.625rem);
  --fs-lead: clamp(1.0625rem, calc(1.25 * var(--vw)), 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-micro: .8125rem;

  --vw: min(1vw, .85rem); /* 1vw, но не больше, чем при ширине 1360 px: дальше контент не растёт, и шрифты с отступами тоже */
  --margin: clamp(1rem, 4vw, 2.5rem); /* поля как на autoposter.one: 16 px на телефоне, 4vw на планшете, 40 px дальше */
  --section: clamp(5rem, calc(9 * var(--vw)), 9.5rem);
  --maxw: 80rem; /* контент до 1280 px, как на autoposter.one */
  --gap: clamp(.75rem, calc(1.3 * var(--vw)), 1.25rem);

  --r-xs: .5rem;
  --r-sm: .875rem;
  --r-md: 1.375rem;
  --r-lg: 2rem;
  --r-xl: 2.75rem;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-cut: cubic-bezier(.7, 0, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 160ms;
  --t-base: 320ms;
  --t-slow: 640ms;

  --nav-h: 3.5rem;

  color-scheme: dark;
  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);
  --surface-3: var(--ink-800);
  --text: var(--ink-50);
  --text-2: var(--ink-300);
  --text-3: var(--ink-400);
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .22);
  --btn: var(--white);
  --btn-ink: var(--ink-950);
  --ok-ink: var(--ok);
}

.is-light {
  color-scheme: light;
  --bg: var(--ink-50);
  --surface: var(--white);
  --surface-2: var(--ink-100);
  --surface-3: var(--ink-200);
  --text: var(--ink-950);
  --text-2: var(--ink-600);
  --text-3: var(--ink-500);
  --line: rgb(0 0 0 / .1);
  --line-2: rgb(0 0 0 / .24);
  --btn: var(--ink-950);
  --btn-ink: var(--white);
  --ok-ink: #087a3c;
}


*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font: 400 var(--fs-body)/1.5 var(--font);
  font-stretch: var(--text-w);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--orange); color: var(--ink-950); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic .fill { fill: currentColor; stroke: none; }
.lg { width: 1.5rem; height: 1.5rem; flex: none; }

.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 120;
  padding: .75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-950);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--margin) * 2);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.display, .display-2, .h2, .h3, .wide {
  font-stretch: var(--wide);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  font-weight: 620;
  line-height: .97;
  letter-spacing: -.045em;
}
.display-2 {
  font-size: var(--fs-display-2);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -.04em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 580;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); }
.sec-note { color: var(--text-2); font-size: var(--fs-body); line-height: 1.55; max-width: 34rem; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, calc(4 * var(--vw)), 3.5rem);
}
.sec-head .sec-note { justify-self: end; }

/* кнопки */
.btn {
  --h: 3.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  height: var(--h);
  padding: 0 1.625rem;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft), border-color var(--t-base) var(--ease-soft), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 1.125rem; height: 1.125rem; transition: transform var(--t-base) var(--ease-out); }
.btn:hover .ic use[href="#i-arrow"], .btn:hover .ic:has(use[href="#i-arrow"]) { transform: translate(2px, -2px); }
.btn:hover .ic:has(use[href="#i-down"]) { transform: translateY(2px); }
.btn-sm { --h: 2.5rem; padding: 0 1.125rem; font-size: .9375rem; }
.btn-lg { --h: 3.5rem; padding: 0 1.875rem; font-size: 1.0625rem; }
.btn-accent { background: var(--orange); color: var(--ink-950); }
.btn-accent:hover { background: var(--orange-hi); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); box-shadow: none; }
.btn-light { background: var(--white); color: var(--ink-950); }
.btn-light:hover { background: var(--ink-100); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  font-weight: 560;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: .25rem;
  transition: border-color var(--t-base) var(--ease-soft);
}
.link-more .ic { width: 1rem; height: 1rem; transition: transform var(--t-base) var(--ease-out); }
.link-more:hover { border-color: var(--text); }
.link-more:hover .ic { transform: translateX(3px); }

/* загрузка */
.loader { display: none; }
.js .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.loader-half { position: absolute; inset: 0; background: var(--ink-950); }
.loader-a { clip-path: polygon(0 0, 100% 0, 0 100%); }
.loader-b { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.loader-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  overflow: visible;
}
.loader-mark circle, .loader-mark path { fill: none; stroke: var(--orange); stroke-width: 7.5; stroke-linecap: round; }
.lm-ring, .lm-stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-mark .lm-dot { fill: var(--cream); stroke: none; transform-box: fill-box; transform-origin: center; transform: translateY(-1.4rem) scale(.4); opacity: 0; }
.loader.is-drawn .lm-ring { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out); }
.loader.is-drawn .lm-stem { stroke-dashoffset: 0; transition: stroke-dashoffset .32s var(--ease-out) .22s; }
.loader.is-drawn .lm-dot { opacity: 1; transform: none; transition: transform .42s var(--ease-out) .36s, opacity .2s linear .36s; }
.loader.is-out .loader-a { transform: translate(-60%, -60%); transition: transform .8s var(--ease-cut); }
.loader.is-out .loader-b { transform: translate(60%, 60%); transition: transform .8s var(--ease-cut); }
.loader.is-out .loader-mark { opacity: 0; transform: scale(.9); transition: opacity .25s var(--ease-soft), transform .4s var(--ease-out); }
.loader.is-gone { display: none; }

/* шапка */
.nav {
  position: fixed;
  inset: 1rem var(--margin) auto;
  z-index: 60;
  max-width: var(--maxw);
  margin: 0 auto;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 1.5rem)); }
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: calc(var(--nav-h) + .5rem);
  padding: 0 .375rem 0 1.25rem;
  border-radius: var(--r-pill);
  background: rgb(17 17 19 / .72);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.logo { display: inline-flex; align-items: center; gap: .625rem; flex: none; }
.logo-mark { width: 2rem; height: 2rem; flex: none; border-radius: .5rem; }
.logo-mark rect { stroke: rgb(255 255 255 / .12); stroke-width: 1.5; }
.logo-word { font: 600 1.25rem/1 'Onest Logo', var(--font); letter-spacing: -.04em; }
.nav-links { display: flex; gap: .25rem; margin: 0 auto; }
.nav-links a {
  padding: .5rem .875rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  transition: color var(--t-base) var(--ease-soft), background-color var(--t-base) var(--ease-soft);
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.nav-end { display: flex; align-items: center; gap: .5rem; flex: none; margin-left: auto; }
.lang { display: flex; padding: .1875rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.lang a { padding: .3125rem .625rem; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 560; color: var(--text-3); }
.lang a[aria-current] { background: var(--surface-3); color: var(--text); }
.lang a:hover { color: var(--text); }
.nav-signin { padding: .5rem .875rem; font-size: var(--fs-small); font-weight: 520; border-radius: var(--r-pill); }
.nav-signin:hover { background: rgb(255 255 255 / .06); }
.nav-burger { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; position: relative; background: var(--surface-3); }
.nav-burger span { position: absolute; left: .875rem; right: .875rem; height: 1.75px; border-radius: 2px; background: var(--text); transition: transform var(--t-base) var(--ease-out); }
.nav-burger span:first-child { top: 1.125rem; }
.nav-burger span:last-child { top: 1.5rem; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(.1875rem) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-.1875rem) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 3rem) var(--margin) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink-950);
  clip-path: polygon(0 0, 0 0, 0 0);
  transition: clip-path .7s var(--ease-cut);
}
.drawer.is-open { clip-path: polygon(0 0, 300% 0, 0 300%); }
.drawer[hidden] { display: none; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  padding: .875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.75rem;
  font-weight: 580;
  font-stretch: var(--wide);
  letter-spacing: -.03em;
}
.drawer-end { display: grid; gap: .75rem; }
.drawer-end .btn { width: 100%; --h: 3.5rem; }
.lang-lg { justify-self: center; margin-top: .5rem; }

/* первый экран: панель с вихрем точек и плитки площадок */
.hero {
  --stage-p: clamp(1.5rem, calc(3.2 * var(--vw)), 3rem);
  --nets-h: 9rem;
  position: relative;
  padding: calc(var(--nav-h) + 2rem) 0 0;
}
.hero-stage {
  position: relative;
  height: clamp(31rem, calc(100svh - var(--nav-h) - 3.25rem - var(--nets-h) - var(--gap)), 52rem);
  border-radius: var(--r-xl);
  background: radial-gradient(60% 75% at 72% 40%, var(--ink-850), var(--ink-900) 72%);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.vortex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-obj {
  position: absolute;
  z-index: 1;
  left: 71%;
  top: 41%;
  --w: clamp(11rem, 30vh, 21rem);
  width: var(--w);
  aspect-ratio: 1276 / 1400;
  /* центр через поля, а не translate: GSAP двигает x/y и не должен трогать центровку */
  margin: calc(var(--w) * -.54859) 0 0 calc(var(--w) * -.5);
}
.hero-float { position: relative; width: 100%; height: 100%; }
.hero-mark, .hero-dot { width: 100%; height: 100%; }
/* точка лежит отдельным слоем в том же кадре и подпрыгивает, когда ролик выходит */
.hero-dot { position: absolute; inset: 0; transform-origin: 65.8% 35.5%; }
.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--stage-p);
  right: var(--stage-p);
  bottom: var(--stage-p);
}
.display .line, .h2 .line, .display-2 .line { display: block; overflow: hidden; padding: .02em .06em .12em; margin: -.02em -.06em -.12em; }
.line-in { display: inline-block; }
.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  margin-top: clamp(1.25rem, 2.8vh, 2rem);
}
.hero-lead { max-width: 31rem; }
.hero-cta { display: grid; justify-items: end; gap: .75rem; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-fine { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-micro); color: var(--text-3); }
.hero-fine .ic { width: 1rem; height: 1rem; color: var(--orange); stroke-width: 2.25; }

.hero-nets {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.hn {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  height: var(--nets-h);
  padding: 1rem 1rem .9375rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-base) var(--ease-soft), box-shadow .6s var(--ease-soft);
}
.hn::after {
  content: '';
  position: absolute;
  right: .875rem;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--text-3);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity var(--t-base) var(--ease-soft), transform var(--t-base) var(--ease-out);
}
.hn:hover { background: var(--surface-2); }
.hn:hover::after { opacity: 1; transform: none; }
.hn.is-hit { box-shadow: inset 0 0 0 1px rgb(61 255 140 / .4); transition-duration: var(--t-base), .15s; }
.hn .lg { width: 2.5rem; height: 2.5rem; }
.hn-name { font-size: 1rem; font-weight: 580; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.hn-st { display: inline-grid; justify-self: start; margin-top: .25rem; font-size: var(--fs-micro); line-height: 1.25rem; }
.hn-st > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  white-space: nowrap;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  translate: 0 .375rem;
  transition: opacity .14s var(--ease-soft), translate .14s var(--ease-soft);
}
/* новый статус появляется только после того, как старый погас: без наложения текста */
.hn-st[data-s="queue"] .s-q, .hn-st[data-s="send"] .s-s, .hn-st[data-s="done"] .s-d { opacity: 1; translate: 0 0; transition: opacity .3s .14s var(--ease-soft), translate .5s .14s var(--ease-out); }
.s-q i { width: .75rem; height: .75rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-500); }
.s-s { color: var(--orange) !important; }
.s-s i { position: relative; width: .75rem; height: .75rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 90 38 / .3); }
.s-s i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--orange) var(--sp, 0%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 2.6px, #000 2.8px); mask: radial-gradient(circle, transparent 2.6px, #000 2.8px); }
.s-d { color: var(--ok) !important; }
.s-d .ic { width: .875rem; height: .875rem; stroke-width: 2.6; }

.btn-glass { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: var(--text); color: var(--bg); box-shadow: none; }

/* площадки: веер экранов, один ролик с отдельным текстом под каждую сеть */
.platforms { position: relative; padding: var(--section) 0 0; overflow: clip; }
.fan {
  --ch: clamp(17rem, 40vh, 25rem);
  --cw: calc(var(--ch) * .5625);
  --R: calc(var(--ch) * 3.4);
  --step: 8.4deg;
  position: relative;
  height: calc(var(--ch) * 1.32);
  margin-top: calc(var(--section) * -.15);
  -webkit-mask: linear-gradient(#000 74%, transparent 98%);
  mask: linear-gradient(#000 74%, transparent 98%);
}
.fan-rig {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: var(--cw);
  height: var(--ch);
  margin-left: calc(var(--cw) / -2);
}
.fcard {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-850);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 1.5rem 3rem -1rem rgb(0 0 0 / .7);
  transform-origin: 50% calc(100% + var(--R));
  will-change: transform;
}
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard::before, .fcard::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.fcard::before { top: 0; height: 32%; background: linear-gradient(rgb(5 5 6 / .62), transparent); }
.fcard::after { bottom: 0; height: 58%; background: linear-gradient(transparent, rgb(5 5 6 / .9) 62%); }
.fc-shade { position: absolute; inset: 0; z-index: 3; background: var(--ink-1000); opacity: var(--shade, 0); pointer-events: none; }
.fc-top { position: absolute; left: .75rem; right: .75rem; top: .75rem; z-index: 2; display: flex; align-items: center; gap: .5rem; font-size: var(--fs-micro); font-weight: 560; }
.fc-top .lg { width: 1.375rem; height: 1.375rem; }
.fc-time { margin-left: auto; padding: .1875rem .5rem; border-radius: var(--r-pill); background: rgb(5 5 6 / .55); font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--ink-200); }
.fc-bot { position: absolute; left: .875rem; right: .875rem; bottom: .875rem; z-index: 2; display: grid; gap: .25rem; }
.fc-acc { font-size: .75rem; color: var(--ink-300); }
.fc-cap { font-size: .9375rem; line-height: 1.3; font-weight: 540; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.trust li {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.trust .ic { width: 1.375rem; height: 1.375rem; color: var(--orange); }

/* как это работает */
.how { position: relative; }
.how-track { height: 360vh; }
.how-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, calc(5 * var(--vw)), 5rem);
  height: 100svh;
  min-height: 40rem;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 2rem;
}
.steps { margin-top: clamp(2rem, 4vh, 3rem); position: relative; padding-left: 1.75rem; }
.steps::before { content: ''; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; left: 0; top: .5rem; width: 2px; height: calc((100% - 1rem) * var(--p, 0)); border-radius: 2px; background: var(--orange); }
.step { border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-btn {
  display: block;
  width: 100%;
  padding: 1.125rem 0;
  text-align: left;
  font-size: var(--fs-h3);
  font-weight: 580;
  font-stretch: var(--wide);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text-3);
  transition: color var(--t-base) var(--ease-soft);
}
.step-btn:hover, .step.is-on .step-btn { color: var(--text); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.step-body > p { overflow: hidden; color: var(--text-2); max-width: 30rem; }
.step.is-on .step-body { grid-template-rows: 1fr; }
.step.is-on .step-body > p { padding-bottom: 1.25rem; }

.how-view {
  position: relative;
  height: min(36rem, calc(100vh - var(--nav-h) - 6rem));
  min-height: 28rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.how-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 0%, rgb(255 255 255 / .05), transparent 70%),
    radial-gradient(circle, rgb(255 255 255 / .09) 1px, transparent 1.5px) 50% 50% / 1.25rem 1.25rem;
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  mask: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.hv {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem) scale(.98);
  transition: opacity .45s var(--ease-soft), transform .7s var(--ease-out), visibility 0s linear .45s;
}
.hv.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease-soft) .1s, transform .8s var(--ease-out) .1s; }
.hv.is-up { transform: translateY(-1.5rem) scale(.98); }
.hv-card {
  position: relative;
  z-index: 1;
  width: min(100%, 33rem);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 2rem 4rem -1.5rem rgb(0 0 0 / .6);
}
.hv-title { font-size: var(--fs-micro); color: var(--text-3); margin: .25rem .25rem 1rem; }
.acc-list, .st-list, .cap-list { display: grid; gap: .5rem; }
.acc-list li, .st-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .75rem;
  padding: .75rem .875rem;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-size: var(--fs-small);
}
.acc-list span { font-size: var(--fs-micro); color: var(--text-3); }
.ok-dot { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: rgb(61 255 140 / .16); color: var(--ok); }
.ok-dot .ic { width: .875rem; height: .875rem; stroke-width: 2.5; }
.ok-dot.is-wait { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-500); }
.hv-float {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-950);
  font-size: var(--fs-small);
  font-weight: 560;
  box-shadow: 0 1rem 2.5rem -.75rem rgb(0 0 0 / .6);
}
.file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .875rem; padding: .625rem; border-radius: var(--r-md); background: var(--surface-3); }
.file img { width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); object-fit: cover; }
.file div { display: grid; min-width: 0; }
.file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file b { font-size: var(--fs-small); }
.file span { font-size: var(--fs-micro); color: var(--text-3); font-variant-numeric: tabular-nums; }
.file .ic { color: var(--ok); margin-right: .5rem; }
.cap-list { margin-top: .75rem; }
.cap-list li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .75rem .875rem; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.cap-list .lg { width: 1.25rem; height: 1.25rem; margin-top: .0625rem; }
.cap-list p { font-size: var(--fs-small); color: var(--text-2); line-height: 1.4; }
.mcal-head { display: flex; justify-content: space-between; align-items: center; margin: .25rem .25rem .875rem; }
.mcal-head span { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--fs-micro); color: var(--text-3); }
.mcal-head .ic { width: .9375rem; height: .9375rem; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; text-align: center; font-variant-numeric: tabular-nums; }
.mcal span { font-size: .75rem; color: var(--text-3); padding-bottom: .25rem; }
.mcal i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: .625rem; font-style: normal; font-size: var(--fs-micro); color: var(--text-2); }
.mcal i.has::after { content: ''; position: absolute; bottom: .3rem; width: .25rem; height: .25rem; border-radius: 50%; background: var(--text-3); }
.mcal i.sel { background: var(--orange); color: var(--ink-950); font-weight: 640; }
.mcal i.past { color: var(--text-3); opacity: .5; }
.mcal i.now { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.slots { display: flex; gap: .5rem; margin-top: 1rem; }
.slots span { flex: 1; padding: .625rem 0; border-radius: var(--r-pill); text-align: center; font-size: var(--fs-small); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line-2); }
.slots .is-sel { background: var(--text); color: var(--bg); box-shadow: none; font-weight: 600; }

.st {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .625rem;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 560;
  white-space: nowrap;
}
.st::before { content: ''; width: .4375rem; height: .4375rem; border-radius: 50%; background: currentColor; }
.st-done { color: var(--ok-ink); background: rgb(61 255 140 / .12); }
.st-send { color: var(--orange); background: rgb(255 90 38 / .12); }
.st-err { color: var(--err); background: rgb(255 106 92 / .12); }

.how-bar { position: absolute; left: 2rem; right: 2rem; bottom: 1.5rem; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.how-bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }


/* листы: следующая секция наезжает скруглённым краем */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--r-xl) * -1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg);
  color: var(--text);
}

/* калькулятор */
.calc { padding: calc(var(--section) * .85) 0 calc(var(--section) + var(--r-xl)); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, calc(5 * var(--vw)), 5rem); align-items: center; }
.calc-copy .sec-note { margin-top: 1.25rem; }
.range { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: .875rem; margin-top: 2.5rem; }
.range + .range { margin-top: 2rem; }
.range label { font-weight: 520; }
.range output { font-size: 2.25rem; line-height: 1; font-weight: 640; font-stretch: var(--wide); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.range input { grid-column: 1 / -1; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2rem;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: .375rem; border-radius: 1rem; background: linear-gradient(90deg, var(--text) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-moz-range-track { height: .375rem; border-radius: 1rem; background: linear-gradient(90deg, var(--text) var(--p), var(--surface-3) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.75rem; height: 1.75rem; margin-top: -.6875rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 .3125rem var(--bg); transition: transform var(--t-fast) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 .3125rem var(--bg); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--text); outline-offset: .25rem; border-radius: var(--r-xs); }

.calc-board {
  color-scheme: dark;
  --text: var(--ink-50);
  --text-2: var(--ink-300);
  --text-3: var(--ink-400);
  --line: rgb(255 255 255 / .1);
  position: relative;
  padding: clamp(1.75rem, calc(3 * var(--vw)), 2.75rem);
  border-radius: var(--r-xl);
  background: var(--ink-950);
  color: var(--text);
  overflow: hidden;
}
.calc-num {
  font-size: clamp(5rem, calc(11 * var(--vw)), 10rem);
  line-height: .82;
  font-weight: 720;
  font-stretch: var(--poster);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.calc-unit { margin-top: .75rem; color: var(--text-2); }
.punch { display: grid; grid-template-columns: auto 1fr; gap: .625rem; margin-top: 1.75rem; }
.punch-rows { display: grid; grid-template-rows: repeat(11, 1fr); gap: 3px; }
.punch-rows svg { width: .875rem; height: 100%; max-height: 1rem; opacity: .25; transition: opacity var(--t-base) var(--ease-soft); align-self: center; }
.punch-rows svg.on { opacity: 1; }
.punch-grid { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.punch-grid i { aspect-ratio: 9 / 13; border-radius: 2px; background: var(--ink-800); transition: background-color .3s var(--ease-soft); }
.punch-grid i.on { background: var(--ink-100); }
.calc-count { margin-top: 1rem; color: var(--text-2); font-size: var(--fs-small); }
.calc-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.calc-us { display: flex; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.calc-us .ic { color: var(--orange); margin-top: .125rem; }
.calc-fine { margin-top: .75rem; font-size: var(--fs-micro); color: var(--text-3); }

/* демо */
.demo { padding: var(--section) 0 calc(var(--section) * .8); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.composer, .queue { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(1.25rem, calc(2.4 * var(--vw)), 2rem); }
.composer { display: grid; gap: 1.25rem; }
.drop { position: relative; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-base) var(--ease-soft), background-color var(--t-base) var(--ease-soft); }
.drop.is-over { box-shadow: inset 0 0 0 1.5px var(--orange); background: rgb(255 90 38 / .06); }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-label { display: flex; align-items: center; gap: 1rem; padding: 1.125rem; cursor: pointer; }
.drop-input:focus-visible + .drop-label { outline: 2px solid var(--text); outline-offset: -2px; border-radius: var(--r-md); }
.drop-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-sm); background: var(--surface-3); flex: none; }
.drop-label span:last-child { display: grid; }
.drop-label small, .drop-meta small { font-size: var(--fs-micro); color: var(--text-3); }
.drop-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .75rem; }
.drop-file[hidden] { display: none; }
.drop-thumb { width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.drop-thumb video, .drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-meta { display: grid; }
.drop-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); }
.icon-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--text-2); transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 520; padding: 0; }
.field legend { margin-bottom: .5rem; }
.field-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.field-count { font-size: var(--fs-micro); color: var(--text-3); font-variant-numeric: tabular-nums; }
.field input, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  transition: box-shadow var(--t-base) var(--ease-soft);
  resize: vertical;
}
.field textarea { min-height: 5.5rem; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 1.5px solid var(--text); outline-offset: -1.5px; }
.field input[type="date"], .field input[type="time"] { font-variant-numeric: tabular-nums; }
.field input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; cursor: pointer; }
.field.has-err input { box-shadow: inset 0 0 0 1.5px var(--err); }
.field-err { font-size: var(--fs-micro); color: var(--err); }
.field-err[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.composer { container-type: inline-size; }
.field-label { font-size: var(--fs-small); font-weight: 520; }
.field-aux { display: flex; align-items: center; gap: 1rem; }
.link-btn { font-size: var(--fs-micro); font-weight: 560; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: .0625rem; transition: border-color var(--t-base) var(--ease-soft); }
.link-btn:hover { border-color: var(--text); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
@container (max-width: 36rem) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 .75rem 0 .5rem;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 520;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease-soft);
}
.chip .lg { width: 1.625rem; height: 1.625rem; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: -.5rem; }
.preset { height: 2.25rem; padding: 0 .875rem; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 540; color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; transition: color var(--t-base) var(--ease-soft), background-color var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease-soft); }
.preset:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.preset[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.composer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .25rem; }
.composer-actions .btn { width: 100%; --h: 3.5rem; }
@container (max-width: 26rem) { .composer-actions { grid-template-columns: 1fr; } }

.queue { display: flex; flex-direction: column; gap: 1rem; }
.queue-head { display: flex; align-items: center; justify-content: space-between; }
.queue-n { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: var(--r-pill); background: var(--surface-3); font-size: var(--fs-micro); font-weight: 600; font-variant-numeric: tabular-nums; }
.queue-empty { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; color: var(--text-3); font-size: var(--fs-small); }
.queue-empty[hidden] { display: none; }
.queue-empty p { max-width: 26rem; }
.free { display: grid; grid-auto-rows: 3.5rem; gap: .5rem; }
.free li { display: grid; grid-template-columns: 3.25rem 1fr auto; align-items: center; gap: .875rem; padding: 0 1rem; border-radius: var(--r-md); border: 1px dashed var(--line-2); color: var(--text-3); }
.free time { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.free em { font-style: normal; font-size: var(--fs-micro); }
.free li.next { border-style: solid; border-color: rgb(255 90 38 / .45); background: rgb(255 90 38 / .07); color: var(--orange); }
.free li.next time { color: var(--orange); }
.queue-list { display: grid; gap: .625rem; align-content: start; }
.queue-list:empty { display: none; }
.qi { display: grid; grid-template-columns: auto 1fr; gap: .875rem; padding: .75rem; border-radius: var(--r-md); background: var(--surface-2); }
.qi-thumb { display: grid; place-items: center; width: 3.25rem; aspect-ratio: 9 / 16; border-radius: .625rem; overflow: hidden; background: var(--surface-3); color: var(--text-3); }
.qi-thumb img, .qi-thumb video { width: 100%; height: 100%; object-fit: cover; }
.qi-main { display: grid; gap: .375rem; align-content: start; }
.qi-title { font-weight: 560; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi-when { font-size: var(--fs-micro); color: var(--text-3); font-variant-numeric: tabular-nums; }
.qi-nets { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.qi-net { position: relative; width: 1.75rem; height: 1.75rem; }
.qi-net .lg { width: 100%; height: 100%; transition: opacity var(--t-base) var(--ease-soft), filter var(--t-base) var(--ease-soft); }
.qi-net[data-s="queue"] .lg { opacity: .4; filter: grayscale(1); }
.qi-net::after { content: ''; position: absolute; right: -.1875rem; bottom: -.1875rem; width: .625rem; height: .625rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); background: var(--ink-500); transition: background-color var(--t-base) var(--ease-soft); }
.qi-net[data-s="send"]::after { background: var(--orange); }
.qi-net[data-s="done"]::after { background: var(--ok); }
.qi-state { font-size: var(--fs-micro); color: var(--text-2); }
.qi-state b { font-variant-numeric: tabular-nums; }
.queue-fine { margin-top: auto; font-size: var(--fs-micro); color: var(--text-3); }

/* кабинет */
.cab { padding: calc(var(--section) * .6) 0 var(--section); }
/* плитки на общей сетке: в каждом ряду интерфейс, заголовок и текст стоят на одних линиях */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: .625rem;
  padding: clamp(1.25rem, calc(2 * var(--vw)), 1.75rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.tile > p { color: var(--text-2); font-size: var(--fs-small); max-width: 32rem; }
.tile > .ui { margin-bottom: 1rem; }
.tile > .h3 { align-self: end; }
.t-cal { grid-column: span 7; }
.t-text { grid-column: span 5; }
.t-acc, .t-slots, .t-lib { grid-column: span 4; }
.t-proj { grid-column: span 5; }
.t-help { grid-column: span 7; }
/* журнал: два окна в ряд, под каждым своя подпись, по той же сетке */
.t-log { grid-column: span 12; grid-row: auto; grid-template-rows: auto auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); row-gap: 1.25rem; }
.t-log .ui { margin: 0; }
.t-log > .h3, .t-log > p { align-self: center; }

.ui { position: relative; font-size: var(--fs-micro); }
.ui-cal { padding: 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.ui-cal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .875rem; }
.ui-cal-top b { font-size: var(--fs-small); }
.ui-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3125rem; }
.ui-cal-grid .dow { color: var(--text-3); font-size: .6875rem; padding: 0 .375rem .25rem; }
.cd { min-height: 4.25rem; padding: .375rem; border-radius: .625rem; background: var(--surface-3); font-variant-numeric: tabular-nums; color: var(--text-2); display: flex; flex-direction: column; gap: .25rem; }
.cd.out { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.cd.today { box-shadow: inset 0 0 0 1.5px var(--orange); }
.cd-ev { display: flex; align-items: center; gap: .1875rem; padding: .1875rem .25rem; border-radius: .375rem; background: rgb(255 255 255 / .07); font-size: .625rem; color: var(--text); }
.cd-ev .lg { width: .75rem; height: .75rem; }
.cd-ev.done { box-shadow: inset 2px 0 0 var(--ok); }
.cd-ev.q { box-shadow: inset 2px 0 0 var(--orange); }
.ui-pop {
  position: absolute;
  left: 34%;
  top: 52%;
  display: flex;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--r-md);
  background: var(--ink-50);
  color: var(--ink-950);
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / .8);
  width: min(22rem, 62%);
}
.ui-pop img { width: 4.5rem; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: .625rem; flex: none; }
.ui-pop div { display: grid; gap: .1875rem; align-content: start; }
.ui-pop small { color: var(--orange-lo); font-weight: 560; }
.ui-pop b { font-size: var(--fs-small); line-height: 1.25; }
.ui-pop-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .25rem; }
.ui-pop-row .lg { width: 1rem; height: 1rem; }
.ui-pop-row em { margin-left: auto; padding: .125rem .5rem; border-radius: var(--r-pill); background: rgb(255 90 38 / .14); color: var(--orange-lo); font-style: normal; font-weight: 560; }

.ui-text { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr auto; gap: .625rem; }
.ui-yt, .ui-tt { padding: .625rem; border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: .5rem; align-content: start; }
.ui-tt { grid-template-rows: 1fr auto; }
.ui-tt-img { position: relative; min-height: 10rem; border-radius: .75rem; overflow: hidden; }
.ui-tt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ui-tg { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .75rem .875rem; border-radius: var(--r-md); background: var(--surface-2); }
.ui-tg .lg { width: 1.25rem; height: 1.25rem; }
.ui-tg p { color: var(--text-2); line-height: 1.4; }
.ui-tg span { color: var(--text-3); }
.ui-yt-img { position: relative; border-radius: .75rem; overflow: hidden; }
.ui-yt-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ui-yt-img span { position: absolute; right: .375rem; bottom: .375rem; padding: .0625rem .375rem; border-radius: .25rem; background: rgb(0 0 0 / .75); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.ui-yt-meta, .ui-tt-meta { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); }
.ui-yt-meta span:first-child, .ui-tt-meta span:first-child { display: inline-flex; align-items: center; gap: .375rem; color: var(--text-2); }
.ui-yt-meta .lg, .ui-tt-meta .lg { width: 1rem; height: 1rem; }
.mono-num { font-variant-numeric: tabular-nums; }
.ui-yt b { font-size: var(--fs-small); line-height: 1.25; }
.ui-yt-ch { display: grid; margin-top: .125rem; }
.ui-yt-ch li { display: grid; grid-template-columns: 2.75rem 1fr; padding: .375rem 0; border-top: 1px solid var(--line); color: var(--text-2); }
.ui-yt-ch time { color: var(--orange); font-variant-numeric: tabular-nums; }
.ui-yt p { color: var(--text-3); line-height: 1.4; }
.ui-tt-cap { position: absolute; left: .625rem; right: .625rem; bottom: .625rem; display: grid; gap: .125rem; font-size: .6875rem; line-height: 1.3; text-shadow: 0 1px 6px rgb(0 0 0 / .6); }

.ui-acc { display: grid; grid-auto-rows: 1fr; gap: .375rem; }
.ui-acc li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: var(--r-sm); background: var(--surface-2); }
.ui-acc li span { display: grid; }
.ui-acc small { color: var(--text-3); }
.ui-acc li.off { opacity: .55; }
.sw { position: relative; width: 2.25rem; height: 1.375rem; border-radius: var(--r-pill); background: var(--surface-3); font-style: normal; }
.sw::after { content: ''; position: absolute; left: .1875rem; top: .1875rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--ink-400); transition: transform var(--t-base) var(--ease-out); }
.sw.on { background: var(--text); }
.sw.on::after { transform: translateX(.875rem); background: var(--bg); }

.ui-slots { display: grid; grid-template-rows: auto 1fr; gap: .5rem; }
.ui-slots-top { display: flex; justify-content: space-between; align-items: center; }
.ui-slots-top span { display: inline-flex; align-items: center; gap: .375rem; color: var(--text-3); }
.ui-slots-top .ic { width: .875rem; height: .875rem; }
.ui-slots ul { display: grid; grid-auto-rows: 1fr; gap: .375rem; }
.ui-slots li { display: grid; grid-template-columns: 2.75rem auto 1fr; align-items: center; gap: .625rem; padding: .375rem .5rem .375rem .625rem; border-radius: var(--r-sm); background: var(--surface-2); min-height: 2.75rem; }
.ui-slots time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ui-slots img, .ui-slots li i { width: 2rem; height: 2rem; border-radius: .5rem; object-fit: cover; }
.ui-slots li.next { background: rgb(255 90 38 / .12); color: var(--orange); box-shadow: inset 0 0 0 1px rgb(255 90 38 / .4); }
.ui-slots li.next time { color: var(--orange); }
.ui-slots li.next i { box-shadow: inset 0 0 0 1.5px currentColor; border-radius: .5rem; }
.ui-slots li.free i { box-shadow: inset 0 0 0 1px var(--line-2); }
.ui-slots li.free { color: var(--text-3); }

.ui-lib { display: grid; grid-template-rows: auto 1fr; }
.ui-lib-top { display: flex; justify-content: space-between; margin-bottom: .625rem; }
.ui-lib-top span { color: var(--text-3); }
.ui-lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .375rem; }
.ui-lib-grid figure { position: relative; border-radius: .75rem; overflow: hidden; min-height: 5rem; }
.ui-lib-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ui-lib-grid span { position: absolute; left: .375rem; bottom: .375rem; padding: 0 .375rem; border-radius: .25rem; background: rgb(0 0 0 / .65); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.ui-lib-grid .sel { box-shadow: inset 0 0 0 2px var(--orange); }
.ui-lib-grid .sel img { opacity: .85; }
.ui-lib-grid .sel::after { content: ''; position: absolute; right: .375rem; top: .375rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

.ui-proj { display: grid; grid-auto-rows: 1fr; gap: .375rem; }
.ui-proj li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: var(--r-sm); background: var(--surface-2); }
.ui-proj li.on { box-shadow: inset 0 0 0 1px var(--line-2); }
.ui-proj li .ic { width: 1.125rem; height: 1.125rem; color: var(--text-3); }
.ui-proj li span { display: flex; gap: .25rem; }
.ui-proj li .lg { width: 1.125rem; height: 1.125rem; }
.ui-proj li.add { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }

.ui-help { display: grid; grid-template-rows: auto auto auto 1fr; gap: .5rem; }
.ui-help-input { align-self: end; display: flex; justify-content: space-between; align-items: center; padding: .625rem .875rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.ui-help-input .ic { width: 1rem; height: 1rem; color: var(--orange); }
.ui-help-top { display: flex; justify-content: space-between; align-items: center; }
.ui-help-top span { padding: .125rem .5rem; border-radius: var(--r-pill); background: rgb(61 255 140 / .12); color: var(--ok); font-weight: 560; }
.msg { position: relative; max-width: 80%; padding: .625rem .875rem 1.375rem; border-radius: 1rem; font-size: var(--fs-micro); line-height: 1.45; }
.msg time { position: absolute; right: .75rem; bottom: .375rem; font-size: .6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.msg.me { justify-self: end; background: var(--ink-50); color: var(--ink-950); border-bottom-right-radius: .375rem; }
.msg.me time { color: var(--ink-500); }
.msg.them { background: var(--surface-2); border-bottom-left-radius: .375rem; color: var(--text-2); }
.msg.them b { display: block; color: var(--orange); font-weight: 560; margin-bottom: .125rem; }

.ui-stats { display: flex; flex-direction: column; padding: 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.ui-kpi { display: flex; gap: 1.5rem; }
.ui-kpi span { display: grid; color: var(--text-3); }
.ui-kpi b { font-size: 1.75rem; line-height: 1.1; font-weight: 640; font-stretch: var(--wide); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.ui-kpi span:nth-child(3) b { color: var(--err); }
.ui-bars { display: flex; flex: 1; align-items: flex-end; gap: 3px; min-height: 4.5rem; margin-top: 1rem; }
.ui-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--ink-600); height: var(--h); transform-origin: bottom; }
.ui-bars i:last-child { background: var(--orange); }
.ui-bars-axis { display: flex; justify-content: space-between; margin-top: .5rem; color: var(--text-3); font-size: .6875rem; }
.ui-log { padding: 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.ui-log-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .625rem; }
.ui-log-top span { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-log ul { display: grid; }
.ui-log li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .625rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.ui-log .lg { width: 1.125rem; height: 1.125rem; }
.ui-log time { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* новое */
.news { padding: 0 0 var(--section); }
.tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: .3125rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 540;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t-base) var(--ease-soft);
}
.tabs [role="tab"] .ic { width: 1.125rem; height: 1.125rem; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink-950); }
.tabs-ink { position: absolute; top: .3125rem; left: 0; height: 2.75rem; width: 0; border-radius: var(--r-pill); background: var(--ink-50); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.panes { position: relative; margin-top: var(--gap); }
.pane {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  height: clamp(34rem, calc(42 * var(--vw)), 40rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.pane[hidden] { display: none; }
.pane-copy { display: grid; gap: 1.25rem; align-content: center; padding: clamp(1.75rem, calc(3.4 * var(--vw)), 3rem); }
.pane-copy > p { color: var(--text-2); max-width: 30rem; }
.ticks { display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2rem;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* правая часть: окно интерфейса поднимается от нижнего края, справа колонка карточек с той же верхней линией */
.pane-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  padding: 2.5rem 2.5rem 0 0;
}
.pv-full { grid-template-columns: minmax(0, 1fr); }
.pv-main { min-height: 0; }
.win {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--ink-950);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  font-size: var(--fs-micro);
}
.win-top { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.125rem; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.win-top .logo-mark { width: 2.25rem; height: 2.25rem; }
.win-top span { display: grid; line-height: 1.25; }
.win-top small { color: var(--text-3); font-size: .75rem; }
.pv-side { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--ink-950); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pv-side .note { background: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 1.125rem 1.25rem; }

.note { display: grid; gap: .5rem; padding: 1rem 1.125rem; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-micro); line-height: 1.45; color: var(--text-2); }
.note-h { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 560; color: var(--text); }
.note-h .ic { width: 1.125rem; height: 1.125rem; color: var(--orange); }
.note-h .lg { width: 1.125rem; height: 1.125rem; }
.note-h .av { width: 1.5rem; height: 1.5rem; }
.note-h time, .note-num { margin-left: auto; font-style: normal; font-weight: 500; font-size: var(--fs-micro); color: var(--text-3); font-variant-numeric: tabular-nums; }
.note-btns { display: flex; gap: .5rem; }
.note-btn { justify-self: start; padding: .375rem .875rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-weight: 560; }
.note-btn.hot { background: rgb(255 90 38 / .14); color: var(--orange); box-shadow: none; }
.note-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.note-kpi li { display: grid; color: var(--text-3); }
.note-kpi b { font-size: 1.5rem; line-height: 1.1; font-weight: 640; font-stretch: var(--wide); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.note-kpi li:nth-child(3) b { color: var(--err); }
.note-list { display: grid; }
.note-list li { display: grid; grid-template-columns: 4.25rem 1fr; gap: .5rem; align-items: center; padding: .4375rem 0; border-top: 1px solid var(--line); color: var(--text); }
.note-list time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.note-list-ic li { grid-template-columns: auto 1fr; }
.note-list-ic .ic { width: 1rem; height: 1rem; color: var(--text-3); }
.note-roles li { grid-template-columns: auto 1fr auto; }
.note-roles .av { width: 1.5rem; height: 1.5rem; font-size: .6875rem; }
.note-roles small { color: var(--text-3); }
.note-q { color: var(--text); }
.note-draft { display: grid; gap: .125rem; padding: .625rem .75rem; border-radius: var(--r-sm); background: var(--ink-950); }
.note-draft small { color: var(--text-3); }
.note-dim { opacity: .62; }
.note-files { display: flex; gap: .375rem; }
.note-files span { padding: .25rem .625rem; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text); }
.note-bar { position: relative; height: 3px; border-radius: 3px; background: var(--surface-3); }
.note-bar::after { content: ''; position: absolute; inset: 0; border-radius: 3px; background: var(--orange); transform-origin: left; transform: scaleX(var(--p)); }
.note-post { color: var(--text); }
.note-post span { color: var(--text-3); margin-left: .25rem; }
.note-warn { color: var(--orange); }
.note-link { padding: .5rem .75rem; border-radius: var(--r-sm); background: var(--ink-950); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink-600); font-weight: 600; font-size: .75rem; flex: none; color: var(--text); font-style: normal; }
.av-2 { background: var(--orange); color: var(--ink-950); }
.av-3 { background: var(--ink-200); color: var(--ink-950); }
.tag { display: inline-block; padding: 0 .5rem; border-radius: var(--r-pill); background: rgb(255 255 255 / .08); font-style: normal; font-size: .6875rem; font-weight: 500; color: var(--text-2); }
.tag-err { background: rgb(255 106 92 / .14); color: var(--err); }

/* бот */
.chat-body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem 1.25rem; }
.chat-body > * { flex: none; }
.chat-input { margin-top: auto !important; display: flex; justify-content: space-between; align-items: center; padding: .625rem .875rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.chat-input .ic { width: 1rem; height: 1rem; color: var(--text-3); }
.bub { position: relative; max-width: 86%; padding: .5rem .75rem 1.25rem; border-radius: 1rem; line-height: 1.4; }
.bub time { position: absolute; right: .625rem; bottom: .3125rem; font-size: .6875rem; opacity: .6; font-variant-numeric: tabular-nums; }
.bub.me { justify-self: end; display: flex; gap: .625rem; align-items: center; background: rgb(255 90 38 / .16); border-bottom-right-radius: .375rem; padding: .375rem .75rem 1.25rem .375rem; }
.bub-vid { position: relative; width: 2.75rem; aspect-ratio: 9 / 14; border-radius: .5rem; overflow: hidden; flex: none; }
.bub-vid img { width: 100%; height: 100%; object-fit: cover; }
.bub-vid em { position: absolute; left: .1875rem; bottom: .1875rem; font-size: .5625rem; font-style: normal; background: rgb(0 0 0 / .6); padding: 0 .1875rem; border-radius: .1875rem; }
.bub.bot { justify-self: start; display: grid; gap: .1875rem; background: var(--surface-2); border-bottom-left-radius: .375rem; color: var(--text-2); }
.bub.bot b { color: var(--text); }
.bub-nets { display: flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.bub-nets .lg { width: 1.125rem; height: 1.125rem; }
.bub-nets em { margin-left: .375rem; font-style: normal; font-weight: 560; color: var(--ok); }
.bub-keys { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; width: 86%; }
.bub-keys span { padding: .5rem; border-radius: .625rem; background: var(--surface-2); text-align: center; font-weight: 540; color: var(--text); }
.bub-keys .hot { background: rgb(255 90 38 / .16); color: var(--orange); }
.bub-keys .wide { grid-column: 1 / -1; }

/* ИИ: обложка */
.cover-ed { gap: .75rem; padding: .75rem .75rem 0; }
.cover-img { position: relative; flex: 1; min-height: 12rem; border-radius: var(--r-md); overflow: hidden; }
.cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-img b { position: absolute; left: 1rem; bottom: 1rem; padding: .375rem .5rem; border-radius: .5rem; background: var(--orange); color: var(--ink-950); font-size: clamp(1.5rem, calc(2.2 * var(--vw)), 2.25rem); line-height: .95; font-weight: 720; font-stretch: var(--wide); letter-spacing: -.04em; }
.cover-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 0 .25rem 1rem; }
.cover-bar small { color: var(--text-3); white-space: nowrap; }
.seg { display: inline-flex; padding: .1875rem; border-radius: var(--r-pill); background: var(--surface-3); }
.seg i { padding: .25rem .625rem; border-radius: var(--r-pill); font-style: normal; color: var(--text-3); white-space: nowrap; }
.seg i.on { background: var(--text); color: var(--bg); font-weight: 560; }
/* в боковых заметках переключатель занимает всю ширину, варианты делят её поровну */
.note > .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.note > .seg i { text-align: center; }

/* телефон */
.pv-phone { display: grid; justify-items: center; align-items: start; }
.phone { width: min(100%, 16.5rem); aspect-ratio: 9 / 19; padding: .5rem; border-radius: 2.5rem; background: var(--ink-950); box-shadow: inset 0 0 0 1px var(--line-2), 0 2rem 4rem -2rem rgb(0 0 0 / .8); }
.phone-screen { position: relative; height: 100%; border-radius: 2rem; overflow: hidden; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.share { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; padding: .75rem .5rem .625rem; border-radius: 1.5rem; background: rgb(23 23 26 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.share small { display: block; text-align: center; font-size: .6875rem; color: var(--text-3); margin-bottom: .5rem; }
.share-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; text-align: center; font-size: .5625rem; }
.share-row span { display: grid; justify-items: center; gap: .25rem; color: var(--text-2); }
.share-row .lg, .share-row .logo-mark, .share-row .ic { width: 1.875rem; height: 1.875rem; }
.share-row .ic { padding: .375rem; border-radius: 50%; background: var(--surface-3); }
.share-row .hot { color: var(--text); font-weight: 600; }
.share-row .hot .logo-mark { box-shadow: 0 0 0 2px var(--orange); border-radius: .5rem; }

/* команда */
.thread-post { display: grid; grid-template-columns: auto 1fr auto; }
.thread-post img { width: 3.5rem; aspect-ratio: 8 / 5; object-fit: cover; border-radius: .5rem; }
.thread-post em { font-style: normal; padding: .125rem .625rem; border-radius: var(--r-pill); background: rgb(255 90 38 / .14); color: var(--orange); font-size: var(--fs-micro); font-weight: 560; white-space: nowrap; }
.thread { flex: 1; display: flex; flex-direction: column; gap: .625rem; padding: 1rem 1.125rem 1.25rem; }
.thread-h { color: var(--text-3); }
.thread-h span { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: .25rem; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text); font-variant-numeric: tabular-nums; }
.cmt { display: flex; gap: .625rem; }
.cmt > span:last-child { display: grid; gap: .125rem; padding: .5rem .75rem; border-radius: .875rem; background: var(--surface-2); color: var(--text-2); }
.cmt b { color: var(--text); }
.cmt b small { color: var(--text-3); font-weight: 400; }
.thread-input { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: .625rem .875rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.thread-input .ic { width: 1rem; height: 1rem; color: var(--orange); }

/* план */
.week { gap: 1rem; padding: 1.25rem 1.25rem 0; }
.week-top { display: flex; align-items: center; gap: .5rem; }
.week-top b { margin-right: auto; font-size: var(--fs-small); }
.chip-s { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .625rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); white-space: nowrap; }
.chip-s .ic { width: .875rem; height: .875rem; }
.week-days { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; min-height: 0; }
.week-days li { display: flex; flex-direction: column; gap: .375rem; padding: .625rem .375rem; border-radius: .875rem; background: var(--surface); }
.week-days b { margin-bottom: .25rem; text-align: center; font-weight: 500; color: var(--text-3); }
.wk { display: grid; gap: .125rem; padding: .5rem; border-radius: .625rem; background: var(--surface-3); font-size: .6875rem; line-height: 1.25; color: var(--text); }
.wk time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.wk-d { background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.wk-free { background: none; box-shadow: none; outline: 1px dashed var(--line-2); outline-offset: -1px; color: var(--text-3); }
.wk-on { background: var(--orange); color: var(--ink-950); font-weight: 600; }
.wk-on time { color: rgb(10 10 11 / .62); }
.week-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.week-ai, .week-up { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border-radius: var(--r-md); background: var(--surface-2); }
.week-up { display: grid; grid-template-columns: auto 1fr auto; row-gap: .5rem; }
.week-up .ic { color: var(--text-3); }
.week-up b { font-weight: 560; }
.week-up em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.week-up .note-bar { grid-column: 1 / -1; }
.week-ai .ic { color: var(--orange); }
.week-ai span { display: grid; margin-right: auto; }
.week-ai small { color: var(--text-3); }
.week-ai em { font-style: normal; font-weight: 600; white-space: nowrap; }

/* ИИ */
.ai.sheet { background: var(--ink-900); padding: var(--section) 0 calc(var(--section) + var(--r-xl)); }
.ai { --surface: var(--ink-850); --surface-2: var(--ink-800); }
.ai-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, calc(4 * var(--vw)), 3.5rem); }
.ai-head .sec-note { justify-self: end; }
.models { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); gap: 0 var(--gap); }
/* обе карточки делят одни строки: шапка, имя, описание, окно, задачи стоят на одной линии */
.model { display: grid; grid-row: span 5; grid-template-rows: subgrid; padding: clamp(1.75rem, calc(3 * var(--vw)), 2.75rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.model-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.model-kind { display: inline-flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .875rem 0 .75rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-micro); font-weight: 560; color: var(--text); white-space: nowrap; }
.model-kind::before { content: ''; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--orange); }
.model-meters { display: grid; gap: .375rem; font-size: .75rem; color: var(--text-3); }
.model-meters div { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; column-gap: .75rem; }
.model-meters dt { text-align: right; }
.mm { display: flex; gap: 3px; margin: 0; }
.mm i { width: 1.125rem; height: .3125rem; border-radius: 1px; background: var(--surface-3); }
.mm[data-v="3"] i:nth-child(-n+3), .mm[data-v="5"] i { background: var(--orange); }
.model-name { display: grid; gap: .5rem; margin-top: clamp(2rem, calc(3.6 * var(--vw)), 3rem); font-size: clamp(2.5rem, calc(4.4 * var(--vw)), 4.25rem); font-weight: 640; font-stretch: var(--wide); letter-spacing: -.045em; line-height: .92; }
.model-name span { font-size: 1.25rem; font-weight: 560; font-stretch: 115%; letter-spacing: -.015em; line-height: 1; color: var(--text-2); }
.model-about { margin-top: 1.125rem; max-width: 27rem; color: var(--text-2); }

.model-demo { display: grid; align-content: start; gap: .875rem; margin-top: 2rem; padding: 1rem; border-radius: var(--r-lg); background: var(--ink-950); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: var(--ink-50); font-size: var(--fs-micro); }
.md-head { display: flex; align-items: center; gap: .5rem; padding: 0 .25rem; font-size: var(--fs-small); }
.md-head .ic { width: 1.125rem; height: 1.125rem; color: var(--orange); }
.md-head b { font-weight: 560; }
.md-st { display: inline-flex; align-items: center; gap: .375rem; margin-left: auto; padding: .25rem .625rem; border-radius: var(--r-pill); background: rgb(61 255 140 / .12); color: var(--ok); font-style: normal; font-size: .75rem; font-weight: 560; white-space: nowrap; }
.md-st span { color: var(--ink-400); font-weight: 500; }
.model-demo:has(.md-caps) { grid-template-rows: auto 1fr; }
.md-caps { display: grid; grid-auto-rows: 1fr; gap: .375rem; }
.md-caps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 3.25rem; padding: .625rem .875rem; border-radius: var(--r-sm); background: var(--ink-900); line-height: 1.4; color: var(--ink-200); }
.md-caps .lg { width: 1.25rem; height: 1.25rem; }
.md-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--orange); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.md-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.md-frames figure { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; }
.md-frames img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); transition: filter var(--t-slow) var(--ease-soft); }
.md-frames figcaption { position: absolute; left: .5rem; bottom: .375rem; font-size: .6875rem; font-variant-numeric: tabular-nums; color: var(--ink-200); }
.md-frames .is-pick img { filter: none; }
.md-frames .is-pick::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--orange); }
.md-why { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .625rem; padding: .75rem .875rem; border-radius: var(--r-sm); background: var(--ink-900); line-height: 1.45; color: var(--ink-200); }
.md-why i { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--orange); color: var(--ink-950); }
.md-why .ic { width: .875rem; height: .875rem; stroke-width: 2.6; }

.model-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .5rem; margin-top: 1.25rem; }
.model-tags li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.model-tags li { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-small); line-height: 1.2; }

.model-hot { background: var(--orange); color: var(--ink-950); box-shadow: none; --line-2: rgb(10 10 11 / .28); }
.model-hot .model-about, .model-hot .model-name span, .model-hot .model-kind, .model-hot .model-meters { color: var(--ink-950); }
.model-hot .model-kind::before { background: var(--ink-950); }
.model-hot .mm i { background: rgb(10 10 11 / .18); }
.model-hot .mm[data-v="3"] i:nth-child(-n+3), .model-hot .mm[data-v="5"] i { background: var(--ink-950); }
.model-hot .model-demo { box-shadow: 0 1.5rem 3rem -1.5rem rgb(80 20 0 / .55); }

/* окно в карточке оживает при появлении: подписи набираются по очереди, кадр выбирается */
@media (prefers-reduced-motion: no-preference) {
  .js .md-caps li { opacity: 0; translate: 0 .5rem; transition: opacity .5s var(--ease-soft), translate .7s var(--ease-out); transition-delay: calc(.25s + var(--i) * .45s); }
  .js .model.is-live .md-caps li { opacity: 1; translate: 0 0; }
  .js .md-st { opacity: 0; transition: opacity .4s var(--ease-soft) 1.6s; }
  .js .model.is-live .md-st { opacity: 1; }
  .js .md-frames .is-pick img { filter: brightness(.55) saturate(.8); transition-delay: 1.1s; }
  .js .model.is-live .md-frames .is-pick img { filter: none; }
  .js .md-frames .is-pick::after { opacity: 0; transform: scale(1.06); transition: opacity .3s var(--ease-soft) 1.1s, transform .6s var(--ease-out) 1.1s; }
  .js .model.is-live .md-frames .is-pick::after { opacity: 1; transform: none; }
  .js .md-frames figure { transition: transform .6s var(--ease-out); transition-delay: calc(.2s + var(--i) * .25s); transform: translateY(.5rem); }
  .js .model.is-live .md-frames figure { transform: none; }
  .js .md-why { opacity: 0; translate: 0 .5rem; transition: opacity .5s var(--ease-soft) 1.5s, translate .7s var(--ease-out) 1.5s; }
  .js .model.is-live .md-why { opacity: 1; translate: 0 0; }
}
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--gap); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rules li { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 1rem; row-gap: .375rem; padding: clamp(1.5rem, calc(2.4 * var(--vw)), 2.25rem); }
.rules li + li { box-shadow: inset 1px 0 0 var(--line); }
.rules-ic { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-sm); background: rgb(255 90 38 / .12); color: var(--orange); }
.rules-ic .ic { width: 1.375rem; height: 1.375rem; }
.rules h3 { align-self: center; font-size: 1.125rem; font-weight: 600; font-stretch: 115%; letter-spacing: -.02em; }
.rules p { color: var(--text-2); font-size: var(--fs-small); max-width: 24rem; }
.ai-fine { margin-top: 1.25rem; font-size: var(--fs-micro); color: var(--text-3); }

/* безопасность */
.sec { padding: var(--section) 0; position: relative; z-index: 2; margin-top: calc(var(--r-xl) * -1); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--ink-950); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); }
.sec-stage { position: relative; min-height: 34rem; border-radius: var(--r-xl); background: radial-gradient(60% 60% at 64% 36%, var(--ink-850), var(--ink-900) 75%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.sec-obj { --w: min(30%, 12rem); position: absolute; z-index: 1; left: 70%; top: 32%; width: var(--w); aspect-ratio: 992 / 1400; margin: calc(var(--w) * -.70565) 0 0 calc(var(--w) * -.5); }
.sec-lock { width: 100%; height: 100%; }
.consent { position: absolute; z-index: 2; left: clamp(1.25rem, calc(2.4 * var(--vw)), 2rem); bottom: clamp(1.25rem, calc(2.4 * var(--vw)), 2rem); display: grid; gap: .25rem; width: min(calc(100% - 2.5rem), 23rem); padding: 1.5rem; border-radius: var(--r-lg); background: var(--ink-50); color: var(--ink-950); box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / .85); }
.consent-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.consent-top .lg, .consent-top .logo-mark { width: 2.25rem; height: 2.25rem; }
.consent-link { width: 2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-400) 0 4px, transparent 4px 8px); }
.consent-h { font-size: 1.125rem; font-stretch: 112%; letter-spacing: -.02em; }
.consent small { color: var(--ink-500); font-size: var(--fs-micro); margin-bottom: .75rem; }
.consent ul { display: grid; gap: .625rem; padding: .875rem 0; border-top: 1px solid rgb(0 0 0 / .08); border-bottom: 1px solid rgb(0 0 0 / .08); font-size: var(--fs-small); }
.consent li { display: flex; gap: .625rem; align-items: center; }
.consent li i { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; flex: none; }
.consent li i .ic { width: .875rem; height: .875rem; stroke-width: 2.5; }
.consent .yes { background: #0b8a45; color: var(--white); }
.consent .no i { background: #d4372b; color: var(--white); }
.consent .no s { color: var(--ink-500); }
.consent-btns { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; font-size: var(--fs-small); font-weight: 560; }
.consent-btns span { padding: .5rem 1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .16); }
.consent-btns .hot { background: var(--ink-950); color: var(--white); box-shadow: none; }

.sec-points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.sec-points li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: .625rem; padding: clamp(1.25rem, calc(2.2 * var(--vw)), 1.75rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sec-points h3 { align-self: end; margin-top: .75rem; font-size: 1.25rem; font-weight: 600; font-stretch: 120%; letter-spacing: -.025em; line-height: 1.15; }
.sec-points p { color: var(--text-2); font-size: var(--fs-small); }
.sp-ui { display: grid; gap: .375rem; align-content: start; font-size: var(--fs-micro); }
.sp-url, .sp-row, .sp-vk { display: flex; align-items: center; gap: .625rem; min-height: 2.625rem; padding: 0 .75rem; border-radius: var(--r-sm); background: var(--ink-950); box-shadow: inset 0 0 0 1px var(--line); }
.sp-url { color: var(--text-3); font-variant-numeric: tabular-nums; }
.sp-url .ic { width: .875rem; height: .875rem; color: var(--ok); }
.sp-vk { justify-content: center; background: #0077ff; box-shadow: none; color: var(--white); font-weight: 600; }
.sp-vk .lg { width: 1.25rem; height: 1.25rem; }
.sp-row .lg { width: 1.25rem; height: 1.25rem; }
.sp-row b { flex: 1; font-weight: 520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row time { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-row.is-off { color: var(--text-3); }
.sp-q { flex: none; width: 1rem; height: 1rem; color: var(--orange); }
.sp-revoke { font-style: normal; font-weight: 560; padding: .125rem .625rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(255 106 92 / .45); color: var(--err); }

/* тарифы */
.pricing { padding: var(--section) 0 calc(var(--section) + var(--r-xl)); }
.pricing-head { grid-template-columns: minmax(0, 1fr) auto; }
.pricing-head .sec-note { justify-self: start; margin-top: 1.25rem; }
.bill { position: relative; display: inline-flex; padding: .3125rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bill button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1.25rem; border-radius: var(--r-pill); font-weight: 560; color: var(--text-2); transition: color var(--t-base) var(--ease-soft); }
.bill button[aria-pressed="true"] { color: var(--btn-ink); }
.bill em { font-style: normal; padding: .0625rem .5rem; border-radius: var(--r-pill); background: var(--orange); color: var(--ink-950); font-size: var(--fs-micro); font-weight: 640; }
.bill-ink { position: absolute; top: .3125rem; left: 0; height: 2.75rem; border-radius: var(--r-pill); background: var(--btn); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.25rem, calc(2 * var(--vw)), 1.75rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan-name { font-size: 1.375rem; font-weight: 620; font-stretch: var(--wide); letter-spacing: -.03em; }
.plan-for { color: var(--text-2); font-size: var(--fs-small); min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .375rem .5rem; margin-top: 1rem; }
.plan-price .amount { font-size: clamp(2.375rem, calc(3.3 * var(--vw)), 3.25rem); line-height: 1; font-weight: 640; font-stretch: 125%; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price .cur { font-size: var(--fs-small); color: var(--text-2); white-space: nowrap; }
.plan-sub { font-size: var(--fs-micro); color: var(--text-3); min-height: 1.4em; }
.plan-lim { display: grid; gap: .125rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-stretch: 112%; letter-spacing: -.015em; }
.plan .ticks { margin: .5rem 0 1.5rem; }
.plan .ticks li { color: var(--text-2); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-hot {
  color-scheme: dark;
  --surface: var(--ink-950);
  --text: var(--ink-50);
  --text-2: var(--ink-300);
  --text-3: var(--ink-400);
  --line: rgb(255 255 255 / .12);
  --line-2: rgb(255 255 255 / .24);
  color: var(--text);
  box-shadow: none;
}
.plan-flag { position: absolute; right: 1.25rem; top: 1.25rem; padding: .25rem .75rem; border-radius: var(--r-pill); background: var(--orange); color: var(--ink-950); font-size: var(--fs-micro); font-weight: 640; }
.plan-price .amount.is-word { font-stretch: 100%; letter-spacing: -.035em; } /* слово вместо цены: без широкого начертания, чтобы влезало в узкую карточку */
.plan .amount.is-swap { animation: swap .5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(.5rem); } }
.corp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; margin-top: var(--gap); padding: 1.25rem 1.75rem; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-base) var(--ease-soft); }
.corp:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.corp > .ic { width: 3rem; height: 3rem; padding: .75rem; border-radius: 50%; background: var(--surface-2); }
.corp span { display: grid; gap: .25rem; color: var(--text-2); font-size: var(--fs-small); max-width: 52rem; }
.corp b { color: var(--text); font-size: 1.0625rem; font-stretch: 112%; }
.corp em { display: inline-flex; align-items: center; gap: .5rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.corp em .ic { transition: transform var(--t-base) var(--ease-out); }
.corp:hover em .ic { transform: translateX(3px); }
.pricing-fine { margin-top: 1.25rem; max-width: 52rem; font-size: var(--fs-micro); color: var(--text-3); }

/* Telega One */
.tone { padding: var(--section) 0 0; }
.tone-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: clamp(34rem, calc(40 * var(--vw)), 39rem); border-radius: var(--r-xl); background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tone-copy { display: grid; gap: 1.25rem; align-content: center; justify-items: start; padding: clamp(1.75rem, calc(3.4 * var(--vw)), 3rem); }
.tone-from { display: inline-flex; align-items: center; gap: .625rem; font-size: var(--fs-small); color: var(--text-2); }
.tone-from .logo-mark { width: 1.75rem; height: 1.75rem; border-radius: .4375rem; }
.tone-copy .h2 { font-size: clamp(2rem, calc(3.4 * var(--vw)), 3.25rem); }
.tone-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: .75rem; }
.tone-act span { font-size: var(--fs-micro); color: var(--text-3); }
.tone-view { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 1rem; min-height: 0; padding: 2.5rem 2.5rem 0 0; }
.tg-post { display: grid; gap: .625rem; padding: .875rem; color: var(--text-2); }
.tg-cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.tg-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: brightness(.62); }
.tg-cover em { position: absolute; left: .875rem; top: .875rem; padding: .125rem .5rem; border-radius: var(--r-pill); background: var(--orange); color: var(--ink-950); font-style: normal; font-weight: 600; font-size: .6875rem; }
.tg-cover b { position: absolute; left: .875rem; right: .875rem; bottom: .875rem; color: var(--white); font-size: clamp(1.125rem, calc(1.5 * var(--vw)), 1.5rem); line-height: 1.05; font-stretch: var(--wide); letter-spacing: -.03em; }
.tg-meta { display: flex; align-items: center; gap: .375rem; color: var(--text-3); font-size: .6875rem; }
.tg-meta .ic { width: .875rem; height: .875rem; margin-left: auto; }
.tg-by { color: var(--orange); }
.tg-sep { justify-self: center; margin: .25rem auto .75rem; padding: .25rem .75rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-3); font-size: .6875rem; width: max-content; }
.tg-queue { display: grid; gap: .5rem; padding: 0 .875rem; }
.tg-queue li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .5rem .75rem .5rem .5rem; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-micro); }
.tg-queue img { width: 3rem; height: 3rem; border-radius: .625rem; object-fit: cover; filter: brightness(.8); }
.tg-queue span { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tg-queue b { font-weight: 560; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-queue small { color: var(--text-3); }
.tg-queue time { color: var(--orange); font-weight: 560; font-variant-numeric: tabular-nums; }
.tg-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-times span { display: inline-flex; justify-content: center; align-items: center; gap: .25rem; font-variant-numeric: tabular-nums; }
.tg-times .is-done { background: rgb(61 255 140 / .12); color: var(--ok); }
.tg-times .ic { width: .875rem; height: .875rem; }

/* вопросы */
.faq { padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, calc(5 * var(--vw)), 5rem); align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 3rem); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.375rem 0;
  font-size: clamp(1.0625rem, calc(1.3 * var(--vw)), 1.25rem);
  font-weight: 560;
  font-stretch: 112%;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-base) var(--ease-soft);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--text-2); }
.acc summary i { position: relative; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease-soft); }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: .875rem; height: 1.75px; margin: -.875px 0 0 -.4375rem; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease-out), background-color var(--t-base) var(--ease-soft); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open]:not(.is-closing) summary i { background: var(--orange); box-shadow: none; }
.acc details[open]:not(.is-closing) summary i::before { background: var(--ink-950); }
.acc details[open]:not(.is-closing) summary i::after { transform: rotate(0deg); background: var(--ink-950); }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 4rem 1.5rem 0; color: var(--text-2); max-width: 46rem; }
.acc-body a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.acc-body a:hover { border-color: var(--text); }

/* финал: та же панель с вихрем, что и на первом экране */
.final { padding: 0 0 var(--section); background: var(--ink-950); }
.final-stage { position: relative; display: grid; align-items: center; min-height: clamp(30rem, calc(40 * var(--vw)), 38rem); border-radius: var(--r-xl); background: radial-gradient(55% 70% at 74% 46%, var(--ink-850), var(--ink-900) 72%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.final-obj { --w: clamp(9rem, calc(17 * var(--vw)), 15rem); position: absolute; z-index: 1; left: 74%; top: 44%; width: var(--w); aspect-ratio: 1374 / 1400; margin: calc(var(--w) * -.50946) 0 0 calc(var(--w) * -.5); }
.final-mark { width: 100%; height: 100%; }
.final-copy { position: relative; z-index: 2; display: grid; gap: 1.5rem; justify-items: start; max-width: 44rem; padding: clamp(2rem, calc(4.4 * var(--vw)), 4rem); }
.final-copy .lead { max-width: 30rem; }
.final-copy .hero-actions { margin-top: .5rem; }
.slot-pin { position: absolute; z-index: 2; left: 74%; top: calc(44% + clamp(6rem, calc(10.5 * var(--vw)), 9.5rem)); width: 0; display: flex; justify-content: center; }
.slot-chip { flex: none; margin: 0; display: flex; align-items: center; gap: .625rem; height: 3rem; padding: 0 1.25rem 0 1rem; border-radius: var(--r-pill); background: rgb(23 23 26 / .78); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: var(--fs-small); line-height: 1; white-space: nowrap; }
.slot-chip span { color: var(--text-2); }
.slot-chip b { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--text); }
.slot-chip .ic { width: 1.125rem; height: 1.125rem; color: var(--orange); }

/* подвал */
.foot { background: var(--ink-1000); padding: clamp(3.5rem, calc(6 * var(--vw)), 5.5rem) 0 2rem; color: var(--text-2); font-size: var(--fs-small); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.1fr; gap: 2rem; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand .logo { color: var(--text); }
.foot-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); }
.foot-col { display: grid; gap: .625rem; align-content: start; }
.foot-col h3 { margin-bottom: .375rem; font-size: var(--fs-micro); font-weight: 560; color: var(--text-3); }
.foot-col a { transition: color var(--t-base) var(--ease-soft); line-height: 1.35; }
.foot-col a:hover { color: var(--text); }
.foot-data { display: flex; gap: 1rem; margin-top: 3.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-micro); line-height: 1.6; color: var(--text-3); }
.foot-data .ic { color: var(--text-2); margin-top: .125rem; }
.foot-data h3 { font-size: var(--fs-micro); font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.foot-data a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.foot-data a:hover { color: var(--text); }
.foot-legal { display: grid; gap: .5rem; margin-top: 2rem; font-size: var(--fs-micro); color: var(--text-3); max-width: 60rem; }
.foot-end { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.foot-social { display: flex; gap: .5rem; }
.foot-social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-base) var(--ease-soft); }
.foot-social a:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.foot-social .lg { width: 1.375rem; height: 1.375rem; }
.credit { font-size: var(--fs-micro); color: var(--text-3); transition: color var(--t-base) var(--ease-soft); }
.credit:hover { color: var(--text); }

/* появления: скрытое состояние только при работающем JS и без reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .line-in { transform: translateY(110%); }
  .js .hero-stage, .js .hero-obj, .js .hero-lead, .js .hero-cta, .js .hn { opacity: 0; }
}

/* планшет */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .hero { --nets-h: calc(13.5rem + 2 * var(--gap)); }
  .hero-nets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hn { grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: .875rem; height: 4.5rem; padding: 0 1rem; }
  .hn .lg { grid-row: span 2; width: 2.25rem; height: 2.25rem; align-self: center; }
  .hn-st { margin-top: 0; }
  .hn::after { top: 50%; margin-top: -.5rem; }
  .t-cal, .t-text { grid-column: span 12; }
  .t-acc, .t-slots, .t-lib { grid-column: span 4; }
  .t-proj, .t-help { grid-column: span 6; }
  .t-log { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .pv-side .note { padding: 1rem; }
  .note-btns { flex-wrap: wrap; }
  .note-btn { white-space: nowrap; }
  .note > .seg i { padding-inline: .375rem; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-signin, .nav-end .lang { display: none; }
  .nav-burger { display: block; }
  .sec-head, .ai-head { grid-template-columns: 1fr; }
  .sec-head .sec-note, .ai-head .sec-note { justify-self: start; }
  .trust { grid-template-columns: 1fr; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .hero-cta { justify-items: start; }
  .how-track { height: auto; }
  .how-stage { position: relative; height: auto; min-height: 0; grid-template-columns: 1fr; padding-top: var(--section); padding-bottom: var(--section); }
  .how-view { height: 26rem; min-height: 0; order: -1; display: none; }
  .steps { padding-left: 1.25rem; }
  .steps::after { display: none; }
  .calc-grid, .demo-grid, .sec-grid, .faq-grid { grid-template-columns: 1fr; }
  .pane { grid-template-columns: 1fr; height: auto; }
  .pane-copy { padding-bottom: 1.5rem; }
  .pane-view { height: 32rem; padding: 0 1.5rem; }
  .faq-side { position: static; }
  .t-acc, .t-slots, .t-lib, .t-proj, .t-help { grid-column: span 6; }
  .t-log { grid-template-columns: 1fr; }
  .models, .rules { grid-template-columns: 1fr; }
  .models { grid-template-rows: none; row-gap: var(--gap); }
  .model { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .rules li + li { box-shadow: inset 0 1px 0 var(--line); }
  .tone-card { grid-template-columns: 1fr; height: auto; }
  .tone-copy { padding-bottom: 1.5rem; }
  .tone-view { height: 30rem; padding: 0 1.5rem; }
  .final-stage { align-items: end; min-height: 40rem; }
  .final-obj { --w: 10rem; left: 50%; top: 24%; }
  .slot-pin { left: 50%; top: calc(24% + 6.5rem); }
  .final-copy { padding-top: 22rem; }
  .bill { justify-self: start; }
}

/* портретные планшеты: панель первого экрана по содержимому */
@media (min-width: 641px) and (max-aspect-ratio: 4 / 5) {
  .hero-stage { height: clamp(36rem, 62vh, 46rem); }
  .hero-obj { --w: clamp(10rem, 18vh, 14rem); left: 50%; top: 27%; }
  .fan { --ch: clamp(17rem, 30vh, 23rem); }
}

/* на мобильном шаги показывают свой экран прямо под собой */
@media (max-width: 900px) {
  .js .how-view { display: block; order: 0; margin-top: 1.5rem; }
  .how-bar { display: block; }
}

@media (max-width: 640px) {
  .model-top { flex-wrap: wrap; }
  .md-st span { display: none; }
  .model-tags { grid-template-columns: 1fr; }
  :root { --r-xl: 1.75rem; --r-lg: 1.5rem; }
  .nav { inset: .625rem .625rem auto; }
  .nav-bar { padding-left: .875rem; height: 3.5rem; }
  .nav-cta { display: none; }
  .hero { --stage-p: 1.25rem; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-stage { height: auto; min-height: clamp(33rem, calc(100svh - 12.5rem), 40rem); display: flex; flex-direction: column; padding-top: 1.75rem; }
  .hero-obj { --w: clamp(8rem, calc(25 * var(--vw)), 9.5rem); position: relative; left: auto; top: auto; flex: none; align-self: center; margin: auto; }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; padding: 1.5rem var(--stage-p) var(--stage-p); }
  .display { font-size: clamp(2.125rem, calc(10.4 * var(--vw)), 3rem); font-stretch: 128%; }
  .hero-sub { gap: 1.25rem; margin-top: 1rem; }
  .hero-cta { width: 100%; justify-items: center; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-nets { gap: .5rem; margin-top: .5rem; }
  .hn { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; height: 6.25rem; padding: .75rem; border-radius: var(--r-sm); }
  .hn .lg { grid-row: auto; width: 2rem; height: 2rem; align-self: start; }
  .hn-name { font-size: .875rem; }
  .hn-st { font-size: .75rem; margin-top: .125rem; }
  .hn::after { display: none; }
  .fan { --ch: clamp(14rem, 40vh, 18rem); --step: 12deg; --R: calc(var(--ch) * 2.6); }
  .bento { gap: .625rem; }
  .t-acc, .t-slots, .t-lib, .t-proj, .t-help { grid-column: span 12; }
  .ui-text { grid-template-columns: 1fr; }
  .ui-tt { display: none; }
  .ui-pop { left: 1rem; right: 1rem; width: auto; top: auto; bottom: 1rem; }
  .cd { min-height: 3.25rem; padding: .25rem; }
  .cd-ev { display: none; }
  .cd.has-ev::after { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: var(--text-3); margin-top: auto; }
  .tabs { display: flex; margin-right: calc(var(--margin) * -1); border-radius: var(--r-pill) 0 0 var(--r-pill); }
  .pane-copy { padding: 1.5rem 1.25rem 1.25rem; }
  .pane-view { grid-template-columns: 1fr; height: 27rem; padding: 0 1rem; }
  .pv-side { display: none; }
  .pv-phone .phone { width: 14rem; }
  .sec-points { grid-template-columns: 1fr; }
  .sec-stage { min-height: 40rem; }
  .sec-obj { --w: min(34%, 7.5rem); left: 50%; top: 19%; }
  .consent { padding: 1.125rem; }
  .plans { grid-template-columns: 1fr; }
  .pricing-head { grid-template-columns: 1fr; }
  .bill { justify-self: start; }
  .corp { grid-template-columns: 1fr; padding: 1.25rem; }
  .acc-body p { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .composer-actions .btn { width: 100%; }
  .tone-copy { padding: 1.5rem 1.25rem 1.25rem; }
  .tone-view { grid-template-columns: 1fr; height: 25rem; padding: 0 1rem; }
  .tone-view .pv-side { display: none; }
  .final-copy { padding: 20rem 1.25rem 1.5rem; }
  .final-obj { --w: 8.5rem; top: 20%; }
  .slot-pin { top: calc(20% + 5.5rem); }
  .slot-chip { font-size: var(--fs-micro); height: 2.625rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-end { flex-direction: column-reverse; align-items: flex-start; }
  .punch-grid { gap: 2px; }
  .punch-rows { gap: 2px; }
  .hv { padding: 1rem; }
  .hv-float { display: none; }
  .acc-list span { display: none; }
  .acc-list li, .st-list li { gap: .625rem; padding: .625rem .75rem; }
  .ui-log time { display: none; }
  .ui-log li { grid-template-columns: auto 1fr auto; }
  .range output { font-size: 1.75rem; }
}

@media (max-width: 380px) {
  .st { padding: .25rem .5rem; }
  .st::before { display: none; }
  .hn-name { font-size: .8125rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

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

/* смена языка: страница гаснет и открывается на том же месте */
html.is-switch .loader { display: none; }
html.is-switch body { opacity: 0; }
html.is-switch.is-shown body { opacity: 1; transition: opacity .3s var(--ease-soft); }
html.is-leaving body { opacity: 0; transition: opacity .17s var(--ease-soft); }
@media (prefers-reduced-motion: reduce) {
  html.is-switch.is-shown body, html.is-leaving body { transition: none; }
}

/* v73: скругления. Мелкие метки, кнопки и поля в одну строку таблеткой, квадратные значки кругом. Карточки и заметки как были. */
.cd-ev, .ui-yt-img span, .ui-lib-grid span, .bub-keys span, .sp-url, .sp-row, .sp-vk { border-radius: var(--r-pill); }
.bub-keys span { padding-inline: .75rem; }
.sp-url, .sp-row, .sp-vk { padding-inline: 1rem; }
.field input, .field select { border-radius: var(--r-pill); padding-inline: 1.125rem; }
.field textarea { border-radius: 1.375rem; }
.drop-ic, .rules-ic { border-radius: 50%; }
