/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #1a365d;          
  --secondary: #2b6cb0;        
  --accent: #2f855a;           
  --accent-hover: #276749;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f8fafc;         
  --border: #e2e8f0;           
  --border-focus: #cbd5e1;
  --warning: #744210;
  --warning-bg: #fffbea;
  --cta-orange: #e67e22;
  --cta-orange-hover: #d35400;
  --cta-shadow: rgba(230, 126, 34, 0.4);
}

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

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

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* =========================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================= */
header, header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  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: 22px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.nav-links a { color: var(--text-dark); text-decoration: none; }
.nav-links a:hover { color: var(--cta-orange); }

.btn-header-aff {
  background: var(--cta-orange); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; box-shadow: 0 4px 10px var(--cta-shadow);
}
.btn-header-aff:hover { background: var(--cta-orange-hover); transform: translateY(-1px); color: #fff; }

.header-menu { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-menu-header { display: none; }
.menu-toggle-cb, .menu-overlay, .hamburger { display: none; }

/* =========================================
   3. MOBILE MENU
   ========================================= */
@media (max-width: 768px) {
  .header-menu {
    display: flex; flex-direction: column; align-items: flex-start; position: fixed; top: 0; bottom: 0; right: 0; width: 320px; max-width: 85vw; background: #fff; padding: 20px; box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15); z-index: 1001; margin-left: 0; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-menu-header { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
  .menu-close-btn { font-size: 32px; cursor: pointer; line-height: 1; color: var(--text-dark); padding: 0 5px; transition: color 0.2s; }
  .menu-close-btn:hover { color: var(--cta-orange); }
  .header-menu .nav-links { flex-direction: column; width: 100%; gap: 15px; font-size: 18px; }
  .header-menu .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--bg-light); }
  .header-menu .btn-header-aff { width: 100%; justify-content: center; margin-top: 20px; }
  .header-menu .lang-switch { margin: 20px 0; width: 100%; justify-content: flex-start; }

  .hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; margin-left: auto; z-index: 1002; transition: opacity 0.2s, visibility 0.2s; }
  .hamburger-line { width: 100%; height: 3px; background: var(--primary); border-radius: 3px; transition: all 0.3s ease; }
  .menu-overlay { display: block; position: fixed; inset: 0; background: rgba(26, 54, 93, 0.6); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(2px); }
  
  .menu-toggle-cb:checked ~ .menu-overlay { opacity: 1; pointer-events: auto; }
  .menu-toggle-cb:checked ~ .site-header .header-menu { transform: translateX(0); }
  .menu-toggle-cb:checked ~ .site-header .hamburger { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =========================================
   4. CONTAINER & TYPOGRAPHY
   ========================================= */
.container { max-width: 900px; margin: 0 auto; padding: 50px 20px; flex: 1 0 auto; width: 100%; }
h1 { font-size: 38px; color: var(--primary); margin-bottom: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 28px; color: var(--primary); margin: 40px 0 25px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-light); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 20px; color: var(--primary); margin: 25px 0 12px; font-weight: 700; }
p { margin-bottom: 16px; color: #4a5568; }
ul, ol { margin: 0 0 20px 22px; color: #4a5568; }
li { margin-bottom: 8px; }
.text-center { text-align: center; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 32px; }
.legal-page h2 { font-size: 22px; margin-top: 35px; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero { background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%); padding: 70px 20px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1000px; margin: 0 auto; display: flex; gap: 50px; 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: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.rating-stars { color: #d69e2e; font-size: 22px; margin-bottom: 15px; }
.rating-stars span { font-size: 15px; color: var(--text-light); vertical-align: middle; margin-left: 10px; font-weight: 500; }

/* =========================================
   6. BUTTONS & NOTICES
   ========================================= */
.btn { 
  display: inline-block; background: var(--cta-orange); color: #fff; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all .2s; box-shadow: 0 4px 15px var(--cta-shadow); border: none; cursor: pointer;
}
.btn:hover { background: var(--cta-orange-hover); transform: translateY(-2px); color: #fff; }
.btn-lg { padding: 18px 36px; font-size: 18px; margin-top: 15px; }

.notice { background: var(--warning-bg); border-left: 4px solid #d69e2e; padding: 18px 24px; margin: 25px 0; border-radius: 0 12px 12px 0; font-size: 15px; color: var(--warning); box-shadow: 0 2px 10px rgba(214, 158, 46, 0.05); }
.info-box { background: var(--bg-light); border-left: 4px solid var(--secondary); padding: 20px 24px; margin: 25px 0; border-radius: 0 12px 12px 0; color: #2d3748; }

/* =========================================
   7. GRIDS & CARDS
   ========================================= */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 35px 0; }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px 24px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.benefit-icon { font-size: 36px; margin-bottom: 15px; }
.benefit-card h3 { margin-top: 0; font-size: 18px; color: var(--primary); }
.benefit-card p { font-size: 15px; color: var(--text-light); margin: 0; line-height: 1.6; }

.process-steps { margin: 35px 0; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.step-num { flex-shrink: 0; width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; box-shadow: 0 4px 10px rgba(26, 54, 93, 0.2); }
.step h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary); }
.step p { margin: 0; font-size: 15px; color: #4a5568; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0; }
.card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-decoration: none; color: inherit; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.08); transform: translateY(-4px); border-color: var(--border-focus); }
.card h3 { margin: 0 0 12px; font-size: 19px; color: var(--primary); }
.card p { font-size: 15px; color: var(--text-light); margin: 0; }

.ingredient-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.ingredient-card h3 { color: var(--primary); margin: 0 0 12px; font-size: 19px; }
.ingredient-card p { font-size: 15px; color: #4a5568; margin: 0 0 10px; }
.ingredient-icon { width: 56px; height: 56px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; border: 1px solid var(--border); }
.ingredient-claim { font-size: 13px; color: var(--text-light); font-style: italic; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 35px 0; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.review-stars { color: #d69e2e; font-size: 18px; margin-bottom: 15px; }
.review-text { font-style: italic; color: #2d3748; flex-grow: 1; margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.review-author { border-top: 1px solid var(--border); padding-top: 15px; font-size: 15px; }
.review-author strong { display: block; color: var(--primary); }
.review-author span { color: var(--text-light); font-size: 13px; }

/* =========================================
   8. FAQ
   ========================================= */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.faq-q { background: var(--bg-light); padding: 18px 24px; font-weight: 700; color: var(--primary); font-size: 16px; }
.faq-a { padding: 18px 24px; color: #4a5568; font-size: 15px; border-top: 1px solid var(--border); }

/* =========================================
   9. SPLIT ORDER FORM
   ========================================= */
.order-box { max-width: 960px; margin: 60px auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); overflow: hidden; border: 1px solid var(--border); }
.order-box-inner { display: flex; flex-wrap: wrap; }
.order-box-left { flex: 1; min-width: 300px; background: linear-gradient(135deg, var(--primary) 0%, #2b6cb0 100%); color: #fff; padding: 45px 40px; display: flex; flex-direction: column; justify-content: center; }
.order-box-left h2 { color: #fff; font-size: 28px; margin: 0 0 15px; border: none; line-height: 1.3; padding: 0; }
.order-subtitle { font-size: 15px; color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; line-height: 1.6; }
.order-price-box { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.1); padding: 18px 24px; border-radius: 12px; margin-bottom: 35px; border: 1px solid rgba(255, 255, 255, 0.15); }
.order-price-old { font-size: 20px; text-decoration: line-through; color: rgba(255, 255, 255, 0.6); }
.order-price-new { font-size: 42px; font-weight: 800; line-height: 1; }
.order-price-badge { background: var(--cta-orange); color: #fff; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 20px; margin-left: auto; box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); }
.order-benefits { list-style: none; padding: 0; margin: 0 0 30px; }
.order-benefits li { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 18px; color: #fff; font-weight: 500; }
.order-benefits svg { color: #a7f3d0; flex-shrink: 0; }
.order-trust-bottom { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, 0.7); text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 25px; }

.order-box-right { flex: 1.2; min-width: 320px; padding: 45px 40px; background: #fff; }
.order-form-header { text-align: center; margin-bottom: 30px; }
.order-form-header h3 { margin: 0 0 8px; font-size: 24px; color: var(--primary); font-weight: 800; }
.order-form-header p { font-size: 14px; color: var(--text-light); margin: 0; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--text-dark); }
.form-group input[type="text"], .form-group input[type="tel"] { width: 100%; padding: 16px; border: 1px solid var(--border-focus); border-radius: 10px; font-size: 16px; font-family: inherit; background: var(--bg-light); transition: all 0.2s; }
.form-group input:focus { outline: none; border-color: var(--cta-orange); background: #fff; box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15); }

.phone-input-wrapper { display: flex; border: 1px solid var(--border-focus); border-radius: 10px; overflow: hidden; background: var(--bg-light); transition: all 0.2s; }
.phone-input-wrapper:focus-within { border-color: var(--cta-orange); background: #fff; box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15); }
.phone-prefix { background: #e2e8f0; padding: 16px; font-weight: 700; color: #475569; border-right: 1px solid var(--border-focus); display: flex; align-items: center; }
.phone-input-wrapper input { border: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; width: 100%; padding: 16px; }

.consent-label { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #64748b; margin: 22px 0; cursor: pointer; }
.consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; accent-color: var(--cta-orange); }

.btn-submit { width: 100%; padding: 20px; background: var(--cta-orange); color: #fff; border: none; border-radius: 10px; font-size: 18px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: all .2s; box-shadow: 0 6px 20px var(--cta-shadow); }
.btn-submit:hover:not(:disabled) { background: var(--cta-orange-hover); transform: translateY(-2px); box-shadow: 0 8px 25px var(--cta-shadow); }
.btn-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

.order-urgency { text-align: center; font-size: 14px; font-weight: 700; color: #ef4444; margin-top: 20px; }
#lf-message { margin-top: 15px; font-size: 15px; min-height: 1em; text-align: center; font-weight: 500; }

@media (max-width: 768px) {
  .order-box-inner { flex-direction: column; }
  .order-box-left, .order-box-right { padding: 35px 25px; }
  .order-box-left h2 { font-size: 24px; }
  .order-price-new { font-size: 36px; }
}

/* =========================================
   10. TABLES
   ========================================= */
table { width: 100%; border-collapse: collapse; margin: 30px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
th, td { border: 1px solid var(--border); padding: 16px 20px; text-align: left; font-size: 15px; }
th { background: var(--bg-light); color: var(--primary); font-weight: 700; }
td { background: #fff; }

/* =========================================
   11. HERO PRICE TAG
   ========================================= */
.hero-price-tag { display: inline-flex; align-items: center; margin-top: 20px; padding: 10px 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; color: var(--text-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.hero-price-tag strong { color: var(--cta-orange); font-size: 22px; margin-left: 8px; font-weight: 800; }
.hero-price-tag s { color: var(--text-light); margin-left: 8px; font-size: 15px; }

/* =========================================
   12. 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: 14px; }
.lang-switch--footer { justify-content: center; margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.lang-switch__label { color: #a0aec0; font-weight: 600; }
.lang-switch__link { color: var(--text-light); text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: all 0.2s; font-weight: 500; }
.lang-switch__link:hover { color: var(--primary); background: var(--bg-light); }
.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); }

/* =========================================
   13. FOOTER
   ========================================= */
footer, footer.site-footer { 
  background: var(--primary); 
  color: #a0aec0; 
  padding: 60px 20px 40px; 
  font-size: 14px; 
  margin-top: auto; 
  flex-shrink: 0; 
  width: 100%; 
}
.footer-inner { max-width: 900px; margin: 0 auto; line-height: 1.8; }

/* Меню ссылок (выровнено по левому краю) */
.footer-links { 
  margin: 25px 0 35px -10px; 
  display: flex; 
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 15px; 
  color: transparent; 
}

.footer-links a { 
  color: #cbd5e0; 
  text-decoration: none; 
  font-weight: 500; 
  transition: color 0.2s, transform 0.2s; 
  display: inline-block;
  padding: 5px 10px; 
  border-radius: 6px;
}

.footer-links a:hover { 
  color: #ffffff; 
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Тексты футера (выровнены по левому краю) */
.footer-disclaimer { 
  font-size: 13px; 
  color: #718096; 
  margin-top: 20px; 
  text-align: left;
  line-height: 1.6; 
  width: 100%;
}

.footer-legal-info { 
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding-top: 25px; 
  margin-top: 25px; 
  font-size: 13px;
}
.footer-legal-info p { margin-bottom: 10px; color: #a0aec0; }

/* =========================================
   14. MOBILE TYPOGRAPHY
   ========================================= */
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .hero { padding: 40px 16px; }
  .nav-container { justify-content: center; flex-direction: column; text-align: center; gap: 15px; }
  .nav-links { justify-content: center; font-size: 15px; gap: 15px; }
  .lang-switch--header { margin: 0; justify-content: center; width: 100%; }
  .btn-header-aff { font-size: 15px; padding: 12px 20px; width: 100%; justify-content: center; }
  header.site-header:has(.hamburger) .nav-container { flex-direction: row; justify-content: space-between; text-align: left; }
  
  /* Мобильный футер */
  .footer-links { 
    flex-direction: row; 
    flex-wrap: wrap;
    gap: 10px; 
    justify-content: flex-start;
    margin-left: -8px; 
  }
  .footer-links a {
    width: auto; 
    text-align: left;
    padding: 5px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card, .benefit-card, .btn, .btn-submit { transition: none; transform: none !important; }
  .header-menu { transition: none; }
}