/* Сайт Timora. Токены — как у приложений и мини-аппа: монохром, мягкие карточки, системный шрифт. */
:root {
  --kind-lecture: #3567C9; --kind-practice: #2E7D5B; --kind-seminar: #1C8384; --kind-lab: #7E4BC9;
  --kind-exam: #B3261E; --kind-credit: #C0571B; --kind-consultation: #A8761F; --kind-coursework: #4A4FB5;
  --kind-selfstudy: #7D7D86; --kind-internship: #6F6A2C; --kind-event: #B23A86;
  --bg: #F6F6F7;
  --surface: #FFFFFF;
  --surface-2: #F1F1F3;
  --surface-3: #E8E8EB;
  --ink: #141414;
  --ink-2: #5E5E64;
  --ink-3: #8E8E94;
  --line: #E4E4E7;
  --line-2: #D4D4D9;
  --on-ink: #FFFFFF;
  --critical: #B3261E;
  --ok: #1E8A4C;
  --tg: #229ED9;
  --tg-2: #1C8DC2;
  --vk: #0077FF;
  --vk-2: #0067DD;
  --glow: rgba(70, 92, 255, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .05), 0 28px 64px rgba(0, 0, 0, .14);
  --nav-bg: rgba(246, 246, 247, .78);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wrap: 1160px;
  --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --kind-lecture: #7EA6F2; --kind-practice: #5FBF94; --kind-seminar: #5BC2C2; --kind-lab: #B190EE;
    --kind-exam: #EE7A72; --kind-credit: #F09A62; --kind-consultation: #E0B460; --kind-coursework: #9A9DF0;
    --kind-selfstudy: #A4A4AE; --kind-internship: #C9C27A; --kind-event: #E583BE;
    --bg: #0E0E10;
    --surface: #17171A;
    --surface-2: #1F1F23;
    --surface-3: #2A2A30;
    --ink: #F2F2F4;
    --ink-2: #A9A9B1;
    --ink-3: #74747D;
    --line: #2A2A30;
    --line-2: #3A3A42;
    --on-ink: #0E0E10;
    --critical: #F07167;
    --ok: #4CC38A;
    --glow: rgba(110, 128, 255, 0.16);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 64px rgba(0, 0, 0, .6);
    --nav-bg: rgba(14, 14, 16, .74);
  }
}

/* ── База ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--on-ink); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
html.lock { overflow: hidden; }

/* ── Кнопки ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 15.5px; letter-spacing: -.1px;
  text-decoration: none; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s, opacity .18s;
}
.btn:active { transform: scale(.97); }
.btn img, .btn svg { flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 7px; }
@media (max-width: 520px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-2); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-2); box-shadow: 0 10px 26px rgba(34, 158, 217, .3); }
.btn-tg img { border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.btn-vk { background: var(--vk); color: #fff; }
.btn-vk:hover { background: var(--vk-2); box-shadow: 0 10px 26px rgba(0, 119, 255, .3); }
.btn-vk img { border-radius: 6px; box-shadow: 0 0 0 1.5px #fff; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-align: left; font: inherit; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }

/* Значки магазинов: официальные файлы Apple и RuStore. «Скоро» — приложение ещё не опубликовано. */
.store { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.store-badge { display: block; height: 48px; width: auto; }
.store-badge.light-only { display: block; }
.store-badge.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .store-badge.light-only { display: none; }
  .store-badge.dark-only { display: block; }
}
.store.is-soon .store-badge { filter: grayscale(1); opacity: .38; }
.store.is-soon { cursor: not-allowed; }
.store-note { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .2px; }
.soon-pill {
  position: absolute; top: -12px; right: -14px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px;
  font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── Шапка ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); padding-top: env(safe-area-inset-top);
  box-sizing: content-box; background: var(--nav-bg); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  transition: border-color .25s, background-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 19px/1 var(--display); letter-spacing: -.4px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  text-decoration: none; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ink);
}
.nav-cta { margin-left: 6px; }
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; border: 0; background: none;
  position: relative; border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
