/* =========================================================================
   Wowly — стили сайта.
   Дизайн-система та же, что в приложении (Memka, ветка ui-redesign):
   шрифт Onest, плюшевые персонажи с живыми глазами, «живые» градиенты,
   белые и стеклянные пилюли. Цвет живёт в аурах и персонажах, а не в тексте.
   ========================================================================= */

/* ---------------------------------------------------------------- шрифт */

/* Onest (SIL Open Font License 1.1) — свои файлы, без запросов к Google: наборы символов как у Google Fonts */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-math.woff2') format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-symbols.woff2') format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- токены */

:root {
  /* -- цвет: нейтральные */
  --white: #fff;
  --black: #000;
  --bg: #f5f6f9;
  --bg-2: #eceef3;
  --surface: var(--white);
  --ink: #1a1c22;
  --ink-soft: #4a4e5a;
  --ink-2: #666b78;
  --ink-3: #7a808e;
  --ink-prose: #2b2e36;
  --line: #e9ebf0;
  --line-strong: #dfe2e9;
  --fill: #f0f1f4;
  --track: #e4e7ee;
  --icon-off: #dadde5;
  /* холодные подложки экранов приложения и плиток */
  --surface-cool-1: #f6f7fc;
  --surface-cool-2: #f1f3fa;
  --surface-cool-3: #eceff9;

  /* -- цвет: бренд */
  --primary: #4f63ff;
  --primary-btn: #3f51f0;
  --primary-press: #3343d6;
  --primary-tint: #e9ecff;
  --primary-soft: #7c8bff;
  --brand-cyan: #35b8ff;
  --brand-sky: #3aa2ff;
  --brand-blue: #3d6bf6;
  --brand-azure: #2b6ff2;
  --brand-indigo: #6a4df5;
  --brand-violet: #7b3ff0;
  --quote: #2b2e6a;

  /* -- цвет: смысловые */
  --success: #157a45;
  --success-tint: #ddf7e8;
  --success-bright: #7ad3a0;
  --success-glow: #7ff0b2;
  --reward: #e8590c;
  --flame: #ff7a3d;
  --frost: #4ba3f5;
  --frost-tint: #e5f1fe;
  --frost-ink: #1f6fc4;

  /* -- цвет: тёмная панель «по учебникам» */
  --night: #0b0d14;
  --night-accent: #b9a6ff;
  --night-glow-1: #dfe6ff;
  --night-glow-2: #b9c6ff;
  --night-glow-3: #e2ccff;
  --night-bar-1: #8ea2ff;
  --night-bar-2: #d2b6ff;

  /* -- каналы RGB для полупрозрачных оттенков: rgb(var(--ink-rgb) / 0.1) */
  --white-rgb: 255 255 255;
  --black-rgb: 0 0 0;
  --ink-rgb: 26 28 34;
  --haze-rgb: 246 249 255;
  --shade-rgb: 14 18 40;
  --shade-blue-rgb: 40 52 130;
  --primary-rgb: 79 99 255;
  --primary-btn-rgb: 63 81 240;
  --brand-blue-rgb: 61 107 246;
  --brand-azure-rgb: 43 111 242;
  --brand-violet-rgb: 123 63 240;
  --success-rgb: 21 122 69;
  --night-accent-rgb: 185 166 255;
  --night-bar-rgb: 142 162 255;

  --glass: rgb(var(--white-rgb) / 0.74);
  --glass-strong: rgb(var(--white-rgb) / 0.92);
  --glass-line: rgb(var(--white-rgb) / 0.7);

  /* -- конфетти в конце сессии: скрипт берёт цвета отсюда */
  --confetti: #4f63ff, #ffc12e, #ff6f92, #3fb3ff, #7ed53a, #b48cff, #ff8e5a;

  /* -- тени */
  --shadow-1: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 6px 20px -8px rgb(var(--ink-rgb) / 0.08);
  --shadow-2: 0 2px 6px rgb(var(--ink-rgb) / 0.04), 0 22px 50px -18px rgb(var(--ink-rgb) / 0.18);
  --shadow-3: 0 4px 10px rgb(var(--ink-rgb) / 0.05), 0 40px 80px -30px rgb(var(--ink-rgb) / 0.28);

  /* -- радиусы */
  --r-3xs: 3px;
  --r-2xs: 8px;
  --r-xs: 12px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-3xl: 32px;
  --r-4xl: 36px;
  --r-5xl: 44px;
  --r-hero: clamp(28px, 3vw, 44px);
  --r-pill: 999px;
  --r-round: 50%;

  /* -- шрифты: после Onest — шрифты с хангылем, каной и иероглифами: в русском
     и английском тексте попадаются 물 и 犬, пусть у них будет ровное начертание */
  --font: 'Onest', 'Apple SD Gothic Neo', 'Hiragino Sans', 'PingFang SC', 'Noto Sans KR', 'Noto Sans JP',
    'Noto Sans SC', 'Malgun Gothic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ko: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', var(--font);
  --font-ja: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', var(--font);
  --font-zh: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', var(--font);
  --font-ar: 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', var(--font);
  --font-th: 'Thonburi', 'Noto Sans Thai', 'Leelawadee UI', var(--font);

  /* -- размер текста: шкала интерфейса */
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-body: 16px;
  --text-lg: 17px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 22px;
  --text-4xl: 24px;
  --text-5xl: 30px;
  --text-6xl: 36px;
  --text-7xl: 46px;
  --text-8xl: 58px;
  --text-9xl: 68px;
  --text-glyph: 104px;
  --text-glyph-sm: 96px;
  /* чтение длинного текста: статьи, ответы */
  --text-reading: 17.5px;
  --text-reading-sm: 16.5px;
  /* -- размер текста: тянется с шириной окна */
  --text-lead: clamp(17px, 1.4vw, 20px);
  --text-lead-lg: clamp(18px, 1.5vw, 21px);
  --text-h5: clamp(21px, 1.7vw, 24px);
  --text-h4: clamp(22px, 2vw, 28px);
  --text-h3: clamp(26px, 2.6vw, 34px);
  --text-word: clamp(32px, 3vw, 44px);
  --text-step: clamp(30px, 3.2vw, 46px);
  --text-menu: clamp(30px, 8vw, 40px);
  --text-article: clamp(34px, 4.4vw, 56px);
  --text-h2: clamp(38px, 5.4vw, 74px);
  --text-h2-sm: clamp(34px, 9.6vw, 48px);
  --text-night: clamp(40px, 5vw, 68px);
  --text-price: clamp(48px, 5vw, 66px);
  --text-display: clamp(44px, 5.8vw, 84px);
  --text-hero: clamp(46px, 6.2vw, 92px);
  --text-hero-sm: clamp(40px, 11.4vw, 60px);
  --text-glyph-xl: clamp(88px, 9vw, 132px);

  /* -- начертание, межбуквенный и межстрочный интервал */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-display: -0.05em;
  --tracking-title: -0.04em;
  --tracking-heading: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-wide: 0.01em;
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.4;
  --leading-relaxed: 1.5;
  --leading-loose: 1.6;
  --leading-reading: 1.7;

  /* -- движение и раскладка */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

/* ----------------------------------------------------------------- сброс */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
canvas,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: rgb(var(--primary-rgb) / 0.18);
}

:lang(ko) {
  font-family: var(--font-ko);
}
:lang(ja) {
  font-family: var(--font-ja);
}
:lang(zh) {
  font-family: var(--font-zh);
}
:lang(ar) {
  font-family: var(--font-ar);
}
:lang(th) {
  font-family: var(--font-th);
}
html:lang(ru),
html:lang(en) {
  font-family: var(--font);
}

/* атрибут hidden сильнее любого display из стилей: иначе спрятанное меню
   оставалось бы невидимым слоем поверх страницы и ловило клики */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: var(--weight-semibold);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

.section {
  padding-block: clamp(72px, 9vw, 136px);
}

.icon {
  display: inline-grid;
  place-items: center;
}

.icon svg,
.btn svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------ заголовки */

.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.05), 0 4px 14px -6px rgb(var(--ink-rgb) / 0.12);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
}

.chip-label i {
  width: 7px;
  height: 7px;
  border-radius: var(--r-round);
  background: var(--primary);
  box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.14);
  flex: none;
}

.chip-label__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chip-label--glass {
  background: rgb(var(--white-rgb) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.16);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chip-label--glass i {
  background: var(--night-accent);
  box-shadow: 0 0 0 4px rgb(var(--night-accent-rgb) / 0.2);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head__title {
  margin-top: 20px;
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

.section-head__sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
  text-wrap: pretty;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-head__sub {
  margin-inline: auto;
}

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-none);
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary-btn);
  color: var(--white);
  box-shadow: 0 10px 26px -12px rgb(var(--primary-btn-rgb) / 0.75), inset 0 1px 0 rgb(var(--white-rgb) / 0.18);
}

.btn--primary:hover {
  background: var(--primary-press);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px -14px rgb(var(--ink-rgb) / 0.35);
}

.btn--white:hover {
  box-shadow: 0 16px 36px -14px rgb(var(--ink-rgb) / 0.45);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--sm {
  height: 44px;
  padding: 0 18px;
  font-size: var(--text-base);
}

.btn--sm svg {
  width: 18px;
  height: 18px;
}

.btn--block {
  width: 100%;
}

/* круглая кнопка: звук, «медленно», стрелки слайдера */
.rbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-round);
  background: var(--fill);
  color: var(--ink-soft);
  flex: none;
  transition: transform 0.16s var(--ease), background-color 0.2s, box-shadow 0.2s;
}

.rbtn svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------- кнопки сторов */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 24px 0 18px;
  border-radius: var(--r-pill);
  line-height: var(--leading-none);
  transition: transform 0.16s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.store__logo svg {
  width: 24px;
  height: 24px;
}

.store__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.store__text small {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  opacity: 0.72;
  letter-spacing: var(--tracking-wide);
}

.store__text b {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.store--ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px -16px rgb(var(--ink-rgb) / 0.7);
}

.store--white {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 32px -16px rgb(var(--ink-rgb) / 0.4);
}

a.store:hover {
  transform: translateY(-2px);
}

a.store:active {
  transform: scale(0.97);
}

/* ------------------------------------------------------- переключатели */

.segment {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
}

.segment__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  transition: background-color 0.25s var(--ease), color 0.2s, box-shadow 0.25s var(--ease);
}

.segment__opt:hover {
  color: var(--ink);
}

.segment__opt.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.06), 0 4px 12px -4px rgb(var(--ink-rgb) / 0.14);
}

.segment__opt[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.segment__opt small {
  font-size: var(--text-2xs);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgb(var(--ink-rgb) / 0.07);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgb(var(--ink-rgb) / 0.05);
}

.lang-switch__item {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.lang-switch__item:hover {
  color: var(--ink);
}

.lang-switch__item.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.08), 0 3px 10px -4px rgb(var(--ink-rgb) / 0.18);
}

/* ------------------------------------------------------------------ плюш */

