/* ==========================================================
   Таро Онлайн — общий стиль для лендинга и документов
   Все цвета задаются переменными ниже: поменяли здесь — поменялось везде
   ========================================================== */

:root {
  /* Фон: ночное небо */
  --bg: #120a22;
  --bg-2: #1d1036;
  --bg-3: #2c1548;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(232, 195, 114, 0.22);
  --line-soft: rgba(255, 255, 255, 0.1);

  /* Золото и акценты */
  --gold: #e8c372;
  --gold-2: #f6dea4;
  --gold-deep: #b98d3c;
  --rose: #eaa6bd;
  --violet: #8f6ad8;

  /* Текст */
  --text: #efe9f7;
  --muted: #bcb0d3;
  --on-gold: #1c0f2e;

  /* Документы: светлый лист */
  --paper: #fbf8f2;
  --paper-text: #241a33;
  --paper-muted: #5c5070;
  --paper-line: #e6dccb;
  --ph-bg: #fff0b8;
  --ph-text: #6a4a00;

  /* Шрифты */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-text: "Manrope", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --header-h: 68px;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(143, 106, 216, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(234, 166, 189, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden; /* страховка от горизонтального скролла */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }

/* Видимый фокус для клавиатуры */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Ссылка «перейти к содержимому» для экранных читалок */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Звёздный холст (рисует script.js) ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: var(--on-gold);
  box-shadow: 0 8px 30px rgba(232, 195, 114, 0.28);
}
.btn-gold:hover {
  color: var(--on-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(232, 195, 114, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn-lg { min-height: 58px; padding: 16px 32px; font-size: 18px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка (липкая) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 10, 34, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo-mark { width: 30px; height: 30px; flex: none; }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover { color: var(--gold-2); }

.header-cta { padding: 10px 18px; min-height: 42px; font-size: 15px; }

/* Кнопка мобильного меню */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Секции ---------- */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(34px, 5vw, 54px); }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; font-weight: 500; }
.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.hero-note li::before { content: "✦ "; color: var(--gold); }

/* Веер из трёх карт. Карты вырезаются из реальных картинок бота через background-position */
.fan {
  position: relative;
  height: clamp(340px, 46vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fan::before { /* золотое свечение за картами */
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 195, 114, 0.32), rgba(143, 106, 216, 0.14) 45%, transparent 70%);
  filter: blur(10px);
}
.tcard {
  position: absolute;
  width: clamp(150px, 19vw, 230px);
  aspect-ratio: 310 / 528;
  border-radius: 14px;
  background-repeat: no-repeat;
  border: 2px solid var(--gold);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(232, 195, 114, 0.08);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
/* Звезда — из daily.jpg */
.tcard--star {
  background-image: url("img/daily.jpg");
  background-size: 349.7% auto;
  background-position: 50% 41.8%;
  aspect-ratio: 366 / 627;
  transform: translateX(-62%) rotate(-12deg);
}
/* Влюблённые — из three.jpg */
.tcard--lovers {
  background-image: url("img/three.jpg");
  background-size: 412.9% auto;
  background-position: 50.2% 42%;
  z-index: 2;
  transform: translateY(-4%);
}
/* Десятка Кубков — из three.jpg */
.tcard--cups {
  background-image: url("img/three.jpg");
  background-size: 412.9% auto;
  background-position: 86% 42%;
  transform: translateX(62%) rotate(12deg);
}
.fan:hover .tcard--star { transform: translateX(-72%) rotate(-16deg); }
.fan:hover .tcard--cups { transform: translateX(72%) rotate(16deg); }
.fan:hover .tcard--lovers { transform: translateY(-7%); }

/* Мерцающая «искра» над веером */
.sparkle {
  position: absolute;
  color: var(--gold-2);
  font-size: 22px;
  animation: twinkle 3.2s ease-in-out infinite;
  z-index: 3;
}
.sparkle--1 { top: 6%; left: 18%; }
.sparkle--2 { bottom: 10%; right: 12%; animation-delay: 1.2s; font-size: 16px; }
.sparkle--3 { top: 18%; right: 20%; animation-delay: 2.1s; font-size: 12px; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Как это работает ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: .9;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 28px; }
.step p { color: var(--muted); margin: 0; }
.honest {
  max-width: 820px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.honest strong { color: var(--text); }

/* ---------- Пример расклада ---------- */
.example-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: var(--bg-2);
}
.frame figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
/* «Сообщение от Миры» в стиле чата */
.chat { display: flex; flex-direction: column; gap: 14px; }
.bubble {
  padding: 16px 20px;
  border-radius: 20px;
  max-width: 100%;
  font-size: 16px;
}
.bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #5b3aa8, #7a4fc4);
  border-bottom-right-radius: 6px;
  max-width: 88%;
}
.bubble--mira {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 6px;
}
.bubble--mira p { margin: 0 0 10px; }
.bubble--mira p:last-child { margin: 0; }
.bubble-name {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 6px;
}
.chat-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Что умеет ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-3px); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(232, 195, 114, 0.12);
  color: var(--gold);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 24px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.gallery {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
  margin-top: 28px;
}

/* ---------- Тарифы ---------- */
.no-auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(134, 214, 160, 0.12);
  border: 1px solid rgba(134, 214, 160, 0.4);
  color: #bdf0cc;
  font-weight: 700;
  font-size: 14px;
  margin-top: 18px;
}
.no-auto svg { width: 16px; height: 16px; }

.price-group-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 44px 0 18px;
  color: var(--gold-2);
}
.price-group-title:first-of-type { margin-top: 0; }

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.price h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.15;
}
.price-meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.price-value {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
}
.price-value small { font-size: 22px; font-weight: 600; }
.price--free { border-color: rgba(134, 214, 160, 0.4); }
.price--free .price-value { color: #bdf0cc; }
.price--hot {
  background: linear-gradient(160deg, rgba(232, 195, 114, 0.16), rgba(143, 106, 216, 0.12));
  border-color: var(--gold);
}
.badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.pay-methods {
  margin: 36px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-text);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-2); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Финальный CTA ---------- */
