/* Amiro — сайт. Токены совпадают с UI-китом «v0.2 Soft» в Figma. */

/* Manrope (SIL OFL 1.1, см. assets/fonts/OFL.txt): вариативный, 300–600,
   латиница + кириллица. Лежит в репозитории, чтобы не зависеть от Google Fonts. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff") format("woff");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* поверхности */
  --bg-app: #F2F0EC;          /* ivory/100 */
  --bg-surface: #FAF9F7;      /* ivory/50 */
  --bg-surface-alt: #E7E4DE;  /* ivory/200 */
  --bg-accent: #1F5BF0;       /* cobalt/500 */
  --bg-accent-hover: #1748C7; /* cobalt/600 */
  --bg-accent-soft: #EEF3FF;  /* cobalt/50 */
  --bg-success-soft: #DDF4EA; /* green/100 */
  --bg-inverse: #22252C;      /* charcoal/900 */
  --night-800: #2A2E37;
  --night-700: #2E333E;

  /* текст */
  --text-primary: #22252C;
  --text-secondary: #5E6472;  /* slate/600 */
  --text-tertiary: #8E94A1;   /* slate/400 */
  --text-on-accent: #FFFFFF;
  --text-accent: #1F5BF0;
  --text-success: #21A67A;    /* green/500 */
  --cobalt-100: #DDE7FF;
  --dot-sky: #4F86FF;

  --border: #E7E4DE;

  /* пастель категорий */
  --pastel-sky: #D9E6FF;
  --pastel-mint: #D5F1E6;
  --pastel-lilac: #E6E0FF;
  --pastel-peach: #FFE5D9;
  --pastel-butter: #FFF2CC;
  --dot-mint: #2BB585;
  --dot-butter: #E3AE1B;

  /* эффекты */
  --shadow-raised: 0 1px 2px rgba(34, 37, 44, .04), 0 10px 28px rgba(34, 37, 44, .08);
  --shadow-glow: 0 8px 22px rgba(31, 91, 240, .28);
  --shadow-phone: 0 30px 60px rgba(23, 31, 64, .18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --gutter: 80px;
  --max: 1440px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--dot-sky); outline-offset: 2px; border-radius: 8px;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типографика ---------- */
.overline { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-accent); }
.h-section { font-size: 44px; font-weight: 300; line-height: 1.12; letter-spacing: -.02em; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-secondary); max-width: 620px; }
.muted { color: var(--text-secondary); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--bg-accent-hover); }
.btn-secondary { background: var(--bg-surface); box-shadow: var(--shadow-raised); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* кнопки сторов — временные, см. README */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--bg-inverse); color: #fff; transition: transform .15s, opacity .15s;
}
.store:hover { opacity: .9; }
.store svg { flex: none; width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- лого ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
/* The "amiro" wordmark (190×67 drawing) */
.logo-mark { height: 30px; width: auto; aspect-ratio: 190 / 67; flex: none; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242, 240, 236, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.site-nav { display: flex; gap: 36px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: 20px; }
/* переключатель языка в шапке */
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text-primary); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-list { position: absolute; right: -8px; top: calc(100% + 6px); z-index: 60; min-width: 150px; padding: 6px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-raised); }
.lang-list a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.lang-list a:hover { color: var(--text-primary); background: var(--bg-app); }
.lang-list a[aria-current] { color: var(--text-accent); font-weight: 600; background: var(--bg-accent-soft); }
.header-actions .btn { min-width: 140px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 96px; }
.hero .container { display: grid; grid-template-columns: 1fr 600px; gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 14px; border-radius: 999px; background: var(--bg-accent-soft); color: var(--text-accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-accent); }
.hero h1 { font-size: 68px; font-weight: 300; line-height: 1.06; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--text-accent); }
.hero .lead { font-size: 19px; max-width: 560px; }
.download { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.download .stores { flex-direction: column; }
.download .store { width: 180px; }
.qr { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 20px; background: var(--bg-surface); box-shadow: var(--shadow-raised); }
.qr svg { width: 96px; height: 96px; flex: none; }
.qr p { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-secondary); max-width: 130px; }
.facts { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-tertiary); }

