/* ainutri.ru — premium clinical look */
:root {
  --bg: #f7f6f1;
  --bg-card: #ffffff;
  --ink: #0b1c2c;
  --ink-soft: #45556c;
  --muted: #8593a4;
  --accent: #1c6a5b;
  --accent-soft: #d8ebe5;
  --accent-deep: #0f4d41;
  --warm: #b8854e;
  --bad: #b00020;
  --border: #e3e2dc;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(11, 28, 44, 0.06);
  --shadow-lg: 0 8px 40px rgba(11, 28, 44, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 44px; margin: 0 0 18px; }
h2 { font-size: 30px; margin: 0 0 24px; }
h3 { font-size: 20px; margin: 24px 0 12px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  height: 48px; width: auto;
  display: block;
}
.logo-text {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  line-height: 1;
}
.nav-main { display: flex; gap: 28px; }
.nav-main a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-main a:hover { color: var(--accent); text-decoration: none; }

/* Бургер-кнопка (видна только на мобиле) */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; margin-left: auto;
  position: relative; z-index: 110;
}
.nav-burger span {
  display: block; height: 2px; width: 24px; margin: 5px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f7f6f1 0%, #f3f0e8 100%);
}
.hero-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 { font-size: 52px; line-height: 1.05; }
.hero .lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero-bullets { list-style: none; padding: 0; margin: 0 0 36px; }
.hero-bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.hero-bullets li:last-child { border-bottom: 1px solid var(--border); }
.hero-bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.cta-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .trust-row { grid-template-columns: 1fr; gap: 6px; }
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 14px; font-weight: 600;
}
.report-toc { list-style: none; padding: 0; margin: 0; }
.report-toc li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--ink-soft);
}
.report-toc li:last-child { border-bottom: none; }
.link-arrow {
  display: inline-block; margin-top: 16px;
  font-weight: 600; color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; text-decoration: none; }
.btn-large { padding: 18px 32px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ---------- how ---------- */
.how { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--accent); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- order form ---------- */
.order { padding: 80px 0; }
.order-form {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 22px; }
.field > span {
  display: block; font-weight: 600; font-size: 14px;
  margin-bottom: 8px; color: var(--ink);
}
.field select, .field input[type=email], .field input[type=text] {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.field select:focus, .field input:focus {
  outline: none;
  border-color: var(--accent);
}
.file-field input[type=file] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 10px;
  font: inherit; font-size: 14px;
}
.legal-block {
  background: #fafaf6;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}
.checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0;
  font-size: 13px; color: var(--ink-soft);
}
.checkbox input[type=checkbox] {
  margin-top: 3px; flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--accent);
}