html.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0; z-index: 49; overflow-y: auto;
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .3s var(--ease);
}
html.menu-open .mnav { opacity: 1; transform: none; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a {
  padding: 14px 2px; font: 700 26px/1.15 var(--display); letter-spacing: -.6px; text-decoration: none;
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.mnav-links a[aria-current="page"] { color: var(--ink-2); }
html.menu-open .mnav-links a { opacity: 1; transform: none; }
html.menu-open .mnav-links a:nth-child(2) { transition-delay: .03s; }
html.menu-open .mnav-links a:nth-child(3) { transition-delay: .06s; }
html.menu-open .mnav-links a:nth-child(4) { transition-delay: .09s; }
html.menu-open .mnav-links a:nth-child(5) { transition-delay: .12s; }
html.menu-open .mnav-links a:nth-child(6) { transition-delay: .15s; }
html.menu-open .mnav-links a:nth-child(7) { transition-delay: .18s; }
.mnav-actions { display: grid; gap: 10px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

/* ── Типографика разделов ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3);
}
.display {
  margin: 0; font: 800 clamp(34px, 5.4vw, 60px)/1.02 var(--display); letter-spacing: -.045em; text-wrap: balance;
}
.h2 { margin: 0; font: 780 clamp(28px, 4vw, 44px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.h3 { margin: 0; font: 720 21px/1.2 var(--display); letter-spacing: -.3px; }
.lead { margin: 18px 0 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.lead + .actions, .lead + .doc-actions { margin-top: 26px; }
.api-hero .display { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.pill b { font-weight: 800; color: var(--ink); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(30, 138, 76, .5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(30, 138, 76, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(30, 138, 76, 0); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}

/* Появление при прокрутке (класс js ставит boot.js; без скриптов всё видно сразу). */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s);
}
.js .reveal-scale { opacity: 0; transform: scale(.94) translateY(20px); }
.js .reveal-scale.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }

/* ── Главная: первый экран ───────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 35%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 20% 20%, rgba(127, 127, 140, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.hero h1 { margin: 18px 0 0; font: 850 clamp(40px, 6.6vw, 78px)/.98 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.rotator { display: inline-grid; vertical-align: top; }
.rotator > span {
  grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.42em); filter: blur(6px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease);
}
.rotator > span.on { opacity: 1; transform: none; filter: none; }
.rotator > span.off { opacity: 0; transform: translateY(-.42em); filter: blur(6px); }
.no-js .rotator > span:first-child, html:not(.js) .rotator > span:first-child { opacity: 1; transform: none; filter: none; }
.hero .lead { max-width: 540px; }
.hero .actions { margin-top: 30px; }
.hero-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.hero-platforms span { display: inline-flex; align-items: center; gap: 7px; }
.hero-platforms img { width: 20px; height: 20px; }

.hero-visual { position: relative; height: 620px; perspective: 1600px; }
.phones { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.phone {
  position: absolute; top: 50%; left: 50%; width: 260px; aspect-ratio: 924 / 2000; border-radius: 30px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-2); border: 1px solid var(--line);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone { --tx: -50%; --ty: -50%; --rot: 0deg; --lift: -12px; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); }
.phone.p1 { z-index: 3; animation: float 7s ease-in-out infinite; }
.phone.p2 { z-index: 2; width: 220px; --tx: -128%; --ty: -46%; --rot: -9deg; --lift: 10px; animation: float 8s ease-in-out infinite; opacity: .96; }
.phone.p3 { z-index: 2; width: 220px; --tx: 28%; --ty: -44%; --rot: 9deg; --lift: -10px; animation: float 9s ease-in-out infinite; opacity: .96; }
@keyframes float {
  0%, 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); }
  50% { transform: translate(var(--tx), calc(var(--ty) + var(--lift))) rotate(var(--rot)); }
}

.live {
  position: absolute; z-index: 4; left: 0; bottom: 56px; width: 270px; padding: 15px 16px 14px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: bob 6s ease-in-out infinite;
}
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--ink-3); text-transform: uppercase; }
.live-top b { color: var(--ink); letter-spacing: .6px; }
.live-name { margin-top: 7px; font-weight: 750; font-size: 16px; letter-spacing: -.2px; }
.live-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.live-bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 1s linear; }
.chip-float {
  position: absolute; z-index: 4; right: 6px; top: 70px; display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border-radius: 18px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-2); animation: bob 7s ease-in-out -2s infinite;
}
.chip-float b { font: 800 26px/1 var(--display); letter-spacing: -.5px; }
.chip-float span { font-size: 12px; line-height: 1.25; opacity: .75; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { text-align: left; }
  .hero-visual { height: 470px; margin: 0 calc(var(--gutter) * -1); }
  .phone { width: 200px; border-radius: 24px; }
  .phone.p2, .phone.p3 { width: 170px; }
  .phone.p2 { --tx: -112%; }
  .phone.p3 { --tx: 12%; }
  .live-top { font-size: 10px; letter-spacing: .6px; }
  .live { left: 12px; bottom: 18px; width: 230px; }
  .chip-float { right: 12px; top: 26px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 40px; }
  .hero-visual { height: 420px; }
  .phone { width: 176px; }
  .phone.p2, .phone.p3 { width: 148px; }
  .live { width: 214px; padding: 12px 13px; }
  .chip-float b { font-size: 22px; }
}

/* ── Лента вузов ─────────────────────────────────────────────────────── */
.unis { padding: 30px 0 10px; }
.unis-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0 0 18px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.uni {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: 14.5px;
}
.uni .logo { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; font-size: 9.5px; font-weight: 800; color: var(--ink-2); }
/* Логотип вуза — на белой плитке и в тёмной теме: фирменные знаки нарисованы на белом
   (чёрный знак КемГУ на тёмной плитке пропадал). */
