/* Spot Lens — лендинг.
   Раскладка: широкая левая колонка текста и телефон справа; в блоке функций
   телефон закреплён и меняет сцену по мере прокрутки. Телефон лежит прямо на
   странице, без подложки. Акцент один — оранжевый бренда, остальное нейтрально. */

:root {
  --bg: #f6f6f3;
  --bg-2: #ecece8;
  --fg: #141416;
  --fg-2: #4a4a52;
  --muted: #7a7a84;
  --line: #dcdcd7;
  --accent: #ffa800;
  --accent-text: #c77700;
  --accent-ink: #1a1200;
  --accent-soft: rgba(255, 168, 0, 0.16);
  --phone-shadow: 0 40px 80px -20px rgba(20, 20, 22, 0.35), 0 12px 28px -12px rgba(20, 20, 22, 0.25);
  --store: #111114;
  --store-fg: #ffffff;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0f;
    --bg-2: #141418;
    --fg: #f4f4f6;
    --fg-2: #c2c2c9;
    --muted: #8f8f99;
    --line: #26262c;
    --accent-text: #ffb52e;
    --accent-soft: rgba(255, 168, 0, 0.14);
    --phone-shadow: 0 50px 90px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --store: #ffffff;
    --store-fg: #111114;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0f;
  --bg-2: #141418;
  --fg: #f4f4f6;
  --fg-2: #c2c2c9;
  --muted: #8f8f99;
  --line: #26262c;
  --accent-text: #ffb52e;
  --accent-soft: rgba(255, 168, 0, 0.14);
  --phone-shadow: 0 50px 90px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --store: #ffffff;
  --store-fg: #111114;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:not(.is-ready) [data-i18n],
html:not(.is-ready) [data-i18n-html],
html:not(.is-ready) [data-i18n-list],
html:not(.is-ready) [data-i18n-faq] { visibility: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .container {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- типографика ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 { font-size: clamp(38px, 6.4vw, 78px); }
.h2 { font-size: clamp(30px, 4.4vw, 54px); }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.12; }
.lead { color: var(--fg-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 54ch; }
.accent { color: var(--accent-text); }
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- появление ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- шапка ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav .container { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: none; align-items: center; gap: 26px; margin-left: 24px; font-weight: 600; font-size: 15px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  max-width: 38vw;
  text-overflow: ellipsis;
}
@media (min-width: 960px) { .select { max-width: none; } }
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
}
.icon-btn svg { width: 19px; height: 19px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255, 168, 0, 0.35); }
.nav-cta { display: none; }

.menu-btn { display: inline-flex; }
.menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: var(--nav-h);
  padding: 8px 20px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  font-weight: 600;
}
.menu.is-open { display: flex; }
.menu a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: 0; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- бейджи сторов ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--store);
  color: var(--store-fg);
  transition: transform 0.15s, box-shadow 0.2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 500; opacity: 0.8; }
.store b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- телефон (кадр сцены) ---------- */
.hf-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 583.8 / 1226.4;
  background: #0a0a0d;
  box-shadow: var(--phone-shadow);
  isolation: isolate;
  max-width: 100%;
}
.hf-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

/* Атрибут hidden сильнее любого display из классов. */
[hidden] { display: none !important; }