.plush {
  position: relative;
  display: inline-block;
  width: var(--size, 200px);
  aspect-ratio: 1;
  flex: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.plush__body {
  position: absolute;
  inset: 0;
  transform-origin: 50% 88%;
  will-change: transform;
}

.plush img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 22px rgb(var(--ink-rgb) / 0.16));
}

.plush__eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* пока войлок не загрузился, глаза не показываем — иначе висят одни зрачки */
.js .plush:not(.is-ready) .plush__eyes {
  opacity: 0;
}

/* ------------------------------------------------------ живой градиент */

.living {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(62% 58% at 26% 96%, var(--a) 0%, transparent 72%),
    radial-gradient(58% 54% at 78% 74%, var(--b) 0%, transparent 70%),
    radial-gradient(52% 44% at 52% 112%, var(--c) 0%, transparent 70%),
    radial-gradient(56% 50% at 12% 58%, var(--d) 0%, transparent 72%),
    var(--base);
}

.living canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.living.is-live canvas {
  opacity: 1;
}

.grain,
.aura::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url('../img/grain.png') repeat;
  background-size: 102px;
  opacity: 0.55;
  pointer-events: none;
}

.mood-sky { --base: #f7faff; --a: #2e7bff; --b: #58ccff; --c: #1b57f5; --d: #bdebff; }
.mood-dawn { --base: #fff9f6; --a: #ff6fa5; --b: #ffb25e; --c: #b36bff; --d: #ffe29a; }
.mood-lime { --base: #fcfef5; --a: #c6f000; --b: #ffe347; --c: #55e08f; --d: #e9ffb0; }
.mood-peach { --base: #fffaf5; --a: #ff8e5a; --b: #ffc765; --c: #ff6f92; --d: #ffe3bf; }
.mood-lilac { --base: #faf8ff; --a: #7e5cff; --b: #c285ff; --c: #5b8dff; --d: #f0c4ff; }
.mood-ocean { --base: #f2f7ff; --a: #1248ff; --b: #00aeff; --c: #4a22f0; --d: #7be6ff; }
.mood-azure { --base: #2b6ff2; --a: #1b4fe0; --b: #3fb3ff; --c: #6a4df5; --d: #5aa5ff; }
.mood-aurora { --base: #5546f0; --a: #7b35f0; --b: #2f8bff; --c: #e255c8; --d: #4a63ff; }
.mood-mint { --base: #f6fffb; --a: #16cfa0; --b: #64e2ff; --c: #9cec60; --d: #cfffe6; }
.mood-mist { --base: #fcfbff; --a: #dccfff; --b: #ebdfff; --c: #e6d2f8; --d: #f6f1ff; }
.mood-sage { --base: #f8fdfa; --a: #a9e8cf; --b: #c2f0e6; --c: #cff0b4; --d: #e6fbf1; }
.mood-blush { --base: #fffafb; --a: #ffc4d8; --b: #ffdccb; --c: #e8c8ff; --d: #fff0e6; }
.mood-haze { --base: #f9fbff; --a: #b4d2ff; --b: #c8ecff; --c: #bcc6ff; --d: #e8f6ff; }
.mood-butter { --base: #fffdf6; --a: #ffe7a1; --b: #fff0c2; --c: #d6f2b3; --d: #fff8df; }
.mood-sand { --base: #fffcf9; --a: #ffddc2; --b: #ffead6; --c: #f7d4d0; --d: #fff4e9; }
/* ночная версия lilac из приложения: тёмная земля, цвет поднимается снизу */
.mood-dusk { --base: #0a0c16; --a: #7e5cff; --b: #9a6acc; --c: #5380e8; --d: #4a4057; }

/* ---------------------------------------------------------------- аура */

/* Статичное мягкое свечение с зерном — AuraSurface из приложения */
.aura {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 34%, var(--au-glow) 0%, transparent 62%),
    radial-gradient(circle at 92% 2%, var(--au-deep) 0%, transparent 44%),
    radial-gradient(circle at 2% 100%, rgb(var(--white-rgb) / 0.85) 0%, transparent 46%),
    radial-gradient(circle at 100% 100%, rgb(var(--white-rgb) / 0.85) 0%, transparent 30%),
    var(--au-base);
}

.aura::after {
  content: '';
  z-index: -1;
}

.aura-blue { --au-base: #e6f0ff; --au-glow: #a6caff; --au-deep: #74a9ff; }
.aura-lilac { --au-base: #f2ebff; --au-glow: #d6beff; --au-deep: #b792ff; }
.aura-peach { --au-base: #fff0e2; --au-glow: #ffd2a6; --au-deep: #ffb473; }
.aura-lime { --au-base: #f0fbe0; --au-glow: #cff0a0; --au-deep: #a8e266; }
.aura-pink,
.aura-blush { --au-base: #ffecf4; --au-glow: #ffbfda; --au-deep: #ff93c0; }
.aura-sun { --au-base: #fff7d9; --au-glow: #ffe680; --au-deep: #ffcb3d; }
.aura-mint { --au-base: #e5f9f0; --au-glow: #aeedd0; --au-deep: #75dfae; }
.aura-neutral { --au-base: #f0f2f6; --au-glow: #e0e4ec; --au-deep: #cdd3de; }

/* ---------------------------------------------------------------- шапка */

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  padding-inline: clamp(10px, 1.6vw, 24px);
  pointer-events: none;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(var(--shell) + 40px);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 10px 0 12px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.8),
    0 0 0 1px rgb(var(--ink-rgb) / 0.05),
    0 12px 32px -16px rgb(var(--ink-rgb) / 0.22);
  pointer-events: auto;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-stuck .site-header__bar {
  background: var(--glass-strong);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  border-radius: var(--r-sm);
}

.logo__mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, var(--brand-cyan) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, var(--brand-violet) 0%, transparent 62%),
    linear-gradient(135deg, var(--brand-sky), var(--brand-blue) 52%, var(--brand-indigo));
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.18), 0 4px 12px -4px rgb(var(--brand-blue-rgb) / 0.6);
  flex: none;
}

.logo__mark .plush {
  position: absolute;
  width: 112% !important;
  left: -6%;
  top: 2%;
}

.logo__mark .plush img {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav__link {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav__link:hover {
  color: var(--ink);
  background: rgb(var(--ink-rgb) / 0.05);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-round);
  place-items: center;
  background: rgb(var(--ink-rgb) / 0.05);
}

.burger svg {
  width: 22px;
  height: 22px;
}

.burger__icon--close {
  display: none;
}

.burger[aria-expanded='true'] .burger__icon--open {
  display: none;
}

.burger[aria-expanded='true'] .burger__icon--close {
  display: block;
}

.reading {
  display: none;
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  border-radius: var(--r-3xs);
  overflow: hidden;
}

.page-article .reading {
  display: block;
}

.reading__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--primary) 60%, var(--brand-violet));
  transform: scaleX(0);
  transform-origin: left;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 48px) 28px 120px;
  background: var(--bg);
  isolation: isolate;
  pointer-events: auto;
  /* телефон боком — пункты не помещаются по высоте, меню прокручивается */
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

/* градиент стоит на месте, пока пункты прокручиваются */
.mobile-menu > .living {
  position: fixed;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .nav__link--mobile {
  padding: 8px 0;
  font-size: var(--text-menu);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  color: var(--ink);
  background: none !important;
}

/* язык сайта — строкой-карточкой внизу меню, над кнопкой «Получить» */
.mobile-menu__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-xl);
  background: rgb(var(--white-rgb) / 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.9), 0 12px 30px -18px rgb(var(--ink-rgb) / 0.3);
}

.mobile-menu__lang-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.mobile-menu__lang-label svg {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}

.lang-switch--menu {
  background: var(--bg-2);
}

.lang-switch--menu .lang-switch__item {
  min-width: 58px;
  height: 40px;
  padding: 0 14px;
  font-size: var(--text-base);
}

.dock {
  display: none;
}

/* уведомление о cookies: карточка в углу, не перекрывает страницу */
.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  padding: 14px 14px 14px 20px;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgb(var(--ink-rgb) / 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.cookie-note.is-in {
  opacity: 1;
  transform: none;
}

/* под открытым меню: иначе карточка закрывает выбор языка внизу меню */
body.is-locked .cookie-note {
  visibility: hidden;
}

.cookie-note__text {
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--ink);
}

.cookie-note__text a {
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-note__ok {
  flex: none;
}

/* ================================================================ iPhone */

/* Корпус: титановая рамка с бликами и антенными вставками, тонкий чёрный
   безель, стекло с отражением, островок с камерой. Размер задаётся
   переменной --w, всё остальное считается от неё (1em = --w / 30). */
.iphone {
  /* материалы корпуса: титан, кнопки, безель, линза камеры, антенны */
  --iphone-bezel: #050507;
  --iphone-titanium: linear-gradient(90deg, #7d8086 0%, #eceef1 3.5%, #a9acb2 8%, #c8cbcf 30%, #d4d6d9 50%, #c3c6ca 70%, #a7aab0 92%, #f1f2f4 96.5%, #7a7d83 100%);
  --iphone-key: linear-gradient(90deg, #6f7278 0%, #d9dbde 45%, #a3a6ab 72%, #7c7f85 100%);
  --iphone-lens: radial-gradient(circle at 36% 34%, #44507a 0 14%, #161a28 38%, #07080c 70%);
  --iphone-antenna: rgb(70 72 78 / 0.55);
  --w: 300px;
  position: relative;
  isolation: isolate;
  width: var(--w);
  font-size: calc(var(--w) / 30);
  flex: none;
  user-select: none;
  -webkit-user-select: none;
}

.iphone__frame {
  position: relative;
  padding: 0.4em;
  border-radius: 5.3em;
  background: var(--iphone-bezel);
  box-shadow:
    inset 0 0 0 0.06em rgb(var(--white-rgb) / 0.08),
    0 0.3em 0.6em -0.1em rgb(var(--shade-rgb) / 0.3),
    0 2.4em 4.4em -1.8em rgb(var(--shade-rgb) / 0.5),
    0 5.5em 9em -4.5em rgb(var(--shade-blue-rgb) / 0.35);
}

/* титановый пояс: боковые блики, свет сверху, тень снизу */
.iphone__frame::before {
  content: '';
  position: absolute;
  inset: -0.32em;
  z-index: -1;
  border-radius: 5.62em;
  background:
    linear-gradient(180deg, rgb(var(--white-rgb) / 0.5), rgb(var(--white-rgb) / 0) 5%, rgb(var(--white-rgb) / 0) 93%, rgb(var(--black-rgb) / 0.28)),
    var(--iphone-titanium);
  box-shadow:
    inset 0 0 0 0.035em rgb(var(--white-rgb) / 0.55),
    inset 0 0 0 0.09em rgb(var(--black-rgb) / 0.16),
    0 0 0 0.04em rgb(var(--black-rgb) / 0.32);
}

/* антенные вставки поперёк пояса */
.iphone::before,
.iphone::after {
  content: '';
  position: absolute;
  left: -0.32em;
  right: -0.32em;
  z-index: 1;
  height: 0.16em;
  background: linear-gradient(
    90deg,
    var(--iphone-antenna) 0 0.32em,
    transparent 0.32em calc(100% - 0.32em),
    var(--iphone-antenna) calc(100% - 0.32em)
  );
  pointer-events: none;
}

.iphone::before {
  top: 11%;
}

.iphone::after {
  bottom: 11%;
}

.iphone__key {
  position: absolute;
  z-index: -2;
  width: 0.36em;
  border-radius: 0.22em;
  background: var(--iphone-key);
  box-shadow: inset 0 0 0 0.03em rgb(var(--black-rgb) / 0.28);
}

.iphone__key--action { left: -0.56em; top: 17%; height: 2.4em; }
.iphone__key--up { left: -0.56em; top: 25%; height: 4.2em; }
.iphone__key--down { left: -0.56em; top: 33%; height: 4.2em; }
.iphone__key--power { right: -0.56em; top: 27%; height: 6.8em; }

.iphone__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 4.94em;
  overflow: hidden;
  background: var(--bg);
  container-type: inline-size;
  transform: translateZ(0);
  box-shadow: 0 0 0 0.04em rgb(var(--white-rgb) / 0.05);
}

/* стекло: мягкое диагональное отражение и затемнение у кромки */
.iphone__glare {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgb(var(--white-rgb) / 0.2) 0%, rgb(var(--white-rgb) / 0.06) 22%, rgb(var(--white-rgb) / 0) 36%),
    linear-gradient(115deg, rgb(var(--white-rgb) / 0) 62%, rgb(var(--white-rgb) / 0.05) 74%, rgb(var(--white-rgb) / 0) 86%);
  box-shadow: inset 0 0 0.6em rgb(var(--black-rgb) / 0.12);
  pointer-events: none;
}

/* ------------------------------------------------------ интерфейс внутри */

/* 1em здесь — 16 точек iPhone шириной 390: экран масштабируется целиком */
.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--font);
  font-size: 4.1026cqw;
  line-height: var(--leading-snug);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
}

.app svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.app__island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.7em;
  width: 0.85em;
  height: 0.85em;
  border-radius: var(--r-round);
  background: var(--iphone-lens);
  box-shadow: inset 0 0 0 0.08em rgb(var(--white-rgb) / 0.04);
  transform: translateY(-50%);
}

.app__island {
  position: absolute;
  top: 0.7em;
  left: 50%;
  z-index: 25;
  width: 7.7em;
  height: 2.3em;
  border-radius: 1.2em;
  background: var(--black);
  transform: translateX(-50%);
}

.sbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
  padding: 0 1.9em 0 2.6em;
  pointer-events: none;
}

.sbar__time {
  font-size: 1.06em;
  font-weight: var(--weight-semibold);
}

.sbar__icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.sbar__icons svg {
  width: auto;
  height: 0.74em;
}

.app__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3.8em;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s;
}

.app__screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.app__screen--lesson,
.app__screen--swipe,
.app__screen--quiz {
  background: linear-gradient(180deg, var(--surface-cool-3) 0%, var(--bg) 42%, var(--surface-cool-3) 100%);
}

/* верх урока: назад, «3 из 5 слов», полоса прогресса, закладка */
.ltop {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 1.25em 0;
}

.ltop__icon {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.ltop__icon svg {
  width: 1.5em;
  height: 1.5em;
}

.ltop__chip {
  padding: 0.42em 0.9em;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 0.3em 0.9em -0.4em rgb(var(--ink-rgb) / 0.25);
  font-size: 0.92em;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.ltop__bar {
  flex: 1;
  height: 0.5em;
  border-radius: 1em;
  background: var(--track);
  overflow: hidden;
}

.ltop__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.6s var(--ease);
}

/* колода урока */
.ldeck {
  position: relative;
  flex: 1;
  margin: 1.1em 1.25em 0.6em;
}

.ldeck__card {
  --pos: var(--i);
  position: absolute;
  inset: 0 0 1.4em;
  z-index: calc(20 - var(--pos));
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--pos) * 0.7em)) scale(calc(1 - var(--pos) * 0.05));
  transition: transform 0.5s var(--ease), opacity 0.45s var(--ease);
}

.ldeck__card:nth-child(n + 4) {
  opacity: 0;
}

.ldeck__card.is-back,
.ldeck__card.is-top {
  opacity: 1;
}

.ldeck__card.is-dragging {
  transition: none;
}

.lcard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 2em;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1em 2.4em -1.2em rgb(var(--ink-rgb) / 0.28), 0 0 0 0.06em rgb(var(--ink-rgb) / 0.04);
}

.lcard__media {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0.45em 0.45em 0;
  border-radius: 1.6em;
  overflow: hidden;
  background: var(--fill);
}

.lcard__media picture,
.wcard__media picture {
  width: 100%;
  height: 100%;
}

.lcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.lcard__chip {
  position: absolute;
  top: 0.8em;
  left: 0.8em;
  padding: 0.3em 0.75em;
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.85em;
  font-weight: var(--weight-medium);
}

.lcard__panel {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  padding: 0.85em 1.1em 1.15em 1.4em;
}

.lcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.lcard__word {
  font-size: 2.5em;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.lcard__tools {
  display: flex;
  gap: 0.35em;
}

.abtn {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: var(--r-round);
  background: var(--fill);
  color: var(--ink-soft);
}

.lcard__meaning,
.lcard__caption {
  font-size: 1em;
  color: var(--ink-2);
}

/* штампы при свайпе: пилюля с иконкой, проступает и растёт, пока тянешь */
.stamp {
  position: absolute;
  top: 1.1em;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.95em 0.32em 0.32em;
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: 0.95em;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0.7em 1.6em -0.7em rgb(var(--shade-rgb) / 0.55), inset 0 0 0 0.06em rgb(var(--white-rgb) / 0.18);
}

.stamp i {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: var(--r-round);
  background: rgb(var(--white-rgb) / 0.22);
}

.stamp i svg {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.4;
}

.stamp--keep {
  left: 1em;
  background: var(--success);
  opacity: var(--keep, 0);
  transform: rotate(-5deg) scale(calc(0.82 + var(--keep, 0) * 0.18));
  transform-origin: left center;
}

.stamp--skip {
  right: 1em;
  background: rgb(var(--ink-rgb) / 0.92);
  opacity: var(--skip, 0);
  transform: rotate(5deg) scale(calc(0.82 + var(--skip, 0) * 0.18));
  transform-origin: right center;
}

/* кнопки урока */
.lactions {
  display: flex;
  gap: 0.75em;
  padding: 0 1.25em 2.3em;
}

.lbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 0;
  height: 3.6em;
  padding: 0 0.7em;
  border-radius: var(--r-pill);
  font-size: 1em;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s;
}

.lbtn svg {
  width: 1.35em;
  height: 1.35em;
}

.lbtn--skip {
  flex: 1;
  color: var(--primary-btn);
  box-shadow: inset 0 0 0 0.12em var(--primary-btn);
}

.lbtn--keep {
  flex: 1.3;
  background: var(--primary-btn);
  color: var(--white);
  box-shadow: 0 0.8em 1.6em -0.9em rgb(var(--primary-btn-rgb) / 0.9);
}

.lbtn--wide {
  flex: 1;
  width: 100%;
}

.lbtn.is-pressed {
  transform: scale(0.93);
}

/* экран «свайп»: верхняя карточка качается вправо и влево */
.swipe-hint {
  position: absolute;
  top: 42%;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: var(--r-round);
  background: rgb(var(--white-rgb) / 0.92);
  box-shadow: 0 0.6em 1.4em -0.6em rgb(var(--ink-rgb) / 0.35);
  color: var(--ink);
}

.swipe-hint--left {
  left: -0.9em;
}

.swipe-hint--right {
  right: -0.9em;
}

.app__screen--swipe.is-active .ldeck__card.is-swaying {
  animation: sway 4.4s var(--ease) infinite;
}

.app__screen--swipe.is-active .is-swaying .stamp--keep {
  animation: stamp-keep 4.4s var(--ease) infinite;
}

.app__screen--swipe.is-active .is-swaying .stamp--skip {
  animation: stamp-skip 4.4s var(--ease) infinite;
}

.app__screen--swipe.is-active .lbtn--keep {
  animation: press 4.4s var(--ease) infinite;
}

.app__screen--swipe.is-active .lbtn--skip {
  animation: press 4.4s var(--ease) infinite 2.2s;
}

.app__screen--swipe.is-active .swipe-hint--right {
  animation: nudge-right 4.4s var(--ease) infinite;
}

.app__screen--swipe.is-active .swipe-hint--left {
  animation: nudge-left 4.4s var(--ease) infinite;
}

@keyframes sway {
  0%, 8%, 46%, 54%, 92%, 100% { transform: none; }
  24%, 32% { transform: translateX(34%) rotate(9deg); }
  70%, 78% { transform: translateX(-34%) rotate(-9deg); }
}

@keyframes stamp-keep {
  0%, 12%, 42%, 100% { opacity: 0; }
  24%, 32% { opacity: 1; }
}

@keyframes stamp-skip {
  0%, 58%, 88%, 100% { opacity: 0; }
  70%, 78% { opacity: 1; }
}

@keyframes press {
  0%, 24%, 34%, 100% { transform: none; }
  28% { transform: scale(0.93); }
}

@keyframes nudge-right {
  0%, 12%, 40%, 100% { transform: none; }
  26% { transform: translateX(0.4em) scale(1.12); }
}

@keyframes nudge-left {
  0%, 58%, 86%, 100% { transform: none; }
  72% { transform: translateX(-0.4em) scale(1.12); }
}

/* тест */
.quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 1.3em 1.25em 1em;
}

.quiz__word {
  position: relative;
  display: grid;
  place-items: center;
  height: 10.5em;
  border-radius: 1.8em;
  background: var(--white);
  box-shadow: 0 1em 2.2em -1.3em rgb(var(--ink-rgb) / 0.25);
}

.quiz__word > span:first-child {
  font-size: 4.6em;
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
}

.quiz__word .abtn {
  position: absolute;
  right: 0.8em;
  bottom: 0.8em;
}

.quiz__prompt {
  margin-top: 0.3em;
  font-size: 1.15em;
  font-weight: var(--weight-semibold);
  text-align: center;
}

.quiz__options {
  display: grid;
  gap: 0.55em;
}

.quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5em;
  padding: 0 1.2em;
  border-radius: 1.2em;
  background: var(--white);
  box-shadow: inset 0 0 0 0.1em var(--track);
  font-size: 1.05em;
  font-weight: var(--weight-medium);
}

.quiz__option i {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: var(--r-round);
  background: var(--success);
  color: var(--white);
  opacity: 0;
  transform: scale(0.4);
}

.quiz__option i svg {
  width: 1em;
  height: 1em;
}

.app__screen--quiz.is-active .quiz__option.is-right {
  animation: quiz-right 4s var(--ease) infinite 0.6s;
}

.app__screen--quiz.is-active .quiz__option.is-right i {
  animation: quiz-check 4s var(--spring) infinite 0.6s;
}

@keyframes quiz-right {
  0%, 18% { background: var(--white); box-shadow: inset 0 0 0 0.1em var(--track); color: var(--ink); }
  26%, 88% { background: var(--success-tint); box-shadow: inset 0 0 0 0.12em var(--success-bright); color: var(--success); }
  100% { background: var(--white); box-shadow: inset 0 0 0 0.1em var(--track); color: var(--ink); }
}

@keyframes quiz-check {
  0%, 20% { opacity: 0; transform: scale(0.4); }
  30%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.4); }
}

/* «Сегодня» */
.app__screen--today {
  background: radial-gradient(120% 60% at 50% 0%, var(--surface-cool-1) 0%, var(--surface-cool-2) 60%, var(--surface-cool-3) 100%);
}

.today__head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 1.3em 0;
}

.today__title {
  flex: 1;
  font-size: 1.95em;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
}

.today__streak {
  display: flex;
  align-items: center;
  gap: 0.2em;
  color: var(--flame);
}

.today__streak b {
  color: var(--ink);
  font-size: 1.15em;
  font-weight: var(--weight-semibold);
}

.today__flag {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: var(--r-round);
  background: var(--white);
  box-shadow: 0 0.3em 0.8em -0.3em rgb(var(--ink-rgb) / 0.25);
}

.today__flag i {
  width: 1.15em;
  height: 1.15em;
  border-radius: var(--r-round);
  --flag-red: #cd2e3a;
  --flag-blue: #0047a0;
  background: linear-gradient(180deg, var(--flag-red) 50%, var(--flag-blue) 50%);
  transform: rotate(-30deg);
}

.today__review {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.9em 1.05em 0;
  padding: 0.9em 0.9em 1em;
  border-radius: 2em;
  overflow: hidden;
  text-align: center;
}

.today__chip {
  align-self: flex-start;
  padding: 0.35em 0.8em;
  border-radius: var(--r-pill);
  background: rgb(var(--white-rgb) / 0.92);
  font-size: 0.85em;
  font-weight: var(--weight-medium);
}

.today__review .plush {
  margin-top: -1.4em;
}

.today__review-title {
  margin-top: -0.6em;
  font-size: 1.6em;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.today__review-text {
  margin-top: 0.15em;
  font-size: 0.95em;
}

.today__review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: 100%;
  height: 3em;
  margin-top: 0.8em;
  border-radius: var(--r-pill);
  background: var(--white);
  font-weight: var(--weight-semibold);
}

.aweek {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0.8em 1.05em 0;
}

.aweek__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  padding: 0.45em 0 0.4em;
  border-radius: var(--r-pill);
}

.aweek__day small {
  font-size: 0.72em;
  color: var(--ink-2);
}

.aweek__day b {
  font-size: 1.15em;
  font-weight: var(--weight-semibold);
}

.aweek__day svg {
  width: 0.95em;
  height: 0.95em;
  color: var(--icon-off);
}

.aweek__day.is-done svg {
  color: var(--flame);
}

.aweek__day.is-frozen svg {
  color: var(--frost);
}

.aweek__day.is-today {
  background: var(--white);
  box-shadow: 0 0.4em 1em -0.5em rgb(var(--ink-rgb) / 0.3);
}

.app__screen--today.is-active .aweek__day.is-done svg {
  animation: pop 0.6s var(--spring) both;
  animation-delay: calc(var(--d) * 0.12s + 0.3s);
}

@keyframes pop {
  from { transform: scale(0); }
}

.atiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65em;
  margin: 0.8em 1.05em 0;
}

.atile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.8em 1em;
  border-radius: 1.4em;
  background: var(--white);
}

.atile small {
  font-size: 0.82em;
  color: var(--ink-2);
}

.atile b {
  font-size: 2em;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
}

.atile__ring {
  position: absolute;
  right: 0.9em;
  bottom: 0.9em;
  width: 2.4em;
  height: 2.4em;
  border-radius: var(--r-round);
  background: conic-gradient(var(--primary) 0 var(--progress, 0%), var(--track) 0);
  -webkit-mask: radial-gradient(circle, transparent 55%, var(--black) 57%);
  mask: radial-gradient(circle, transparent 55%, var(--black) 57%);
}

.tabbar {
  position: absolute;
  left: 0.9em;
  right: 0.9em;
  bottom: 1.5em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4.2em;
  padding: 0.3em;
  border-radius: var(--r-pill);
  background: rgb(var(--white-rgb) / 0.9);
  box-shadow: 0 0.8em 2em -1em rgb(var(--ink-rgb) / 0.3), 0 0 0 0.06em rgb(var(--ink-rgb) / 0.05);
}

.tabbar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}

.tabbar__tab small {
  font-size: 0.7em;
  font-weight: var(--weight-medium);
}

.tabbar__tab.is-active {
  background: var(--primary-btn);
  color: var(--white);
}

/* ================================================================== hero */

.hero {
  padding: 12px clamp(8px, 1vw, 12px) 0;
}

.hero__panel {
  position: relative;
  isolation: isolate;
  height: clamp(700px, calc(100svh - 24px), 920px);
  border-radius: var(--r-hero);
  overflow: hidden;
}

/* светлая вуаль со стороны текста: градиент остаётся за телефоном,
   а тёмный текст всегда лежит на светлом */
.hero__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgb(var(--haze-rgb) / 0.95) 0%,
    rgb(var(--haze-rgb) / 0.86) 36%,
    rgb(var(--haze-rgb) / 0) 66%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) var(--gutter) 24px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: var(--r-pill);
  background: rgb(var(--white-rgb) / 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.9), 0 8px 24px -14px rgb(var(--ink-rgb) / 0.25);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

