/* Полка — единый стиль сайта. Локальный файл, внешних зависимостей нет. */

:root {
  --bg: #14110d;
  --bg-soft: #1b1610;
  --bg-softer: #221c14;
  --border: #2f2718;
  --text: #e9e4da;
  --muted: #b0a48d;
  --accent: #e0a458;
  --accent-strong: #f0bc77;
  --ok: #8fbf7a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-strong); }

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.6em; }
p  { margin: 0 0 1em; }

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

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              box-shadow 0.18s ease, transform 0.12s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.45);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #1a130c;
}
.btn-primary:hover {
  background: #cf8f42;
  color: #1a130c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 164, 88, 0.25);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(224, 164, 88, 0.12);
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(1px); }

.btn-lg {
  padding: 15px 30px;
  font-size: 1.06rem;
  border-radius: 14px;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Фокус для обычных ссылок и элементов управления */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.45);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(20, 17, 13, 0.92);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--accent-strong); }
.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--bg-softer);
}
.site-nav a.active {
  color: var(--accent);
  background: var(--bg-softer);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Герой ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.chip {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  background: var(--bg-soft);
}
/* ---------- Секции ---------- */

main { padding-bottom: 64px; }
.page-head { padding: 48px 0 8px; }
.page-head p.lead { color: var(--muted); font-size: 1.08rem; max-width: 46em; }

section { margin-top: 48px; }
section:first-of-type { margin-top: 0; }

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44em;
}

/* ---------- Боль ---------- */

.pain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.pain li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.98rem;
}
.pain li strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: #4a3b22;
  transform: translateY(-2px);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-softer);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Шаги ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-softer);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong { color: var(--text); }

/* ---------- Продуктовый блок (телефон) ---------- */

.product-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.product-block .product-copy { max-width: 30em; }
.phone {
  width: 240px;
  max-width: 60vw;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
}
.phone svg { width: 100%; height: auto; display: block; }

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 10px 18px;
  background: var(--bg-softer);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
              transform 0.12s ease, box-shadow 0.18s ease;
}
.app-badge:hover {
  border-color: var(--accent);
  background: #2a2216;
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.app-badge:active { transform: translateY(0); }
.app-badge:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.45);
}
.app-badge .app-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.app-badge .app-badge-text small { color: var(--muted); font-size: 0.78rem; }
.app-badge .app-badge-text b { font-size: 0.95rem; }
.microcopy { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* ---------- Тарифы ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.plan {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.plan:hover {
  border-color: #4a3b22;
  transform: translateY(-2px);
}
.plan.featured { border-color: var(--accent); }

.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.plan .price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}
.plan p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1 0 auto; }
.plan .btn { margin-top: 14px; width: 100%; }

/* ---------- Отзывы ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.quotes figure {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.quotes blockquote {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.98rem;
}
.quotes blockquote::before { content: "« "; color: var(--accent); }
.quotes blockquote::after { content: " »"; color: var(--accent); }
.quotes figcaption { color: var(--muted); font-size: 0.88rem; }

/* ---------- Вопросы ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }

.faq .answer {
  padding: 0 20px 16px;
  color: var(--muted);
}
.faq .answer p { margin: 0; }

/* ---------- Лист ожидания ---------- */

.waitlist-wrap {
  background: var(--bg-softer);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
}
.waitlist-wrap h2 { margin-top: 0; }
.waitlist-wrap > p { color: var(--muted); max-width: 40em; margin: 0 auto 1.4em; }

.waitlist {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}
.waitlist input[type="email"],
.waitlist select {
  font: inherit;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.waitlist input[type="email"] { flex: 1 1 220px; }
.waitlist select { flex: 0 1 auto; }
.waitlist input[type="email"]:focus,
.waitlist select:focus {
  outline: none;
  border-color: var(--accent);
}
.waitlist input[type="email"]:focus-visible,
.waitlist select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.25);
}
.waitlist .microcopy { flex-basis: 100%; margin-top: 10px; }

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--bg-softer);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Статус ---------- */

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1.05rem;
}

.dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(143, 191, 122, 0.15);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.status-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-item h3 { margin: 0; font-size: 1rem; }
.status-item .state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 0.92rem;
}

.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.notes li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
}
.notes li strong { color: var(--text); }

.beta-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--muted);
}
.beta-note .chip { margin: 0; flex: 0 0 auto; }
.beta-note p { margin: 0; }
.beta-note a { color: var(--accent); }

/* ---------- Цитата-легенда ---------- */

.keynote {
  background: var(--bg-softer);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  color: var(--text);
  font-size: 1.02rem;
  margin: 24px 0;
}
.keynote p { margin: 0; }

/* ---------- Принципы (галочки) ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
}
.checks li svg { flex: 0 0 auto; margin-top: 3px; }
.checks li strong { color: var(--text); }

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 72px 0 40px;
}
.notfound h1 { margin-bottom: 0.3em; }
.notfound p { color: var(--muted); }
.notfound .art { margin: 28px auto; display: block; }
.notfound .whisper { color: var(--muted); font-size: 0.9rem; opacity: 0.8; margin-top: 22px; }

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* ---------- Адаптив ---------- */

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 24px;
  }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 250px; }

  .product-block {
    grid-template-columns: 1fr;
    padding: 26px;
    text-align: center;
  }
  .product-block .product-copy { max-width: none; }
  .app-badges { align-items: center; }
  .phone { margin: 0 auto; width: 210px; }

  .nav-toggle { display: flex; }
  .waitlist .btn { flex: 1 1 100%; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    z-index: 20;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
}
