/* ============================================================
   Дизайн-система v4: личный блог Kleo / STARTMODELS.
   Палитра: белый / чёрный / жёлтый #FFF84F / сиреневый #F1AAF3.
   Один шрифт — Raleway; иерархия только весом и размером
   (лестница: 800 заголовки · 700 подзаголовки · 600 лейблы · 400 текст).
   Плоские цветные блоки, жёсткие офсетные тени на CTA. Mobile-first.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F2F8;
  --text: #141414;
  --muted: #6A636E;
  --soft: #4A444E;
  --hairline: rgba(20, 16, 22, .14);
  --accent: #FFF84F;          /* фирменный жёлтый */
  --on-accent: #0A0A0A;
  --accent-ink: #141414;      /* акцент для мелкого текста и иконок на светлом */
  --pop: #EBA3FF;             /* сиреневый */
  --ghost-ring: rgba(20, 16, 22, .35);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;
}

/* Светлые секции: перекраска через переменные */
.on-light {
  background: #FFFFFF;
  color: #141414;
  --text: #141414;
  --muted: #6A636E;
  --soft: #4A444E;
  --hairline: rgba(20, 16, 22, .16);
  --surface: #FFFFFF;
  --surface-2: #F4F0F6;
  --accent-ink: #141414;
  --ghost-ring: rgba(20, 16, 22, .35);
}

/* ---------- База ---------- */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  /* Цифры: у Raleway по умолчанию старостильные — 3, 4, 7, 9 ныряют под строку,
     а 0, 1, 2 ростом с строчную букву. В ценах и процентах это выглядит рвано,
     поэтому включаем прописные (lining) — единая высота по капители. */
  font-variant-numeric: lining-nums;
}

::selection { background: var(--accent); color: var(--on-accent); }

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h3 { font-size: .95rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid rgba(241, 170, 243, .9);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus-visible { left: 8px; }

.container {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}
.container.narrow { max-width: 880px; }

.section { padding: 80px 0; }
.section-tint { background: #F7F4FA; }
.section h2 { max-width: 26ch; }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 24px; font-size: .95rem; }
.section-lead.strong { color: var(--text); font-weight: 600; }
.center { text-align: center; margin-top: 26px; }

[id] { scroll-margin-top: 84px; }

/* Клевер-марка (вместо «O» в вордмарке) */
.wordmark-o {
  display: inline-block;
  width: .78em;
  height: .78em;
  object-fit: contain;
  vertical-align: -.05em;
  transform-origin: center;
}

/* ---------- Рубрики ---------- */

.rubric {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rubric::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.rubric-num {
  font-weight: 800;
  font-size: .9rem;
  color: var(--accent-ink);
  line-height: 1;
}
.rubric-name {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rubric-invert .rubric-num,
.rubric-invert .rubric-name { color: var(--on-accent); }
.rubric-invert::after { background: rgba(10, 10, 10, .3); }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, .92);
}
.btn-pop {
  background: var(--pop);
  color: var(--on-accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--ghost-ring);
}
.btn-dark {
  background: var(--on-accent);
  color: var(--accent);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, .28);
}
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .7rem; }

@media (hover: hover) {
  .btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(10, 10, 10, .92); }
  .btn-pop:hover { animation: none; transform: translateY(-2px); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-ink); color: var(--accent-ink); }
  .btn-dark:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(10, 10, 10, .28); }
}
.btn:active { transform: translate(0, 0); }

/* Свечение CTA */
.btn-primary::after, .btn-pop::after, .btn-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: .55;
}
.btn-primary::after { box-shadow: 0 0 32px 5px rgba(255, 248, 79, .55); }
.btn-pop::after { box-shadow: 0 0 42px 8px rgba(235, 163, 255, .85); }
.btn-dark::after { box-shadow: 0 0 26px 3px rgba(10, 10, 10, .4); }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after, .btn-pop::after { animation: glow 2.6s ease-in-out infinite alternate; }
  .btn-pop { animation: btn-pulse 2.2s ease-in-out infinite; }
}
@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes glow {
  from { opacity: .4; }
  to   { opacity: 1; }
}

/* ---------- Шапка: плавающий «ликвид гласс» ---------- */