.hello {
  --hello-h: 30px;
  position: relative;
  display: inline-grid;
  height: var(--hello-h);
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  transition: width 0.45s var(--ease);
}

.hello__item {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: var(--hello-h);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.hello__item.is-active {
  opacity: 1;
  transform: none;
}

.hello__item.is-out {
  opacity: 0;
  transform: translateY(-100%);
}

.hero__title {
  margin-top: 26px;
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
}

.hero__line {
  display: block;
}

.hero__sub {
  margin-top: 24px;
  max-width: 520px;
  font-size: var(--text-lead-lg);
  line-height: var(--leading-normal);
  color: var(--ink);
  text-wrap: pretty;
}

.rotator {
  position: relative;
  display: inline-block;
  height: 1.45em;
  vertical-align: bottom;
  overflow: hidden;
  transition: width 0.45s var(--ease);
}

.rotator__item {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--primary-btn);
  font-weight: var(--weight-semibold);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.rotator__item.is-active {
  position: relative;
  opacity: 1;
  transform: none;
}

.rotator__item.is-out {
  opacity: 0;
  transform: translateY(-100%);
}

.no-js .rotator__item:not(:first-child) {
  display: none;
}

.hero__actions {
  margin-top: 32px;
}

.hero__note {
  margin-top: 16px;
  text-wrap: balance;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink);
}

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.hero__phone {
  position: relative;
  z-index: 2;
  transform: perspective(1600px) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform 0.6s var(--ease);
  animation: phone-in 1.1s var(--ease) both 0.15s;
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 0 60px;
  }
}