/* ---------- tariffs ---------- */
.tariffs { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tariff {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.tariff-featured {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: white;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-quick { background: var(--warm); }
.badge-pro   { background: var(--ink); }
.tariff-title { font-weight: 700; font-size: 22px; }
.tariff-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.tariff-price { font-weight: 800; font-size: 40px; color: var(--ink); }
.tariff-price span { font-size: 22px; color: var(--muted); font-weight: 600; }
.tariff-delivery {
  font-size: 13px; color: var(--accent-deep);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px; border-radius: 100px;
  margin: 8px 0 20px;
}
.tariff-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tariff-features li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
  position: relative;
  color: var(--ink-soft);
}
.tariff-features li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700;
}

/* ---------- faq ---------- */
.faq { padding: 80px 0; }
.faq details {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  padding-right: 28px;
  position: relative;
}
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: 22px; color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- example page ---------- */
.example { padding: 50px 0 80px; }
.example-head { margin-bottom: 32px; }
.example-head h1 { margin-bottom: 8px; }

.example-tabs input[type=radio] { position: absolute; left: -9999px; }
.tab-bar {
  display: flex; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.tab-btn {
  flex: 1;
  display: block;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.tab-btn:hover { background: var(--bg); }
.tab-title { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.tab-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

#tab-basic:checked ~ .tab-bar label[for=tab-basic],
#tab-extended:checked ~ .tab-bar label[for=tab-extended] {
  background: var(--accent);
}
#tab-basic:checked ~ .tab-bar label[for=tab-basic] .tab-title,
#tab-basic:checked ~ .tab-bar label[for=tab-basic] .tab-sub,
#tab-extended:checked ~ .tab-bar label[for=tab-extended] .tab-title,
#tab-extended:checked ~ .tab-bar label[for=tab-extended] .tab-sub {
  color: white;
}

.tab-content { display: none; }
#tab-basic:checked    ~ .tab-content-basic    { display: block; }
#tab-extended:checked ~ .tab-content-extended { display: block; }

/* ---------- report-paper: единый стиль обоих примеров ---------- */
.report-paper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px 36px;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}
.report-hd { text-align: center; margin-bottom: 22px; }
.report-eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.report-title { font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.report-ctx { color: var(--ink-soft); font-size: 14px; margin: 0; }

.disclaimer-soft {
  background: #fff8e8;
  border: 1px solid #f0d59d;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 18px 0 26px;
  line-height: 1.55;
}
.disclaimer-soft strong { color: #8a4a00; }

.rep-h2 {
  font-size: 20px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin: 32px 0 14px;
}
.rep-h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 18px 0 8px;
}

.rep-table {
  width: 100%; border-collapse: collapse;
  margin: 6px 0 20px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.rep-table th {
  background: var(--accent);
  color: white;
  text-align: left;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.rep-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rep-table tr:last-child td { border-bottom: none; }
.rep-table tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
.rep-table .bad { color: var(--bad); font-weight: 600; }

.findings { list-style: none; padding: 0; margin: 10px 0 20px; }
.findings li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.findings li:last-child { border-bottom: none; }
.findings li::before {
  content: '';
  position: absolute; left: 0; top: 17px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.findings li b { color: var(--accent-deep); }
.findings.lifestyle li::before { display: none; }
.findings.lifestyle li { padding-left: 4px; }

/* БАДы — единый стиль */
.supp-block {
  margin: 18px 0;
  padding: 16px 18px 4px;
  border-left: 4px solid var(--block, var(--accent));
  background: rgba(0,0,0,0.015);
  border-radius: 0 10px 10px 0;
}
.supp-block-head {
  font-weight: 800;
  font-size: 14px;
  color: var(--block, var(--accent-deep));
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.supp {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.supp-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--block, var(--ink));
  margin-bottom: 4px;
}
.supp-meta {
  font-style: italic;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.supp-row { font-size: 14px; margin: 4px 0; line-height: 1.55; }
.supp-row b { color: var(--ink); }

.doc-callout {
  background: #fff8e8;
  border: 1px solid #f0d59d;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0 6px;
}
.doc-callout h4 {
  margin: 0 0 6px;
  color: #8a4a00;
  font-size: 15px;
}
.doc-callout p { margin: 0; font-size: 14px; line-height: 1.55; }

.report-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .report-paper { padding: 28px 22px; }
  .report-title { font-size: 22px; }
  .tab-bar { flex-direction: column; }
  .rep-table { font-size: 13px; }
  .rep-table th, .rep-table td { padding: 7px 8px; }
}

/* ---------- pay ---------- */
.pay-page { padding: 80px 0; }
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
}
.pay-card .row {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.pay-card .row:last-child { border-bottom: none; }
.pay-card .row.total { font-size: 20px; padding-top: 18px; border-top: 2px solid var(--ink); border-bottom: none; }
.pay-note {
  background: #fff8e8;
  border: 1px solid #f0d59d;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0 28px;
  font-size: 14px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.footer-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-mark { height: 48px; width: auto; margin-bottom: 12px; }
.footer-brand { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.footer-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; padding: 4px 0; font-size: 14px; }
.footer-col p { font-size: 13px; line-height: 1.5; }
.footer-col .muted { color: rgba(255,255,255,0.55); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

/* ---------- error pages ---------- */
.error-page { padding: 120px 0; }
.error-page h1 { font-size: 80px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-row, .steps, .tariff-grid, .footer-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .nav-burger { display: block; }
  .nav-main {
    position: fixed;
    top: 0; right: 0;
    width: min(86vw, 320px); height: 100dvh;
    background: var(--bg-card, #fff);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0,0,0,.18);
    flex-direction: column; gap: 0;
    padding: 84px 28px 28px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 105;
  }
  .nav-main.is-open { transform: translateX(0); }
  .nav-main a {
    padding: 16px 0;
    font-size: 17px; font-weight: 600;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
  }
  .nav-main a:last-child { border-bottom: 0; }
  .container { padding: 0 20px; }
  .hero, .how, .order, .tariffs, .faq { padding: 50px 0; }
  .logo-mark { height: 38px; }
  .logo-text { font-size: 20px; }
}
