/* ============================================================
   Лендинг «Бесплатный UX-аудит» (ИП Волков) — дизайн-система
   Тёмная премиум-палитра, mobile-first, breakpoints 768/1024/1280
   ============================================================ */

:root {
  /* Палитра */
  --bg: #0E1116;
  --bg-alt: #151A22;
  --surface: #1C232E;
  --text: #E8ECF1;
  --text-muted: #9AA4B2;
  --accent: #00E0A4;
  --accent-ink: #07120E;     /* тёмный текст на акценте */
  --danger: #FF5C5C;
  --border: #2A323D;

  /* Геометрия */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;
  --section-pad: clamp(64px, 10vw, 120px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset (минимальный) --- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Контейнеры и секции --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 5vw, 40px); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 clamp(28px, 4vw, 48px);
  letter-spacing: -0.01em;
}

/* --- Акцент и цифры --- */
.accent {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  min-height: 48px;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text-muted); }
.btn--lg { padding: 18px 30px; font-size: 1.0625rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Шапка --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; font-size: 1.0625rem; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone { text-decoration: none; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.site-header__phone:hover { color: var(--text); }

/* --- Hero --- */
.hero__inner { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); margin: 0 0 32px; max-width: 60ch; }
.hero__trust { margin-top: 16px; color: var(--text-muted); font-size: .95rem; }

/* Сплит «До / После» */
.hero__split { display: grid; gap: 16px; }
.mock { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 18px; background: var(--surface); overflow: hidden; }
.mock__screen { height: 130px; border-radius: 8px; }
.mock--old .mock__screen { background: repeating-linear-gradient(135deg, #2a2030, #2a2030 10px, #241b29 10px, #241b29 20px); filter: blur(1px) saturate(.4); opacity: .7; }
.mock--old::after { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 130px; border-radius: 8px; background: linear-gradient(135deg, transparent 47%, var(--danger) 48%, var(--danger) 52%, transparent 53%); opacity: .6; }
.mock--new .mock__screen { background: linear-gradient(160deg, #16312a, #0f2722); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.mock__label { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-align: center; }
.mock__label--bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.mock__label--good { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* --- Карточки --- */
.cards { display: grid; gap: 20px; }
.card, .case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.card__title, .case__title { margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; }
.card p, .case__row { margin: 0 0 10px; color: var(--text-muted); }
.case__row:last-child { margin-bottom: 0; }
.case__row strong { color: var(--text); }
.case--placeholder { border-style: dashed; opacity: .7; }

/* --- Оффер с якорями цены --- */
.offer-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.offer-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px;
}
.offer-item__text { color: var(--text); }
.offer-item__price { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-item__price s { opacity: .8; }
.offer-total { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; margin: 0 0 28px; }
.offer-total s { color: var(--text-muted); font-weight: 400; }

/* --- Шаги --- */
.steps { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step p { margin: 0; padding-top: 4px; }
.step__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.steps__note { color: var(--text-muted); font-style: italic; }

/* --- Текстовые блоки --- */
.lead-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 70ch; }

/* --- FAQ --- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq__item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 12px 0 0; color: var(--text-muted); }

/* --- Квиз / форма --- */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); max-width: 640px; }
.quiz-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.quiz-progress__bar { height: 100%; background: var(--accent); transition: width .3s ease; }

.quiz-step { border: 0; margin: 0; padding: 0; }
.quiz-step__legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; padding: 0; }

.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
  min-height: 48px;
}
.option:hover { border-color: var(--text-muted); }
.option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

.field { margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 8px; font-weight: 600; }
.req { color: var(--accent); }
.input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; transition: border-color .15s ease;
}
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { resize: vertical; }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; min-height: 1em; }

/* Honeypot — визуально скрыт, но не display:none (чтобы боты заполняли) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quiz-nav { display: flex; gap: 12px; margin-top: 28px; }
.quiz-nav .btn { flex: 1; }

.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result h3 { font-size: 1.4rem; margin: 0 0 12px; }
.quiz-result p { color: var(--text-muted); margin: 0 0 16px; }
.quiz-result a { color: var(--accent); }

/* --- Подвал --- */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; color: var(--text-muted); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer__year { margin: 8px 0 0; opacity: .7; }

/* --- Sticky-CTA (только мобильный) --- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  padding: 16px; border-radius: var(--radius);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6);
  min-height: 52px;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  /* На мобильном телефон в шапке прячем — есть sticky-CTA и подвал */
  .site-header__phone { display: none; }
  .offer-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quiz-nav { flex-direction: column-reverse; }
  body { padding-bottom: 84px; } /* место под sticky-CTA */
}

@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
}

/* Доступность: уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