.hero-visual { position: relative; height: 680px; }
.blob { position: absolute; border-radius: 50%; }
.hero-visual .b1 { width: 560px; height: 560px; left: 30px; top: 70px; background: var(--pastel-sky); }
.hero-visual .b2 { width: 200px; height: 200px; left: 420px; top: 20px; background: var(--pastel-butter); }
.hero-visual .b3 { width: 140px; height: 140px; left: 20px; top: 520px; background: var(--pastel-mint); }

.phone {
  position: absolute; width: 292px; aspect-ratio: 395 / 832;
  padding: 7.4px; border-radius: 43px; background: var(--bg-inverse); box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.hero-visual .p1 { left: 40px; top: 40px; }
.hero-visual .p2 { left: 300px; top: 110px; }

.status-tag {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border-radius: 18px; background: var(--bg-surface); box-shadow: var(--shadow-raised);
}
.hero-visual .status-tag { left: -10px; top: 560px; }
.status-tag .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-success-soft); display: grid; place-items: center; flex: none; }
.status-tag .ok svg { width: 16px; height: 16px; }
.status-tag b { display: block; font-size: 14px; font-weight: 600; }
.status-tag small { display: block; font-size: 12px; color: var(--text-secondary); }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section-surface { background: var(--bg-surface); }
.section-dark { background: var(--bg-inverse); color: var(--text-on-accent); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section-head.center { align-items: center; text-align: center; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 32px; border-radius: var(--radius-lg); background: var(--bg-app); }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-accent); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; flex: none; }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--text-secondary); }
.step-ill { min-height: 96px; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }

