/* Полкабук — лендинг. Токены наследованы от прототипа конструктора. */

:root {
  --ink: #0E0F12;        /* текст, тёмные кнопки */
  --ink-soft: #3C4046;
  --muted: #6B7076;
  --paper: #FBFAF8;      /* фон страницы */
  --card: #FFFFFF;
  --tint: #F4F2EE;       /* чередование секций */
  --line: #E8E6E1;
  --accent: #FA7E61;     /* акцент прототипа */
  --accent-deep: #E8654A;
  --accent-soft: #FDEDE8;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 18, 0.06);
  --shadow-md: 0 2px 6px rgba(14, 15, 18, 0.05), 0 12px 32px rgba(14, 15, 18, 0.07);
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 248, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a:focus-visible,
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 20px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.hero-note {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.hero-art svg { width: 100%; height: auto; }

/* ---------- Секции ---------- */

.section { padding: 84px 0; }
.section-tinted { background: var(--tint); }

.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0 0 36px;
}

/* ---------- Карточки болей ---------- */

.cards-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18.5px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

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

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.step h3 { font-size: 18.5px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Книга ---------- */

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.book-art svg { width: 100%; height: auto; }

.specs {
  list-style: none;
  margin: 24px 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.specs li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.specs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

.specs strong { color: var(--ink); }

.book-note {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

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

.waitlist-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 34px 32px;
}

.waitlist-form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label { font-size: 14.5px; font-weight: 600; }
.field .optional { color: var(--muted); font-weight: 400; }

.field input {
  font-family: var(--font);
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #A6A9AD; }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 126, 97, 0.22);
}

.form-note { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-done { text-align: center; padding: 18px 0 8px; }

.done-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}

.done-mark svg { width: 26px; height: 26px; }

.waitlist-done h3 { margin: 0 0 6px; font-size: 21px; }
.waitlist-done p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

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

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16.5px;
  padding: 15px 0;
  position: relative;
  padding-right: 34px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent-deep);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "–"; }

.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.faq p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-name { margin: 0; font-weight: 600; font-size: 15px; }
.footer-copy { margin: 0; color: var(--muted); font-size: 14px; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .cards-three, .steps { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-art { max-width: 400px; margin: 0 auto; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-row { gap: 12px; }
  .header-row .btn { margin-left: auto; }
  .hero { padding: 48px 0 40px; }
  .waitlist-card { padding: 26px 20px; }
}