/* ---------- вход и меню пользователя ---------- */
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--fg-2); }
.nav-login { display: none; }
.menu-login { background: none; border: 0; font: inherit; font-weight: 600; color: var(--fg); text-align: left; padding: 0; cursor: pointer; }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; max-width: 180px; }
.user-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.4); display: none; flex-direction: column; z-index: 60; }
.user-menu.is-open .user-drop { display: flex; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; color: var(--fg); cursor: pointer; }
.user-drop a:hover, .user-drop button:hover { background: var(--bg-2); }
.auth-modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.auth-modal::backdrop { background: rgba(10, 10, 13, 0.55); backdrop-filter: blur(4px); }
.auth-form { position: relative; width: min(420px, calc(100vw - 32px)); padding: 32px 28px 28px; overflow: hidden; border-radius: 24px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.auth-close { position: absolute; top: 12px; right: 12px; }
.auth-form::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none; }
.auth-logo { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 12px 30px -12px rgba(255, 168, 0, 0.6); }
.auth-form > * { position: relative; }
.auth-hint { color: var(--muted); font-size: 14px; margin-top: -6px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.auth-form input, .field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 15px; }
.auth-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.auth-error { color: #d6362b; font-size: 14px; font-weight: 600; }
.auth-form .btn { margin-top: 4px; }
@media (min-width: 960px) { .nav-login { display: inline-flex; } .menu-login { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: clip; }
.hero::before {
  /* Лёгкое тёплое свечение за телефоном, не подложка: ширина в половину экрана, край растворён. */
  content: "";
  position: absolute;
  right: -12%;
  top: -14%;
  width: 64vw;
  height: 74vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero .h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.035em; line-height: 0.98; }
/* Акцентное слово: маркерная подсветка прорисовывается после загрузки. */
.hero .accent {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 82% / 0% 0.3em;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s;
}
.is-ready .hero .accent { background-size: 100% 0.3em; }
/* Появление текста каскадом */
.js .hero-copy > .reveal:nth-child(1) { transition-delay: 0s; }
.js .hero-copy > .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .hero-copy > .reveal:nth-child(3) { transition-delay: 0.24s; }
.js .hero-copy > .reveal:nth-child(4) { transition-delay: 0.36s; }

.hero-points { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hero-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--fg-2); min-width: 0;
}
.hero-points li::before, .plan li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23c77700' fill-rule='evenodd' d='M20.264 5.636a1 1 0 0 1 0 1.414L9.657 17.657a1 1 0 0 1-1.414 0l-4.95-4.95a1 1 0 1 1 1.414-1.414l4.243 4.243 9.9-9.9a1 1 0 0 1 1.414 0Z'/></svg>") center / 17px no-repeat;
}
:root[data-theme="dark"] .hero-points li::before, :root[data-theme="dark"] .plan li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffb52e' fill-rule='evenodd' d='M20.264 5.636a1 1 0 0 1 0 1.414L9.657 17.657a1 1 0 0 1-1.414 0l-4.95-4.95a1 1 0 1 1 1.414-1.414l4.243 4.243 9.9-9.9a1 1 0 0 1 1.414 0Z'/></svg>"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-points li::before, :root:not([data-theme="light"]) .plan li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffb52e' fill-rule='evenodd' d='M20.264 5.636a1 1 0 0 1 0 1.414L9.657 17.657a1 1 0 0 1-1.414 0l-4.95-4.95a1 1 0 1 1 1.414-1.414l4.243 4.243 9.9-9.9a1 1 0 0 1 1.414 0Z'/></svg>"); }
}

/* Телефон и парящие карточки вокруг него */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.hero-phone { position: relative; width: min(78vw, 330px); }
.hero-device {
  transform-style: preserve-3d;
  transform: rotate(-3deg) rotateX(calc(var(--py, 0) * -4deg)) rotateY(calc(var(--px, 0) * 6deg));
  transition: transform 0.15s linear;
}
.hero-phone .hf-frame { width: 100%; }
.float {
  position: absolute;
  z-index: 2;
  transform: translate(calc(var(--px, 0) * var(--d) * -1), calc(var(--py, 0) * var(--d) * -1));
  transition: transform 0.15s linear;
}
.float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  animation: floaty 5s ease-in-out infinite;
  animation-play-state: paused;
}
.is-ready .float-card { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); animation-play-state: running; }
.is-ready .float-a .float-card { transition-delay: 1s; animation-delay: 0s; }
.is-ready .float-b .float-card { transition-delay: 1.25s; animation-delay: -1.7s; animation-duration: 6s; }
.is-ready .float-c .float-card { transition-delay: 1.5s; animation-delay: -3.1s; animation-duration: 5.5s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.float-text { display: flex; flex-direction: column; line-height: 1.2; }
.float-text b { font-size: 14px; }
.float-text span { color: var(--muted); font-weight: 600; }
.float-a .float-text { flex-direction: row; gap: 5px; align-items: baseline; }
.avatars { display: flex; }
.avatars img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -9px; }
.avatars img:first-child { margin-left: 0; }
.float-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--accent); color: var(--accent-ink); line-height: 1;
}
.float-date b { font-family: var(--display); font-size: 15px; font-weight: 700; }
.float-date small { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.float-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--accent); }
.float-a { top: 9%; left: -6%; }
.float-b { top: 46%; right: -6%; }
.float-c { bottom: 10%; left: -3%; }