.iphone--hero {
  --w: clamp(250px, 22vw, 316px);
}

.hero__actor {
  position: absolute;
  z-index: 3;
}

.hero__actor > .depth > .plush {
  animation: actor-in 1s var(--spring) both;
}

.hero__actor--ko {
  left: -10%;
  bottom: 4%;
  rotate: -9deg;
}

.hero__actor--ko > .depth > .plush { animation-delay: 0.5s; }

.hero__actor--zh {
  z-index: 1;
  right: 2%;
  top: 6%;
  rotate: 10deg;
}

.hero__actor--zh > .depth > .plush { animation-delay: 0.62s; }

.hero__actor--latin {
  right: -4%;
  bottom: 14%;
  rotate: 8deg;
}

.hero__actor--latin > .depth > .plush { animation-delay: 0.74s; }

@keyframes actor-in {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.5);
  }
}

.depth {
  display: block;
  will-change: transform;
}

/* лента слов под первым экраном */
.ticker {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 8%, var(--black) 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--black) 8%, var(--black) 92%, transparent);
}

.ticker__track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px 0 8px;
  animation: ticker 90s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

.wchip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.04), 0 4px 14px -8px rgb(var(--ink-rgb) / 0.14);
  font-size: var(--text-base);
  white-space: nowrap;
}

.wchip__word {
  font-family: var(--font-ko);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

.wchip__translit {
  color: var(--ink-2);
}

.wchip__meaning {
  font-weight: var(--weight-medium);
}

.wchip__meaning::before {
  content: '→';
  margin-right: 8px;
  color: var(--ink-3);
}

/* ========================================================= заголовок в две колонки */

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.split-head .section-head {
  margin-bottom: 0;
}

.split-head__lead {
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ================================================================= метод */

.chain {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1fr;
  gap: 18px;
}

.chain__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 340px;
  padding: 56px 22px 26px;
  border-radius: var(--r-3xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.chain__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -23px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: var(--r-round);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1C22' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
      center / 15px no-repeat,
    var(--white);
  box-shadow: 0 0 0 5px var(--bg), var(--shadow-1);
  transform: translateY(-50%);
}

.chain__label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  white-space: nowrap;
}

.chain__glyph {
  font-size: var(--text-glyph-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
}

.chain__lang {
  font-size: var(--text-base);
  color: var(--ink-2);
}

.chain__wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
}

.chain__wave i {
  width: 5px;
  height: 30%;
  border-radius: var(--r-3xs);
  background: linear-gradient(180deg, var(--primary-soft), var(--primary));
  animation: wave 1.2s ease-in-out infinite;
}

.chain__wave i:nth-child(3n) { animation-delay: -0.2s; height: 60%; }
.chain__wave i:nth-child(3n + 1) { animation-delay: -0.5s; height: 85%; }
.chain__wave i:nth-child(4n) { animation-delay: -0.8s; height: 45%; }
.chain__wave i:nth-child(5n) { animation-delay: -1s; height: 100%; }

@keyframes wave {
  50% {
    transform: scaleY(0.35);
  }
}

.chain__sound {
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-2);
}

.chain__sound b {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

.chain__step--image {
  padding: 56px 14px 18px;
  justify-content: flex-start;
}

.chain__pic {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--fill);
}

.chain__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chain__caption {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.chain__meaning {
  font-size: var(--text-word);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
}

.chain__check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-round);
  background: var(--success-tint);
  color: var(--success);
}

.chain__check svg {
  width: 22px;
  height: 22px;
}

.chain .chain__step {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--spring);
}

.chain.is-in .chain__step,
.no-js .chain .chain__step {
  opacity: 1;
  transform: none;
}

