/* Дегустаторы майонезных купонов — стили лендинга
   Палитра данных (слоты 1–5) валидирована на поверхности #132747:
   #3987e5 #d95926 #199e70 #c98500 #d55181 */

:root {
  color-scheme: dark;
  --bg: #0B1730;
  --bg-alt: #0E1D38;
  --surface: #132747;
  --surface-2: #17304F;
  --line: rgba(255, 253, 244, .10);
  --line-strong: rgba(255, 253, 244, .18);
  --cream: #FFFDF4;
  --text: #DBE4F2;
  --muted: #93A6C4;
  --gold: #F7CE55;
  --gold-deep: #D9A32A;
  --blue: #3987e5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(4, 12, 28, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--cream); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 780px; }
.wrap.mid { max-width: 960px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--gold); color: #12233F; padding: 10px 14px; border-radius: 10px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 23, 48, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.brand-text i { font-style: normal; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--cream); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #16264A; }
.btn-primary:hover { background: linear-gradient(180deg, #FFDE85, var(--gold)); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; background:
  radial-gradient(900px 420px at 78% 8%, rgba(44, 95, 168, .35), transparent 62%),
  radial-gradient(700px 380px at 6% 0%, rgba(247, 206, 85, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; letter-spacing: .01em;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(247, 206, 85, .18); }
.lede { font-size: 17px; color: var(--text); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { margin: 0; }
.stats dt { color: var(--cream); font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 380px; height: 380px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 148, 240, .5), rgba(58, 135, 229, .12) 52%, transparent 72%);
  filter: blur(6px);
}
.hero-art img { position: relative; z-index: 1; width: min(360px, 80%); height: auto; filter: drop-shadow(0 30px 50px rgba(4, 12, 28, .65)); }
.float {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(19, 39, 71, .92); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 34px rgba(4, 12, 28, .45); backdrop-filter: blur(6px);
}
.float b { color: var(--cream); font-size: 19px; letter-spacing: -.01em; }
.float span { color: var(--muted); font-size: 12px; }
.float-a { top: 6%; right: -6px; }
.float-b { bottom: 8%; left: -10px; }

.sources { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 52px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.sources li { display: flex; align-items: center; gap: 9px; }
.sw { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 34px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-sub { color: var(--muted); margin: 0; }

/* ---------- demo panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font: 500 14px/1 var(--font);
}
.chip:hover { background: var(--surface-2); }
.chip .sw { width: 9px; height: 9px; border-radius: 3px; }
.chip[aria-pressed="true"] { background: var(--surface-2); border-color: var(--c); color: var(--cream); font-weight: 650; }
.badge-demo { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.panel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel-grid-b { margin-top: 18px; }
.chart-card, .taste-card, .panel-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.chart-card { display: flex; flex-direction: column; }
.chart-card .chart-host { flex: 1; min-height: 190px; display: flex; align-items: center; }
.chart-card figcaption { margin-bottom: 10px; }
.chart-card h3 { margin-bottom: 2px; }
.chart-sub { color: var(--muted); font-size: 13px; margin: 0; }
.chart-host { position: relative; }
.chart-host svg { display: block; width: 100%; height: auto; overflow: visible; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -114%); transition: opacity .1s ease;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  background: #0A1630; border: 1px solid var(--line-strong);
  box-shadow: 0 12px 28px rgba(3, 9, 22, .55); font-size: 13px; color: var(--text);
}
.tip b { display: block; color: var(--cream); font-size: 15px; }
.tip.on { opacity: 1; }

.taste-card dl { display: grid; gap: 12px; margin: 0 0 16px; }
.taste-card dt { color: var(--muted); font-size: 13px; }
.taste-card dd { margin: 2px 0 0; color: var(--cream); font-size: 17px; font-weight: 650; }
.taste-card blockquote {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(247, 206, 85, .07); border-left: 3px solid var(--gold);
  color: var(--text); font-size: 14px; font-style: italic;
}
.panel-note ul { margin-bottom: 18px; }

.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.table-view { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-view table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.table-view caption { text-align: left; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.table-view th, .table-view td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-view th[scope="row"], .table-view thead th:first-child { text-align: left; }
.table-view thead th { color: var(--muted); font-weight: 600; }
.table-view tbody th { color: var(--cream); font-weight: 600; }
.table-view tbody tr:last-child td, .table-view tbody tr:last-child th { border-bottom: 0; }

/* ---------- cards / steps ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); font-size: 14px; }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: rgba(247, 206, 85, .12); color: var(--gold); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0 0 42px; padding: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { color: var(--muted); font-size: 14px; margin: 0; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--gold); color: #16264A; font-weight: 750; font-size: 14px; }

.cases { padding-top: 32px; border-top: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.case-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.case-grid b { color: var(--cream); font-weight: 650; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan .ticks { flex: 1; }
.plan-best { border-color: var(--gold); background: linear-gradient(180deg, rgba(247, 206, 85, .07), var(--surface) 42%); }
.plan-flag { position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #16264A; font-size: 12px; font-weight: 700; }
.price { color: var(--cream); font-size: 32px; font-weight: 780; letter-spacing: -.02em; margin: 0 0 6px; }
.price span { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.plan-for { color: var(--muted); font-size: 14px; min-height: 42px; }
.plan .btn { width: 100%; margin-top: 8px; }
.fineprint { color: var(--muted); font-size: 13px; margin: 22px 0 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; color: var(--cream); font-weight: 650; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- lead form ---------- */
.lead-box { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.lead-copy p { color: var(--muted); }
.field { margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; font-weight: 600; padding: 0; }
.field label span { color: var(--gold); }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #0E1E3A; border: 1px solid var(--line-strong);
  color: var(--cream); font: 400 15px/1.4 var(--font); resize: vertical;
}
input::placeholder, textarea::placeholder { color: #6E82A3; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; }
input[aria-invalid="true"] { border-color: #e66767; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .check { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; cursor: pointer; }
.checks .check:hover { background: var(--surface-2); }
.checks .check input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold); }
.checks .check:has(input:checked) { background: var(--surface-2); border-color: var(--gold); color: var(--cream); }
.form-note { margin: 12px 0 0; font-size: 14px; min-height: 1.2em; }
.form-note.ok { color: #6fd3a5; }
.form-note.err { color: #ff9b9b; }
form .fineprint { margin-top: 10px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 42px 0 28px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-name { margin: 0; color: var(--cream); font-weight: 700; font-size: 15px; }
.foot-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-nav a { color: var(--text); font-size: 14px; }
.foot-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0 0 6px; color: #7B8EAD; font-size: 12px; line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; height: 200px; }
  .float-a { right: 0; }
  .float-b { left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .panel-grid, .panel-grid-b { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
  .lead-box { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cards, .steps, .case-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .chart-card, .taste-card, .panel-note { padding: 14px; }
  .float { display: none; }
  .cta-row .btn, .plan .btn, form .btn, .nf .btn { width: 100%; }
  .head-inner .btn { padding: 9px 14px; font-size: 13px; }
  .cta-row { gap: 10px; }
  .badge-demo { margin-left: 0; }
}
