/* ═════════════════════════════════════════════════════════════════════
   SXfont — сайт. Светлая тема, одна на весь сайт: фоны-пейзажи
   подобраны под неё, тёмной версии у картинок нет.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  /* фон и карточки — как у cooldock.app: тёплый светло-серый фон
     и плоские карточки светлее его, без тени и рамки */
  --bg: #EDECEB;
  --bg-2: #E5E4E2;
  --card: #F7F7F7;
  --white: #fff;
  --ink: #0E0E0C;
  --ink-2: #4E4D48;
  --ink-3: #686761; /* светлее (#8A8983) мелкий текст не дотягивал до контраста 4.5:1 */
  --line: rgba(14, 14, 12, .08);
  --line-2: rgba(14, 14, 12, .14);
  /* лайм — цвет иконки приложения; на белом им только заливают, текстом он не читается */
  --lime: #BFFF00;
  --lime-deep: #4F6B00;
  --bolt-on: #8BD000;
  /* системный синий macOS — в копии окна, как в самом приложении */
  --blue: #0A84FF;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --shadow-1: 0 0 0 1px rgba(0,0,0,.045), 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -14px rgba(0,0,0,.12);
  --shadow-2: 0 0 0 1px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.04), 0 30px 70px -28px rgba(0,0,0,.28);
  --shadow-win: 0 0 0 1px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05), 0 30px 80px -24px rgba(24,34,12,.40), 0 70px 140px -50px rgba(24,34,12,.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* выход без рывка в конце — так двигаются окна в macOS */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 136px);
}

/* ─────────────────────────────  БАЗА  ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: var(--bg);
}
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

/* Lenis — плавная прокрутка; без этих правил она дёргается на якорях */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* текст только для экранного диктора: заголовок на экране разбит на буквы для анимации */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; flex: none; display: block; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(980px + var(--gut) * 2); }

/* ─────────────────────────────  ТИПОГРАФИКА  ───────────────────────────── */
.h2 {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
/* подзаголовки и вопросы делятся на ровные строки, без одинокого слова внизу */
h3, .qa__q { text-wrap: balance; }
.hero__hint, .compare__hint, .gf__unit, .plan__small, .foot__base { text-wrap: pretty; }
.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 15px;
  font-weight: 500;
  /* темнее --ink-3: на более тёмном фоне блока цены нужен контраст 4.5:1 */
  color: #5C5B56;
  letter-spacing: -.01em;
}

/* гарнитуры для образцов — все с кириллицей, лицензия OFL (Google Fonts) */
.f-head       { font-family: var(--font); font-weight: 600; letter-spacing: -.052em; }
.f-playfair   { font-family: "SpPlayfair", serif; font-weight: 600; }
.f-playfair-i { font-family: "SpPlayfair", serif; font-weight: 600; font-style: italic; }
.f-unbounded  { font-family: "SpUnbounded", sans-serif; font-weight: 600; }
.f-oswald     { font-family: "SpOswald", sans-serif; font-weight: 500; }
.f-yeseva     { font-family: "SpYeseva", serif; }
.f-ruslan     { font-family: "SpRuslan", serif; }
.f-bitter     { font-family: "SpBitter", serif; font-weight: 500; }
.f-marmelad   { font-family: "SpMarmelad", sans-serif; }
.f-tektur     { font-family: "SpTektur", sans-serif; font-weight: 500; }
.f-kurale     { font-family: "SpKurale", serif; }
.f-alegreya-i { font-family: "SpAlegreya", serif; font-weight: 500; font-style: italic; }
.f-underdog   { font-family: "SpUnderdog", serif; }
.f-geologica  { font-family: "SpGeologica", sans-serif; font-weight: 300; }
.f-caveat     { font-family: "SpCaveat", cursive; font-weight: 600; }
.f-russo      { font-family: "SpRusso", sans-serif; }
.f-lobster    { font-family: "SpLobster", cursive; }
.f-comfortaa  { font-family: "SpComfortaa", sans-serif; font-weight: 600; }
.f-press      { font-family: "SpPress", monospace; }
.f-rubikmono  { font-family: "SpRubikMono", sans-serif; }
.f-manrope    { font-family: "SpManrope", sans-serif; font-weight: 800; }
.f-unicase    { font-family: "SpUnicase", serif; font-weight: 600; }
/* Soyuz Grotesk — шрифт автора SXfont (папка «97. Soyuz»), свой, не из Google Fonts */
.f-soyuz      { font-family: "SpSoyuz", sans-serif; font-weight: 700; }