.chain.is-in .chain__step:nth-child(2) { transition-delay: 0.15s; }
.chain.is-in .chain__step:nth-child(3) { transition-delay: 0.3s; }
.chain.is-in .chain__step:nth-child(4) { transition-delay: 0.45s; }

.js .chain[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ======================================================= как это работает */

/* подсветка за телефоном шире колонки — обрезаем по разделу, не мешая sticky */
.section--how {
  overflow-x: clip;
}

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.how__steps {
  display: flex;
  flex-direction: column;
  padding-bottom: 12vh;
}

.how__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64vh;
  opacity: 0.28;
  transition: opacity 0.45s var(--ease);
}

.how__step.is-active {
  opacity: 1;
}

.how__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.how__n {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--primary-tint);
  color: var(--primary-press);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

.how__title {
  font-size: var(--text-step);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

.how__text {
  max-width: 480px;
  margin-top: 16px;
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: var(--ink-2);
  text-wrap: pretty;
}

.how__bar {
  display: none;
}

.how__stage {
  position: relative;
}

.how__sticky {
  position: sticky;
  top: max(84px, calc(50vh - 430px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.how__halo {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1;
  border-radius: var(--r-round);
  background: radial-gradient(closest-side, rgb(var(--primary-rgb) / 0.16), rgb(var(--primary-rgb) / 0.05) 60%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

/* как можно крупнее, но целиком в окне вместе с точками */
.iphone--how {
  --w: min(372px, 28vw, calc((100svh - 150px) / 2.14));
}

.how__dots {
  display: flex;
  gap: 6px;
}

.how__dots i {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: width 0.4s var(--ease), background-color 0.4s;
}

.how__dots i.is-active {
  width: 26px;
  background: var(--ink);
}

/* ============================================================ свайпни */

.play {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}

.play__score {
  display: flex;
  gap: 12px;
}

.score {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 18px 22px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.score b {
  font-size: var(--text-7xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--spring);
}

.score--keep b {
  color: var(--success);
}

.score small {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

.score.is-bump b {
  transform: scale(1.18);
}

.play__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 24px 0;
}

.play__halo {
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(closest-side at 30% 45%, rgb(var(--brand-blue-rgb) / 0.18), transparent),
    radial-gradient(closest-side at 72% 55%, rgb(var(--brand-violet-rgb) / 0.14), transparent);
  pointer-events: none;
}

.deck {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 340 / 548;
  touch-action: pan-y;
}

.deck__card {
  --pos: var(--i);
  position: absolute;
  inset: 0 0 28px;
  z-index: calc(40 - var(--pos));
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--pos) * 14px)) scale(calc(1 - var(--pos) * 0.05));
  transition: transform 0.5s var(--ease), opacity 0.45s var(--ease);
  cursor: grab;
  touch-action: pan-y;
}

.deck__card:nth-child(n + 4) {
  opacity: 0;
}

.deck__card.is-back,
.deck__card.is-top {
  opacity: 1;
}

.deck__card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.wcard--deck {
  height: 100%;
  box-shadow: 0 30px 60px -30px rgb(var(--ink-rgb) / 0.38), 0 0 0 1px rgb(var(--ink-rgb) / 0.04);
}

.wcard--deck .wcard__media {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

.wcard--deck img {
  pointer-events: none;
}

.deck .stamp {
  top: 18px;
  font-size: var(--text-body);
}

.deck .stamp--keep {
  left: 18px;
}

.deck .stamp--skip {
  right: 18px;
}

/* чип языка уступает место штампу «Запомнить» */
.deck__card .wcard__chip,
.ldeck__card .lcard__chip {
  opacity: calc(1 - var(--keep, 0) * 2.5);
}

/* карточка окрашивается со стороны, куда её тянут */
.deck__card::before,
.deck__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--r-3xl);
  pointer-events: none;
}

.deck__card::before {
  background: linear-gradient(90deg, rgb(var(--ink-rgb) / 0.26), rgb(var(--ink-rgb) / 0) 70%);
  opacity: var(--skip, 0);
}

.deck__card::after {
  background: linear-gradient(270deg, rgb(var(--success-rgb) / 0.3), rgb(var(--success-rgb) / 0) 70%);
  opacity: var(--keep, 0);
}

.deck__hint {
  position: absolute;
  left: 50%;
  bottom: 48%;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-pill);
  background: rgb(var(--ink-rgb) / 0.86);
  color: var(--white);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.deck__hint i {
  position: relative;
  width: 34px;
  height: 18px;
}

.deck__hint i::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--r-round);
  background: var(--white);
  animation: hint 1.6s var(--ease) infinite;
}

@keyframes hint {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(22px); opacity: 1; }
}

.deck.is-touched .deck__hint,
.no-js .deck__hint {
  opacity: 0;
}

.deck__done {
  position: absolute;
  inset: 0 0 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-3xl);
  background: var(--white);
  box-shadow: var(--shadow-2);
  text-align: center;
  animation: done-in 0.6s var(--spring) both;
}

@keyframes done-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}

.deck__crown {
  margin: -18px 0 -4px;
  animation: crown-in 0.7s var(--spring) both 0.1s;
}

@keyframes crown-in {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-14deg);
  }
}

/* корона «бросает» конфетти: подпрыгивает и качается */
.deck__crown.is-throw {
  animation: crown-throw 0.7s var(--spring);
}

@keyframes crown-throw {
  0% { transform: none; }
  30% { transform: translateY(-14px) scale(1.12) rotate(-8deg); }
  60% { transform: translateY(0) scale(0.96) rotate(5deg); }
  100% { transform: none; }
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 14px;
  border-radius: var(--r-3xs);
  will-change: transform, opacity;
}

.deck__done b {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.deck__done p {
  max-width: 260px;
  text-wrap: balance;
  margin-bottom: 8px;
  font-size: var(--text-base);
  color: var(--ink-2);
}

.deck__actions {
  position: relative;
  display: flex;
  gap: 10px;
  width: min(340px, 80vw);
}

.dbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  transition: transform 0.16s var(--ease), background-color 0.2s, box-shadow 0.2s;
}

.dbtn svg {
  width: 20px;
  height: 20px;
}

.dbtn:active {
  transform: scale(0.96);
}

.play__stage.is-done .deck__actions {
  opacity: 0.35;
  pointer-events: none;
}

.dbtn--skip {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.dbtn--skip:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.dbtn--keep {
  background: var(--primary-btn);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgb(var(--primary-btn-rgb) / 0.8);
}

.dbtn--keep:hover {
  background: var(--primary-press);
}

/* ================================================================ плитки */

.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--r-4xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.tile--card {
  grid-column: span 7;
}

.tile--streak {
  grid-column: span 5;
}

.tile--calm {
  grid-column: span 12;
  flex-direction: row-reverse;
  align-items: stretch;
}

.tile__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 300px;
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.tile--card .tile__stage,
.tile--streak .tile__stage {
  height: 360px;
}

.tile__stage--soft {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--white) 0%, rgb(var(--white-rgb) / 0) 70%),
    linear-gradient(180deg, var(--surface-cool-2), var(--surface-cool-3));
}

.tile__stage--soft::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(var(--ink-rgb) / 0.07) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, var(--black), transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, var(--black), transparent);
  pointer-events: none;
}

.tile__copy {
  padding: 22px 20px 16px;
}

.tile__title {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.tile__text {
  margin-top: 8px;
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* веер карточек */
.fan {
  position: relative;
  width: 100%;
  height: 100%;
}

.fan__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  transition: transform 0.8s var(--spring);
}

.fan__card--0 { transform: translate(-50%, -50%) translate(-128px, 18px) rotate(-12deg) scale(0.9); }
.fan__card--1 { transform: translate(-50%, -50%) translate(128px, 18px) rotate(12deg) scale(0.9); }
.fan__card--2 { z-index: 2; transform: translate(-50%, -50%) translateY(-4px); }

.tile--card:hover .fan__card--0 { transform: translate(-50%, -50%) translate(-176px, 30px) rotate(-17deg) scale(0.9); }
.tile--card:hover .fan__card--1 { transform: translate(-50%, -50%) translate(176px, 30px) rotate(17deg) scale(0.9); }
.tile--card:hover .fan__card--2 { transform: translate(-50%, -50%) translateY(-12px) scale(1.03); }

.wcard--mini {
  border-radius: var(--r-xl);
  box-shadow: 0 24px 40px -22px rgb(var(--ink-rgb) / 0.45);
}

.wcard--mini .wcard__chip {
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: var(--text-xs);
}

.wcard--mini .wcard__panel {
  padding: 10px 12px 14px 14px;
}

.wcard--mini .wcard__word {
  font-size: var(--text-5xl);
}

.wcard--mini .wcard__tools .rbtn {
  width: 30px;
  height: 30px;
}

.wcard--mini .wcard__tools svg {
  width: 15px;
  height: 15px;
}

.wcard--mini .wcard__meaning,
.wcard--mini .wcard__caption {
  font-size: var(--text-sm);
}

/* серия */
.streak {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: -16px;
}

.streak__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.streak__copy small {
  font-size: var(--text-base);
  color: var(--ink-2);
}

.streak__value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

.streak__value b {
  font-size: var(--text-8xl);
  line-height: var(--leading-none);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
}

.week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  width: min(100% - 32px, 400px);
  padding: 6px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 12px 30px -18px rgb(var(--ink-rgb) / 0.3);
}

.week__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 8px;
  border-radius: var(--r-pill);
}

.week__day small {
  font-size: var(--text-2xs);
  color: var(--ink-2);
}

.week__day b {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.week__day svg {
  width: 15px;
  height: 15px;
  color: var(--icon-off);
}

.week__day.is-done svg {
  color: var(--flame);
}

.week__day.is-frozen svg {
  color: var(--frost);
}

.week__day.is-today {
  background: var(--bg);
}

.tile.is-in .week__day.is-done svg {
  animation: pop 0.6s var(--spring) both;
  animation-delay: calc(var(--d) * 0.14s + 0.35s);
}

.week__note {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--frost-tint);
  color: var(--frost-ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.week__note svg {
  width: 15px;
  height: 15px;
}

/* чтение с первого дня */
.ruby {
  position: relative;
  display: grid;
  place-items: center;
}

.ruby__item {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.ruby__item.is-active {
  opacity: 1;
  transform: none;
}

.ruby__item.is-out {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
}

.ruby__say {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--primary-tint);
  color: var(--primary-press);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
}

.ruby__glyph {
  font-size: var(--text-glyph);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.ruby__meaning {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

/* сессия на три минуты */
.timer {
  position: relative;
  width: 150px;
  height: 150px;
}

.timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.timer__track {
  stroke: var(--track);
}

.timer__fill {
  stroke: var(--primary);
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--text-6xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
}

.lesson {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 40px, 280px);
}

.lesson__chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 6px 14px -8px rgb(var(--ink-rgb) / 0.3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.lesson__bar {
  flex: 1;
  height: 8px;
  border-radius: var(--r-2xs);
  background: var(--track);
  overflow: hidden;
}

.lesson__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 1.6s var(--ease) 0.4s;
}

.tile.is-in .lesson__bar i,
.no-js .lesson__bar i {
  width: var(--progress, 0%);
}

/* мини-тест */
.mquiz {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100% - 36px, 300px);
}

.mquiz__word {
  font-size: var(--text-9xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
}

.mquiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.mquiz__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 46px;
  padding: 0 12px 0 16px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--track);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
}

.mquiz__opt svg {
  width: 18px;
  height: 18px;
  opacity: 0;
}

.tile.is-in .mquiz__opt.is-right {
  animation: quiz-right 4s var(--ease) infinite 0.8s;
}

.tile.is-in .mquiz__opt.is-right svg {
  animation: quiz-check 4s var(--spring) infinite 0.8s;
}

/* ничего лишнего */
.tile--calm .tile__stage {
  flex: 1.1;
  height: auto;
  min-height: 220px;
}

.tile--calm .tile__copy {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.tile__stage--calm {
  background: linear-gradient(180deg, var(--surface-cool-2), var(--surface-cool-3));
}

.noise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
}

.noise__item {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  transition: opacity 0.5s var(--ease);
  transition-delay: calc(var(--d) * 0.25s + 0.9s);
}

.noise__item::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  border-radius: var(--r-3xs);
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  transition-delay: calc(var(--d) * 0.25s + 0.3s);
}