/* Подсказка «листай» */
.hero-scroll { display: none; }

@media (min-width: 960px) {
  .hero { padding: 64px 0 104px; }
  .hero .container { grid-template-columns: 1.08fr 0.92fr; gap: 48px; }
  .hero-visual { justify-content: flex-end; padding-right: 6%; }
  .hero-phone { width: min(100%, 360px); }
  .hero-device { transform: rotate(-4deg) rotateX(calc(var(--py, 0) * -4deg)) rotateY(calc(var(--px, 0) * 6deg)); }
  .float-card { font-size: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; }
  .float-text b { font-size: 15px; }
  .float-a { top: 12%; left: -38%; }
  .float-b { top: 44%; right: -27%; }
  .float-c { bottom: 13%; left: -26%; }
}
@media (min-width: 1360px) {
  .float-b { right: -46%; }
  .hero-scroll {
    display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
    opacity: 0; transition: opacity 0.8s ease 1.6s, color 0.2s;
  }
  .hero-scroll:hover { color: var(--fg); }
  .is-ready .hero-scroll { opacity: 1; }
  .hero-scroll i { display: block; width: 44px; height: 1px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 40% 100%, var(--line); animation: scrollcue 1.8s ease-in-out infinite; }
  @keyframes scrollcue { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
}

/* ---------- бегущая строка видов спорта ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--fg-2); white-space: nowrap; }
.ticker span::before { content: "#"; color: var(--accent); margin-right: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- функции: вертикальный слайдер на весь экран ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 40px; }
@media (min-width: 960px) { .section { padding: 112px 0; } .section-head { margin-bottom: 48px; } }

.slider { padding-top: 72px; }
.slider-head { margin-bottom: 24px; }
.slider-inner { display: flex; flex-direction: column; gap: 72px; }
.slide { display: grid; gap: 28px; align-items: center; }
.step-copy { display: flex; flex-direction: column; gap: 18px; }
.step-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.step-icon svg { width: 26px; height: 26px; }
.slide .lead { font-size: 17px; max-width: none; }
.step-visual { display: flex; justify-content: center; }
.step-visual .hf-frame { width: min(72vw, 300px); }
.slider-runway, .slider-dots { display: none; }

@media (min-width: 960px) {
  .slider { padding-top: 112px; }
  .slider-head { margin-bottom: 0; padding-bottom: 32px; }
  /* Сцена закреплена на экран, под ней «дорожка» из точек остановки: каждая
     точка — один слайд. Прокрутка по дорожке листает слайды. */
  .slider-track { position: relative; }
  .slider-stage {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
    scroll-snap-align: start;
  }
  .slider-runway { display: block; }
  .slider-snap { height: calc(100vh - var(--nav-h)); scroll-snap-align: start; }
  .slider-inner { position: absolute; inset: 0; margin: 0 auto; }
  .slide {
    position: absolute;
    inset: 0;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 24px 0;
    opacity: 0;
    /* Уходящий гаснет быстро, входящий появляется с задержкой: так тексты
       двух слайдов не накладываются посреди перехода. */
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.55s ease 0.22s;
  }
  /* Телефон на всех слайдах стоит на одном месте справа: при смене слайда
     меняется только экран. Двигается лишь текст слева: уходящий поднимается,
     входящий приходит снизу. */
  .slide .step-copy {
    transform: translateY(6vh);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .slide.is-active .step-copy { transform: none; transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s; }
  .slide.is-prev .step-copy { transform: translateY(-6vh); }
  /* На широком экране текст крупнее: рядом с телефоном в полэкрана он иначе теряется. */
  .slide .step-copy { gap: 22px; padding-right: 4%; }
  .slide .step-icon { width: 60px; height: 60px; border-radius: 18px; }
  .slide .step-icon svg { width: 32px; height: 32px; }
  .slide .h3 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
  .slide .lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; }
  .step-visual { justify-content: flex-end; padding-right: 6%; }
  .step-visual .hf-frame { width: min(100%, calc((100vh - var(--nav-h) - 96px) * 0.476), 360px); }
  /* Точки прогресса справа */
  .slider-dots { display: flex; flex-direction: column; gap: 10px; position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
  .slider-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s; }
  .slider-dots i.is-active { background: var(--accent); transform: scale(1.4); }
  /* Жёсткая привязка прокрутки по всей странице */
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-h); }
  .snap { scroll-snap-align: start; }
  #features .slider-head { scroll-margin-top: 48px; }
}