/* ─────────────────────────────  КНОПКИ  ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition-property: transform, background-color, box-shadow;
  transition-duration: .25s;
  transition-timing-function: var(--ease);
}
.btn:active { transform: scale(.96); }
.btn .ic { width: 18px; height: 18px; }
/* яблоко визуально тяжелее снизу и с листиком сверху: чуть меньше и на пиксель выше центра */
.btn .ic--apple { width: 17px; height: 17px; transform: translateY(-1px); }
.btn--dark {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.25), 0 10px 24px -10px rgba(0,0,0,.45);
}
.btn--dark:hover { background: #2A2A27; }
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.btn--light:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05), 0 14px 30px -14px rgba(0,0,0,.2); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; gap: 7px; }
.btn--sm .ic { width: 16px; height: 16px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ─────────────────────────────  ШАПКА  ─────────────────────────────
   Меню-«чёлка»: чёрное, свисает от верхнего края экрана, как вырез
   камеры в MacBook. Вогнутые «ушки» по бокам рисуют ::before/::after. */
.nav {
  position: fixed; z-index: 100;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding-inline: 18px;
  pointer-events: none;
}
.nav__pill {
  position: relative;
  pointer-events: auto;
  display: flex; align-items: center; gap: 2px;
  padding: 7px 7px 7px 12px;
  /* 25 = 18 (скругление кнопки «Скачать») + 7 (отступ до края): изгибы параллельны */
  border-radius: 0 0 25px 25px;
  background: #0A0A0A;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.45);
}
.nav__pill::before, .nav__pill::after {
  content: ""; position: absolute; top: 0;
  width: 18px; height: 18px;
  pointer-events: none;
}
.nav__pill::before { left: -18px; background: radial-gradient(circle at 0 100%, transparent 17.5px, #0A0A0A 18px); }
.nav__pill::after  { right: -18px; background: radial-gradient(circle at 100% 100%, transparent 17.5px, #0A0A0A 18px); }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -.02em;
  padding-right: 10px;
}
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.nav .brand { color: #fff; }
.nav .brand img { box-shadow: none; }
.nav__links { display: flex; gap: 2px; margin-right: 6px; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-on { color: #fff; background: rgba(255,255,255,.1); }
.nav .btn--dark { background: #fff; color: #0A0A0A; box-shadow: none; }
.nav .btn--dark:hover { background: #E8E8E4; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__pill { gap: 10px; }
}

/* ─────────────────────────────  ПЕРВЫЙ ЭКРАН  ───────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(108px, 14vh, 150px);
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: clip;
}
.hero__bg {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  /* картинка кончается вместе с низом окна приложения (--bgh ставит site.js по его положению);
     подпись под окном и дальше — чистый фон страницы */
  height: var(--bgh, 92%);
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;
  will-change: transform;
}
/* телефон: область высокая и узкая, картинку держим выше — в кадре небо и холмы, а не луг */
/* низ картинки плавно растворяется в фоне страницы */
.hero__bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 26%;
  background: linear-gradient(to bottom, rgba(237,236,235,0), var(--bg) 92%);
}
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 18px;
}
.hero__title {
  /* гарнитуры слова «шрифт» подогнаны по ширине, строка не распирается:
     хватает 6.4vw, на телефоне упор в 34px */
  font-size: clamp(34px, 6.4vw, 84px);
  font-weight: 600;
  letter-spacing: -.052em;
  line-height: .98;
}
.hero__line { display: block; white-space: nowrap; }
/* слово-хамелеон. Невидимый ghost держит место и высоту строки; слои
   лежат поверх него и в раскладку не входят, поэтому ни соседние слова,
   ни всё, что ниже заголовка, не двигаются. Линию шрифта каждого слоя
   выравнивает JS (у гарнитур разная высота букв). */
.swap { position: relative; display: inline-block; vertical-align: baseline; margin-right: .03em; } /* запас: широкие гарнитуры чуть шире призрака */
.swap__ghost { visibility: hidden; }
.swap__base { display: inline-block; width: 0; height: 0; }
.swap__word {
  position: absolute; left: -50%; right: -50%; top: 0;
  text-align: center; white-space: nowrap;
  opacity: 0;
  letter-spacing: -.015em;
  transform-origin: 50% 65%;
  will-change: transform, opacity, filter;
}
.swap__word.is-on { opacity: 1; }
.swap__word.f-head { letter-spacing: -.052em; }
.swap__probe { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; letter-spacing: -.015em; pointer-events: none; }
.swap__probe.f-head { letter-spacing: -.052em; }

.hero__lead {
  margin-top: 22px;
  /* в две строки */
  max-width: 37em;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__meta {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 14px; color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 18px; }
@media (max-width: 480px) {
  .hero__meta { font-size: 13px; gap: 6px 14px; }
  .hero__meta li { gap: 14px; }
}
.hero__meta li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; margin-left: -9px; margin-right: -9px; }
/* на узком телефоне третий пункт уходил на вторую строку и начинал её с точки */
@media (max-width: 389px) {
  .hero__meta li:last-child { flex-basis: 100%; justify-content: center; }
  .hero__meta li:last-child::before { display: none; }
}

.hero__stage {
  margin-top: clamp(48px, 6vw, 80px);
  padding-inline: var(--gut);
  perspective: 2200px;
}
.hero__hint {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  /* подпись лежит на траве картинки: серому там не хватает контраста */
  font-size: 14px; color: var(--ink);
  text-align: center;
}
.hero__hint .ic { width: 15px; height: 15px; color: var(--ink-2); }
/* на телефоне подпись в несколько строк: значок стоит в тексте, а не отдельно слева */
@media (max-width: 640px) {
  .hero__hint { display: block; }
  .hero__hint .ic { display: inline-block; vertical-align: -2px; margin-right: 6px; }
}

/* ───────────────────  ЖИВАЯ КОПИЯ ОКНА ПРИЛОЖЕНИЯ  ─────────────────── */
.app {
  --side: 226px;
  --pv: 22px;
  position: relative;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  width: min(1180px, 100%);
  height: clamp(520px, 50vw, 690px);
  margin-inline: auto;
  background: #FDFDFD;
  /* скругления вложены: окно 30 = панель инструментов 16 + отступ 14;
     панель 16 = кнопки внутри 9 + отступ 7 */
  border-radius: 30px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
  font-family: var(--mac);
  font-size: 13px;
  color: #1D1D1F;
  text-align: left;
  transform-origin: 50% 0%;
  will-change: transform;
}
.app .ic { width: 16px; height: 16px; }

.app__side {
  background: #F7F7F7;
  border-right: 1px solid #ECECEC;
  padding: 14px 10px;
  overflow: hidden;
}
/* кружки отодвинуты от дуги угла окна (30): от неё до кружка столько же воздуха, сколько до края */
.app__lights { display: flex; gap: 8px; padding: 4px 8px 0; }
.app__lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.app__lights i:nth-child(2) { background: #FEBC2E; }
.app__lights i:nth-child(3) { background: #28C840; }
.app__sidetop { display: flex; justify-content: flex-end; padding: 8px 8px 12px; color: #8E8E93; }
.app__sidetop .ic { width: 18px; height: 16px; }
.app__list { display: grid; gap: 1px; }
.app__list--sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ECECEC; }
.app__list li {
  display: flex; align-items: center; gap: 10px;
  height: 30px; padding: 0 10px;
  border-radius: 8px;
  color: #262626; white-space: nowrap;
}
.app__list li > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.app__list li.is-on { background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.05); }
.app__list li .ic { color: #3A3A3C; }
.app__list li img { width: 16px; height: 16px; }
.app__list b { font-weight: 400; font-size: 11.5px; color: #9A9A9E; font-variant-numeric: tabular-nums; }
.app__list b#appActive { color: #5C8A00; font-weight: 600; }
.app__list--tags i { width: 16px; text-align: center; font-style: normal; color: #A1A1A6; font-size: 14px; }
.app__list--src li { padding-left: 18px; position: relative; }
.app__list--src li.has-kids::before {
  content: ""; position: absolute; left: 6px; top: 50%;
  width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.4px solid #A1A1A6; border-bottom: 1.4px solid #A1A1A6;
  transform: rotate(-45deg);
}
.app__label { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; color: #9A9A9E; }

.app__main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 0; background: #FDFDFD; }
.app__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #EDEDED, 0 1px 2px rgba(0,0,0,.03);
  flex: none;
}
.app__size { display: flex; align-items: center; gap: 7px; padding: 0 6px; color: #8E8E93; font-size: 11px; }
.app__size .big { font-size: 15px; }
.app__size input {
  -webkit-appearance: none; appearance: none;
  width: 84px; height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--blue) var(--fill, 42%), #E3E3E6 var(--fill, 42%));
  cursor: pointer; margin: 0;
}
.app__size input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.25);
}
.app__size input::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.25);
}
.app__views { display: flex; padding: 2px; border-radius: 9px; background: #F2F2F3; }
.app__views span { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 7px; color: #6E6E73; }
.app__views span.is-on { background: #fff; color: #1D1D1F; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.app__views .ic { width: 15px; height: 15px; }
.app__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 3px;
  height: 32px; padding: 0 10px;
  border-radius: 9px;
  background: #F3F3F4;
  box-shadow: 0 0 0 0 rgba(10,132,255,0);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
  cursor: text;
}
.app__field:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4.5px rgba(10,132,255,.22); }
.app__field .ic { color: #6E6E73; }
.app__field .ic--chev { width: 10px; height: 10px; margin-right: 6px; }
.app__field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 13px var(--mac); color: #1D1D1F;
  padding: 0;
}
.app__field input::placeholder { color: #A1A1A6; }
/* iOS увеличивает всю страницу при нажатии на поле с текстом мельче 16px */
@media (hover: none) { .app__field input { font-size: 16px; } }
.app__btn, .app__search {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  background: #F3F3F4; color: #1D1D1F; font-weight: 500; white-space: nowrap;
}
.app__btn .ic { width: 15px; height: 15px; }
.app__search { width: 150px; color: #A1A1A6; font-weight: 400; }
.app__search .ic { width: 14px; height: 14px; }

.app__grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 172px;
  gap: 12px;
  padding: 12px 0 24px;
  overflow: hidden;
  /* нижний ряд уходит под край, как в прокручиваемом окне */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.045), 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .25s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 6px 18px -8px rgba(0,0,0,.16); }
.card__pv {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 18px 6px;
  color: #111;
  font-size: var(--pv);
  line-height: 1.2;
}
.card__pv span {
  display: -webkit-box; max-width: 100%;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: center;
  line-height: 1.18;
  padding: .1em .02em;
  overflow-wrap: anywhere;
}
/* у широких и пиксельных гарнитур своя «нормальная» высота — выравниваем на глаз */
.card__pv.f-press     { font-size: calc(var(--pv) * .56); }
.card__pv.f-rubikmono { font-size: calc(var(--pv) * .72); }
.card__pv.f-unbounded { font-size: calc(var(--pv) * .84); }
.card__pv.f-caveat    { font-size: calc(var(--pv) * 1.22); }
.card__pv.f-ruslan    { font-size: calc(var(--pv) * 1.02); }
.card__pv.f-oswald    { font-size: calc(var(--pv) * 1.02); }
.card__meta {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid #F2F2F2;
  font-size: 11.5px; color: #3A3A3C;
}
.card__meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card__meta span + span { flex: none; font-family: var(--mono); font-size: 11px; color: #6E6E73; } /* в приложении #6E6E6E; прежний #8E8E93 был бледнее и не проходил контраст */

.card__fav, .card__bolt {
  position: absolute; top: 6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; padding: 0; background: transparent;
  color: #9A9AA0; cursor: pointer;
  opacity: 0;
  transition: opacity .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
/* зона нажатия 40×40: сама иконка маленькая, промахиваться обидно */
.card__fav::after, .card__bolt::after { content: ""; position: absolute; inset: -6px; }
.card__fav { left: 6px; }
.card__bolt { right: 6px; }
.card__fav .ic { width: 14px; height: 13px; }
.card__bolt .ic { width: 12px; height: 16px; }
.card:hover .card__fav, .card:hover .card__bolt,
.card__fav:focus-visible, .card__bolt:focus-visible,
.card__bolt[aria-pressed="true"], .card__fav[aria-pressed="true"] { opacity: 1; }
.card__fav:hover, .card__bolt:hover { color: #1D1D1F; }
.card__fav:active, .card__bolt:active { transform: scale(.9); }
/* контур ↔ заливка: плавная смена, а не щелчок (scale .25→1, blur 4→0) */
.card__fav .ic, .card__bolt .ic { grid-area: 1 / 1; transition: opacity .25s cubic-bezier(.2,0,0,1), transform .25s cubic-bezier(.2,0,0,1), filter .25s cubic-bezier(.2,0,0,1); }
.card__fav .f, .card__bolt .f { opacity: 0; transform: scale(.25); filter: blur(4px); }
.card__fav[aria-pressed="true"] .o, .card__bolt[aria-pressed="true"] .o { opacity: 0; transform: scale(.25); filter: blur(4px); }
.card__fav[aria-pressed="true"] .f, .card__bolt[aria-pressed="true"] .f { opacity: 1; transform: none; filter: none; }
.card__bolt[aria-pressed="true"] { color: var(--bolt-on); }
.card__fav[aria-pressed="true"] { color: #FF375F; }

/* отклик молнии, как в приложении (NativeCardItem): значок вздрагивает, шесть точек разлетаются */
.card__bolt i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 2px; background: #A3D902; opacity: 0; pointer-events: none; }
.card__bolt.is-burst i { animation: boltDot .6s cubic-bezier(.2,.7,.3,1) var(--d) both; }
.card__bolt.is-burst .f { animation: boltPop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes boltDot {
  from { opacity: 1; transform: rotate(var(--a)) translateX(4px); }
  to { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)); }
}
@keyframes boltPop { 50% { transform: scale(1.3); } }

@media (max-width: 1100px) {
  .app__search { display: none; }
}
@media (max-width: 960px) {
  .app { --side: 0px; grid-template-columns: minmax(0, 1fr); height: clamp(440px, 72vw, 600px); }
  .app__side { display: none; }
  .app__btn { display: none; }
}
@media (max-width: 640px) {
  .app { height: 470px; border-radius: 14px; }
  .app__main { padding: 10px 10px 0; }
  .app__views { display: none; }
  .app__size input { width: 56px; }
  .app__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 128px; gap: 8px; }
  .app { --pv: 19px; }
  .card__meta { padding: 8px 10px 9px; font-size: 10.5px; }
  .card__meta span + span { display: none; }
}
/* на самых узких телефонах ползунок короче: иначе фраза не помещается в поле */
@media (max-width: 380px) { .app__size input { width: 44px; } }
/* без наведения (телефон, планшет) иконки видны всегда, иначе молнию не найти */
@media (hover: none) {
  .card__fav, .card__bolt { opacity: 1; }
}

/* ─────────────────────────────  ИСТОРИЯ  ───────────────────────────── */
.story { padding: var(--sec) 0 calc(var(--sec) * .5); }
.story .eyebrow { margin-bottom: 16px; }
.story__text {
  font-size: clamp(28px, 3.7vw, 52px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-wrap: pretty;
}
.story__text .w { display: inline; }
.story__answer {
  margin-top: .9em;
  font-size: clamp(28px, 3.7vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.16;
}
/* лаймовый маркер — как «активно» в приложении; рисуется слева направо */
.mark {
  /* подчёркнутая фраза не рвётся на две строки: иначе маркер выходил «расчёской» */
  white-space: nowrap;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: var(--mk, 100%) 38%;
  padding: 0 .06em;
}
/* самые узкие телефоны: неразрывная фраза с маркером не помещалась в строку */
@media (max-width: 340px) { .story__answer { font-size: 25px; } }

/* ─────────────────────────────  СЕКЦИИ  ───────────────────────────── */
.sec { padding: var(--sec) 0; position: relative; }
.sec__head { display: grid; gap: 16px; max-width: 760px; }
.sec__head .lead { margin-top: 4px; }
.sec__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec__head--center .lead { margin-inline: auto; }

/* ─────────────────────────────  ШАГИ  ───────────────────────────── */
/* Заголовок стоит в левой колонке над шагами, а картинка справа начинается
   вровень с ним: справа от заголовка нет пустоты. Шаги прижаты к верху своих
   отрезков (не по центру), поэтому под заголовком нет провала.
   Высота отрезка нужна, чтобы при прокрутке шаги по очереди проходили середину экрана.
   У последнего шага запас ровно на высоту картинки: она стоит, пока читают третий шаг,
   и уходит, когда его текст поднимется вровень с её верхним краем. */
.steps {
  --sh: min(74vh, 660px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
}
.steps__list { margin-top: clamp(40px, 4.5vw, 64px); }
.step {
  min-height: 40vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-bottom: clamp(40px, 5vw, 64px);
  opacity: .28;
  transition: opacity .6s var(--ease);
}
.step:last-child { min-height: var(--sh); padding-bottom: 0; }
.step.is-on { opacity: 1; }
.step__n {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step.is-on .step__n { background: var(--lime); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 20px -8px rgba(120,170,0,.6); }
.step h3 {
  margin: 20px 0 12px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600; letter-spacing: -.04em; line-height: 1.08;
}
.step p { font-size: 18px; color: var(--ink-2); max-width: 25em; text-wrap: pretty; }

.steps__stage {
  position: sticky;
  top: calc(50vh - var(--sh) / 2);
  height: var(--sh);
  align-self: start;
}
.scene {
  position: relative; height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: #CDC6AE;
}
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 7px 9px; border-radius: 999px;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.scene__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(0,0,0,.22); transition: width .5s var(--ease), background-color .5s var(--ease); }
.scene__dots i.is-on { width: 20px; background: var(--ink); }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps__stage { display: none; }
  .steps__list { display: grid; gap: 56px; }
  /* :last-child — чтобы перебить высоту под липкую картинку: на телефоне её нет, оставался пустой провал */
  .step, .step:last-child { min-height: 0; opacity: 1; padding: 0; }
  .step .step__n { background: var(--lime); }
}

/* ─────────────────────────────  ОБЛОЖКИ  ───────────────────────────── */
.seg {
  position: relative;
  display: inline-flex; padding: 4px; margin-top: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
}
.seg button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.seg button .ic { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute; top: 4px; left: 0; height: 40px;
  border-radius: 999px; background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.14);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.showcase {
  position: relative;
  margin-top: clamp(32px, 4vw, 52px);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: #C9D3B5;
}
.showcase__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* В рамке — окно SXfont, нарисованное кодом (app-window.css), с двумя видами:
   «Карточки» и «Обложки». Окно 1400×748 «проектных» пикселей вписано по ширине
   (--ww) и стоит по центру блока по вертикали (--sh — высота блока).
   cqw — доля ширины блока .showcase. */
.showcase { container-type: inline-size; --sh: 56.25cqw; --ww: 88cqw; }
.showcase__win {
  position: absolute;
  left: calc((100cqw - var(--ww)) / 2);
  width: var(--ww);
  height: calc(var(--ww) * 748 / 1400);
  top: calc((var(--sh) - var(--ww) * 748 / 1400) / 2);
  will-change: transform;
}

.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 20px);
  margin-top: clamp(16px, 1.4vw, 20px);
}

@media (max-width: 760px) {
  .showcase { aspect-ratio: 16 / 10; }
  .showcase { --sh: 62.5cqw; --ww: 92cqw; }
}

/* ─────────────────────────────  GOOGLE FONTS  ───────────────────────────── */
.gf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  /* по центру, а не по низу: иначе при высоком тексте справа над цифрой пусто */
  align-items: center;
}
.gf__logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.bignum {
  display: grid;
  margin-top: 18px;
  font-size: clamp(100px, 15vw, 210px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .82;
  font-variant-numeric: tabular-nums;
  margin-left: -.05em;
}
/* ghost держит ширину итогового числа, счётчик лежит в той же ячейке */
.bignum > span { grid-area: 1 / 1; }
.bignum__ghost { visibility: hidden; }
.gf__unit { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.gf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gf__chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.gf__chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
/* цвета точек из логотипа Google Fonts */
.gf__chip--blue i { background: #4285F4; }
.gf__chip--green i { background: #34A853; }
.gf__chip--yellow i { background: #FBBC04; }
.gf__text { display: grid; gap: 18px; padding-bottom: 8px; }
@media (max-width: 860px) {
  .gf { grid-template-columns: minmax(0, 1fr); }
}
/* на телефоне три пилюли не влезали в ширину и ломались «одна сверху, две снизу»:
   теперь они одной строкой до краёв экрана, листаются пальцем, вторая выглядывает из-за края */
@media (max-width: 640px) {
  .gf__chips {
    flex-wrap: nowrap; gap: 8px;
    margin: 20px calc(-1 * var(--gut)) 0; padding: 6px var(--gut);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gut);
  }
  .gf__chips::-webkit-scrollbar { display: none; }
  .gf__chip { scroll-snap-align: start; height: 36px; font-size: 14px; }
}

/* запас сверху и снизу: маска и overflow режут всё за краем блока,
   и без него тень «пилюль» обрывалась резкой линией */
.marquee {
  margin-top: calc(clamp(44px, 5.5vw, 72px) - 20px);
  margin-bottom: -48px;
  padding: 20px 0 48px;
  display: grid; gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row {
  display: flex; width: max-content;
  animation: mq 140s linear infinite; /* ряд продублирован в site.js: путь вдвое длиннее, скорость прежняя */
  animation-play-state: paused;
}
.marquee__row--rev { animation-direction: reverse; animation-duration: 160s; }
/* вне экрана лента стоит: бесконечная анимация иначе держит браузер в работе */
.marquee.is-live .marquee__row { animation-play-state: running; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq {
  display: inline-flex; align-items: center;
  height: 84px; padding: 0 34px; margin-right: 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: 34px; line-height: 1; white-space: nowrap;
}
.mq.f-press { font-size: 20px; }
.mq.f-rubikmono { font-size: 26px; }
.mq.f-unbounded { font-size: 29px; }
.mq.f-caveat { font-size: 40px; }
@media (max-width: 640px) {
  .mq { height: 64px; padding: 0 24px; font-size: 26px; }
  .mq.f-press { font-size: 15px; }
}

/* ─────────────────────────────  ВОЗМОЖНОСТИ  ───────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4.5vw, 56px);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }
/* радиусы концентричные: 32 снаружи = 22 внутри + 10 отступа */
.tile {
  display: flex; flex-direction: column;
  padding: 10px;
  border-radius: var(--r-xl);
  background: var(--card);
  overflow: hidden;
}
.tile__vis {
  position: relative;
  height: 250px;
  border-radius: 22px;
  background: var(--bg-2);
  overflow: hidden;
}
/* смена кадра в плитке (под курсор и обратно): картинку на миг закрывает её же фон, и кадр меняется без скачка */
.tile__vis::after { content: ""; position: absolute; inset: 0; z-index: 5; background: inherit; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.tile__vis.is-swap::after { opacity: 1; }
.tile__txt { padding: 20px 18px 16px; }
.tile h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
/* только подпись под картинкой: абзацы внутри мини-интерфейсов (.tile__vis) — свои */
.tile__txt p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-6 { grid-column: span 2; }
  /* плиток пять: последняя стояла одна, справа была дыра */
  .bento > .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3, .span-6 { grid-column: span 1; }
}

/* — теги: карточку перетаскивают на тег — */
.vis-tags { background: linear-gradient(160deg, #EEF2E4, #E6E9DE); }
.vt__side {
  position: absolute; left: 22px; top: 22px; bottom: 22px; width: 56%;
  padding: 14px 10px;
  border-radius: 14px;
  background: #F7F7F7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 24px -12px rgba(0,0,0,.2);
  font-family: var(--mac); font-size: 13px;
}
.vt__label { font-size: 11px; font-weight: 600; color: #9A9A9E; margin: 0 8px 6px; }
.vt__tag {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px; border-radius: 8px;
  color: #262626;
}
.vt__tag i { font-style: normal; color: #A1A1A6; width: 12px; text-align: center; }
.vt__tag b { margin-left: auto; font-weight: 400; font-size: 11.5px; color: #9A9A9E; display: grid; }
.vt__tag b span { grid-area: 1 / 1; }
.vt__tag .n2 { opacity: 0; }
.vt__card {
  position: absolute; right: 24px; top: 58px;
  width: 130px; padding: 16px 12px 10px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 14px 30px -10px rgba(0,0,0,.28);
  text-align: center;
}
.vt__card span { display: block; font-size: 28px; line-height: 1.1; }
.vt__card small { display: block; margin-top: 8px; font: 10px var(--mac); color: #8E8E93; text-align: left; }
.vt__cursor { position: absolute; width: 22px; height: 22px; right: 60px; top: 110px; }
.is-live .vt__card   { animation: vtCard 4.2s var(--ease-io) infinite; }
.is-live .vt__cursor { animation: vtCursor 4.2s var(--ease-io) infinite; }
.is-live .vt__tag--target { animation: vtTarget 4.2s linear infinite; }
.is-live .vt__tag--target .n1 { animation: vtN1 4.2s linear infinite; }
.is-live .vt__tag--target .n2 { animation: vtN2 4.2s linear infinite; }
@keyframes vtCard {
  0%, 14%  { transform: none; opacity: 1; }
  48%      { transform: translate(-128px, 24px) scale(.62) rotate(-3deg); opacity: .95; }
  58%      { transform: translate(-128px, 24px) scale(.3); opacity: 0; }
  86%      { transform: none; opacity: 0; }
  100%     { transform: none; opacity: 1; }
}
@keyframes vtCursor {
  0%, 10%  { transform: translate(20px, 20px); opacity: 0; }
  14%      { transform: none; opacity: 1; }
  48%      { transform: translate(-128px, 24px); opacity: 1; }
  66%      { transform: translate(-128px, 24px); opacity: 1; }
  80%, 100%{ transform: translate(-100px, 60px); opacity: 0; }
}
@keyframes vtTarget {
  0%, 36%  { background: transparent; color: #262626; }
  44%, 56% { background: var(--blue); color: #fff; }
  64%, 100%{ background: transparent; color: #262626; }
}
@keyframes vtN1 { 0%, 56% { opacity: 1; } 58%, 94% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes vtN2 { 0%, 56% { opacity: 0; } 58%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
.is-live .vt__tag--target i { animation: vtHash 4.2s linear infinite; }
@keyframes vtHash { 0%, 36% { color: #A1A1A6; } 44%, 56% { color: rgba(255,255,255,.8); } 64%, 100% { color: #A1A1A6; } }
.is-live .vt__tag--target b { animation: vtHash 4.2s linear infinite; }
/* узкая плитка: карточка закрывала числа у тегов. На 481–680 плитка широкая, там всё помещается и так */
@media (max-width: 480px), (min-width: 681px) and (max-width: 1000px) {
  .vt__side { width: 48%; padding-inline: 6px; }
  .vt__tag { padding: 0 8px; gap: 6px; }
  .vt__card { right: 16px; width: 112px; }
}

/* — фильтры — */
.vis-filter { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 26px; background: linear-gradient(160deg, #F1EFE8, #E9E7E0); }
.vf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  cursor: pointer;
  transition-property: background-color, color, transform, box-shadow;
  transition-duration: .25s; transition-timing-function: var(--ease);
}
.chip b { font-weight: 500; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .25s var(--ease); }
.chip:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 4px 10px -4px rgba(0,0,0,.14); }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.is-on b { color: var(--lime); }
.vf__res { font-size: 15px; color: var(--ink-2); }
.vf__res b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* узкая плитка: шесть кнопок и итог не влезали в 250 px и обрезались сверху и снизу */
@media (max-width: 1000px) {
  .vis-filter { padding: 18px; gap: 12px; }
  .vf__chips { gap: 6px; }
  .vis-filter .chip { height: 34px; padding: 0 12px; font-size: 14px; }
}
@media (max-width: 680px) {
  .tile__vis.vis-filter { height: auto; min-height: 250px; }
}

/* — поиск — */
.vis-search { padding: 26px; background: linear-gradient(160deg, #EDF0F3, #E6E8EC); }
.vs__field {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 5px rgba(10,132,255,.18);
  font: 16px var(--mac);
}
.vs__field .ic { width: 16px; height: 16px; color: #8E8E93; }
.vs__caret { width: 1.5px; height: 20px; background: var(--blue); margin-left: -8px; animation: blink 1s steps(2) infinite; animation-play-state: paused; }
.is-live .vs__caret { animation-play-state: running; }
/* в покое каретка стоит и видна: пауза могла застать её в невидимой фазе мигания */
.vis-search:not(.is-live) .vs__caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.vs__res { margin-top: 12px; display: grid; gap: 6px; }
.vs__res li {
  display: flex; align-items: center; height: 44px; padding: 0 14px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  font-size: 20px; white-space: nowrap; overflow: hidden;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.vs__res li:first-child { box-shadow: 0 0 0 1.5px rgba(10,132,255,.5); }
.vs__res.is-on li { opacity: 1; transform: none; }
.vs__res.is-on li:nth-child(2) { transition-delay: .07s; }
.vs__res.is-on li:nth-child(3) { transition-delay: .14s; }
.vs__res .f-rubikmono { font-size: 15px; }

/* — мини-окна в плитках «слежение» и «меню»: лежат в 14 px от краёв картинки (скругление 22),
   поэтому их углы у краёв — 8 (22 − 14) — */
.mw {
  position: absolute; overflow: hidden;
  background: #fff; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 26px -14px rgba(0,0,0,.3);
  font-family: var(--mac); color: #1D1D1F;
}
.mw .ic { display: block; flex: none; }
.mw__title {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-bottom: 1px solid #EFEFF1;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.mw__title .ic { width: 14px; height: 12px; color: #5AA0F0; }
.mw__title img { width: 13px; height: 13px; border-radius: 3px; }
.mw__title b { margin-left: auto; font-weight: 400; font-size: 10.5px; color: #8E8E93; }
/* нейтральное окно папки: серые кружки вместо цветных, чтобы не выдавать себя за Finder */
.mw__dots { display: flex; gap: 4px; margin-right: 4px; }
.mw__dots i { width: 7px; height: 7px; border-radius: 50%; background: #DCDCDF; }
.mw__file {
  display: flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 8px; border-radius: 5px;
  font-size: 11.5px; color: #333; white-space: nowrap;
}
.mw__file .ic { width: 13px; height: 13px; color: #8E8E93; }
/* мини-карточка шрифта: «Аа» своим шрифтом и имя */
.mc {
  position: relative;
  display: grid; place-items: center;
  border-radius: 7px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.mc > span { font-size: 24px; line-height: 1; margin-top: -8px; color: #272727; }
.mc small { position: absolute; left: 7px; bottom: 5px; font: 9px var(--mac); color: #8E8E93; }
.mini-cur { position: absolute; left: 0; top: 0; width: 20px; height: 20px; opacity: 0; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* — слежение за папками: папка и SXfont рядом — */
.vis-watch { background: linear-gradient(160deg, #F2EEE6, #EAE6DE); container-type: inline-size; }
.vw__folder { left: 14px; top: 64px; width: 160px; border-radius: 10px; padding-bottom: 5px; }
.vw__folder .mw__body { padding: 4px 4px 0; }
.vw__app { right: 14px; top: 14px; bottom: 14px; width: 169px; }
.vw__src {
  display: flex; align-items: center; gap: 6px;
  height: 24px; margin: 6px 6px 0; padding: 0 8px; border-radius: 5px;
  background: #EDEDF0; font-size: 11px; white-space: nowrap;
}
.vw__src .ic { width: 14px; height: 12px; color: #595959; }
.vw__src b { margin-left: auto; font-weight: 400; font-size: 10px; color: #8E8E93; font-variant-numeric: tabular-nums; }
.vw__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 62px; gap: 7px; padding: 8px; }
.vw__drag { position: absolute; left: 18px; top: 142px; z-index: 2; }
.vw__ghost { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 18px -6px rgba(0,0,0,.3); }
.vis-watch .mini-cur { left: 104px; top: 10px; }
/* узкая плитка: окна в пикселях наезжали друг на друга и закрывали имена файлов */
@container (max-width: 368px) {
  .vw__folder { left: 10px; width: 45%; }
  .vw__app { right: 10px; width: 45.5%; }
  .vw__folder .mw__title { font-size: 10px; padding-inline: 7px; gap: 4px; }
  .vw__src { font-size: 10.5px; padding: 0 6px; gap: 4px; }
  .vw__drag { left: 14px; }
  .vw__grid { gap: 6px; padding: 7px; }
  .vw__folder .mw__file, .vw__drag .mw__file { font-size: 10px; gap: 4px; padding-inline: 5px; }
  .vis-watch .mc small { left: 5px; font-size: 8px; }
}

/* — вариативные: ползунок веса на карточке, как в приложении при наведении на вариативный шрифт — */
.vis-vari { background: linear-gradient(160deg, #EFF1EA, #E7EAE1); container-type: inline-size; }
.vv__card {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(310px, 100% - 28px); height: 196px;
  display: flex; flex-direction: column;
  border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 30px -14px rgba(0,0,0,.2);
}
.vv__ic { position: absolute; top: 12px; width: 16px; height: 16px; color: #C4C4C8; }
.vv__ic .ic { width: 100%; height: 100%; }
.vv__ic--fav { left: 14px; }
.vv__ic--bolt { right: 14px; }
.vv__pv { flex: 1; display: flex; align-items: center; justify-content: center; padding: 26px 16px 4px; font-size: clamp(22px, 9.5cqw, 32px); line-height: 1.1; color: #1D1D1F; white-space: nowrap; }
.vv__ctl { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-top: 1px solid #F0F0F1; font: 11px var(--mac); color: #6E6E73; --w: 100%; }
.vv__ctl b { min-width: 26px; text-align: right; font: 11.5px var(--mono); color: #1D1D1F; font-variant-numeric: tabular-nums; }
.vv__sl { position: relative; flex: 1; height: 18px; }
.vv__sl::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: #E3E3E6; }
.vv__fill { position: absolute; left: 0; top: 8px; height: 2px; width: var(--w); border-radius: 1px; background: #1D1D1F; }
.vv__knob { position: absolute; top: 0; left: calc(var(--w) - 9px); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.15); }

/* ─────────────────────────────  СВЕТЛАЯ И ТЁМНАЯ ТЕМА  ───────────────────────────── */
/* Рамки нет: окно, нарисованное кодом (app-window.css), само служит рамкой.
   Под ним лежит светлое окно, сверху тёмная копия, обрезанная по --pos. */
.compare {
  --pos: 50%;
  --k: .8571;            /* 1200 / 1400; точное значение ставит app-window.js */
  position: relative;
  margin-top: clamp(32px, 4vw, 52px);
  aspect-ratio: 1400 / 748;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
  /* вертикальная прокрутка пальцем остаётся странице, горизонталь — ручке */
  touch-action: pan-y;
}
.compare__stage, .compare__dark { position: absolute; inset: 0; pointer-events: none; }
.compare__dark { clip-path: inset(0 0 0 var(--pos)); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 0 24px rgba(0,0,0,.28);
  pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 28px -8px rgba(0,0,0,.45);
  cursor: ew-resize;
  transition: transform .25s var(--ease);
}
.compare:active .compare__handle { transform: scale(.96); }
.compare__handle .ic { width: 22px; height: 22px; }
.compare__handle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* подписи тем — под окном, чтобы не закрывать карточки */
.compare__legend { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.compare__tag { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.compare__tag--l { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04); }
.compare__tag--r { background: #1C1C1E; color: #fff; }
.compare__hint { font-size: 14px; color: #3A3935; text-align: center; } /* лежит в тени окна: нужен темнее --ink-3 */
@media (max-width: 640px) {
  .compare__handle { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .compare__tag { padding: 5px 10px; font-size: 12px; }
}

/* ─────────────────────────────  РОЛИК-ОБЗОР  ─────────────────────────────
   Всё в assets/css/tour.css */

/* ─────────────────────────────  СПОКОЙСТВИЕ  ───────────────────────────── */
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 20px); margin-top: clamp(32px, 4vw, 52px);
}
/* Карточки как у cooldock.app: плоские, светлее фона, без тени;
   иконка в круге цвета фона, крупный заголовок, серый текст, щедрые отступы.
   Тот же вид у пунктов под окном в «Обложках». */
.trust__card, .points li {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(32px, 3vw, 40px) clamp(32px, 3vw, 40px) clamp(36px, 3.4vw, 44px);
  border-radius: clamp(28px, 2.3vw, 32px);
  background: var(--card);
}
/* круг цвета фона страницы: на светлой карточке он читается мягким
   вырезом и не спорит с заголовком */
.trust__ic, .points__ic {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
}
/* 24px: сетка иконки 24×24 ложится на целые пиксели, края чёткие */
.trust__ic .ic, .points__ic .ic { width: 24px; height: 24px; }
/* иконка с тяжёлым низом стоит в центре по геометрии, но на глаз ниже */
.ic--lift { transform: translateY(-1px); }
/* линии тоньше, как в образце (1.6px); толщина задана в самом символе,
   поэтому правило вешается на символ по id */
#i-laptop, #i-shield, #i-folder-check, #i-image, #i-grid-thin, #i-expand { stroke-width: 1.6; }
.trust h3, .points h3 {
  margin: clamp(16px, 1.4vw, 20px) 0 clamp(14px, 1.3vw, 18px);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  text-wrap: balance;
}
.trust p, .points p { font-size: 16px; line-height: 1.42; letter-spacing: -.01em; color: #5C5B56; text-wrap: pretty; }
/* до 900px три колонки слишком узкие (20 знаков в строке): один столбец, значок слева от текста */
@media (max-width: 900px) {
  .points { grid-template-columns: minmax(0, 1fr); }
  .points li { flex-direction: row; align-items: flex-start; gap: 20px; padding-block: 24px 26px; }
  .points h3 { margin-top: 4px; }
}
/* телефон: поля и значок меньше, чтобы «Крупный просмотр» стоял в одну строку */
@media (max-width: 480px) {
  .points li { padding: 22px 20px 24px; gap: 16px; }
  .points__ic { width: 52px; height: 52px; }
}
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────────────────  ПРОГРАММЫ  ───────────────────────────── */
/* облако значков: ряды с лёгким зигзагом, под каждым короткая подпись */
/* ровно два ряда по восемь на компьютере и четыре по четыре на телефоне: без сирот в последнем ряду */
.apps {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start;
  gap: 22px 8px; max-width: 960px; margin: clamp(36px, 4vw, 56px) auto 0;
}
.apps li { display: grid; justify-items: center; gap: 9px; }
.apps li:nth-child(even) { margin-top: 26px; }
.apps img {
  width: 72px; height: 72px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.apps li:hover img { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 12px 22px rgba(0,0,0,.16)); }
.apps span { font-size: 12px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.apps__note { margin: clamp(28px, 3vw, 40px) auto 0; max-width: 34em; font-size: 14px; color: var(--ink-3); text-align: center; text-wrap: pretty; }
@media (max-width: 900px) {
  .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .apps { gap: 16px 4px; }
  .apps li { gap: 7px; }
  .apps li:nth-child(even) { margin-top: 18px; }
  .apps img { width: 56px; height: 56px; }
  .apps span { font-size: 10.5px; }
}

/* ─────────────────────────────  ЦЕНА  ───────────────────────────── */
.sec--price { isolation: isolate; overflow: clip; }
.price__sky { position: absolute; inset: 0; z-index: -1; }
.price__sky img { width: 100%; height: 100%; object-fit: cover; }
.price__sky::before, .price__sky::after { content: ""; position: absolute; left: 0; right: 0; height: 34%; z-index: 1; }
.price__sky::before { top: 0; background: linear-gradient(var(--bg), rgba(237,236,235,0)); }
.price__sky::after { bottom: 0; background: linear-gradient(rgba(237,236,235,0), var(--bg)); }
.plans {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  max-width: 940px; margin: clamp(32px, 4vw, 52px) auto 0;
  align-items: stretch;
}
.plan { display: flex; flex-direction: column; padding: 34px; border-radius: var(--r-xl); }
.plan--main { background: #fff; box-shadow: var(--shadow-2); }
.plan--trial {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 20px 50px -24px rgba(0,0,0,.2);
}
.plan__name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.plan__name img { border-radius: 6px; }
.plan__price {
  margin-top: 26px;
  font-size: clamp(66px, 8vw, 96px);
  font-weight: 600; letter-spacing: -.06em; line-height: .88;
  font-variant-numeric: tabular-nums;
}
.plan__price span { font-size: .5em; margin-left: .12em; color: var(--ink-3); letter-spacing: 0; }
.plan__once { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.plan__list { display: grid; gap: 12px; margin: 26px 0 30px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.plan__list .ic {
  width: 22px; height: 22px; padding: 5px; flex: none;
  border-radius: 50%; background: var(--lime); color: var(--ink);
  margin-top: 1px;
}
.plan .btn { margin-top: auto; }
.plan__trial {
  margin-top: 26px;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 600; letter-spacing: -.05em; line-height: .96;
}
.plan__text { margin: 18px 0 28px; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.plan__small { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.5; }
@media (max-width: 800px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan { padding: 28px 24px; } }

/* ─────────────────────────────  ВОПРОСЫ  ───────────────────────────── */
.faq {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: clamp(32px, 4vw, 52px);
  align-items: start;
}
.faq__col { display: grid; gap: 12px; }
.qa { border-radius: 20px; background: var(--card); }
.qa h3 { font: inherit; }
.qa__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35;
  text-align: left;
}
.qa__pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); transition: background-color .3s var(--ease), transform .45s var(--ease); }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px; border-radius: 2px; background: var(--ink); }
.qa__pm::after { transform: rotate(90deg); }
.qa.is-open .qa__pm { transform: rotate(45deg); background: var(--lime); }
/* высота «до auto» без JS: сетка из 0fr в 1fr */
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
/* свёрнутый ответ не только не виден, но и не читается диктором и не ловит Tab */
.qa__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.qa.is-open .qa__a > div { visibility: visible; transition-delay: 0s; }
.qa__a p {
  padding: 0 22px 22px;
  font-size: 15.5px; color: var(--ink-2); text-wrap: pretty;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: .08s; }
.qa__a a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────────────────  ФИНАЛ  ───────────────────────────── */
.final { padding: var(--sec) 0 calc(var(--sec) * .6); text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 40px -14px rgba(120,170,0,.55); margin-bottom: 34px; }
.final__title { font-size: clamp(42px, 6.8vw, 92px); max-width: 12em; }
.final .lead { margin-top: 22px; }
.final__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─────────────────────────────  ПОДВАЛ  ───────────────────────────── */
.foot { position: relative; overflow: clip; }
.foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px; padding-bottom: 40px;
  border-top: 1px solid var(--line);
}
.foot__brand p { margin-top: 14px; max-width: 22em; font-size: 15px; color: var(--ink-2); }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col p { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.foot__col a {
  font-size: 15px; color: var(--ink-2); width: fit-content;
  /* подчёркивание есть всегда, но прозрачное: при наведении проявляется, а не появляется скачком */
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.foot__col a:hover, .foot__col a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.foot__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); padding-bottom: 20px; }
/* текст подвала лежит поверх верха картинки, как у cooldock.app: холмы начинаются
   сразу под меню, без пустой полосы неба; переход в цвет фона короткий */
.foot__grid, .foot__base { position: relative; z-index: 2; }
.foot__scene { position: relative; z-index: 1; height: clamp(240px, 33vw, 480px); margin-top: clamp(-120px, -7vw, -48px); overflow: hidden; }
.foot__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.foot__scene::before { content: ""; position: absolute; inset: 0 0 auto; height: 34%; z-index: 1; background: linear-gradient(var(--bg), rgba(237,236,235,0)); }
.foot__word {
  position: absolute; z-index: 2; left: 50%; bottom: -.16em;
  transform: translateX(-50%);
  font-size: clamp(96px, 25vw, 380px);
  font-weight: 700; letter-spacing: -.065em; line-height: 1;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  text-shadow: 0 10px 60px rgba(60,70,30,.18);
  will-change: transform;
}
@media (max-width: 720px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

/* ─────────────────────────────  СВОЙ КУРСОР  ─────────────────────────────
   Зелёная стрелка и плашка-подсказка (assets/js/cursor.js). Только для мыши:
   системный курсор прячется, лишь когда скрипт уже показал свой. */
.ucur {
  --cur: #ABE410;
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
.ucur.is-on { opacity: 1; }
.ucur__arrow, .ucur__label { position: absolute; left: 0; top: 0; will-change: transform; }
/* масштаб при нажатии — вокруг кончика стрелки, иначе она «уезжает» с указателя */
.ucur__arrow { overflow: visible; transform-origin: 4.2px 4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
/* светло-зелёный на светлом фоне теряется: тёмная обводка держит стрелку на любом фоне */
.ucur__arrow path { fill: var(--cur); stroke: #0E0E0C; stroke-width: 1.6; stroke-linejoin: round; }
/* плашка видна только с подсказкой: появляется и гаснет мягко */
.ucur__label { transform-origin: 0 0; opacity: 0; transition: opacity .2s var(--ease); }
.ucur__label.has-text { opacity: 1; }
.ucur__text {
  display: block;
  padding: 6px 11px 6px 10px;
  border-radius: 4px 999px 999px 999px;
  background: var(--cur); color: #0E0E0C;
  font: 600 13px/1.1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 6px 16px -6px rgba(0,0,0,.35);
}
.ucur__label.is-pop .ucur__text { animation: ucurPop .35s var(--ease); }
@keyframes ucurPop { from { transform: scale(.86); } to { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  html.ucur-on, html.ucur-on * { cursor: none !important; }
  /* в поле ввода нужен обычный текстовый курсор; свой над полем прячет cursor.js */
  html.ucur-on .app__field, html.ucur-on .app__field * { cursor: text !important; }
}

/* ─────────────────────────  СТАРТОВЫЕ СОСТОЯНИЯ АНИМАЦИЙ  ─────────────────────────
   Прячем только при работающем JS и без «уменьшить движение»: JS снимает
   это, как только берёт элемент под контроль. Не загрузилась библиотека —
   класс no-anim, и всё видно сразу. */
.js:not(.no-anim) [data-hero],
.js:not(.no-anim) .hero__title,
.js:not(.no-anim) .app,
.js:not(.no-anim) .hero__hint,
.js:not(.no-anim) [data-reveal],
.js:not(.no-anim) [data-split],
.js:not(.no-anim) [data-tile] { opacity: 0; }
/* страховка: на медленной сети скрипты приходят через 5–6 с — первый экран проявляется сам через 2 с,
   а site.js, увидев это, не прячет его заново (класс intro-on) */
@keyframes heroFallback { to { opacity: 1; } }
.js:not(.no-anim):not(.intro-on) [data-hero],
.js:not(.no-anim):not(.intro-on) .hero__title,
.js:not(.no-anim):not(.intro-on) .app,
.js:not(.no-anim):not(.intro-on) .hero__hint { animation: heroFallback .6s ease 2s forwards; }

.sw { display: inline-block; white-space: nowrap; }
[data-split] .w { display: inline-block; }
.sc { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__row { animation: none; }
}
/* телефон боком: шторка тем не выше экрана */
@media (orientation: landscape) and (max-height: 500px) {
  .compare, .compare__legend { max-width: calc((100svh - 64px) * 16 / 9); margin-inline: auto; }
}