.tile.is-in .noise__item::after,
.no-js .noise__item::after {
  transform: scaleX(1);
}

.tile.is-in .noise__item,
.no-js .noise__item {
  opacity: 0.55;
}

.noise__only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 1.7s, transform 0.6s var(--spring) 1.7s;
}

.noise__only svg {
  width: 18px;
  height: 18px;
  color: var(--success-glow);
}

.tile.is-in .noise__only,
.no-js .noise__only {
  opacity: 1;
  transform: none;
}

/* ============================================ по учебникам: исследования */

/* Тёмная панель с тремя исследованиями. Полосы и кривая дорисовываются,
   когда карточка появляется на экране (класс is-in от initReveal). */
.night {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 5.5vw, 72px);
  border-radius: var(--r-5xl);
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.night__head {
  max-width: 760px;
}

.night__title {
  margin-top: 22px;
  font-size: var(--text-night);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

.night__title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--night-glow-1) 0%, var(--night-glow-2) 50%, var(--night-glow-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.night__sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: rgb(var(--white-rgb) / 0.86);
  text-wrap: pretty;
}

.studies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 52px);
}

.study {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-2xl);
  background: rgb(var(--white-rgb) / 0.07);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.study__viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 140px;
  margin-bottom: 24px;
}

/* сравнение двух групп: полосы растут до своего процента */
.pbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
}

.pbar__label {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: rgb(var(--white-rgb) / 0.86);
}

.pbar__value {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  font-variant-numeric: tabular-nums;
}

.pbar--lead .pbar__value {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-heading);
}

.pbar__track {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgb(var(--white-rgb) / 0.1);
  overflow: hidden;
}

.pbar__track i {
  display: block;
  width: calc(var(--v) * 1%);
  height: 100%;
  border-radius: inherit;
  background: rgb(var(--white-rgb) / 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease) calc(var(--delay, 0ms) + 250ms);
}

.pbar--lead .pbar__track i {
  background: linear-gradient(90deg, var(--night-bar-1), var(--night-bar-2));
  box-shadow: 0 0 18px rgb(var(--night-bar-rgb) / 0.55);
}

.study.is-in .pbar__track i,
.no-js .pbar__track i {
  transform: none;
}

/* кривая забывания: пунктир — зубрёжка, линия — повторения с паузами */
.study__big {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgb(var(--white-rgb) / 0.86);
}

.study__big b {
  margin-right: 2px;
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  color: var(--white);
}

.study__curve svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.curve {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.curve--spaced {
  stroke: var(--night-glow-2);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) calc(var(--delay, 0ms) + 250ms);
}

.curve--cram {
  stroke: rgb(var(--white-rgb) / 0.34);
  stroke-dasharray: 0.01 0.022;
  opacity: 0;
  transition: opacity 0.8s var(--ease) calc(var(--delay, 0ms) + 250ms);
}

.curve__dot {
  fill: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.study.is-in .curve--spaced,
.no-js .curve--spaced {
  stroke-dashoffset: 0;
}

.study.is-in .curve--cram,
.study.is-in .curve__dot,
.no-js .curve--cram,
.no-js .curve__dot {
  opacity: 1;
}

.study.is-in .curve__dot:nth-of-type(1) { transition-delay: calc(var(--delay, 0ms) + 0.7s); }
.study.is-in .curve__dot:nth-of-type(2) { transition-delay: calc(var(--delay, 0ms) + 1.1s); }
.study.is-in .curve__dot:nth-of-type(3) { transition-delay: calc(var(--delay, 0ms) + 1.5s); }

.study__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.study__text {
  margin-top: 8px;
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: rgb(var(--white-rgb) / 0.86);
  text-wrap: pretty;
}

/* где опубликовано: подпись без ссылки */
.study__source {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--text-md);
  font-style: normal;
  font-weight: var(--weight-medium);
  color: rgb(var(--white-rgb) / 0.86);
}

.night__endorse cite {
  font-style: normal;
  font-weight: var(--weight-semibold);
}

/* рекомендация IES — отдельной строкой под исследованиями */
.night__endorse {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 24px 18px 18px;
  border-radius: var(--r-xl);
  background: rgb(var(--white-rgb) / 0.07);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.12);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.night__endorse-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-round);
  background: var(--white);
  color: var(--ink);
}

.night__endorse-icon svg {
  width: 24px;
  height: 24px;
}

/* ================================================================= языки */

.langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lang {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.lang:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.lang__native {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

.lang__name {
  margin-top: 2px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
}

.lang__sample {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 18px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: var(--text-md);
  color: var(--ink-2);
}

.lang__sample b {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.lang__soon {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.lang.is-soon {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.lang.is-soon:hover {
  transform: none;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.lang.is-soon .lang__sample {
  border-top-color: var(--line-strong);
}

.langs__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: var(--text-base);
  color: var(--ink-2);
}

.langs__note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ================================================================ тарифы */

.plan-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.no-js .plan-controls {
  display: none;
}

.segment__save {
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--success-tint) !important;
  color: var(--success);
  font-weight: var(--weight-semibold);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.plan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--r-4xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.plan__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.plan__name {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.plan__badge {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgb(var(--white-rgb) / 0.22);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 40px;
}

.plan__amount {
  font-size: var(--text-price);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-title);
  font-variant-numeric: tabular-nums;
}

.plan__amount.is-flip {
  animation: flip 0.45s var(--ease);
}

@keyframes flip {
  0% { opacity: 1; transform: none; }
  45% { opacity: 0; transform: translateY(-12px); }
  55% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}

.plan__period {
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.plan__text {
  margin-top: 14px;
  font-size: var(--text-body);
  color: var(--ink-2);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 32px;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.plan__features svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: var(--r-round);
  background: var(--primary-tint);
  color: var(--primary-btn);
  flex: none;
}

.plan .btn {
  margin-top: auto;
}

.plan--featured {
  color: var(--white);
  background: var(--brand-azure);
  box-shadow: 0 30px 70px -30px rgb(var(--brand-azure-rgb) / 0.65);
}

.plan--featured .plan__period,
.plan--featured .plan__text {
  color: var(--white);
}

.plan--featured .plan__features svg {
  background: rgb(var(--white-rgb) / 0.22);
  color: var(--white);
}

.plans__note {
  margin-top: 24px;
  text-align: center;
  font-size: var(--text-md);
  color: var(--ink-3);
}

/* =================================================================== FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px 64px;
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: 100px;
}

.faq__help {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  border-radius: var(--r-3xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

/* пожимает плечами над карточкой «Не нашли ответ?» */
.faq__actor {
  position: absolute;
  top: -58px;
  right: 14px;
  rotate: 6deg;
  pointer-events: none;
}

.faq__help-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.faq__help-text {
  font-size: var(--text-body);
  color: var(--ink-2);
}

.faq__help-mail {
  margin: 6px 0 14px;
  font-weight: var(--weight-semibold);
  color: var(--primary-btn);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s;
}

.faq__item:hover {
  box-shadow: var(--shadow-2);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 22px 26px;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-xl);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-round);
  background: var(--bg);
  flex: none;
  transition: transform 0.4s var(--spring), background-color 0.3s, color 0.3s;
}

.faq__marker svg {
  width: 18px;
  height: 18px;
}

.faq__item.is-open .faq__marker,
.no-js .faq__item[open] .faq__marker {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--white);
}

.faq__wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.faq__item.is-open .faq__wrap,
.no-js .faq__item[open] .faq__wrap {
  grid-template-rows: 1fr;
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 26px 24px;
  font-size: var(--text-reading-sm);
  color: var(--ink-2);
  max-width: 640px;
}

/* ================================================================= финал */

.cta {
  padding-top: clamp(8px, 2vw, 24px);
}

/* Панель всегда во всю ширину окна и в полную высоту, а обрезка рисует её
   то колонкой с закруглёнными углами (--grow: 0), то полосой от края до
   края (--grow: 1). Раскладка не пересчитывается — двигается только маска. */
.cta__panel {
  --grow: 1;
  --edge: max(var(--gutter), (100% - var(--shell)) / 2);
  --rise: 56px;
  position: relative;
  isolation: isolate;
  min-height: calc(600px + var(--rise) * 2);
  /* маска режет только картинку; чтобы телефоны не раздвигали страницу вбок */
  overflow: clip;
  color: var(--white);
  clip-path: inset(
    calc(var(--rise) * (1 - var(--grow))) calc(var(--edge) * (1 - var(--grow)))
      round calc(var(--r-5xl) * (1 - var(--grow)))
  );
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--shell));
  min-height: inherit;
  margin-inline: auto;
  padding-inline: clamp(28px, 5vw, 72px);
}

.cta__copy {
  padding-block: clamp(48px, 6vw, 80px);
}

.cta__title {
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.cta__sub {
  margin-top: 18px;
  max-width: 440px;
  font-size: var(--text-lead);
  color: var(--white);
}

.stores--cta {
  margin-top: 32px;
}

.cta__note {
  margin-top: 16px;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--white);
}

.cta__phones {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}

/* плюшевый знак приложения поднимается вместе с баннером */
.cta__actor {
  position: absolute;
  left: -6%;
  bottom: calc(var(--rise) + 24px);
  z-index: 3;
  rotate: -8deg;
  opacity: var(--grow);
  transform: translateY(calc((1 - var(--grow)) * 80px)) scale(calc(0.7 + var(--grow) * 0.3));
  transform-origin: 50% 100%;
}

.cta__phone {
  position: absolute;
}

.cta__phone--back {
  left: 4%;
  top: calc(var(--rise) + 120px);
  rotate: -8deg;
}

.cta__phone--back .iphone {
  --w: clamp(210px, 18vw, 250px);
}

.cta__phone--front {
  right: 6%;
  top: calc(var(--rise) + 56px);
  rotate: 5deg;
}

.cta__phone--front .iphone {
  --w: clamp(230px, 20vw, 280px);
}

/* ================================================================ подвал */

.site-footer {
  margin-top: clamp(80px, 9vw, 140px);
}

.site-footer__panel {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 28px;
  border-radius: var(--r-5xl) var(--r-5xl) 0 0;
  background: var(--white);
  box-shadow: 0 -1px 0 rgb(var(--ink-rgb) / 0.04);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
}

.site-footer__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.site-footer__tagline {
  max-width: 400px;
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
}

.stores--footer .store {
  height: 52px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.foot-col__title {
  margin-bottom: 14px;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink-3);
}

.foot-col__title--spaced {
  margin-top: 26px;
}

.foot-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.foot-col__list a {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  transition: color 0.2s;
}

.foot-col__list a:hover {
  color: var(--primary-btn);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer__prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.no-js .currency-switch {
  display: none;
}

.site-footer__legal {
  font-size: var(--text-md);
  color: var(--ink-3);
}

/* ================================================== карточка слова */

.wcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-3xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.wcard__media {
  position: relative;
  aspect-ratio: 9 / 10;
  background: var(--fill);
}

.wcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.wcard__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  box-shadow: 0 4px 12px -6px rgb(var(--ink-rgb) / 0.3);
}

.wcard__panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 20px 20px;
}

.wcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wcard__word {
  font-size: var(--text-7xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.wcard__tools {
  display: flex;
  gap: 6px;
  padding-top: 4px;
}

.wcard__meaning {
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.wcard__arrow {
  color: var(--ink-3);
}

.wcard__caption {
  font-size: var(--text-lg);
  color: var(--ink);
  font-weight: var(--weight-medium);
}

/* ===================================================== текстовые страницы */

.page__head {
  padding-top: calc(var(--header-h) + 24px);
}

.page__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 340px;
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: var(--r-hero);
  overflow: hidden;
}

.page__hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 820px;
}

.page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.8);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  transition: background-color 0.2s;
}

.page__back:hover {
  background: var(--white);
}

.page__back svg {
  width: 18px;
  height: 18px;
}

.page__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

.page__lead {
  max-width: 680px;
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--ink);
  text-wrap: pretty;
}

.page__meta {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink);
}

.page__meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page__author:hover {
  color: var(--ink);
}

.page__body {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.page__body--with-toc {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

/* у статьи шапка, обложка и текст одной ширины: колонка узкая, чтобы строка читалась */
.page--article .article-head .shell,
.page--article .page__body,
.page--article .page__end {
  max-width: calc(880px + var(--gutter) * 2);
}

.page--article .page__title {
  font-size: var(--text-article);
}

/* шапка списка блога: ниже обычной, чтобы статьи начинались в первом экране */
.page__hero--compact {
  min-height: 0;
  padding-block: clamp(28px, 4vw, 52px);
}

.page__hero--compact .page__hero-copy {
  gap: 16px;
}

.page__hero--compact .page__title {
  font-size: var(--text-article);
}

.page__hero--compact .search {
  width: 100%;
  margin-top: 8px;
}

/* хлебные крошки: «Wowly › Блог › Статья», последняя — в одну строку с многоточием */
.crumbs {
  max-width: 100%;
}

.crumbs ol {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}

.crumbs li {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
}

.crumbs li:last-child {
  flex: 0 1 auto;
}

.crumbs li + li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 11px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.crumbs a {
  padding-block: 6px;
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

/* на цветной панели текст только чёрный */
.page__hero .crumbs ol {
  color: var(--ink);
}

.page__hero .crumbs {
  margin-bottom: 6px;
}

/* шапка статьи: на фоне страницы, цвет даёт обложка под ней */
.article-head {
  padding-top: calc(var(--header-h) + 44px);
}

.article-head__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.article-head .crumbs {
  margin-bottom: 2px;
}

.article-head .page__lead {
  color: var(--ink-soft);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 4px;
}

.byline__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

.byline__author:hover .byline__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.byline__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-2xs);
}

.byline__meta {
  font-size: var(--text-md);
  color: var(--ink-2);
}

.article-cover {
  margin-top: clamp(28px, 4vw, 40px);
  aspect-ratio: 1200 / 630;
  border-radius: var(--r-hero);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-1);
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* оглавление */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.toc a:hover {
  background: var(--bg);
  color: var(--ink);
}

.toc--inline {
  position: static;
  margin-bottom: 2em;
  background: var(--bg);
  box-shadow: none;
}

.prose .toc ul,
.prose .toc ol {
  padding-left: 0;
  gap: 0;
  list-style: none;
  counter-reset: toc;
}

.prose .toc li::before {
  display: none;
}

/* у статьи разделы пронумерованы: номер — часть ссылки, а не маркер списка */
.prose .toc ol > li {
  counter-increment: toc;
}

.prose .toc ol a {
  display: flex;
  gap: 10px;
}

.prose .toc ol a::before {
  content: counter(toc);
  flex: none;
  min-width: 1.1em;
  font-weight: var(--weight-semibold);
  color: var(--primary-press);
}

.prose .toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--text-base);
}

.prose .toc a:hover {
  color: var(--ink);
  background: var(--white);
}

.toc__title {
  margin: 0 0 8px 12px !important;
  font-size: var(--text-md) !important;
  font-weight: var(--weight-semibold);
  color: var(--ink) !important;
}

/* текст */
.prose {
  min-width: 0;
  padding: clamp(24px, 4.5vw, 60px);
  border-radius: var(--r-4xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: var(--ink-prose);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 1.9em;
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  color: var(--ink);
  scroll-margin-top: 110px;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  scroll-margin-top: 110px;
}

.prose h4 {
  margin-top: 1.4em;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.prose > :first-child,
.prose > .toc + * {
  margin-top: 0;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}

.prose a {
  color: var(--primary-btn);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--primary-press);
}

.prose strong {
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding-left: 1.4em;
}

.prose ul {
  list-style: none;
  padding-left: 1.3em;
}

.prose ul > li {
  position: relative;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: -1.05em;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: var(--r-round);
  background: var(--primary);
}

.prose ol {
  list-style: decimal;
}

.prose ol > li::marker {
  color: var(--primary);
  font-weight: var(--weight-semibold);
}

.prose blockquote {
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--primary-tint);
  color: var(--quote);
  font-size: var(--text-xl);
}

.prose blockquote > * + * {
  margin-top: 0.6em;
}

.prose hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--line);
}

.prose code {
  overflow-wrap: anywhere;
  padding: 2px 7px;
  border-radius: var(--r-2xs);
  background: var(--bg);
  font-size: 0.9em;
}

.prose figure {
  margin-block: 1.8em;
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
}

.prose figcaption {
  margin-top: 10px;
  font-size: var(--text-md);
  color: var(--ink-2);
  text-align: center;
}

/* широкая таблица листается сама, а не растягивает страницу на телефоне;
   скругление обрезает и прокручиваемый блок, отдельный overflow: hidden не нужен —
   он отключил бы прокрутку и срезал правые колонки */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--bg);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.prose tr:last-child td {
  border-bottom: 0;
}

/* конец статьи: теги и «поделиться» одной карточкой, под ней «Читайте также» */
.page__end {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.article-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.tags,
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tags + .share {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tags__title,
.share__title {
  margin-right: 8px;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

.tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--text-md);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.tag:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.share {
  justify-content: space-between;
}

.share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  transition: background-color 0.2s, color 0.2s;
}

.share__btn:hover {
  background: var(--bg-2);
}

.share__btn svg {
  width: 18px;
  height: 18px;
}

.share__btn--icon {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.share__btn.is-copied {
  background: var(--success-tint);
  color: var(--success);
}

.related {
  margin-top: clamp(36px, 5vw, 56px);
}

.related__title {
  margin-bottom: 18px;
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* в «Читайте также» карточка короче: без лида, заголовок мельче */
.related .post__body {
  gap: 8px;
  padding: 14px 12px 14px;
}

.related .post__title {
  font-size: var(--text-lg);
}

.related .post__lead {
  display: none;
}

/* призыв внизу страницы: синий градиент, белый текст и белые кнопки */
.page__cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 36px;
  border-radius: var(--r-4xl);
  overflow: hidden;
  color: var(--white);
}

.logo--badge .logo__word {
  display: none;
}

.logo--badge .logo__mark {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 3px rgb(var(--white-rgb) / 0.35), 0 12px 24px -10px rgb(var(--shade-rgb) / 0.5);
}

.page__cta-title {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
}

.page__cta-sub {
  margin-top: 8px;
  font-size: var(--text-body);
  color: var(--white);
}

/* блог: поиск в шапке, рубрики и RSS строкой над сеткой, сетка карточек */
.blog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.blog-rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.blog-rss:hover {
  background: var(--white);
  color: var(--ink);
}

.blog-rss svg {
  width: 18px;
  height: 18px;
}

.search {
  position: relative;
  max-width: 520px;
}

.search[hidden] {
  display: none;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.search__icon svg {
  width: 20px;
  height: 20px;
}

.search__input {
  width: 100%;
  height: 54px;
  padding: 0 52px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--text-body);
  outline: none;
  transition: box-shadow 0.2s;
}

.search__input:focus {
  box-shadow: 0 0 0 2.5px var(--primary), var(--shadow-1);
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-round);
  background: var(--bg);
  transform: translateY(-50%);
}

.search__clear svg {
  width: 16px;
  height: 16px;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.chip:hover {
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  color: var(--white);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* карточка статьи: обложка в белой рамке, под ней рубрика, дата, заголовок и лид */
.post {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-3xl);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.post[hidden] {
  display: none;
}

.post__media {
  position: relative;
  flex: none;
  aspect-ratio: 1200 / 630;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-cool-2);
}

/* <picture> строчный — без этого картинка не тянется на высоту рамки */
.post__media picture,
.article-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.post__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.04);
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.post__tag {
  font-weight: var(--weight-semibold);
  color: var(--primary-press);
}

.post__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.post__lead {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
}

/* часть статей только на другом языке — ссылка на тот блог */
.blog-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 12px;
  font-size: var(--text-base);
  color: var(--ink-2);
  text-align: center;
}

.blog-more__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  transition: box-shadow 0.2s;
}

.blog-more__link:hover {
  box-shadow: var(--shadow-2);
}

.blog-more__link svg {
  width: 18px;
  height: 18px;
}

.blog-empty {
  padding: 40px;
  border-radius: var(--r-2xl);
  background: var(--white);
  text-align: center;
  color: var(--ink-2);
}

/* =============================================================== анимации */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease) var(--delay, 0ms),
    transform 0.9s var(--ease) var(--delay, 0ms),
    box-shadow 0.5s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js .tile[data-reveal].is-in:hover,
.js .lang[data-reveal].is-in:not(.is-soon):hover {
  transform: translateY(-4px);
}

/* ============================================================== адаптив */