.uni .logo:has(img), .row .logo:has(img) { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.uni .logo img { padding: 2px; }
.row .logo img { padding: 4px; }
.uni .logo img { width: 100%; height: 100%; object-fit: contain; }
.uni small { color: var(--ink-3); font-weight: 500; }

/* ── Возможности (бенто) ─────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 26px 26px 0;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile h3 { margin: 0; font: 760 22px/1.15 var(--display); letter-spacing: -.4px; }
.tile p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 420px; }
.tile .ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.tile .ico svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .shot {
  margin: 22px auto 0; width: 76%; max-width: 300px; aspect-ratio: 924 / 1150; border-radius: 22px 22px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .08); background: var(--surface-2);
  transition: transform .6s var(--ease);
}
.tile .shot img { width: 100%; height: auto; }
.tile button.shot { display: block; padding: 0; cursor: zoom-in; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.tile:hover .shot { transform: translateY(-8px); }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile.dark { background: #141414; color: #F2F2F4; border-color: #141414; }
.tile.dark p { color: #A9A9B1; }
.tile.dark .ico { background: #232327; border-color: #2E2E33; }
.tile.dark .ico svg { stroke: #F2F2F4; }
.tile.text-only { min-height: 0; padding-bottom: 26px; }
.tile.split { flex-direction: row; gap: 24px; align-items: stretch; padding-bottom: 0; }
.tile.split .tile-copy { flex: 1; padding-bottom: 26px; }
.tile.split .shot { flex: none; width: 42%; margin: 0; align-self: flex-end; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-2, .tile.span-3 { grid-column: span 1; }
  .tile.span-4, .tile.span-6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile.span-2, .tile.span-3, .tile.span-4, .tile.span-6 { grid-column: auto; }
  .tile { min-height: 0; padding: 22px 22px 0; border-radius: 26px; }
  .tile.text-only { padding-bottom: 22px; }
  .tile.split { flex-direction: column; }
  .tile.split .shot { width: 76%; align-self: center; }
}

/* Мини-список возможностей */
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.mini {
  padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.mini b { display: block; font-size: 16px; letter-spacing: -.2px; }
.mini span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 960px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Шаги ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800;
}
.step b { display: block; font: 720 19px/1.25 var(--display); letter-spacing: -.3px; }
.step span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ── Продукты ────────────────────────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.product {
  grid-column: span 3; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.product.third { grid-column: span 2; }
.product-top { display: flex; align-items: center; gap: 14px; }
.product-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line);
}
.product-icon img { width: 30px; height: 30px; }
.product-icon.app img { width: 56px; height: 56px; border-radius: 16px; }
.product h3 { margin: 0; font: 760 22px/1.15 var(--display); letter-spacing: -.4px; }
.product .kind { margin: 3px 0 0; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.product p { margin: 0; color: var(--ink-2); font-size: 15px; }
.product .actions { margin-top: auto; padding-top: 6px; }
.product .more { margin-left: auto; font-size: 14px; }
.product-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.product-list li { display: flex; gap: 9px; }
.product-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--ink-3); }
@media (max-width: 960px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product, .product.third { grid-column: auto; }
}
@media (max-width: 520px) { .product { padding: 22px; border-radius: 26px; } }

/* ── Безопасность ────────────────────────────────────────────────────── */
.secure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.secure .mini svg { width: 26px; height: 26px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .secure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .secure { grid-template-columns: minmax(0, 1fr); } }