.final {
  text-align: center;
  padding: 72px 28px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(232, 195, 114, 0.22), transparent 70%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
.final h2 { font-size: clamp(36px, 6vw, 64px); }
.final p { color: var(--muted); font-size: 18px; margin: 0 auto 30px; max-width: 32em; }

/* ---------- Футер ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  background: rgba(10, 5, 20, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer h2 {
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; }
.age {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border: 1.5px solid var(--muted);
  border-radius: 8px;
  font-weight: 800;
  color: var(--text);
  margin-right: 8px;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Плейсхолдеры реквизитов (заметно подсвечены) ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Пометка для владельца — удалить перед публикацией */
.draft-note {
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 196, 0, 0.1);
  border: 1px dashed rgba(255, 196, 0, 0.5);
  color: #ffe08a;
  margin: 0 0 20px;
}

/* ==========================================================
   Документы (оферта, политика и т.д.) — светлый лист на тёмном фоне
   ========================================================== */
.doc-page main { padding: 40px 0 80px; }
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 14px;
}
.toc h2 {
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold-2); text-decoration: underline; }
.toc .other-docs { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.toc .other-docs ul { list-style: none; padding: 0; margin: 0; }

.sheet {
  background: var(--paper);
  color: var(--paper-text);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 64px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  font-size: 16px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: break-word;
}
.sheet .draft-note {
  background: #fff7d6;
  border-color: #e0b84a;
  color: #6a4a00;
}
.sheet h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  color: #1c0f2e;
  margin-bottom: 10px;
}
.sheet h2 {
  font-size: 26px;
  color: #2c1548;
  margin: 2em 0 .6em;
  padding-top: .4em;
  border-top: 1px solid var(--paper-line);
}
.sheet h3 { font-size: 20px; color: #2c1548; margin: 1.4em 0 .4em; }
.sheet p, .sheet li { margin: 0 0 .7em; }
.sheet ul, .sheet ol { padding-left: 1.4em; }
.sheet a { color: #6a3fc0; }
.sheet a:hover { color: #2c1548; }
.sheet :focus-visible { outline-color: #6a3fc0; }
.doc-meta {
  color: var(--paper-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 15px;
}
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.sheet th, .sheet td {
  text-align: left;
  border: 1px solid var(--paper-line);
  padding: 8px 10px;
  vertical-align: top;
}
.sheet th { background: #f3ecdf; }
.requisites {
  background: #f6f0e4;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 1em;
}
.requisites p { margin: 0 0 .3em; }
.callout {
  background: #efe8fb;
  border-left: 4px solid #8f6ad8;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1em;
}
.owner-check {
  background: #fff1f1;
  border-left: 4px solid #d24b4b;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  color: #7a1f1f;
  font-size: 14px;
}

/* ==========================================================
   Адаптив
   ========================================================== */
@media (max-width: 980px) {
  .hero-grid, .example-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .fan { order: -1; height: clamp(300px, 70vw, 440px); }
  .tcard { width: clamp(120px, 30vw, 200px); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

@media (max-width: 820px) {
  /* Меню прячется в выпадающую панель */
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(18, 10, 34, 0.97);
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding: 12px 0; font-size: 17px; }
  .header-inner { gap: 12px; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .wrap { padding: 0 16px; }
  .steps, .features, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 21px; }
  .btn-lg { width: 100%; white-space: normal; }
  .final { padding: 52px 20px; }
  .bubble--user { max-width: 100%; }
}

@media (max-width: 420px) {
  .logo { font-size: 20px; }
  .logo-mark { width: 26px; height: 26px; }
  .header-cta { padding: 8px 12px; font-size: 14px; }
  .header-cta .long { display: none; }
  .tcard--star { transform: translateX(-55%) rotate(-10deg); }
  .tcard--cups { transform: translateX(55%) rotate(10deg); }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Печать документов — без фона и меню */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .toc, #stars, .draft-note { display: none !important; }
  .doc-layout { display: block; }
  .sheet { box-shadow: none; padding: 0; }
}

/* Вырез iPhone и складные экраны: отступы с учётом безопасной зоны, ссылки подвала — удобный тап */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
.header-cta, .menu-toggle { min-height: 44px; }
.menu-toggle { min-width: 44px; }
.doc-page main { overflow-wrap: break-word; }
.site-header .logo { min-height: 44px; }
