:root {
  --cream: #F4F0E6;
  --cream-2: #EBE6D8;
  --ink: #16323A;
  --text: #2A3F42;
  --muted: #5E6E70;
  --gold: #D4A017;
  --paper: #FFFcf7;
  --line: #D4CBBA;
  --enamel: #EBE6D8;
  --vest: #D4A017;
  --crit: #B3261E;
  --ok: #2F8A5B;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }

.site-header { padding: 20px 0 8px; }
.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo-mark { width: 38px; height: 38px; flex: none; border-radius: 10px; background: url("/assets/logo.png") center / cover no-repeat; }
.logo small { font-size: 0.72em; font-weight: 800; color: var(--ink); background: var(--gold); border-radius: 6px; padding: 1px 6px; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--paper); }

.hero { padding: 28px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 8px 36px;
  align-items: start;
}
.hero-copy {
  container-type: inline-size;
  container-name: hero;
  min-width: 0;
}
.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  line-height: 0.98;
  font-weight: 800;
  max-width: 12ch;
  letter-spacing: -0.045em;
}
.formula {
  margin: 0 0 28px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.formula u {
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 1px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border: 0;
}
.btn:hover { filter: brightness(1.08); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img { display: block; height: 48px; width: auto; max-width: none; }

.triad {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 4px 0 28px;
}
/* Три колонки, только когда слева от маскота хватает места. Иначе столбик: текст не сжимается и не упирается в рисунок. */
@container hero (min-width: 660px) {
  .triad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
  }
}
.triad li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.triad li > div { min-width: 0; padding-top: 2px; }
.well {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0;
  color: var(--ink);
  flex: none;
}
.triad .well,
.band-row .well { color: var(--ink); margin: 0; }
.well svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.triad b { display: block; margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.triad li > div > span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.speaker {
  margin: 0;
  position: relative;
  min-height: 520px;
}
.speaker img {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin: 72px 0 0 auto;
}
.bubble {
  position: absolute;
  top: 12px;
  right: 4%;
  z-index: 1;
  max-width: min(16.5rem, 100%);
  margin: 0;
  padding: 16px 20px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  font-weight: 700;
  line-height: 1.28;
  font-size: 1.08rem;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: -9px;
  border: 10px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}
.bubble em { color: var(--gold); font-style: normal; font-weight: 800; }
.dots {
  position: absolute;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(var(--ink) 1.5px, transparent 1.6px);
  background-size: 10px 10px;
  opacity: 0.2;
  pointer-events: none;
}
.dots-a { top: 96px; left: 8px; }
.dots-b { top: 0; right: 0; }
.dots-c { bottom: 56px; right: 8px; }

.band {
  background: var(--cream-2);
  padding: 28px 0 36px;
}
.band-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.band-row li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.band-row h3 { margin: 2px 0 6px; font-size: 1.05rem; line-height: 1.3; }
.band-row p { margin: 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: break-word; }

.proof { padding: 48px 0 56px; }
.proof h2, .section h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.intro { margin: 0 0 22px; color: var(--muted); max-width: 42em; }
.shot-rail {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shot-rail li { flex: 0 0 auto; scroll-snap-align: start; }
.device {
  margin: 0;
  width: 220px;
  background: #111;
  border-radius: 32px;
  padding: 8px;
}
.device img { display: block; width: 100%; border-radius: 24px; }
.device figcaption { margin: 8px 0 2px; color: #eee; text-align: center; font-size: 0.82rem; }

.section { padding: 56px 0; }
.chain {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
}
.chain li {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}
.chain li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
}
.chain li:last-child { background: var(--gold); border-color: var(--gold); }

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cats li { background: var(--paper); border-radius: 18px; padding: 18px; }
.cats b { display: block; margin-bottom: 6px; color: var(--ink); }
.cats span { color: var(--muted); font-size: 0.92rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 16px; }
.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.steps li::before {
  content: counter(st);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.steps h3 { margin: 4px 0 4px; font-size: 1.12rem; }
.steps p { margin: 0; }
.steps q { quotes: "«" "»"; font-weight: 700; color: var(--ink); }
.flow { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; }

.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.states li {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 16px 18px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.states img { height: 200px; width: auto; margin-bottom: 12px; }
.states b { color: var(--ink); }
.states q { quotes: "«" "»"; display: block; margin-top: 6px; color: var(--muted); }
.serious {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border-radius: 22px;
  padding: 26px;
  border: 2px solid var(--crit);
}
.serious h3 { margin: 0 0 8px; }
.serious p { margin: 0; }
.alert {
  border-left: 4px solid var(--crit);
  background: #FBEDEC;
  border-radius: 12px;
  padding: 14px 16px;
  color: #5A1712;
}
.alert b { display: block; margin-bottom: 4px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--paper); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.plan.pro { outline: 2px solid var(--ink); }
.plan h3 { margin: 0; }
.plan h3 small {
  font-size: 0.75rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
}
.price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.price small { font-size: 0.95rem; background: none; padding: 0; color: var(--muted); font-weight: 600; }
.alt, .foot, .note { color: var(--muted); }
.note { font-size: 0.95rem; margin: 18px 0 0; max-width: 62em; }
.plan ul { margin: 12px 0 18px; padding-left: 1.1em; }
.plan .foot { margin-top: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.split h3:first-child { margin-top: 0; }
.split p { margin: 0 0 14px; max-width: 38em; }

.faq details { border-bottom: 1px solid var(--cream-2); max-width: 48em; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq details p { margin: 0 0 16px; }

.cta-band { background: var(--ink); color: #D5E0DC; padding: 56px 0; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band .intro { color: #D5E0DC; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band .wrap > div { min-width: 0; }
.cta-band .wrap > img { height: 220px; width: auto; }
.cta-band .store-badges {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
.get-app {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 20px;
  row-gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Оба QR видны и на узком экране: в ряд, если хватает ширины, иначе столбиком. */
.store-qrs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-start;
}
.qr {
  margin: 0;
  width: 116px;
  display: grid;
  justify-items: center;
}
.qr img {
  display: block;
  width: 116px;
  height: 116px;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0;
}
.qr figcaption {
  margin: 8px 0 0;
  width: 116px;
  color: #AFC4BE;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
}
.btn-note { display: block; margin-top: 12px; color: #AFC4BE; font-size: 0.92rem; }

.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }

.doc { padding: 20px 0 72px; }
.doc article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 56px); max-width: 840px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 8px; }
.doc .edition { color: var(--muted); margin: 0 0 30px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc .callout { background: var(--enamel); border-left: 4px solid var(--vest); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; table-layout: fixed; }
.doc th, .doc td { overflow-wrap: anywhere; text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; width: 40%; }
.back { display: inline-block; margin-bottom: 18px; }

@media (max-width: 960px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero-grid, .flow, .plans, .split, .cta-band .wrap, .site-footer .wrap, .cats, .states, .serious, .band-row { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .speaker img { margin-left: auto; margin-right: auto; }
  .speaker { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cookie-banner {
  display: none;
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px));
  max-height: min(70vh, 360px);
  overflow: auto;
  padding: 14px 16px 16px;
  background: #EDF1EE;
  color: #16323A;
  border: 1px solid rgba(22, 50, 58, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22, 50, 58, 0.16);
}
.cookie-banner.is-open { display: block; }
.cookie-banner p { margin: 0; color: #16323A; font-size: 0.92rem; line-height: 1.45; }
.cookie-banner a { color: #16323A; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-accept, .cookie-reject {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
}
.cookie-accept { background: #E0A82E; color: #16323A; border: 0; }
.cookie-accept:hover { filter: brightness(1.05); }
.cookie-reject { background: transparent; color: #16323A; border: 1.5px solid #16323A; }
.cookie-reject:hover { background: rgba(22, 50, 58, 0.06); }
.cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-settings[hidden] { display: none; }
@media (max-width: 480px) {
  .cookie-actions { display: grid; }
  .cookie-accept, .cookie-reject { width: 100%; }
}