/* ── Тёмный баннер (API, призывы) ───────────────────────────────────── */
.banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px;
  align-items: center; padding: 52px; border-radius: 36px; background: #121214; color: #F2F2F4; isolation: isolate;
}
.banner::after {
  content: ""; position: absolute; inset: auto -20% -60% 40%; height: 480px; z-index: -1;
  background: radial-gradient(closest-side, rgba(96, 118, 255, .28), transparent);
}
.banner .eyebrow { color: #8C8C96; }
.banner .h2 { color: #fff; }
.banner .lead { color: #B4B4BC; }
.banner .btn-ghost { background: transparent; color: #fff; border-color: #3A3A42; }
.banner .btn-ink { background: #fff; color: #121214; }
.code {
  margin: 0; padding: 20px 22px; border-radius: 20px; background: #1C1C20; border: 1px solid #2C2C33; color: #D9D9E0;
  font: 13px/1.7 var(--mono); overflow-x: auto; white-space: pre;
}
.code .c { color: #7C7C88; }
.code .k { color: #8FB2FF; }
.code .s { color: #9FE3B5; }
@media (max-width: 860px) {
  .banner { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; border-radius: 28px; gap: 24px; }
}

/* ── Опрос (приглашение на главной) ─────────────────────────────────── */
.survey-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.concepts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.concepts img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.concepts img:nth-child(2) { transform: translateY(26px); }
@media (max-width: 860px) { .survey-cta { grid-template-columns: minmax(0, 1fr); } }

/* ── Вопросы ─────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px;
  font-weight: 680; font-size: 16.5px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ── Финальный призыв ────────────────────────────────────────────────── */
.final { text-align: center; padding: 110px 0 120px; }
.final .actions { justify-content: center; margin-top: 30px; }
.final .lead { margin-left: auto; margin-right: auto; }
.final img.final-icon { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 24px; box-shadow: var(--shadow-2); }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.footer { padding: 56px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer h2 { margin: 4px 0 12px; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); }
.footer a, .footer .link-button { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.footer a:hover, .footer .link-button:hover { color: var(--ink); }
.footer-brand p { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 300px; }
.footer-brand .muted { color: var(--ink-3); font-size: 13px; }
.footer .brand { display: inline-flex; color: var(--ink); padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.langs a { color: inherit; text-decoration: none; }
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
.langs a[aria-current] { font-weight: 600; }
.lang-notice { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-brand { grid-column: auto; } }

/* ── Cookie ──────────────────────────────────────────────────────────── */
.cookie {
  position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; padding: 16px 16px 16px 20px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: translate(-50%, 140%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie-text { flex: 1; min-width: 0; font-size: 14px; }
.cookie-text b { font-size: 15px; }
.cookie-text p { margin: 3px 0 0; color: var(--ink-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 720px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .cookie-text { font-size: 13px; line-height: 1.45; }
  .cookie-text b { font-size: 14.5px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .cookie-actions .btn { min-height: 38px; font-size: 13.5px; padding: 0 10px; }
  .cookie-actions [data-consent="all"] { grid-column: span 2; order: -1; }
}

dialog.sheet {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 40px); padding: 0; border: 1px solid var(--line); border-radius: 26px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: auto;
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.sheet-body { padding: 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; font: 760 22px/1.2 var(--display); letter-spacing: -.4px; }
.sheet-body > .muted { margin: 8px 0 14px; font-size: 14.5px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row b { display: block; font-size: 15.5px; }
.toggle-row span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 520px) {
  dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92%; }
  dialog.sheet[open] { animation: sheet-up .4s var(--ease); }
  .sheet-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet-actions { display: grid; grid-template-columns: 1fr; }
  .sheet-actions .btn-ink { order: -1; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.icon-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 30px;
  background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; transition: background-color .2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s var(--ease);
}
.switch:checked { background: var(--ink); border-color: var(--ink); }
.switch:checked::after { transform: translateX(20px); }
@media (prefers-color-scheme: dark) { .switch:checked::after { background: #0E0E10; } }
.switch:disabled { opacity: .55; cursor: default; }

/* ── Просмотр скриншотов ─────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: rgba(8, 8, 10, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s var(--ease);
  touch-action: none; color: #fff;
}
.lb.open { opacity: 1; }
.lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px; font-weight: 650; font-size: 14px;
}
.lb-top .lb-caption { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; flex: 1; overflow: hidden; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-track.animate { transition: transform .45s var(--ease); }
.lb-slide { flex: none; width: 100%; height: 100%; display: grid; place-items: center; padding: 8px 16px; }
.lb-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-drag: none; transform: scale(.94); opacity: .4; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.lb-slide.current img { transform: none; opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .2s, width .3s var(--ease); }
.lb-dots i.on { width: 20px; border-radius: 4px; background: #fff; }
@media (max-width: 640px) { .lb-prev, .lb-next { display: none; } .lb-slide { padding: 4px 12px; } }

/* ── Страница магазина (iOS, Android) ────────────────────────────────── */
.store-page { padding-top: 34px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: end; }
.app-icon-xl { grid-row: 1 / span 2; align-self: center; width: 168px; height: 168px; border-radius: 38px; box-shadow: var(--shadow-2); }
.app-head > .actions { grid-column: 2; align-self: start; }
.app-head h1 { margin: 0; font: 820 clamp(32px, 4.6vw, 48px)/1.04 var(--display); letter-spacing: -.04em; }
.app-sub { margin: 6px 0 0; font-size: 18px; color: var(--ink-2); }
.app-dev { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-3); font-weight: 600; }
.app-head .actions { margin-top: 20px; }
.beta-btn { min-height: 48px; }
.beta-note { flex-basis: 100%; margin: 2px 0 0; max-width: 520px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 640px) {
  .app-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; }
  .app-icon-xl { grid-row: auto; width: 104px; height: 104px; border-radius: 24px; }
  .app-sub { font-size: 15.5px; }
  .app-head > .actions { grid-column: 1 / -1; margin-top: 20px; }
  .app-head .actions > * { flex: 1 1 100%; }
  .app-head .actions .store { flex: 0 0 auto; margin: 6px auto 4px; }
  .app-head .beta-note { text-align: center; }
}
.facts {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 34px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { text-align: center; padding: 2px 10px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); }
.fact b { display: block; margin-top: 5px; font: 760 21px/1.1 var(--display); letter-spacing: -.3px; color: var(--ink-2); }
.fact span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .facts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .facts::-webkit-scrollbar { display: none; }
  .fact { flex: none; min-width: 112px; scroll-snap-align: start; }
}
.store-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.store-section:last-child { border-bottom: 0; }
.store-section h2 { margin: 0 0 16px; font: 760 24px/1.2 var(--display); letter-spacing: -.4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.store-section h2 small { font: 600 14px/1 var(--font); color: var(--ink-3); letter-spacing: 0; }

.gallery { position: relative; }
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }
.shot-btn {
  flex: none; width: 236px; padding: 0; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface-2);
  scroll-snap-align: start; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.shot-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.shot-btn img { width: 100%; height: auto; aspect-ratio: 924 / 2000; }
.gallery-nav { position: absolute; top: calc(50% - 20px); left: 0; right: 0; pointer-events: none; display: flex; justify-content: space-between; margin: 0 -22px; }
.gallery-nav button {
  pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-1); display: grid; place-items: center; transition: opacity .2s, transform .2s var(--ease);
}
.gallery-nav button:disabled { opacity: 0; pointer-events: none; }
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .gallery-nav { display: none; } .shot-btn { width: 64vw; max-width: 250px; border-radius: 22px; } }
.gallery-hint { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }

.desc { position: relative; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.desc p { margin: 0 0 12px; }
.desc h3 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink); }
.desc ul { margin: 0 0 12px; padding-left: 20px; }
.desc li { margin: 3px 0; }
.desc.clamped { max-height: 230px; overflow: hidden; }
.desc.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); }
.more-btn { margin-top: 8px; background: none; border: 0; padding: 4px 0; font-weight: 700; color: var(--ink); }
.whatsnew-meta { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 14px; margin-bottom: 8px; }
.ratings { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ratings .big { font: 820 54px/1 var(--display); letter-spacing: -1px; color: var(--ink-3); }
.ratings p { margin: 0; color: var(--ink-2); }
.privacy-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.privacy-cards .mini svg { width: 28px; height: 28px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .privacy-cards { grid-template-columns: minmax(0, 1fr); } .ratings { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.info div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: 13.5px; color: var(--ink-3); }
.info dd { margin: 3px 0 0; font-weight: 600; }
@media (max-width: 760px) { .info { grid-template-columns: minmax(0, 1fr); } .info div { display: flex; justify-content: space-between; gap: 16px; } .info dd { margin: 0; text-align: right; } }
.also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.also a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 650; transition: border-color .2s; }
.also a:hover { border-color: var(--line-2); }
.also img { width: 30px; height: 30px; border-radius: 8px; }
.also span small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 860px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .also { grid-template-columns: minmax(0, 1fr); } }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px;
}
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.note b { color: var(--ink); }

/* ── Документы (политика, правила, cookie) ───────────────────────────── */
.doc-hero { padding: 54px 0 26px; }
.doc-hero .lead { max-width: 720px; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-bottom: 90px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); }
.toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.on { color: var(--ink); background: var(--surface); font-weight: 650; }
.doc { min-width: 0; font-size: 16px; line-height: 1.7; }
.doc h2 { margin: 44px 0 12px; font: 760 24px/1.25 var(--display); letter-spacing: -.4px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 26px 0 8px; font: 700 18px/1.3 var(--display); }
.doc p { margin: 0 0 12px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
.doc li { margin: 5px 0; }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-3); font-size: 14px; }
.table-wrap { margin: 6px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.doc table, .api table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc th, .doc td, .api th, .api td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th, .api th { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
.doc tr:last-child td, .api tr:last-child td { border-bottom: 0; }
.doc td { color: var(--ink-2); }
.doc td:first-child { color: var(--ink); font-weight: 550; }
.toc-mobile { display: none; margin-bottom: 26px; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .toc-mobile details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .toc-mobile summary { padding: 14px 18px; font-weight: 650; cursor: pointer; }
  .toc-mobile nav { padding: 0 18px 12px; }
  .toc-mobile a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--line); font-size: 14.5px; }
  .doc { font-size: 15.5px; }
  .doc table { min-width: 620px; }
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }

/* ── API ─────────────────────────────────────────────────────────────── */
.api-hero { padding: 60px 0 30px; }
.free { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 750; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.data-card { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.data-card h3 { margin: 0 0 4px; font: 760 22px/1.2 var(--display); letter-spacing: -.4px; }
.data-card > p { margin: 0 0 16px; color: var(--ink-2); }
.data-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.data-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.data-list code, .scope { font: 600 12.5px/1 var(--mono); padding: 5px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.data-list span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .data-grid { grid-template-columns: minmax(0, 1fr); } .data-card { padding: 22px; border-radius: 26px; } }
.timeline { display: grid; gap: 0; max-width: 820px; }
.tl { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; }
.tl::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-style: normal; font-weight: 800; }
.tl b { display: block; font: 720 19px/1.3 var(--display); margin-top: 10px; }
.tl p { margin: 6px 0 0; color: var(--ink-2); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rule h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 740 19px/1.25 var(--display); }
.rule h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rule ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.rule li { margin: 6px 0; }
.rule.wide { grid-column: span 2; }
.rule.warn { background: var(--surface-2); }
@media (max-width: 860px) { .rules { grid-template-columns: minmax(0, 1fr); } .rule.wide { grid-column: auto; } .rule { padding: 22px; } }
.consent-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.consent-demo .mini { position: relative; }
.consent-demo .mini .num { font: 800 34px/1 var(--display); color: var(--ink-3); margin-bottom: 10px; }
.user-code { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font: 700 18px/1 var(--mono); letter-spacing: 2px; }
@media (max-width: 860px) { .consent-demo { grid-template-columns: minmax(0, 1fr); } }
.api details { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.api summary { padding: 18px 20px; font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.api summary::-webkit-details-marker { display: none; }
.api summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .3s var(--ease); }
.api details[open] summary::after { transform: rotate(45deg); }
.api .details-body { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; }
.api .details-body p { margin: 0 0 12px; }
.api .table-wrap { margin: 4px 0 14px; }
.api td code, .api p code, .doc code { font: 600 13px/1.4 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); word-break: break-word; }
.api td:first-child { white-space: nowrap; }
@media (max-width: 760px) { .api table { min-width: 560px; } }

/* ── Опрос ───────────────────────────────────────────────────────────── */
.survey-page { padding-top: 34px; padding-bottom: 90px; }
.survey { max-width: 760px; margin: 0 auto; }
.survey-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.survey-progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.survey-progress .bar i { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--ink); transition: width .5s var(--ease); }
.q { animation: q-in .5s var(--ease); }
.q.back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-26px); } }
.q h1, .q h2 { margin: 0; font: 800 clamp(28px, 4.4vw, 40px)/1.08 var(--display); letter-spacing: -.035em; }
.q .hint { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.q-block { margin-top: 28px; }
.q-label { display: block; margin-bottom: 12px; font-weight: 700; font-size: 16px; }
.q-label small { font-weight: 500; color: var(--ink-3); }
.stars { display: flex; gap: 10px; }
.star {
  flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 12px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: transform .2s var(--ease), border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.star svg { width: 34px; height: 34px; fill: var(--surface-3); stroke: var(--line-2); stroke-width: 1; transition: fill .2s, transform .3s var(--ease); }
.star span { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.star:hover { transform: translateY(-2px); }
.star.lit svg { fill: #F5B400; stroke: #E0A400; }
.star.picked { border-color: var(--ink); }
.star.picked svg { transform: scale(1.12); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 650; font-size: 14.5px; transition: background-color .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent;
}
.chip img { width: 20px; height: 20px; border-radius: 5px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; transition: border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.option b { display: block; font-size: 16px; }
.option span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 1px; }
.option .radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s; }
.option .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.option[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option[aria-checked="true"] .radio { border-color: var(--ink); }
.option[aria-checked="true"] .radio::after { transform: scale(1); }
.field {
  width: 100%; padding: 15px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 16px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.field { min-height: 140px; resize: vertical; line-height: 1.5; }
.field:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px var(--surface-3); }
.counter { display: block; margin-top: 6px; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.nick { position: relative; }
.nick .field { padding-left: 38px; }
.nick::before { content: "@"; position: absolute; left: 17px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--ink-3); }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.logo-card {
  position: relative; display: flex; flex-direction: column; padding: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); text-align: left; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; -webkit-tap-highlight-color: transparent;
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.logo-card .pic { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.logo-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.logo-card .pic.current { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface), var(--surface-2)); }
.logo-card .pic.current img { width: 46%; height: auto; border-radius: 22%; box-shadow: var(--shadow-2); }
.logo-card .cap { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.logo-card .cap b { display: block; font-size: 15.5px; }
.logo-card .cap span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.logo-card .radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; margin-left: auto; }
.logo-card .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.logo-card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-1); }
.logo-card[aria-checked="true"] .radio { border-color: var(--ink); }
.logo-card[aria-checked="true"] .radio::after { transform: scale(1); }
.zoom {
  position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 20, 20, .62); color: #fff; border: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 720px) {
  .logos { grid-template-columns: minmax(0, 1fr); }
  .logo-card { flex-direction: row; align-items: center; }
  .logo-card .pic { width: 118px; flex: none; }
  .logo-card .cap { flex: 1; min-width: 0; }
  .zoom { width: 32px; height: 32px; right: 6px; top: 6px; }
  .stars { gap: 6px; }
  .star { padding: 12px 2px 10px; border-radius: 16px; }
  .star svg { width: 28px; height: 28px; }
  .star span { font-size: 10.5px; }
}
.survey-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.survey-nav .btn-ink { min-width: 160px; }
.survey-error { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--critical) 10%, var(--surface)); color: var(--critical); font-weight: 600; font-size: 14.5px; }
.summary { margin-top: 22px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary span { color: var(--ink-3); }
.summary b { text-align: right; font-weight: 650; }
.done { text-align: center; padding: 40px 0; }
.done .check { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; animation: pop .6s var(--ease); }
.done .check svg { width: 44px; height: 44px; fill: none; stroke: var(--on-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .actions { justify-content: center; margin-top: 26px; }
.done .lead { margin-left: auto; margin-right: auto; }
.done:focus { outline: none; }
.q .hint a { color: var(--ink); }
.q-block.options { display: grid; gap: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Расписание ──────────────────────────────────────────────────────── */
.sch { max-width: 740px; margin: 0 auto; padding-top: 26px; padding-bottom: 70px; }
.sch-title { margin: 6px 0 2px; font: 800 34px/1.08 var(--display); letter-spacing: -.035em; }
.sch-sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.sch-sub .link-button { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sch-sub .link-button:hover { color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 0; background: none; border: 0; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.back:hover { color: var(--ink); }
.search {
  width: 100%; margin: 20px 0 14px; padding: 14px 16px 14px 44px; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E94' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px 50%; background-size: 19px;
}
.search:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px var(--surface-3); }
.list { display: grid; gap: 9px; }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.row:hover { border-color: var(--line-2); }
.row:active { transform: scale(.99); }
.row .logo {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center;
  font-size: 11px; font-weight: 800; overflow: hidden; color: var(--ink-2);
}
.row .logo img { width: 100%; height: 100%; object-fit: contain; }
.row .text { flex: 1; min-width: 0; }
.row .name { display: block; font-weight: 650; font-size: 16px; }
.row .sub { display: block; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 4px; }
.list-more { color: var(--ink-3); font-size: 13px; text-align: center; padding: 8px 0; }
.sch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sch-head .icon-btn { margin-top: 8px; width: 44px; height: 44px; background: var(--surface); }
.sch-sticky {
  position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top)); z-index: 5; margin: 14px calc(var(--gutter) * -1) 0;
  padding: 10px var(--gutter) 10px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.week { display: grid; grid-template-columns: repeat(var(--days, 6), minmax(0, 1fr)); gap: 8px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; min-width: 0; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.day:active { transform: scale(.96); }
.day .dow { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); }
.day .num { font: 760 19px/1.1 var(--display); }
.day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.day .dot.none { background: transparent; }
.day.today { border-color: var(--ink-3); }
.day.selected { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.day.selected .dow { color: var(--on-ink); opacity: .7; }
.day.selected .dot { background: var(--on-ink); }
.day.selected .dot.none { background: transparent; }
.week-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.week-nav button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; color: var(--ink-2); font-weight: 650; font-size: 14px; }
.week-nav button:hover { color: var(--ink); }
.week-nav button[data-action="today"] { padding: 8px 12px; border-radius: 999px; }
.week-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.day-title { margin: 22px 0 12px; font: 760 22px/1.2 var(--display); letter-spacing: -.3px; }
.day-title::first-letter { text-transform: uppercase; }
.lessons { touch-action: pan-y pinch-zoom; min-height: 240px; }
.lessons.slide-next { animation: slide-next .38s var(--ease); }
.lessons.slide-prev { animation: slide-prev .38s var(--ease); }
@keyframes slide-next { from { opacity: 0; transform: translateX(40px); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-40px); } }
.lesson {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 18px; margin-bottom: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1);
}
.lesson .time b { display: block; font-size: 16px; font-weight: 750; }
.lesson .time span { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.lesson .name { font: 680 17px/1.3 var(--display); letter-spacing: -.2px; }
.lesson .meta { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.lesson .teachers { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.lesson.now { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-1); }
.lesson .now-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.lesson .badge { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; background: var(--ink); color: var(--on-ink); }
.lesson .progress { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.lesson .progress i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.lesson .left { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* Смысл типа пары — одна палитра для всех вузов (kind с сервера, а не цвета с сайта вуза). */
.lesson .kind[class*="k-"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin: 0 6px 1px 0; vertical-align: middle; background: var(--kind-color, currentColor);
}
.k-lecture { --kind-color: var(--kind-lecture); }
.k-practice { --kind-color: var(--kind-practice); }
.k-seminar { --kind-color: var(--kind-seminar); }
.k-lab { --kind-color: var(--kind-lab); }
.k-exam { --kind-color: var(--kind-exam); }
.k-credit { --kind-color: var(--kind-credit); }
.k-consultation { --kind-color: var(--kind-consultation); }
.k-coursework { --kind-color: var(--kind-coursework); }
.k-selfstudy { --kind-color: var(--kind-selfstudy); }
.k-internship { --kind-color: var(--kind-internship); }
.k-event { --kind-color: var(--kind-event); }
.lesson .status { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 11px/1.5 var(--font); vertical-align: 2px; }
.lesson .status.s-canceled { background: rgba(179, 38, 30, .12); color: var(--critical); }
.lesson .status.s-replaced, .lesson .status.s-moved { background: rgba(176, 123, 38, .14); color: var(--kind-consultation); }
.lesson.canceled .name { text-decoration: line-through; text-decoration-color: var(--critical); }
.lesson.canceled .name .status { text-decoration: none; }
.lesson .note { color: var(--ink-3); font-size: 13.5px; margin-top: 5px; overflow-wrap: anywhere; }
.lesson .note a { color: inherit; }
.part { margin-top: 9px; padding-left: 11px; border-left: 2px solid var(--line-2); font-size: 14px; }
.part b { font-weight: 700; }
.part span { color: var(--ink-2); }
.part small { display: block; color: var(--ink-3); font-size: 13.5px; }
.gap {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px; margin: -2px 0 12px; border-radius: 20px; border: 1.5px dashed var(--line-2);
  color: var(--ink-2); font-size: 14px;
}
.gap b { display: block; color: var(--ink); font-size: 15px; }
.gap svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-card {
  padding: 36px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
}
.empty-card b { display: block; color: var(--ink); font: 720 19px/1.3 var(--display); margin-bottom: 4px; }
.empty-card .btn { margin-top: 14px; }
.skeleton { height: 96px; margin-bottom: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--surface-2), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.swipe-hint { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .swipe-hint.touch { display: none; } }
@media (hover: none), (pointer: coarse) { .swipe-hint.keys { display: none; } }
.sch .note { margin-top: 26px; }
.sch .eyebrow .link-button { color: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.sch .eyebrow .link-button:hover { color: var(--ink); }
@media (max-width: 420px) {
  .week { gap: 5px; }
  .day { border-radius: 15px; padding: 9px 0 8px; }
  .day .num { font-size: 17px; }
  .lesson { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 15px; border-radius: 20px; }
  .sch-title { font-size: 30px; }
}
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-2); transform: translate(-50%, 160%); transition: transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .big { font: 850 clamp(90px, 18vw, 180px)/1 var(--display); letter-spacing: -.06em; color: var(--surface-3); }
.notfound .actions { justify-content: center; margin-top: 24px; }
.notfound .lead { margin-left: auto; margin-right: auto; }

/* ── Движение по желанию системы ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Бета-версия Android: скачивание APK с сайта */
.beta-card { display: grid; gap: 22px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.beta-main p { margin: 0 0 16px; color: var(--ink-2); max-width: 62ch; }
.beta-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 20px 0 0; }
.beta-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.beta-meta .wide { grid-column: 1 / -1; border-bottom: 0; }
.beta-meta dt { font-size: 13.5px; color: var(--ink-3); }
.beta-meta dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.beta-meta code { font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.beta-steps { margin: 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }
.beta-note { margin: 0; font-size: 14px; color: var(--ink-3); }
.beta-note a { color: inherit; text-decoration: underline; }
@media (max-width: 760px) { .beta-card { padding: 18px; } .beta-meta { grid-template-columns: minmax(0, 1fr); } .beta-meta div { display: flex; justify-content: space-between; gap: 16px; } .beta-meta .wide { display: block; } .beta-meta dd { text-align: right; } .beta-meta .wide dd { text-align: left; margin-top: 6px; } }
