/* ==========================================================================
   Тилво — лендинг
   --------------------------------------------------------------------------
   ПАЛИТРА. Все цвета сайта заданы ТОЛЬКО здесь, в этом блоке (светлая тема +
   тёмная сразу под ней). Ниже по файлу и в main.js цвета используются
   исключительно через var(--…). Чтобы сменить палитру — правьте только этот блок.
   (Исключения вне CSS: временный глиф assets/logo.svg и картинка assets/og-image.png.)
   ========================================================================== */
:root {
  color-scheme: light dark;

  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #EEE9DF;
  --ink: #1E2320;
  --muted: #666B64;
  --line: #DDD7CA;
  --accent: #1F5C4D;
  --accent-hover: #17483C;
  --accent-ink: #FFFFFF;
  --highlight: #E3B55B;
  --shadow: rgba(30, 35, 32, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141715;
    --surface: #1C201D;
    --surface-2: #242925;
    --ink: #ECE9E1;
    --muted: #9BA198;
    --line: #2F3530;
    --accent: #6FBF9F;
    --accent-hover: #86CDB0;
    --accent-ink: #10201A;
    --highlight: #E3B55B;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

/* Остальные токены (не цвета) */
:root {
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --container: 1160px;
  --gutter: 24px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --section-space: clamp(72px, 9vw, 128px);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }

.btn-provider {
  width: 100%;
  justify-content: space-between;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-provider:hover { border-color: var(--accent); color: var(--ink); }
.btn-provider .icon-arrow { color: var(--muted); }
.btn-provider:hover .icon-arrow { color: var(--accent); }

.icon-arrow { flex: none; transition: transform 0.18s ease, color 0.18s ease; }
a:hover > .icon-arrow { transform: translateX(3px); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }
.brand-word {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.site-nav a:hover { background: var(--surface-2); }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(36px, 4.4vw, 60px) clamp(48px, 6vw, 84px);
  overflow: hidden;      /* фолбэк */
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.hero-copy { position: relative; z-index: 1; max-width: 560px; }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(33px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.mark {
  text-decoration: underline;
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.45vw, 18px);
  line-height: 1.58;
  color: var(--muted);
}

/* Блок входа */
.signin {
  margin-top: 28px;
  max-width: 420px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.signin-title {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.signin-list { display: grid; gap: 8px; margin-top: 12px; }
.signin .btn { min-height: 48px; }
.signin-alt { margin-top: 16px; font-size: 15px; color: var(--muted); }
.signin-alt a { font-weight: 500; }

.fineprint {
  margin-top: 16px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.fineprint a { color: inherit; }
.fineprint a:hover { color: var(--ink); }

/* Иллюстрация */
.hero-visual {
  position: relative;
  padding: 44px 28px 0;
  min-width: 0;
}

/* Холст с контурами шире окна: уходит за правый край экрана и тает влево, к тексту.
   В градиенте маски #000/transparent — это непрозрачность, а не цвета палитры. */
.contours {
  --bleed-right: max(var(--gutter), (100vw - var(--container)) / 2);
  position: absolute;
  top: -120px;
  bottom: -110px;
  left: -150px;
  right: calc(-1 * var(--bleed-right));
  width: calc(100% + 150px + var(--bleed-right));
  height: calc(100% + 230px);
  max-width: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}

.demo-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 4px -2px var(--shadow), 0 36px 64px -40px var(--shadow);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}
.demo-modes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}
.demo-modes span { padding: 3px 10px; border-radius: 7px; }
.demo-modes .is-active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px -1px var(--shadow); }

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px 12px;
  transition: opacity 0.35s ease;
}
.demo-body.is-leaving { opacity: 0; }

.msg p { margin: 0; }

.msg-user {
  align-self: flex-end;
  max-width: 88%;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 16px 16px 4px 16px;
}
.attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.attach[hidden] { display: none; }
.attach::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.attach.is-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }
.attach.is-code::before { display: none; }

.msg-bot {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.bot-mark { margin-top: 1px; border-radius: 7px; }
.bot-text { position: relative; white-space: pre-line; }
.rest { visibility: hidden; }

/* каретка: вне потока, поэтому не влияет на перенос строк */
.typed::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 1.15em;
  margin: 0.2em 0 0 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
}
.is-live .msg-bot.is-typing .typed::after { opacity: 1; }

.dots {
  position: absolute;
  left: 0;
  top: 0.55em;
  display: none;
  gap: 5px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
.msg-bot.is-thinking .dots { display: inline-flex; }
.is-paused .dots i { animation-play-state: paused; }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* «живой» режим: сообщения появляются по очереди */
.is-live .msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.is-live .msg.is-in { opacity: 1; transform: none; }

.demo-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 16px 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.demo-composer:hover { border-color: var(--accent); }
.demo-composer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.demo-send svg path { stroke-width: 2; }

.demo-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.demo-controls[hidden] { display: none; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.demo-pause {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.demo-pause:hover { border-color: var(--accent); color: var(--ink); }
.demo-pause[hidden] { display: none; }
.demo-pause-icon {
  width: 10px;
  height: 11px;
  border-inline: 3px solid currentColor;
}
.demo-pause.is-paused .demo-pause-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 6px solid transparent;
  border-inline: 0;
  border-left: 10px solid currentColor;
}

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding-block: var(--section-space); }
.section-band { background: var(--surface-2); }

.section-head { max-width: 720px; }
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.3vw, 42px); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* Возможности */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
}
.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 22px; font-size: 26px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 500;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-live { background: var(--accent); color: var(--accent-ink); }
.badge-soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Почему Тилво */
.why-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
.why-list li { padding-top: 20px; border-top: 1px solid var(--ink); }
.why-num {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.why-list h3 { margin-top: 12px; font-size: 21px; line-height: 1.25; }
.why-list p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Тарифы */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: clamp(36px, 4vw, 56px);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 56px -40px var(--shadow); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.plan h3 { font-size: 24px; }
.plan-tag { border: 1px solid var(--highlight); color: var(--ink); background: transparent; }
.plan-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); }
.plan-note { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 69px;
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plan-amount {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.plan-period { font-size: 15px; color: var(--muted); }
.plan-features { display: grid; gap: 10px; margin: 24px 0 28px; font-size: 16px; }
.plan-features li { position: relative; padding-left: 26px; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }

.plans-note,
.plans-fallback {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 760px;
}
.plans-note strong { color: var(--ink); font-weight: 600; }

/* Вопросы */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 48px 24px 2px; color: var(--muted); font-size: 16.5px; }

/* Завершающий призыв */
.cta { padding-block: clamp(64px, 8vw, 104px); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.cta h2 { font-size: clamp(26px, 3vw, 38px); max-width: 640px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: start;
}
.footer-brand .brand-word { font-size: 20px; }
.footer-copy { margin-top: 10px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { color: var(--ink); }

/* ==========================================================================
   Страницы-заглушки /legal/
   ========================================================================== */
.legal { padding-block: clamp(56px, 8vw, 120px); min-height: 60vh; }
.legal h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 46px); }
.legal p { margin-top: 18px; max-width: 640px; color: var(--muted); }
.legal .btn { margin-top: 32px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 640px; padding-inline: 0; }
  .contours {
    top: -56px;
    bottom: -48px;
    /* колонка одна: холст тянется на всю ширину экрана (лишнее обрезает .hero) */
    left: calc(-1 * var(--gutter));
    right: auto;
    width: 100vw;
    height: calc(100% + 104px);
    -webkit-mask-image: none;
    mask-image: none;
  }

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

@media (max-width: 900px) {
  .cards,
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 0px; }
  body { font-size: 16px; }

  /* на телефоне шапка в две строки и не липкая */
  .site-header { position: static; }
  .header-bar { flex-wrap: wrap; gap: 0 16px; padding-top: 12px; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin: 6px -10px 0; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 10px; font-size: 15px; }

  .signin { padding: 18px; }
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card, .plan { padding: 24px; }
  .faq-answer { padding-right: 8px; }
  .demo-body { padding: 18px 16px 10px; }
  .msg-user { max-width: 94%; }
  .attach.is-code { font-size: 12px; }
  .demo-controls { align-items: flex-start; gap: 8px; }
  .demo-chips { gap: 5px; }
  .chip { padding-inline: 10px; font-size: 13.5px; }
  .demo-composer { margin-inline: 12px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .demo-modes span { padding-inline: 8px; }
  .chip { padding-inline: 9px; font-size: 13px; }
}

/* ==========================================================================
   Меньше движения
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header { position: static; }
  .contours, .demo-controls { display: none; }
}
