:root {
  --primary: #1a365d;
  --secondary: #2b6cb0;
  --accent: #2f855a;
  --accent-hover: #276749;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --border: #e2e8f0;
  --warning: #744210;
  --warning-bg: #fffbea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--secondary); }
img { max-width: 100%; height: auto; }

/* TOP BAR */
.top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* STICKY HEADER */
header, header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a { color: var(--text-dark); text-decoration: none; }
.nav-links a:hover { color: var(--secondary); }

/* HEADER CTA */
.btn-header-aff {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.btn-header-aff:hover { background: var(--accent-hover); }

/* CONTAINER & TYPOGRAPHY */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1 0 auto;
  width: 100%;
}

h1 { font-size: 34px; color: var(--primary); margin-bottom: 18px; line-height: 1.2; }
h2 { font-size: 26px; color: var(--primary); margin: 40px 0 20px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-light); }
h3 { font-size: 19px; color: var(--primary); margin: 25px 0 10px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 6px; }
.text-center { text-align: center; }

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  padding: 60px 20px;
  flex-shrink: 0;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text { flex: 1.2; min-width: 280px; }
.hero-image { flex: 1; min-width: 260px; text-align: center; }
.hero-image img { border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.rating-stars { color: #d69e2e; font-size: 20px; margin-bottom: 10px; }
.rating-stars span { font-size: 14px; color: var(--text-light); vertical-align: middle; margin-left: 8px; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn-lg { padding: 15px 32px; font-size: 16px; margin-top: 10px; }

/* NOTICES & INFO BOXES */
.notice {
  background: var(--warning-bg);
  border-left: 4px solid #d69e2e;
  padding: 16px 20px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--warning);
}
.info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--secondary);
  padding: 18px 20px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
}

