/*
 * Feeltails — стили лендинга. Цвета и шрифт — из темы приложения
 * (Feeltails/apps/mobile/src/theme.ts и раздел «Дизайн» в docs/plan.md).
 * Цвета задаются только здесь, в :root.
 */

@font-face { font-family: "Manrope"; src: url("/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-500.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0d0c;
  --surface: #111614;
  --border: #252927;
  --text: #f2eee5;
  --muted: #9d9c96;
  --accent: #c8892b;
  --accent-ink: #111111;
  --accent-soft: rgba(200, 137, 43, 0.16);
  --pill-off: #50524f;
  --ink-off: #7f5921;
  --tile: #1f2321;
  --sheet: #181c1a;
  --backdrop: rgba(0, 0, 0, 0.62);
  --scrim: rgba(10, 13, 12, 0.6);
  --avatar: #3a5a4e;
  --error: #f2786d;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, p { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }

/* ---------- Шапка ---------- */

.top { padding-top: 18px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 30px; width: auto; }
@media (min-width: 768px) { .brand-logo { height: 36px; } }

/* ---------- Первый экран ---------- */

.hero { padding-top: 28px; padding-bottom: 40px; }
.eyebrow {
  font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(38px, 10.4vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.lead { margin-top: 16px; font-size: clamp(17px, 4.4vw, 20px); line-height: 1.45; color: var(--muted); max-width: 34em; text-wrap: pretty; }

/* ---------- Форма ---------- */

.join { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.join-row { display: flex; flex-direction: column; gap: 10px; }

.field {
  width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 17px; font-weight: 500; padding: 0 16px;
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:hover { border-color: #3a3f3c; }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; border-radius: 14px; }
.field[aria-invalid="true"] { border-color: var(--error); }

select.field {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d9c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.field.is-empty { color: var(--muted); }
select.field option { color: var(--text); background: var(--surface); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 17px; font-weight: 800;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.85); }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-quiet:hover { color: var(--text); border-color: var(--pill-off); filter: none; }

.label { font-size: 14px; font-weight: 700; color: var(--muted); }
.label .opt { font-weight: 500; }
.heard { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.form-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--muted); }
.form-error { font-size: 15px; font-weight: 700; color: var(--error); }

/* Ловушка для ботов: людям не видна */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 560px) {
  .join-row { flex-direction: row; }
  .join-row .field { flex: 1; min-width: 0; }
  .heard { flex-direction: row; align-items: center; gap: 14px; }
  .heard .label { flex-shrink: 0; }
  .heard .field { width: auto; flex: 1; height: 48px; font-size: 16px; }
}

/* ---------- Экраны приложения ---------- */

.screens { padding-top: 24px; padding-bottom: 56px; }
.screens-head { max-width: 680px; }
.section-title { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.section-sub { margin-top: 10px; font-size: 17px; color: var(--muted); }

.shots {
  --z: 0.72;
  margin: 28px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 12px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: calc(390px * var(--z) + 16px); scroll-snap-align: start; margin: 0; }
.shot figcaption { margin-top: 18px; padding-right: 8px; }
.shot h3 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.shot p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.shot-num { display: inline-block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }

.swipe-hint { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

@media (min-width: 400px) { .shots { --z: 0.76; } }
@media (min-width: 960px) {
  .shots { --z: 0.8; overflow: visible; justify-content: space-between; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .swipe-hint { display: none; }
}

/* Рамка телефона */
.phone {
  position: relative; padding: 8px; border-radius: 46px;
  background: #1a1e1c; border: 1px solid #2e3330;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone-screen { border-radius: 38px; overflow: hidden; background: var(--bg); }
.screen {
  zoom: var(--z);
  width: 390px; height: 844px; position: relative; overflow: hidden;
  background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; line-height: normal;
  font-size: 14px; user-select: none; -webkit-user-select: none; pointer-events: none;
}
.screen img { max-width: none; }

/* ---------- Детали макетов (размеры как в docs/screens) ---------- */

.m-pills { display: flex; gap: 4px; }
.m-pills i { width: 8px; height: 15px; border-radius: 4px; background: var(--pill-off); }
.m-pills i.on { background: var(--accent); }
.m-pills.sm { gap: 3px; }
.m-pills.sm i { width: 5px; height: 11px; border-radius: 3px; }
.m-pills.md { gap: 3px; }
.m-pills.md i { width: 6px; height: 13px; border-radius: 3px; }

.m-chip {
  height: 36px; border-radius: 999px; border: 1px solid var(--border); padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.m-chip.on { border: 1.5px solid var(--accent); background: var(--accent-soft); font-weight: 700; }
.m-chip.add { border: 1px dashed var(--pill-off); color: var(--muted); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.m-group { display: flex; flex-direction: column; gap: 8px; }

/* Быстрая запись */
.log-bg { position: absolute; inset: 0 0 auto 0; height: 300px; }
.log-bg img { width: 100%; height: 300px; object-fit: cover; }
.log-bg::after { content: ""; position: absolute; inset: 0; background: var(--backdrop); }
.log-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 56px; background: var(--sheet);
  border-top: 1px solid var(--border); border-radius: 28px 28px 0 0; padding: 8px 20px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--pill-off); align-self: center; flex-shrink: 0; }
.log-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.log-title { font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -0.01em; }
.log-time { font-size: 13px; color: var(--muted); margin-top: 2px; }
.last-pill {
  height: 30px; border-radius: 999px; border: 1px solid var(--border); padding: 0 12px;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.tweak-row {
  height: 48px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  padding: 0 12px; display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.tweak-row .grow { flex: 1; }
.muted { color: var(--muted); }
.b8 { font-weight: 800; }
.rate-head { display: flex; justify-content: space-between; align-items: center; }
.rate-q { font-size: 15px; font-weight: 800; }
.saved { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rate {
  height: 76px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 800;
}
.rate.on { border: 0; background: var(--accent); color: var(--accent-ink); }
.rate.on .m-pills i.on { background: var(--accent-ink); }
.rate.on .m-pills i { background: var(--ink-off); }
.divider {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.note-row { display: flex; gap: 8px; }
.m-input {
  flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
  font-size: 15px; padding: 0 14px; display: flex; align-items: center; color: var(--muted);
}
.m-icon-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px 34px; border-top: 1px solid var(--border);
}
.bottom-bar.on-sheet { background: var(--sheet); }
.bottom-bar.on-bg { background: var(--bg); }
.m-btn {
  width: 100%; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800;
}
.m-btn.light { background: var(--text); color: var(--bg); }
.m-btn.accent { background: var(--accent); color: var(--accent-ink); }

/* Карточка рецепта */
.rc-photo { position: relative; height: 300px; }
.rc-photo img { width: 100%; height: 300px; object-fit: cover; }
.rc-actions { position: absolute; left: 16px; right: 16px; top: 48px; display: flex; justify-content: space-between; }
.rc-actions > div { display: flex; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--scrim); color: var(--text); display: flex; align-items: center; justify-content: center; }
.rc-body { position: relative; margin-top: -24px; border-radius: 28px 28px 0 0; background: var(--bg); padding: 24px 20px 0; display: flex; flex-direction: column; }
.rc-title { font-size: 31px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.rc-sub { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--muted); }
.strength {
  margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
}
.strength > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.strength > div + div { border-left: 1px solid var(--border); }
.strength b { font-size: 16px; font-weight: 800; }
.strength span { font-size: 12px; color: var(--muted); }
.rc-rating { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-rating > div { display: flex; align-items: center; gap: 10px; }
.can-make {
  height: 30px; border-radius: 999px; border: 1px solid var(--border); padding: 0 12px 0 9px;
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
}
.last-time {
  margin-top: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.lt-head { display: flex; justify-content: space-between; align-items: center; }
.lt-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.lt-date { font-size: 12.5px; color: var(--muted); }
.lt-note { font-size: 15px; line-height: 1.45; }
.next-time { border-radius: 12px; background: var(--accent-soft); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.next-time b { color: var(--accent); font-weight: 800; }
.lt-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.lt-foot span:last-child { font-size: 13px; font-weight: 700; color: var(--accent); }
.ing-head { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.ing-head .h, .td-section .h { margin: 0; font-size: 19px; line-height: 24px; font-weight: 800; }
.units { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.units span { width: 44px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.units span.on { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.tweaked { margin-top: 4px; height: 32px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.tweaked span:last-child { color: var(--accent); font-size: 13px; font-weight: 700; }
.ing { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ing-icon { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--tile); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.ing-check {
  position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center;
}
.ing-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ing-name b { font-size: 15px; font-weight: 700; }
.ing-name span { font-size: 12.5px; color: var(--muted); }
.ing-amt { font-size: 15px; font-weight: 800; }

/* «Сегодня» */
.td { padding: 44px 20px 0; display: flex; flex-direction: column; }
.td-date { font-size: 13px; line-height: 18px; color: var(--muted); }
.td-hello { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.td-hello .h { margin: 0; font-size: 31px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.td-hello .h em { font-style: normal; color: var(--accent); }
.avatar { width: 36px; height: 36px; margin-right: 0; border-radius: 50%; background: var(--avatar); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.td-ask {
  margin-top: 12px; height: 50px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; gap: 12px; padding: 0 14px 0 10px; font-size: 14px; font-weight: 500;
}
.td-ask .grow { flex: 1; }
.soft-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.collection { margin-top: 13px; height: 176px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.collection img {
  position: absolute; right: 0; top: 0; height: 100%; width: 166px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
.col-text { position: absolute; left: 18px; top: 20px; display: flex; flex-direction: column; gap: 8px; }
.col-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.col-title { font-size: 23px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.col-foot { position: absolute; left: 18px; bottom: 16px; }
.col-foot b { display: block; font-size: 15px; font-weight: 700; }
.col-foot span { font-size: 13px; color: var(--muted); }
.col-go { position: absolute; left: 302px; top: 125px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.td-section { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.td-section span { font-size: 14px; font-weight: 700; color: var(--accent); }
.td-cards { margin-top: 8px; margin-right: -20px; display: flex; gap: 10px; overflow: hidden; }
.td-card { width: 147px; flex-shrink: 0; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.td-card img { width: 100%; height: 106px; object-fit: cover; }
.td-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.td-card-body b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.td-card-body > span { font-size: 12.5px; line-height: 1.35; color: var(--muted); height: 34px; }
.td-card-body > span em { font-style: normal; color: var(--accent); font-weight: 700; }
.td-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.notes { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.suggest { margin-top: 14px; height: 79px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); position: relative; display: flex; align-items: center; }
.suggest-icon { margin-left: 18px; width: 52px; height: 52px; border-radius: 14px; background: var(--tile); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suggest-text { margin-left: 14px; flex: 1; min-width: 0; }
.suggest-text b { display: block; font-size: 15px; font-weight: 800; }
.suggest-text span { font-size: 12.5px; color: var(--muted); }
.to-list { margin-right: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); padding: 0 16px; display: flex; align-items: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.suggest-x { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 93px; background: var(--bg); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: 20px;
}
.tabbar > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); }
.tabbar > span.on { color: var(--accent); font-weight: 700; }
.tabbar > span.log { color: var(--text); font-weight: 700; }
.log-pill { width: 48px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }

/* ---------- Обещания ---------- */

.promises { padding-top: 16px; padding-bottom: 56px; }
.promise-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 20px; display: flex; gap: 16px; }
.promise-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.promise h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }
.promise p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
@media (min-width: 860px) {
  .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .promise { flex-direction: column; }
}

/* ---------- Призыв внизу ---------- */

.cta { padding-bottom: 64px; }
.cta-box {
  border-radius: 28px; border: 1px solid var(--border); background: var(--surface); padding: 32px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.cta-box p { color: var(--muted); font-size: 17px; }

/* ---------- Подвал ---------- */

.foot { border-top: 1px solid var(--border); padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--text); }
.age { margin-top: 10px; font-weight: 700; color: var(--text); }
.copy { margin-top: 6px; }

/* ---------- Простые страницы (thanks, confirmed, privacy, 404) ---------- */

.page { padding-top: 32px; padding-bottom: 64px; }
.page h1 { font-size: clamp(32px, 8.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.page .lead { margin-top: 14px; }
.check-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15.5px; }

/* Опрос */
.survey { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.survey h2 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.survey-sub { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { padding: 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.q .hint { margin-top: 4px; font-size: 14px; color: var(--muted); }
.choices { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Длинный вариант на узком телефоне переносится на вторую строку — поэтому скругление 22px, а не «пилюля» */
.choice span {
  min-height: 44px; border-radius: 22px; border: 1px solid var(--border); padding: 10px 16px; line-height: 1.35;
  display: inline-flex; align-items: center; font-size: 15.5px; font-weight: 600; cursor: pointer; user-select: none;
}
.choice span:hover { border-color: var(--pill-off); }
.choice input:checked + span { border: 1.5px solid var(--accent); background: var(--accent-soft); font-weight: 700; padding: 9.5px 15.5px; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.other { margin-top: 12px; }
.q-label { display: block; font-size: 18px; line-height: 1.35; font-weight: 800; }
textarea.field.wishes { margin-top: 14px; height: auto; min-height: 112px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.survey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.survey-done { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 22px; }
.survey-done h2 { font-size: 22px; }
.survey-done p { margin-top: 6px; color: var(--muted); }

/* Политика */
.prose { max-width: 680px; }
.prose h2 { margin-top: 36px; font-size: 21px; line-height: 1.3; font-weight: 800; }
.prose p, .prose li { color: #cfcbc2; font-size: 16px; line-height: 1.65; }
.prose p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Цвет иконок в макетах (SVG берёт его через currentColor) */
.c-accent { color: var(--accent); }
.c-muted { color: var(--muted); }
.c-ink { color: var(--accent-ink); }
.rc-word { font-size: 14px; font-weight: 700; }
.rc-count { font-size: 13px; color: var(--muted); }
.page-actions { margin-top: 28px; }
.prose code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