@media (max-width: 1180px) {

  .nav__link {
    padding-inline: 10px;
    font-size: var(--text-md);
  }

  .tile--card,
  .tile--streak {
    grid-column: span 6;
  }

  .fan__card {
    width: 168px;
  }

  .fan__card--0 { transform: translate(-50%, -50%) translate(-96px, 18px) rotate(-12deg) scale(0.9); }
  .fan__card--1 { transform: translate(-50%, -50%) translate(96px, 18px) rotate(12deg) scale(0.9); }
  .tile--card:hover .fan__card--0 { transform: translate(-50%, -50%) translate(-120px, 26px) rotate(-16deg) scale(0.9); }
  .tile--card:hover .fan__card--1 { transform: translate(-50%, -50%) translate(120px, 26px) rotate(16deg) scale(0.9); }
}

@media (max-width: 1080px) {
  .nav,
  .site-header__actions .lang-switch,
  .site-header__cta {
    display: none;
  }

  .burger {
    display: grid;
  }

  .site-header__bar {
    justify-content: space-between;
  }

  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px);
    max-width: none;
  }

  .dock {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 70;
    display: block;
    transform: translateY(140%);
    transition: transform 0.45s var(--spring);
  }

  body.is-scrolled .dock,
  body.is-locked .dock {
    transform: none;
  }

  .dock__btn {
    height: 58px;
    box-shadow: 0 16px 36px -14px rgb(var(--primary-btn-rgb) / 0.8);
  }

  .split-head,
  .faq {
    grid-template-columns: 1fr;
  }

  .chain {
    grid-template-columns: repeat(2, 1fr);
  }

  .chain__step:nth-child(2)::after {
    display: none;
  }

  .studies {
    grid-template-columns: 1fr;
  }

  .study {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 36px;
  }

  .study__viz {
    grid-row: 1 / span 3;
    height: auto;
    margin-bottom: 0;
  }

  .tile {
    grid-column: span 6;
  }

  .tile--session {
    grid-column: span 6;
  }

  .tile--results {
    grid-column: span 12;
  }

  .faq__aside {
    position: static;
  }

  .play {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--rise) + 8px);
  }

  .cta__copy {
    padding-bottom: 0;
  }

  .cta__phones {
    min-height: 440px;
  }

  .cta__phone--back {
    left: auto;
    right: 52%;
    top: 70px;
  }

  .cta__phone--front {
    left: 50%;
    right: auto;
    top: 20px;
  }

  .page__body--with-toc {
    grid-template-columns: 1fr;
  }

  .page__body--with-toc .toc {
    position: static;
  }

  .page__cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page__cta .stores {
    grid-column: 1 / -1;
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* механика урока: телефон сверху, шаги листаются сами, как сторис */
@media (max-width: 900px) {
  .hero__panel {
    height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 0;
  }

  .hero__copy {
    align-items: center;
    text-align: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .stores {
    justify-content: center;
  }

  .hero__stage {
    height: auto;
    padding: 36px 0 0;
    overflow: hidden;
    margin-inline: calc(var(--gutter) * -1);
  }

  .hero__phone {
    margin-bottom: -26%;
  }

  .hero__panel::after {
    background: linear-gradient(
      180deg,
      rgb(var(--haze-rgb) / 0.95) 0%,
      rgb(var(--haze-rgb) / 0.86) 44%,
      rgb(var(--haze-rgb) / 0) 70%
    );
  }

  .iphone--hero {
    --w: min(290px, 66vw);
  }

  .hero__actor--ko {
    left: 2%;
    bottom: 24%;
  }

  .hero__actor--latin {
    right: 0;
    bottom: 34%;
  }

  .hero__actor--zh {
    right: 8%;
    top: 4%;
  }

  .hero__actor .plush {
    width: clamp(90px, 24vw, 150px) !important;
  }

  .hero__actor--zh .plush {
    width: clamp(70px, 18vw, 110px) !important;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how__stage {
    order: -1;
  }

  .how__sticky {
    position: relative;
    top: 0;
  }

  .iphone--how {
    --w: min(310px, 76vw);
  }

  .how__steps {
    gap: 8px;
    padding-bottom: 0;
  }

  .how__step {
    min-height: 0;
    padding: 18px 20px;
    border-radius: var(--r-xl);
    background: var(--white);
    box-shadow: var(--shadow-1);
    opacity: 0.6;
  }

  .how__step.is-active {
    opacity: 1;
  }

  .how__head {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .how__title {
    font-size: var(--text-2xl);
    letter-spacing: var(--tracking-heading);
  }

  .how__text {
    display: none;
    margin-top: 10px;
    font-size: var(--text-body);
  }

  .how__step.is-active .how__text {
    display: block;
  }

  .how__bar {
    display: block;
    height: 3px;
    margin-top: 14px;
    border-radius: var(--r-3xs);
    background: var(--bg-2);
    overflow: hidden;
  }

  .how__step:not(.is-active) .how__bar {
    display: none;
  }

  .how__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ink);
  }

  .how.is-playing .how__step.is-active .how__bar i {
    animation: story var(--story, 5s) linear forwards;
  }

  @keyframes story {
    to {
      width: 100%;
    }
  }
}

@media (max-width: 760px) {
  body {
    font-size: var(--text-body);
  }

  :root {
    --header-h: 58px;
  }

  .site-header {
    top: 8px;
  }

  .logo {
    font-size: var(--text-2xl);
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-xs);
  }

  .hero {
    padding: 8px 8px 0;
  }

  .hero__grid {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero__chip {
    max-width: 100%;
  }

  .hero__eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__title {
    font-size: var(--text-hero-sm);
    margin-top: 22px;
  }

  .hero__sub {
    margin-top: 18px;
    font-size: var(--text-lg);
  }

  .hero__actions {
    margin-top: 24px;
  }

  .store {
    height: 52px;
    padding: 0 18px 0 14px;
  }

  .store__text b {
    font-size: var(--text-body);
  }

  .section-head__title {
    font-size: var(--text-h2-sm);
  }

  .chain,
  .plans {
    grid-template-columns: 1fr;
  }

  .langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lang {
    padding: 18px 16px 16px;
    border-radius: var(--r-lg);
  }

  .lang__native {
    font-size: var(--text-4xl);
  }


  .chain__step {
    min-height: 0;
    padding: 60px 20px 24px;
  }

  .chain__step:not(:last-child)::after {
    display: block !important;
    top: auto;
    bottom: -23px;
    right: 50%;
    transform: translateX(50%) rotate(90deg);
  }

  .chain__glyph {
    font-size: var(--text-glyph-sm);
  }

  .chain__pic {
    max-width: 320px;
  }

  .play__score {
    justify-content: center;
  }

  .play__copy .section-head {
    text-align: left;
  }

  .score {
    flex: 1;
    min-width: 0;
  }

  .score b {
    font-size: var(--text-6xl);
  }

  .tiles {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tile,
  .tile--card,
  .tile--streak,
  .tile--session,
  .tile--results,
  .tile--calm {
    grid-column: auto;
    border-radius: var(--r-2xl);
  }

  .tile--calm {
    flex-direction: column;
  }

  .tile__stage,
  .tile--card .tile__stage,
  .tile--streak .tile__stage {
    height: 280px;
    border-radius: var(--r-lg);
  }

  .tile--calm .tile__stage {
    min-height: 200px;
  }

  .tile--calm .tile__copy {
    padding: 22px 20px 16px;
  }

  .fan__card {
    width: 140px;
  }

  .fan__card--0 { transform: translate(-50%, -50%) translate(-82px, 14px) rotate(-12deg) scale(0.9); }
  .fan__card--1 { transform: translate(-50%, -50%) translate(82px, 14px) rotate(12deg) scale(0.9); }

  .wcard--mini .wcard__word {
    font-size: var(--text-4xl);
  }

  .wcard--mini .wcard__tools {
    display: none;
  }

  .streak .plush {
    width: 104px !important;
  }

  .streak__value b {
    font-size: var(--text-7xl);
  }

  .week__day b {
    font-size: var(--text-base);
  }

  .night {
    padding: 32px 20px 20px;
    border-radius: var(--r-3xl);
  }

  .study {
    display: flex;
    padding: 22px 20px;
    border-radius: var(--r-xl);
  }

  .study__viz {
    height: auto;
    margin-bottom: 20px;
  }

  .night__endorse {
    align-items: flex-start;
    padding: 16px;
    font-size: var(--text-base);
  }

  .plan {
    padding: 26px;
    border-radius: var(--r-3xl);
  }

  .plan-controls {
    flex-direction: column;
    align-items: center;
  }

  .faq__q {
    padding: 18px 18px 18px 22px;
    font-size: var(--text-lg);
  }

  .faq__a p {
    padding: 0 22px 20px;
  }

  .faq__help {
    margin-top: 40px;
    padding: 24px;
  }

  .cta__panel {
    --rise: 32px;
  }

  .cta__inner {
    padding-inline: 22px;
  }

  .cta__actor {
    left: 0;
    bottom: 12px;
  }

  .cta__actor .plush {
    width: 110px !important;
  }

  .cta__copy {
    padding-top: 36px;
    text-align: center;
  }

  .cta__sub {
    margin-inline: auto;
  }

  .cta__phones {
    min-height: 360px;
    margin-top: 28px;
  }

  .cta__phone--back .iphone {
    --w: 180px;
  }

  .cta__phone--front .iphone {
    --w: 200px;
  }

  .cta__phone--back {
    right: 46%;
  }

  .cta__phone--front {
    left: 42%;
  }

  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .site-footer__panel {
    border-radius: var(--r-3xl) var(--r-3xl) 0 0;
    padding-bottom: 100px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page__hero {
    min-height: 0;
    padding: 24px 22px 28px;
    border-radius: var(--r-3xl);
  }

  .page__back {
    margin-bottom: 24px;
  }

  .prose {
    padding: 24px 20px;
    border-radius: var(--r-2xl);
    font-size: var(--text-reading-sm);
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .post {
    border-radius: var(--r-2xl);
  }

  .post__media {
    border-radius: var(--r-lg);
  }

  .article-head {
    padding-top: calc(var(--header-h) + 28px);
  }

  .article-head__copy {
    gap: 14px;
  }

  .article-cover {
    border-radius: var(--r-2xl);
  }

  .article-foot {
    padding: 16px;
  }

  /* «Читайте также» на телефоне — строки: превью слева, заголовок справа */
  .related__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related .post {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .related .post__media {
    width: 128px;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
  }

  .related .post__body {
    min-width: 0;
    padding: 6px 10px;
  }

  .related .post__title {
    font-size: var(--text-base);
  }

  .page__cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .page__cta .stores {
    justify-content: flex-start;
  }

  .share__label {
    display: none;
  }

  .share__btn:first-child {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .store__text small {
    display: none;
  }

  .hero__chip .hero__eyebrow {
    display: none;
  }

  .hero__chip {
    padding-right: 5px;
  }
}

/* ======================================================== меньше движения */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ticker {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ticker__track {
    animation: none;
  }
}