/* ---------- бенто: «Ещё внутри» ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bento-item {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 200px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35); }
.bento-copy { display: flex; flex-direction: column; gap: 8px; }
.bento-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.bento-icon svg { width: 22px; height: 22px; }
.bento-item h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.bento-item p { color: var(--fg-2); font-size: 15px; }
.bento-item .big { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1; color: var(--accent-text); margin-bottom: 4px; }
.bento-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.bento-langs span { padding: 7px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }

/* мини-макеты интерфейса */
.mock { margin-top: auto; font-size: 13px; }
.avatar {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 0.02em;
}
.post { background: var(--bg); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-name { font-weight: 700; }
.post-meta { margin-left: auto; color: var(--muted); }
.post-media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #1b1a20; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.pa { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.pa svg { width: 18px; height: 18px; color: var(--accent); }
.chip-spot { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; }
.chip-spot svg { width: 13px; height: 13px; }
.post-caption { font-size: 13px; color: var(--fg-2); }
.post-caption b { color: var(--fg); }

.tricks { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; flex: 1; }
.tricks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.tricks .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.tricks .done .tick { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231a1200' fill-rule='evenodd' d='M20.264 5.636a1 1 0 0 1 0 1.414L9.657 17.657a1 1 0 0 1-1.414 0l-4.95-4.95a1 1 0 1 1 1.414-1.414l4.243 4.243 9.9-9.9a1 1 0 0 1 1.414 0Z'/></svg>") center / 13px no-repeat; }
.tricks .tname { font-weight: 700; }
.tricks .done .tname { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.tricks .lvl { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.tricks .easy { background: rgba(52, 199, 89, 0.16); color: #1f9d47; }
.tricks .mid { background: var(--accent-soft); color: var(--accent-text); }
.tricks .hard { background: rgba(255, 69, 58, 0.16); color: #d6362b; }

.event { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 16px; padding: 12px; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); line-height: 1; flex: none; }
.ev-date b { font-family: var(--display); font-size: 22px; font-weight: 700; }
.ev-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ev-title { font-weight: 800; font-size: 15px; }
.ev-sub { color: var(--muted); }

.toast { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45); max-width: 440px; }
.toast-icon { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.toast-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.toast-text { font-size: 14px; }

.toggles { display: flex; flex-direction: column; gap: 6px; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-weight: 700; }
.tg em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--accent-text); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-big, .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 2; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); }
  .bento-big { grid-column: span 2; grid-row: span 2; }
  .bento-tall { grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
  .bento-big .post { max-width: none; }
}

/* ---------- PRO ---------- */
.plans { display: grid; gap: 16px; }
.plan {
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan--pro { background: var(--bg-2); border-color: transparent; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.plan-name .crown { width: 24px; height: 24px; color: var(--accent); }
.plan-tag { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); }
.plan ul { display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); }
.plan li::before { margin-top: 1px; }
.plan-note { color: var(--muted); font-size: 14px; margin-top: auto; }
@media (min-width: 960px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { color: var(--fg-2); padding: 0 0 22px; max-width: 64ch; }

/* ---------- финальный призыв ---------- */
.cta { padding: 40px 0 96px; }
.cta .container { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta .h1 { max-width: 14ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.cta-ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg-2); }
.cta-ig svg { width: 20px; height: 20px; }
.cta-ig:hover { color: var(--fg); }

/* ---------- подвал ---------- */
.footer { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store, .reveal, .slide, .slider-dots i { transition: none; }
  .hero-device, .float { transform: none; transition: none; }
  .float-card, .hero-scroll i { animation: none; }
}

/* ---------- блог ---------- */
.container.narrow { max-width: 760px; }
.blog-page { padding-bottom: 80px; }
.blog-page .section-head { position: relative; }
.blog-page .section-head::before {
  content: ""; position: absolute; left: -10%; top: -120px; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none; z-index: -1;
}
.post-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post-card { display: flex; flex-direction: column; border-radius: 24px; background: var(--bg-2); overflow: hidden; color: inherit; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.post-cover { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cover-empty, .link-card-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent) -40%, var(--accent-soft) 40%, var(--bg-2)); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.article-meta time { color: var(--accent-text); }
.post-title { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.post-excerpt { color: var(--fg-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-chips, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; }
.chip-draft { background: var(--accent-soft); color: var(--accent-text); }
.chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.chip button { border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; }
.blog-empty { color: var(--muted); }
/* Первая статья крупно: обложка целиком сверху (на ней может быть текст), подпись под ней */
@media (min-width: 960px) {
  .post-card.is-featured { grid-column: 1 / -1; }
  .post-card.is-featured .post-cover { aspect-ratio: 16 / 9; }
  .post-card.is-featured .post-card-body { padding: 32px 40px 40px; gap: 12px; max-width: 860px; }
  .post-card.is-featured .post-title { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.025em; }
  .post-card.is-featured .post-excerpt { font-size: 17px; -webkit-line-clamp: 3; }
}

/* статья */
.article-progress { position: fixed; left: 0; right: 0; top: var(--nav-h); height: 3px; z-index: 49; pointer-events: none; }
.article-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.article { padding-top: 28px; }
.article-hero { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; }
.article-hero-copy { display: flex; flex-direction: column; gap: 16px; }
.article-hero.has-cover { position: relative; }
.article-cover { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); box-shadow: var(--phone-shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Обложка под заголовком, а не под текстом: на картинке может быть свой текст. */
.article-hero.has-cover .article-cover { order: 3; margin-top: 8px; }
.article-hero .article-hero-copy { width: 100%; max-width: 760px; margin: 0 auto; }
.article-hero .post-back { width: 100%; max-width: 760px; margin: 0 auto; }
}
.post-back { color: var(--muted); font-weight: 700; font-size: 14px; align-self: flex-start; }
.post-back:hover { color: var(--fg); }
.post-author { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.post-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: var(--fg-2); padding-top: 8px; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child::first-letter { font-family: var(--display); font-size: 3.1em; font-weight: 700; float: left; line-height: 0.85; margin: 0.08em 0.12em 0 0; color: var(--fg); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--fg); letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.8em; text-wrap: balance; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 23px; } .prose h4 { font-size: 18px; }
.prose h1 { font-family: var(--display); font-size: 32px; color: var(--fg); }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose img { max-width: 100%; border-radius: 20px; display: block; margin: 1.8em auto; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.5); }
.prose blockquote { position: relative; margin: 1.6em 0; padding: 18px 22px 18px 26px; border-radius: 0 18px 18px 0; border-left: 3px solid var(--accent); background: var(--bg-2); color: var(--fg); font-size: 1.05em; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul li::marker { color: var(--accent); }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--bg-2); padding: 16px 18px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article-share > span { margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.share-btn:hover { border-color: var(--fg-2); }
.share-btn.is-done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.share-btn svg { width: 15px; height: 15px; }
.post-links { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.post-links h2 { margin-top: 16px; }
.link-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
.link-card { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: var(--bg-2); color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.4); }
.link-card-img { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; background: var(--line); }
.link-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-card-body b { font-size: 15px; }
.link-card-body span { color: var(--muted); font-size: 13px; font-weight: 600; }
.related { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 22px; }

/* ---------- редактор ---------- */
.editor-page { padding: 24px 0 80px; }
.editor-gate { max-width: 520px; margin: 80px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; font-size: 18px; }
.editor { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); max-width: 1500px; margin: 0 auto; }
@media (min-width: 1100px) { .editor { grid-template-columns: 300px 1fr; } }
.editor-side { display: flex; flex-direction: column; gap: 12px; }
.editor-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-filters { display: flex; gap: 6px; }
.editor-filters button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer; }
.editor-filters button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.editor-list { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.editor-list li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg-2); cursor: pointer; transition: background 0.2s; }
.editor-list li:hover { background: var(--line); }
.editor-list li.is-active { outline: 2px solid var(--accent); }
.editor-list li .thumb { grid-row: span 2; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--accent-soft), var(--bg)); }
.editor-list li b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editor-list li span, .muted { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.editor-list li .st { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.editor-list li .st.on { background: #34c759; }
.editor-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: var(--nav-h); z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); }
.editor-status { color: var(--muted); font-weight: 700; font-size: 14px; }
.editor-status.ok { color: #1f9d47; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { color: #d6362b; border-color: rgba(214, 54, 43, 0.4); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-ghost.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.editor-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .editor-grid { grid-template-columns: 1fr 320px; } }
.editor-main, .editor-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.field textarea { resize: vertical; line-height: 1.5; }
.field.check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--fg); }
.field.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { color: var(--muted); font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-toolbar button, .md-upload { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); cursor: pointer; }
.md-toolbar button:hover, .md-upload:hover { border-color: var(--fg-2); }
.md-uploading { color: var(--accent-text); font-size: 13px; }
.md-split { display: grid; grid-template-columns: 1fr; gap: 14px; }
.md-split.is-live { grid-template-columns: 1fr 1fr; }
@media (max-width: 1099px) { .md-split.is-live { grid-template-columns: 1fr; } }
[data-ed-body] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; min-height: 480px; tab-size: 2; }
[data-ed-body].is-drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.live-preview { display: none; min-height: 480px; max-height: 70vh; overflow: auto; padding: 22px 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.md-split.is-live .live-preview { display: block; }
.live-preview .prose { font-size: 16px; padding-top: 0; }
.md-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.cover-box { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { color: var(--muted); }
.picker { position: relative; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.picker li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.picker li:hover { background: var(--bg-2); }
.picker li img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; grid-row: span 2; }
.picker li b { font-size: 14px; color: var(--fg); }
.picker li span { color: var(--muted); font-size: 12px; }
.preview-modal { border: 0; padding: 0; width: min(1100px, calc(100vw - 32px)); max-height: 90vh; border-radius: 24px; background: var(--bg); color: var(--fg); overflow: auto; }
.preview-modal::backdrop { background: rgba(10, 10, 13, 0.55); }
.preview-modal .auth-close { position: sticky; top: 12px; margin-left: calc(100% - 52px); z-index: 2; }
.preview-modal .article-progress { display: none; }

/* ---------- видео в статьях ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 20px; overflow: hidden; background: #0a0a0d; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.5); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