/* чипы */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--bg-surface); box-shadow: var(--shadow-raised); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-butter); }
.chip.on { background: var(--bg-accent); color: #fff; box-shadow: var(--shadow-glow); }
.chip.on::before { background: #fff; }

.kv { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.kv div { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--bg-surface); font-size: 14px; }
.kv span { color: var(--text-secondary); }
.kv b { font-weight: 600; }

.progress-demo { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.progress-demo .row { display: flex; justify-content: space-between; }
.progress-demo .row span { color: var(--text-secondary); }
.bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; width: 56%; border-radius: 4px; background: var(--bg-accent); }
.ok-text { color: var(--text-success); font-size: 13px; font-weight: 600; }

/* возможности */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.features-col { display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 36px 36px 40px; border-radius: 32px; overflow: hidden; }
.feature h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.feature > p { font-size: 16px; color: var(--text-secondary); max-width: 520px; }
.feature-visual { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-visual.center { align-items: center; }
.bg-sky { background: var(--pastel-sky); }
.bg-mint { background: var(--pastel-mint); }
.bg-lilac { background: var(--pastel-lilac); }
.bg-peach { background: var(--pastel-peach); }

.bubble { max-width: 80%; padding: 11px 16px; border-radius: 18px; background: var(--bg-surface); font-size: 14px; font-weight: 500; align-self: flex-start; }
.bubble.me { background: var(--bg-accent); color: #fff; align-self: flex-end; }

.people { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 18px; background: var(--bg-surface); font-size: 14px; font-weight: 500; align-self: flex-start; }
.avatars { display: flex; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.avatars .av + .av { margin-left: -6px; }
.av-peach { background: var(--pastel-peach); }
.av-butter { background: var(--pastel-butter); }
.av-mint { background: var(--pastel-mint); }
.av-lilac { background: var(--pastel-lilac); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* карточка встречи (копия Soft/Event Card) */
.event-card { width: 100%; max-width: 343px; padding: 10px; border-radius: 24px; background: var(--bg-surface); box-shadow: var(--shadow-raised); }
.event-cover { position: relative; height: 112px; border-radius: 18px; background: var(--pastel-sky); }
.date-badge { position: absolute; left: 12px; top: 12px; width: 50px; padding: 8px 0 6px; border-radius: 12px; background: var(--bg-surface); text-align: center; }
.date-badge b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.date-badge small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--text-accent); text-transform: uppercase; }
.left-badge { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: var(--bg-surface); font-size: 11px; font-weight: 500; }
.event-body { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.event-meta { display: flex; justify-content: space-between; align-items: center; }
.event-cat { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--text-accent); text-transform: uppercase; }
.tags { display: flex; gap: 4px; }
.tag { padding: 2px 6px; border-radius: 6px; background: var(--bg-surface-alt); font-size: 10px; font-weight: 500; color: var(--text-secondary); }
.tag.free { background: var(--bg-success-soft); color: var(--text-success); }
.event-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.event-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.event-line svg { width: 13px; height: 13px; flex: none; }
.event-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px; }
.event-foot .avatars .av { width: 24px; height: 24px; font-size: 9px; }
.event-foot .count { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.event-foot .bar { width: 120px; height: 4px; margin: 8px 0 6px; }
.event-foot .bar i { width: 62%; }
.event-foot small { font-size: 10px; color: var(--text-tertiary); }
.event-foot .btn { height: 36px; padding: 0 18px; font-size: 13px; }

/* карточка приглашения (копия Soft/Invite Card) */
.invite-card { width: 100%; max-width: 343px; padding: 16px; border-radius: 22px; background: var(--bg-surface); box-shadow: var(--shadow-raised); display: flex; flex-direction: column; gap: 14px; }
.invite-card.faded { opacity: .55; }
.invite-top { display: flex; gap: 12px; }
.invite-top .av { width: 44px; height: 44px; font-size: 14px; font-weight: 500; }
.invite-top b { display: block; font-size: 14px; font-weight: 600; }
.invite-top p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.invite-top .deadline { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-accent); }
.invite-top .deadline svg { width: 12px; height: 12px; }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invite-actions .btn { height: 40px; font-size: 14px; box-shadow: none; }
.invite-actions .btn-secondary { box-shadow: var(--shadow-raised); }

/* безопасность */
.safety-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.safety-head .overline { color: var(--dot-sky); }
.safety-head .h-section { color: #fff; margin-top: 14px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.arrow-link svg { width: 20px; height: 20px; transition: transform .15s; }
.arrow-link:hover svg { transform: translateX(3px); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.safety-card { display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 32px; border-radius: var(--radius-lg); background: var(--night-800); }
.safety-card .ico { width: 48px; height: 48px; border-radius: 16px; background: var(--night-700); display: grid; place-items: center; }
.safety-card .ico svg { width: 24px; height: 24px; }
.safety-card h3 { font-size: 19px; font-weight: 600; }
.safety-card p { font-size: 15px; color: var(--text-tertiary); }

/* CTA */
.cta-banner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 64px 72px; border-radius: var(--radius-xl); background: var(--bg-accent); color: #fff; }
.cta-banner h2 { font-size: 48px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.cta-banner p { margin-top: 16px; font-size: 18px; color: var(--cobalt-100); }
.cta-banner .stores { flex-wrap: nowrap; }

/* ---------- подвал ---------- */
.site-footer { background: var(--bg-surface-alt); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 80px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); }
.footer-cols { display: flex; gap: 72px; }
.footer-col h4 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.footer-col li + li { margin-top: 12px; }
.footer-col a { font-size: 14px; font-weight: 500; }
.footer-col a:hover { color: var(--text-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-tertiary); }
.langs-inline { display: flex; gap: 6px; font-weight: 500; color: var(--text-secondary); }
.langs-inline a + a::before { content: "·"; margin-right: 6px; color: var(--text-tertiary); }
.langs-inline a:hover { color: var(--text-primary); }
.langs-inline a[aria-current] { color: var(--text-primary); font-weight: 600; }

/* ---------- документы ---------- */
.doc-title { background: var(--bg-surface); padding: 56px 0 48px; }
.doc-title .container { display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-tertiary); }
.crumbs a:hover { color: var(--text-primary); }
.doc-title h1 { font-size: 52px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.doc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 15px; color: var(--text-secondary); }
.url-chip { padding: 4px 10px; border-radius: 8px; background: var(--bg-app); font-size: 13px; font-weight: 500; }
.lang-pills { display: flex; gap: 6px; }
.lang-pills a, .lang-pills span { padding: 5px 12px; border-radius: 999px; background: var(--bg-app); font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.lang-pills [aria-current] { background: var(--bg-accent-soft); color: var(--text-accent); font-weight: 600; }
.lang-pills a:hover { color: var(--text-primary); }

.doc-switcher { display: none; }

.doc-body { padding: 56px 0 120px; }
.doc-body .container { display: grid; grid-template-columns: 300px minmax(0, 760px); gap: 80px; align-items: start; }
.doc-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 4px; }
.doc-nav .label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; }
.doc-nav > a { padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.doc-nav > a:hover { color: var(--text-primary); }
.doc-nav > a[aria-current="page"] { background: var(--bg-surface); color: var(--text-accent); font-weight: 600; }
.help-box { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--bg-accent-soft); font-size: 14px; }
.help-box b { display: block; font-weight: 600; }
.help-box a { font-weight: 500; color: var(--text-accent); }

.doc-content { display: flex; flex-direction: column; gap: 40px; }
.doc-content .doc-lead { font-size: 19px; line-height: 1.6; }
.doc-section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 104px; }
.doc-section h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.doc-section p, .doc-section li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.doc-section a, .doc-lead a, .inline-link { color: var(--text-accent); font-weight: 500; }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--bg-accent); }