/* BENEFITS GRID */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.benefit-icon { font-size: 32px; margin-bottom: 12px; }
.benefit-card h3 { margin-top: 0; font-size: 17px; }
.benefit-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* PROCESS STEPS */
.process-steps {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: #4a5568; }

/* GRID / CARDS (general) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 22px 0;
}

/* ✅ НОВОЕ: универсальный .card для /wissen/ хаба */
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary);
}
.card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* INGREDIENT CARDS */
.ingredient-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.ingredient-card h3 { color: var(--primary); margin: 0 0 10px; font-size: 18px; }
.ingredient-card p { font-size: 14px; color: #4a5568; margin: 0 0 8px; }
.ingredient-icon {
  width: 52px; height: 52px;
  background: #e6f4ea;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
}
.ingredient-claim {
  font-size: 12px; color: var(--text-light); font-style: italic;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
}

/* REVIEWS GRID */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.review-stars { color: #d69e2e; font-size: 16px; margin-bottom: 12px; }
.review-text { font-style: italic; color: #2d3748; flex-grow: 1; margin-bottom: 16px; }
.review-author {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 14px;
}
.review-author strong { display: block; color: var(--primary); }
.review-author span { color: var(--text-light); font-size: 12px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q { background: var(--bg-light); padding: 14px 18px; font-weight: 600; color: var(--primary); }
.faq-a { padding: 14px 18px; }

/* ORDER FORM */
.order-box {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  border: 2px solid var(--secondary);
  border-radius: 10px;
  padding: 35px;
  max-width: 520px;
  margin: 50px auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.order-box h3 { text-align: center; color: var(--primary); margin: 0 0 8px; font-size: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #2d3748; }
.form-group input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 16px; font-family: inherit; background: #fff;
}
.form-group input:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.consent-label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: #4a5568; margin: 16px 0; cursor: pointer;
}
.consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.btn-submit {
  width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none;
  border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px; transition: background .2s;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
#lf-message { margin-top: 14px; font-size: 14px; min-height: 1em; text-align: center; }
.secure-notice { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid var(--border); padding: 12px 15px; text-align: left; font-size: 14px; }
th { background: var(--bg-light); color: var(--primary); font-weight: 600; }

/* FOOTER */
footer, footer.site-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 45px 20px;
  font-size: 13px;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
.footer-inner { max-width: 900px; margin: 0 auto; line-height: 1.7; }
.footer-links { margin: 18px 0; }
.footer-links a { color: #cbd5e0; text-decoration: underline; margin: 0 8px; }
.footer-disclaimer { font-size: 12px; color: #718096; margin-top: 20px; }

/* LEGAL PAGES (used via <body class="legal-page">) */
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 28px; }
.legal-page h2 { font-size: 20px; margin-top: 30px; }

/* MOBILE */
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .hero { padding: 30px 16px; }
  .nav-container { justify-content: center; }
  .btn-header-aff { font-size: 13px; padding: 8px 14px; }
  .nav-links { font-size: 13px; gap: 10px; }
}

/* ===== PRICE BLOCK (визуальный блок цены, вдохновлён CPA-лендингами) ===== */
.price-block {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 28px 22px 22px;
  text-align: center;
  margin: 40px auto 25px;
  max-width: 520px;
  box-shadow: 0 8px 20px rgba(47, 133, 90, 0.12);
  position: relative;
}

.price-block-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 14px;
}

.price-block-inner {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.price-old {
  font-size: 22px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.price-new {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}

.price-new small {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
}

.price-badge {
  display: inline-block;
  background: #fff5e6;
  color: #b7791f;
  border: 1px solid #f6c46d;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-top: 14px;
}

.price-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Hero-цена (компактный бейдж под кнопкой) */
.hero-price-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
}

.hero-price-tag strong {
  color: var(--accent);
  font-size: 18px;
  margin-left: 6px;
}

.hero-price-tag s {
  color: var(--text-light);
  margin-left: 6px;
}

/* Кнопка в шапке с ценой */
.btn-header-aff .price-hint {
  background: rgba(255,255,255,0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .price-new { font-size: 38px; }
  .price-old { font-size: 18px; }
  .price-block { padding: 22px 16px 18px; }
}



/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch--header {
  margin-left: auto;
  margin-right: 16px;
  font-size: 13px;
}

.lang-switch--footer {
  justify-content: center;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #2d3748;
  font-size: 13px;
}

.lang-switch__label {
  color: #a0aec0;
  font-weight: 600;
}

.lang-switch__link {
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__link:hover {
  color: var(--primary);
  background: var(--bg-light);
  text-decoration: none;
}

.lang-switch__link--active {
  color: var(--primary);
  font-weight: 700;
  background: var(--bg-light);
}

.lang-switch--footer .lang-switch__link {
  color: #cbd5e0;
}

.lang-switch--footer .lang-switch__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch--footer .lang-switch__link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
  .lang-switch--header {
    margin-left: 0;
    margin-right: 0;
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}





/* ===== STICKY HEADER — AUTO-HIDE + SHRINK ===== */
header.site-header {
  /* существует уже: position: sticky; top: 0; */
  transition: transform 0.3s ease, padding 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

/* Скрыт — при скролле вниз */
header.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Уменьшен — после возврата вверх (уже не в самом верху страницы) */
header.site-header.header-shrunk {
  padding: 6px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

header.site-header.header-shrunk .logo {
  font-size: 17px;
  transition: font-size 0.25s ease;
}

header.site-header.header-shrunk .btn-header-aff {
  padding: 7px 14px;
  font-size: 13px;
  transition: padding 0.25s ease, font-size 0.25s ease;
}

header.site-header.header-shrunk .nav-links {
  font-size: 13px;
}

/* Доступность: уважаем настройку «уменьшенное движение» */
@media (prefers-reduced-motion: reduce) {
  header.site-header,
  header.site-header.header-shrunk .logo,
  header.site-header.header-shrunk .btn-header-aff {
    transition: none;
  }
}