.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 8px 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(20, 16, 22, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 6px;
}
.logo-badge svg { width: 100%; height: 100%; fill: currentColor; }
.logo-img { height: 30px; width: auto; transform-origin: center; }
.logo-name {
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-header .logo-name { color: #141414; }

.site-nav { display: none; margin-inline: auto; gap: 22px; }
.site-nav a {
  color: #5A5460;
  text-decoration: none;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
@media (hover: hover) { .site-nav a:hover { color: #141414; } }

.lang { display: flex; gap: 2px; }
.lang button {
  min-height: 44px;
  padding: 10px 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #5A5460;
  border-bottom: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.lang button[aria-pressed="true"] {
  color: #141414;
  border-bottom-color: var(--accent);
}
@media (hover: hover) { .lang button:hover { color: #141414; } }

.header-cta { display: none; box-shadow: none; }
.header-cta::after { display: none; }
@media (hover: hover) {
  .header-cta:hover { box-shadow: none; transform: translateY(-2px); }
}

@media (max-width: 767px) {
  .header-inner .logo-badge,
  .header-inner .lang { display: none; }
  /* Клевер-марка остаётся, но мелкая — в «таблетке» шапки она рядом с названием */
  .header-inner .logo-img { height: 17px; }
  .header-inner .logo { gap: 7px; }
  .header-inner {
    width: fit-content;
    margin-inline: auto;
    min-height: 0;
    padding: 9px 18px;
    gap: 0;
  }
  .header-inner .logo-name { font-size: .78rem; }
}
@media (min-width: 768px) {
  .site-header { top: 12px; }
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ---------- Обложка: фото на весь экран ---------- */

.cover { padding: 0; }

.cover-hero.photo-slot {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: none;
  height: 640px;
  height: min(88svh, 860px);
  overflow: hidden;
}
.cover-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (prefers-reduced-motion: no-preference) {
  .js .cover-photo-img { animation: kb 14s ease-in-out infinite alternate; }
}
@keyframes kb {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.cover-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: 38px;
}
@media (max-width: 767px) {
  .cover-overlay { padding-bottom: 88px; }
  .cover-overlay .cover-copy { margin-top: auto; max-width: none; }
  .cover-overlay .cover-copy h1 { font-size: clamp(1rem, 4.6vw, 1.25rem); max-width: 24ch; }
  .cover .cta-row .btn { min-height: 56px; padding: 16px 36px; font-size: .92rem; }
}
.cover-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: 38px;
}
@media (max-width: 767px) {
  .cover-overlay { padding-bottom: 88px; }
  .cover-overlay .cover-copy { margin-top: auto; max-width: none; }
  .cover-overlay .cover-copy h1 { font-size: clamp(1rem, 4.6vw, 1.25rem); max-width: 24ch; }
  .cover .cta-row .btn { min-height: 56px; padding: 16px 36px; font-size: .92rem; }
}
.masthead-wrap {
  position: absolute;
  z-index: 1;
  top: 74px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.masthead {
  font-weight: 900;
  font-size: clamp(2.2rem, 12.2vw, 10.5rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
  transform: scaleY(1.5);
  transform-origin: top center;
}
.masthead-img { height: clamp(48px, 12vw, 150px); width: auto; }
.cover-girl {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.cover-copy { margin-top: auto; max-width: 640px; }
.cover-copy h1 {
  font-size: clamp(1.05rem, 1.9vw + .5rem, 2.35rem);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 30ch;
  text-wrap: initial;
  transform: rotate(-1.4deg);
  transform-origin: left center;
}
.cover .cta-row .btn {
  min-height: 56px;
  padding: 16px 38px;
  font-size: .92rem;
}
/* «Маркер приземляется» при появлении */
.hl {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: .28em .55em;
  border-radius: .5em .75em .4em .85em / .75em .45em .85em .5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .6s var(--ease) .15s, color .4s ease .32s, text-shadow .4s ease .32s;
}
.cover-copy.in .hl {
  color: var(--on-accent);
  text-shadow: none;
  background-size: 100% 100%;
}
.recruit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.recruit i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .recruit i { animation: recruit-dot 1.6s ease-in-out infinite; }
}
@keyframes recruit-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hl-sub {
  display: inline-block;
  font-size: .74em;
  margin-top: .5em;
  white-space: nowrap;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cover .trust {
  display: inline-block;
  color: #fff;
  font-size: clamp(.82rem, .75vw + .5rem, .95rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 34ch;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(10, 10, 10, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Бегущая строка ---------- */

.marquee {
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  padding: 12px 0;
  border-block: 1px solid rgba(20, 16, 22, .25);
}
.marquee-track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 30s linear infinite; }
}
.marquee-track span {
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Фото-слоты ---------- */

.photo-slot {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  width: min(100%, 440px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cg fill='%23F6F5F2' opacity='.08'%3E%3Ccircle cx='100' cy='86' r='44'/%3E%3Cpath d='M24 260c0-66 34-108 76-108s76 42 76 108z'/%3E%3C/g%3E%3C/svg%3E") center bottom / 60% no-repeat,
    linear-gradient(165deg, #232323, #191914);
  overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot.empty img { display: none; }
.photo-note {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: rgba(10, 10, 10, .75);
  border: 1px solid rgba(246, 245, 242, .2);
  border-radius: 6px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A8A49D;
}
.photo-slot.empty .photo-note { display: block; }

/* ---------- Сторис ---------- */

.stories-bar { padding: 26px 0 10px; }
.stories-row {
  display: flex;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.stories-row::-webkit-scrollbar { display: none; }
.story-bubble {
  flex-shrink: 0;
  width: 76px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  transition: transform .25s var(--ease);
}
@media (hover: hover) { .story-bubble:hover { transform: translateY(-3px); } }
.story-bubble .ring {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--pop));
}
.story-bubble.viewed .ring { background: rgba(20, 16, 22, .2); }
.story-bubble .thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  overflow: hidden;
  font-size: 1.35rem;
}
.story-bubble .thumb img { position: absolute; inset: 0; }
@media (min-width: 768px) {
  .stories-row { gap: 24px; }
  .story-bubble { width: 96px; }
  .story-bubble .ring { width: 84px; height: 84px; }
  .story-bubble .thumb { font-size: 1.6rem; }
  .story-bubble .sb-label { font-size: .72rem; }
}
.story-bubble .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-bubble .sb-label {
  display: -webkit-box;
  height: 2.7em;
  font-size: .66rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 6, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sv-card {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--surface-2);
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 768px) {
  .sv-card {
    width: min(56vh, 440px);
    height: min(92vh, 800px);
    border-radius: 22px;
  }
}
.sv-progress {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 4px;
}
.sv-progress i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}
.sv-progress i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 999px;
}
.sv-head {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 14px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sv-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--on-accent);
  object-fit: cover;
  flex-shrink: 0;
}
.sv-label {
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.sv-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}
.sv-slide { position: absolute; inset: 0; }
.sv-slide > .s-media { width: 100%; height: 100%; object-fit: cover; }
.s-fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 26px calc(40px + env(safe-area-inset-bottom));
}
.s-fill .s-title {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.s-fill .s-text { font-size: 1.02rem; line-height: 1.55; max-width: 34ch; }
.s-fill .s-note { font-size: .72rem; opacity: .75; max-width: 36ch; }
.s-fill .s-cta {
  align-self: flex-start;
  margin-top: 10px;
  pointer-events: auto;
}
.s-black { background: #141414; color: #F6F5F2; }
.s-yellow { background: var(--accent); color: var(--on-accent); }
.s-lilac { background: var(--pop); color: var(--on-accent); }
.s-black .s-deco, .s-yellow .s-deco, .s-lilac .s-deco {
  position: absolute;
  top: -12%;
  right: -18%;
  width: 60%;
  opacity: .22;
  pointer-events: none;
}
.s-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(0,0,0,.6));
  pointer-events: none;
}
.sv-slide .s-fill.on-media { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.sv-mute {
  position: absolute;
  right: 14px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.sv-tap { position: absolute; top: 15%; bottom: 15%; z-index: 4; }
.sv-tap-prev { left: 0; width: 33%; }
.sv-tap-next { right: 0; width: 67%; }
.js .sv-slide-in { animation: sv-in .25s var(--ease); }
@keyframes sv-from-right { from { transform: translateX(100%); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes sv-from-left  { from { transform: translateX(-100%); opacity: .35; } to { transform: none; opacity: 1; } }
.js .sv-slide.sv-enter-right { animation: sv-from-right .36s var(--ease); }
.js .sv-slide.sv-enter-left  { animation: sv-from-left .36s var(--ease); }
@keyframes sv-hl-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.01); } 100% { transform: none; } }
.js .sv-card.sv-hl-change { animation: sv-hl-pop .36s var(--ease); }
@keyframes sv-in {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sv-slide-in,
  .js .sv-slide.sv-enter-right,
  .js .sv-slide.sv-enter-left,
  .js .sv-card.sv-hl-change { animation: none; }
}

/* ---------- Кто я такая + мой путь ---------- */

.kleo { position: relative; overflow: clip; }
.kleo-inner { position: relative; }
.kleo-img {
  position: absolute;
  right: -14%;
  top: -70px;
  width: min(38%, 300px);
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}
.kleo-grid { position: relative; z-index: 2; display: grid; gap: 36px; }
.kleo-copy { max-width: 480px; }
.kleo-text { color: var(--soft); font-size: .98rem; max-width: 46ch; }
.kleo-channel {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .92rem;
  text-underline-offset: 3px;
}

.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  position: relative;
  max-width: 560px;
}
.path::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline);
}
.path li { position: relative; padding-left: 30px; }
.path li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1.5px rgba(20, 16, 22, .4);
}
.path-tag {
  display: block;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.path p { color: var(--soft); font-size: .93rem; margin: 0; }
.path-note { margin-top: 6px; font-size: .84rem; color: var(--muted); }

@media (min-width: 1200px) {
  .kleo-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .path-note { grid-column: 2; }
  .kleo-img { top: auto; bottom: -110px; right: -120px; width: 300px; opacity: .5; }
}

/* ---------- Жёлтый блок: питч + шаги ---------- */

.spread-yellow {
  background: #FFFFFF;
  color: var(--text);
}
.spread-yellow h2 {
  color: var(--on-accent);
  max-width: 44ch;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  line-height: 1.7;
}
.steps-label {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 34px 0 16px;
}
.steps { display: grid; gap: 16px; margin-top: 6px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform .3s var(--ease);
}
.spread-yellow .step-card { background: var(--pop); border: none; }
@media (hover: hover) {
  .step-card:hover { transform: translateY(-4px); }
}
.step-num {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.spread-yellow .step-num,
.spread-yellow .step-card h3 { color: var(--on-accent); }
.step-card p { color: var(--muted); font-size: .88rem; }
.spread-yellow .step-card p { color: rgba(10, 10, 10, .78); }
.micro-note {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  margin-top: 26px;
}
.spread-yellow .micro-note { color: rgba(10, 10, 10, .72); }
.section .center { margin-top: 16px; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- Сиреневый разворот «тестовая модель» ---------- */

.spread-pop {
  background: var(--pop);
  color: var(--on-accent);
  padding: 88px 0;
  position: relative;
  overflow: clip;
}
.pop-clover {
  position: absolute;
  right: -10%;
  bottom: -34%;
  width: min(48%, 420px);
  stroke: rgba(10, 10, 10, .3);
  stroke-width: 1.4;
  fill: none;
  pointer-events: none;
}
.spread-pop .container { position: relative; }
.test-inner { display: grid; gap: 8px; margin-top: 8px; max-width: 800px; }
.spread-pop h2 {
  color: var(--on-accent);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
  max-width: 16ch;
}
.test-lead {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 22px;
  max-width: 44ch;
}
.test-lines { display: grid; gap: 12px; margin-bottom: 24px; }
.test-lines p {
  padding-left: 14px;
  border-left: 2px solid var(--on-accent);
  font-weight: 500;
  font-size: .95rem;
}
.test-note {
  display: inline-block;
  justify-self: start;
  padding: 11px 18px;
  border: 1.5px solid var(--on-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Манифест: реклама vs реальность ---------- */

.compare { display: grid; gap: 14px; }
.compare-row {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px;
}
.cell { display: grid; gap: 8px; align-content: start; }
.chip {
  justify-self: start;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.chip-ad { color: var(--muted); }
.chip-real { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell.ad s { color: var(--muted); font-size: .9rem; }
.cell.real p { font-weight: 500; font-size: .93rem; color: var(--text); }

@media (min-width: 768px) {
  .compare-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; padding: 22px 26px; }
}

/* ---------- Чек-лист проверки ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.check {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}
.check svg { width: 14px; height: 14px; }
.checklist p { font-size: .92rem; }

.callout {
  margin-top: 24px;
  background: var(--surface);
  border: 1.5px solid var(--accent-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
  padding: 20px 24px;
}
.callout p { font-weight: 600; font-size: .98rem; max-width: 58ch; }

@media (min-width: 768px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- Анонимность ---------- */

.anon-grid { display: grid; gap: 14px; margin-top: 6px; }
.anon-item {
  background: #FFFBDB;
  border: 0;
  border-radius: var(--radius);
  padding: 24px;
}
.anon-item:nth-child(even) { background: #F8ECFC; }
.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  margin-bottom: 14px;
}
.anon-item:nth-child(even) .icon-chip { background: var(--pop); }
.icon-chip svg { width: 21px; height: 21px; }
.anon-item h3 { font-size: .92rem; }
.anon-item p { color: var(--muted); font-size: .9rem; }

@media (min-width: 768px) {
  .anon-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .anon-item:first-child { grid-column: 1 / -1; }
  .anon-item:first-child p { max-width: 60ch; }
}
@media (min-width: 1200px) {
  .anon-grid { grid-template-columns: repeat(4, 1fr); }
  .anon-item:first-child { grid-column: span 2; }
}

/* ---------- Калькулятор + мокап чата ---------- */

.calc-inner { display: grid; gap: 36px; }
.calc-copy p { color: var(--muted); max-width: 58ch; margin-bottom: 24px; }

.chat-link {
  display: block;
  width: min(100%, 390px);
  justify-self: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .3s var(--ease);
}
@media (hover: hover) {
  .chat-link:hover { transform: translateY(-4px); }
}
.chat {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}
.chat-ava {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.chat-title { display: grid; line-height: 1.3; }
.chat-title b { font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chat-title small { color: var(--muted); font-size: .76rem; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 340px;
  background: var(--bg);
}
.msg {
  display: block;
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.45;
}
.msg.from-bot {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 5px;
}
.msg.from-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-bottom-right-radius: 5px;
}
.msg.result {
  background: #FFFBE0;
  border: 1.5px solid var(--accent);
  width: 100%;
  max-width: 100%;
}
.msg .msg-text { display: block; }
.res-label {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.msg .res-sum {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2px 6px 0 0;
}
.res-period { color: var(--muted); font-size: .88rem; }
.res-top {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(20, 16, 22, .25);
  font-weight: 600;
  font-size: .87rem;
}
.res-note { display: block; margin-top: 4px; color: var(--muted); font-size: .77rem; }

.dots { display: none; gap: 4px; padding: 3px 2px; }
.dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(168, 164, 157, .7);
  animation: bounce 1s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.js [data-msg] { display: none; }
.js [data-msg].shown { display: block; animation: msg-in .35s var(--ease); }
.js [data-msg].shown.typing .msg-text { display: none; }
.js [data-msg].shown.typing .dots { display: inline-flex; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Плашка вилки на фото обложки */
.float-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
  background: rgba(10, 10, 10, .92);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: calc(100% - 24px);
}
.float-chip .res-label { color: var(--accent); }
.float-chip .res-sum { font-size: 1.15rem; font-weight: 800; color: #F6F5F2; }
.float-chip .res-sum i {
  font-style: normal;
  font-weight: 600;
  font-size: .78rem;
  color: #A8A49D;
}
.float-chip .res-note { font-size: .72rem; color: #A8A49D; }

@media (min-width: 1200px) {
  .calc-inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .chat-link { justify-self: end; }
}

/* ---------- FAQ ---------- */

.faq-list { border-top: 2px solid var(--accent); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 17px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}
.faq-item .chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
  transition: transform .35s var(--ease);
}
.faq-item.open .chev { transform: rotate(180deg); }
.faq-item .panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq-item.open .panel { grid-template-rows: 1fr; }
.faq-item .panel > div { overflow: hidden; }
.faq-item .panel p {
  padding: 0 4px 18px;
  color: var(--muted);
  font-size: .93rem;
  max-width: 65ch;
}

/* ---------- Я на твоей стороне ---------- */

.model-card {
  background: var(--pop);
  border: 0;
  border-radius: var(--radius);
  padding: 26px 28px;
  color: #141414;
}
.model-card > p { font-size: .98rem; font-weight: 400; max-width: 62ch; }
.model-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Истории ---------- */

#stories { position: relative; overflow: clip; }
.spin-clover {
  position: absolute;
  right: -8%;
  top: -12%;
  width: min(38%, 340px);
  stroke: rgba(235, 163, 255, .55);
  stroke-width: 1.4;
  fill: none;
  pointer-events: none;
}
.stories-note {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .95rem;
  margin: -4px 0 26px;
}
.stories { display: grid; gap: 18px; }
.story {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  break-inside: avoid;
}
.story p { color: var(--soft); font-size: .92rem; }
.story p::first-letter {
  font-weight: 800;
  font-size: 1.45em;
  line-height: 1;
  padding-right: 2px;
  color: var(--accent);
}
.story footer { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.story-ava {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--accent);
}
.story-ava img { width: 100%; height: 100%; object-fit: cover; }
.story-ava i {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: var(--pop);
  color: var(--on-accent);
  font-style: normal;
  font-weight: 800;
  font-size: .95rem;
}
.story-ava.empty img { display: none; }
.story-ava.empty i { display: grid; }
.story .sig {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.story .sig::before { content: '— '; color: var(--pop); }

@media (max-width: 767px) {
  .stories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -20px;
    padding: 4px 20px 10px;
  }
  .stories::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (min-width: 768px) {
  .stories { display: block; column-count: 2; column-gap: 18px; }
  .story { margin-bottom: 18px; }
}
@media (min-width: 1200px) {
  .stories { column-gap: 24px; }
}

/* ---------- Мой дневник ---------- */

.sec-diary {
  background: #FFFFFF;
  color: var(--text);
}
.sec-diary h2 { color: var(--on-accent); }
.diary-lead { color: var(--muted); max-width: 56ch; margin-bottom: 22px; }
.diary-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.diary-chips span {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.diary-posts {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}
.diary-post {
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--on-accent);
  transition: transform .3s var(--ease);
}
@media (hover: hover) { .diary-post:hover { transform: translateY(-4px); } }
.dp-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--accent), var(--pop));
  overflow: hidden;
}
.dp-cover img { width: 100%; height: 100%; object-fit: cover; }
.dp-cover.empty img { display: none; }
.diary-post b { display: block; padding: 12px 16px 14px; font-size: .9rem; font-weight: 700; line-height: 1.4; }
@media (min-width: 768px) {
  .diary-posts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
}

/* ---------- Инфографика ---------- */

.chart { margin: 44px 0 0; max-width: 520px; }
.chart-cap {
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 170px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0;
}
.cbar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.cbar b { font-size: .9rem; font-weight: 800; }
.cbar i {
  display: block;
  width: 100%;
  max-width: 96px;
  height: var(--h);
  min-height: 3px;
  background: var(--accent);
  border: 1px solid rgba(20, 16, 22, .25);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
}
.js .cbar i { transform: scaleY(0); transition: transform .8s var(--ease); }
.js .chart.in .cbar:nth-child(1) i { transition-delay: .1s; }
.js .chart.in .cbar:nth-child(2) i { transition-delay: .25s; }
.js .chart.in .cbar:nth-child(3) i { transition-delay: .4s; }
.js .chart.in .cbar i { transform: scaleY(1); }
.cbar span {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.chart-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }

.split { margin: 4px 0 34px; max-width: 640px; }
.split-bar {
  display: flex;
  gap: 2px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(20, 16, 22, .25);
}
.split-bar .s1 { flex: 20; background: #141414; }
.split-bar .s2 { flex: 80; background: var(--accent); }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.split-legend > span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.split-legend em { width: 11px; height: 11px; border-radius: 3px; font-style: normal; }
.split-legend .k1 { background: #141414; }
.split-legend .k2 { background: var(--accent); border: 1px solid rgba(20, 16, 22, .25); }

/* ---------- Финал ---------- */

.final-card {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 24px;
  padding: 56px 22px;
  text-align: center;
}
.final-card h2 { color: var(--on-accent); margin-inline: auto; }
.final-card .rubric-name.light {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, .65);
  margin-bottom: 14px;
}
.final-card > p { max-width: 46ch; margin: 0 auto 26px; font-size: .98rem; font-weight: 500; }
.channel-link {
  display: block;
  margin-top: 22px;
  color: var(--on-accent);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) { .channel-link:hover { opacity: .75; } }

.mini-form {
  max-width: 460px;
  margin: 28px auto 0;
  background: rgba(10, 10, 10, .08);
  border: 1px solid rgba(10, 10, 10, .3);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
}
.mini-form-lead { font-size: .92rem; font-weight: 500; margin-bottom: 16px; }
.mini-form-fields { display: grid; gap: 12px; margin-bottom: 14px; }
.mini-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; }
.mini-form input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--on-accent);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px; /* ≥16px — iOS не зумит при фокусе */
  color: var(--on-accent);
  background: #FFFDF2;
}
.btn-form { width: 100%; }
.mini-form-status { margin-top: 10px; font-size: .9rem; font-weight: 600; min-height: 1.2em; }

@media (min-width: 768px) {
  .final-card { padding: 64px 48px; }
}

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 32px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; gap: 28px; }
.footer-clover { height: 30px; width: auto; transform-origin: center; will-change: transform; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-top: 12px; }
.footer-links { display: grid; gap: 10px; justify-items: start; }
.footer-links a {
  color: var(--muted);
  padding: 8px 0;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
@media (hover: hover) { .footer-links a:hover { color: #141414; } }
.footer-disclaimer, .footer-legal, .footer-copy {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 18px;
  max-width: 70ch;
}
.footer-copy { margin-top: 8px; }

/* Незаметная ссылка на другую версию лендинга — только на время сравнения */
.version-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .55;
}
@media (hover: hover) { .version-link:hover { opacity: 1; } }

@media (min-width: 768px) {
  .site-footer { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ---------- Страницы документов ---------- */

.doc { max-width: 760px; padding: 104px 0 64px; }
.doc h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.doc h2 { font-size: 1.1rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--soft); font-size: .97rem; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc-updated { color: var(--muted); font-size: .85rem; font-weight: 600; }
.doc-back {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
@media (hover: hover) { .doc-back:hover { color: #141414; } }
main.doc + .site-footer { padding-bottom: 32px; }

/* ---------- Sticky-CTA (мобильный) ---------- */

/* Нижний док как в приложениях: клевер-меню + CTA, «ликвид гласс» */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(20, 16, 22, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.dock .btn { flex: 1; box-shadow: none; }

.burger {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--pop);
  color: var(--accent);
  cursor: pointer;
}
.burger img, .burger svg { width: 26px; height: 26px; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] img, .burger[aria-expanded="true"] svg { transform: rotate(45deg); }

/* Меню — bottom sheet над доком */
.mobile-menu {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 49;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.js .mobile-menu { opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom center; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu > a {
  display: block;
  padding: 13px 10px;
  border-radius: 12px;
  color: #141414;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-menu > a:active { background: rgba(0, 0, 0, .05); }
.mobile-menu .lang { margin-top: 6px; }

@media (min-width: 768px) {
  .dock, .mobile-menu { display: none; }
}

/* ---------- Scroll-reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dots i { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity .3s ease; }
  .js [data-msg].shown { animation: none; }
  .hl { color: var(--on-accent); text-shadow: none; background-size: 100% 100%; transition: none; }
  .btn, .step-card, .chat-link, .faq-item .panel, .faq-item .chev, .sticky-cta, .mobile-menu { transition: none; }
  .js .cbar i { transform: scaleY(1); transition: none; }
  .btn-primary::after, .btn-pop::after { animation: none; }
  .btn-pop { animation: none; }
}