.box { padding: 24px 28px 28px; border-radius: 24px; background: var(--bg-surface); }
.box-outline { padding: 24px 28px; border-radius: 24px; border: 1px solid var(--border); }
.box-title { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-accent); }
.box-outline .box-title { color: var(--text-tertiary); }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke='%2321A67A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.toc { columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; margin-bottom: 10px; }
.toc a { font-size: 15px; font-weight: 500; color: var(--text-accent); }

.table { padding: 6px 24px; border-radius: 20px; background: var(--bg-surface); }
.table div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; font-size: 15px; }
.table div + div { border-top: 1px solid var(--border); }
.table dt { font-weight: 500; color: var(--text-primary); }
.table dd { margin: 0; color: var(--text-secondary); text-align: right; }

.note { padding: 16px 20px; border-radius: 16px; background: var(--pastel-butter); font-size: 14px; line-height: 1.5; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-surface); }
.card h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.card .btn { align-self: flex-start; margin-top: 4px; }
.card .btn-block { align-self: stretch; }
.card.bg-sky { background: var(--pastel-sky); }
.card.bg-mint { background: var(--pastel-mint); }

.howto { display: flex; flex-direction: column; gap: 18px; }
.howto li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; }
.howto .num { width: 32px; height: 32px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.phone-input { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--bg-app); }
.phone-input b { font-size: 16px; font-weight: 600; }
.phone-input i { width: 1px; height: 22px; background: var(--border); }
.phone-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text-primary); outline: none; }
.phone-input:focus-within { box-shadow: 0 0 0 2px var(--bg-accent); }
.form-hint { font-size: 13px; color: var(--text-tertiary); }
.form-hint[role="alert"] { color: #D14242; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 20px 24px; border-radius: 20px; background: var(--bg-surface); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%238E94A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%231F5BF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

/* мини-подвал режима «в приложении» */
.app-footer { display: none; }

/* ---------- режим ?app=1: страница открыта из приложения ---------- */
html.in-app .site-header,
html.in-app .site-footer,
html.in-app .doc-nav,
html.in-app .doc-switcher,
html.in-app .crumbs,
html.in-app .url-chip,
html.in-app .hide-in-app { display: none !important; }
html.in-app .app-logo { display: inline-flex !important; }
html.in-app .app-footer { display: flex; flex-direction: column; gap: 8px; padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
html.in-app .app-footer a { color: var(--text-accent); font-weight: 500; }
html.in-app .app-footer small { font-size: 12px; color: var(--text-tertiary); }
html.in-app .doc-body .container { grid-template-columns: minmax(0, 760px); justify-content: center; }
.app-logo { display: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 96px; font-weight: 300; letter-spacing: -.04em; color: var(--text-accent); }
.not-found p { margin: 8px 0 28px; font-size: 18px; color: var(--text-secondary); }
.pill-center { align-self: center; margin: 0 auto 20px; }
.stores-center { display: flex; justify-content: center; }
.av-xs { width: 18px !important; height: 18px !important; font-size: 7px !important; }

.safety-more { display: none !important; color: #fff; }
.step-text { display: contents; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .hero .container { grid-template-columns: 1fr 520px; }
  .hero-visual { transform: scale(.87); transform-origin: left center; }
  .hero h1 { font-size: 60px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 48px; }
  .doc-body .container { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { transform: none; width: 600px; max-width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 56px; }
  .footer-top { flex-direction: column; gap: 40px; }
}

@media (max-width: 860px) {
  .doc-body .container { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { display: none; }
  .doc-switcher { display: block; position: relative; }
  .doc-switcher summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 16px; border-radius: 14px; background: var(--bg-app); cursor: pointer; list-style: none; }
  .doc-switcher summary::-webkit-details-marker { display: none; }
  .doc-switcher summary small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
  .doc-switcher summary b { display: block; font-size: 15px; font-weight: 600; }
  .doc-switcher summary svg { width: 20px; height: 20px; color: var(--text-secondary); transition: transform .2s; }
  .doc-switcher[open] summary svg { transform: rotate(180deg); }
  .doc-switcher ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-raised); }
  .doc-switcher a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
  .doc-switcher a[aria-current="page"] { background: var(--bg-accent-soft); color: var(--text-accent); font-weight: 600; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  .site-header .container { height: 64px; }
  .header-actions { gap: 8px; }
  .header-actions .lang-menu { display: none; }
  .mobile-menu .lang-pills a { padding: 8px 14px; font-size: 14px; background: var(--bg-surface); }
  .header-actions .btn { min-width: 0; height: 38px; padding: 0 16px; font-size: 14px; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; z-index: 49; inset: 64px 0 0; padding: 20px var(--gutter) 40px; background: var(--bg-app); overflow-y: auto; }
  .mobile-menu.open { display: block; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { padding: 14px 0; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-menu h4 { margin: 28px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
  .mobile-menu .docs a { display: block; padding: 10px 0; font-size: 16px; font-weight: 500; color: var(--text-secondary); }
  .mobile-menu .stores { margin-top: 28px; }
  .mobile-menu .stores .store { flex: 1; min-width: 0; padding: 0 12px; justify-content: center; }
  .mobile-menu .stores .store b { font-size: 16px; }
  body.menu-open { overflow: hidden; }

  .overline { font-size: 11px; }
  .h-section { font-size: 30px; }
  .section { padding: 56px 0; }
  .section-head { gap: 10px; margin-bottom: 28px; }

  .hero { padding: 24px 0 48px; }
  .hero-text { gap: 22px; }
  .pill { font-size: 11px; padding: 7px 14px 7px 12px; }
  .hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.02em; }
  .hero .lead { font-size: 16px; }
  .download .stores { flex-direction: row; width: 100%; }
  .download .store { width: auto; flex: 1; min-width: 0; padding: 0 12px; justify-content: center; }
  .download .store b { font-size: 16px; }
  .qr { display: none; }
  .facts { font-size: 12px; }

  .hero-visual { height: 440px; width: 100%; }
  .hero-visual .b1 { width: 320px; height: 320px; left: 50%; top: 70px; margin-left: -160px; }
  .hero-visual .b2 { width: 110px; height: 110px; left: auto; right: 0; top: 20px; }
  .hero-visual .b3 { display: none; }
  .hero-visual .p1 { width: 205px; left: 50%; margin-left: -102px; top: 0; padding: 5px; border-radius: 30px; }
  .hero-visual .p1 img { border-radius: 25px; }
  .hero-visual .p2 { display: none; }
  .hero-visual .status-tag { left: 0; top: 330px; padding: 10px 16px 10px 12px; border-radius: 16px; }
  .status-tag b { font-size: 13px; }
  .status-tag small { font-size: 11px; }

  .step { flex-direction: row; gap: 16px; padding: 20px; border-radius: 24px; }
  .step .num { width: 36px; height: 36px; font-size: 15px; }
  .step-ill { display: none; }
  .step h3 { font-size: 18px; margin-bottom: 6px; }
  .step p { font-size: 14px; }
  .step-text { display: block; }

  .feature { padding: 24px; border-radius: 28px; gap: 10px; }
  .feature h3 { font-size: 20px; }
  .feature > p { font-size: 14px; }
  .feature-visual { margin-top: 12px; }
  .feature-visual.mobile-hide { display: none; }

  .safety-head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 28px; }
  .safety-head .arrow-link { display: none; }
  .safety-grid { grid-template-columns: 1fr; gap: 12px; }
  .safety-card { gap: 6px; padding: 18px 20px; border-radius: 22px; }
  .safety-card .ico { display: none; }
  .safety-card h3 { font-size: 17px; }
  .safety-card p { font-size: 14px; }
  .safety-more { display: inline-flex !important; margin-top: 20px; }

  .cta-section { padding: 40px 0; }
  .cta-banner { padding: 32px 24px 24px; gap: 20px; border-radius: 32px; }
  .cta-banner h2 { font-size: 30px; }
  .cta-banner p { margin-top: 12px; font-size: 15px; }
  .cta-banner .stores { flex-direction: column; width: 100%; }
  .cta-banner .store { justify-content: center; }

  .site-footer { padding: 40px 0 32px; }
  .footer-top { gap: 32px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; margin-top: 32px; padding-top: 32px; }

  .doc-title { padding: 20px 0 28px; }
  .doc-title .container { gap: 14px; }
  .crumbs { display: none; }
  .doc-title h1 { font-size: 34px; }
  .doc-meta { font-size: 14px; gap: 12px; }
  .url-chip { display: none; }
  .doc-body { padding: 28px 0 48px; }
  .doc-content { gap: 32px; }
  .doc-content .doc-lead { font-size: 17px; line-height: 1.55; }
  .doc-section { gap: 12px; }
  .doc-section h2 { font-size: 20px; }
  .doc-section p, .doc-section li { font-size: 15px; line-height: 1.6; }
  .box, .box-outline { padding: 20px; border-radius: 22px; }
  .checks li { font-size: 15px; line-height: 1.4; }
  .toc { columns: 1; }
  .table { padding: 4px 16px; border-radius: 18px; }
  .table div { flex-direction: column; gap: 2px; padding: 12px 0; font-size: 14px; }
  .table dd { text-align: left; }
  .cards-2 { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; border-radius: 24px; }
  .card h2 { font-size: 19px; }
  .card p { font-size: 15px; }
  .card .btn { align-self: stretch; }
  .faq details { padding: 16px 16px 16px 18px; border-radius: 18px; }
  .faq summary { font-size: 15px; }
  .faq details p { font-size: 15px; }
  .note { font-size: 13px; padding: 14px 16px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
