:root{
  --bg:#f7f7f7;
  --white:#ffffff;
  --text:#1a1a1a;
  --muted:#737373;
  --black:#1a1a1a;
  --lime:#ccf952;
  --lime-deep:#b7e63a;
  --maroon:#5c1a22;
  --border:#e6e6e6;
  --badge-bg:#eaf6d9;
  --badge-text:#4b7a2f;
  --radius-pill:999px;
  --radius-card:16px;
  --radius-md:10px;
  --shadow-card:0 1px 3px rgba(0,0,0,.04);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden;width:100%;}
body{margin:0;font-family:'Onest','Segoe UI',system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden;width:100%;}
body.nav-locked{overflow:hidden;}
img,video{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
button,input,select,textarea{font-family:inherit;-webkit-appearance:none;appearance:none;}
.container{max-width:1160px;margin:0 auto;padding:0 24px;}
section{padding:64px 0;}
.badge{display:inline-block;background:var(--badge-bg);color:var(--badge-text);border:1px solid #cfe8ad;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:6px 14px;border-radius:var(--radius-pill);margin-bottom:16px;}
h1,h2,h3{margin:0 0 8px;line-height:1.15;color:var(--black);}
h1{font-size:64px;font-weight:600;letter-spacing:-.04em;line-height:1;}
h2{font-size:30px;font-weight:800;}
p{color:var(--muted);line-height:1.6;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:none;cursor:pointer;
     border-radius:var(--radius-pill);height:64px;padding:0 40px;font-size:16px;font-weight:600;transition:.15s transform,.15s opacity;}
.btn:active{transform:scale(.97);}
.btn-black{background:var(--black);color:#fff;}
.btn-black:hover{opacity:.88;}
.btn-lime{background:var(--lime);color:var(--black);}
.btn-lime:hover{background:var(--lime-deep);}
.btn-outline{background:#fff;border:1px solid var(--border);color:var(--text);}
.btn-block{width:100%;}
.btn-sm{padding:10px 18px;font-size:13px;}
.btn[disabled]{opacity:.5;cursor:not-allowed;}

/* HEADER */
header{position:sticky;top:0;z-index:40;background:rgba(247,247,247,.92);backdrop-filter:blur(6px);border-bottom:1px solid var(--border);padding-top:env(safe-area-inset-top);}
header .container{display:flex;align-items:center;justify-content:space-between;height:72px;padding-top:0;padding-bottom:0;}
.nav-burger{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;flex:none;border:none;background:none;cursor:pointer;padding:0;}
.nav-burger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:.2s;}
.nav-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-burger.open span:nth-child(2){opacity:0;}
.nav-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.2s;z-index:55;}
.nav-overlay.open{opacity:1;pointer-events:auto;}
.logo{display:inline-flex;align-items:center;font-family:'Rubik Mono One','Onest',sans-serif;font-weight:400;font-size:19px;letter-spacing:0;text-transform:uppercase;}
.logo-dna{width:.52em;height:.82em;margin:0 -1px;flex:none;align-self:center;}
.logo-dna path{stroke:currentColor;}
.header-nav{display:flex;align-items:center;gap:28px;}
.header-nav a{font-size:14px;color:var(--muted);}
.header-nav a:hover{color:var(--text);}
.header-nav a.active{color:var(--text);font-weight:700;}
#cart-btn{position:relative;}
#cart-count{position:absolute;top:-6px;right:-6px;background:var(--lime);color:var(--black);font-size:11px;font-weight:800;
    border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;}

/* HERO */
.hero{padding-top:56px;text-align:center;}
.hero h1{max-width:820px;margin:0 auto 16px;}
.hero p{max-width:600px;margin:0 auto 28px;font-size:18px;line-height:28px;letter-spacing:.01em;}
.hero-actions{display:flex;gap:12px;justify-content:center;margin-bottom:40px;}
.hero-img{background:linear-gradient(135deg,#e7f27a,#c9e04e);border-radius:24px;overflow:hidden;}
.hero-img img{width:100%;object-fit:cover;}

/* FEATURES */
.features{padding-top:32px;padding-bottom:32px;}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.feature-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:20px;}
.feature-card .icon{width:34px;height:34px;border-radius:8px;background:var(--badge-bg);display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:16px;}
.feature-card h3{font-size:15px;margin-bottom:6px;}
.feature-card p{font-size:13px;margin:0;}

/* CATALOG */
.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px;}
.product-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:20px;display:flex;flex-direction:column;box-shadow:var(--shadow-card);}
.product-card .tier{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-bottom:4px;}
.product-card .spec{font-size:14px;font-weight:700;margin-bottom:2px;}
.product-card .price-per-mg{font-size:12px;color:var(--muted);margin-bottom:12px;}
.product-card .bottle{height:170px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;}
.product-card .bottle img{height:100%;object-fit:contain;}
.row-between{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px;color:var(--muted);}
.row-between strong{display:block;font-size:16px;color:var(--text);font-weight:800;}
.volume-select{appearance:none;border:1px solid var(--border);border-radius:var(--radius-pill);padding:6px 26px 6px 14px;font-size:12px;font-weight:700;color:var(--text);background-color:#fff;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%238a8a8a'/></svg>");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer;}
.volume-note{font-size:11px;color:var(--muted);margin:-4px 0 10px;}
.batch-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:10px;}
.dosage-box{background:var(--badge-bg);border-radius:var(--radius-md);padding:10px 12px;font-size:12px;margin-bottom:10px;}
.dosage-box b{display:block;font-size:11px;letter-spacing:.04em;color:var(--badge-text);margin-bottom:2px;}
.product-note{font-size:12px;color:var(--muted);margin-bottom:16px;min-height:36px;}
.rate-widget{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:16px;min-height:22px;}
.rate-stars{display:flex;}
.rate-star{background:none;border:none;cursor:pointer;font-size:18px;line-height:1;padding:9px 4px;min-width:32px;min-height:32px;color:var(--border);transition:.1s color;}
.rate-star:hover, .rate-star.hovered{color:#f2b90c;}
.rate-widget.done{color:var(--badge-text);font-weight:700;}
.product-actions{display:flex;gap:8px;margin-top:auto;}
.qr-btn{width:48px;height:48px;flex:none;border-radius:var(--radius-pill);background:var(--lime);display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-size:18px;}

/* PROMO */
.promo{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
.promo-img{border-radius:24px;overflow:hidden;background:var(--maroon);height:100%;}
.promo-img img{width:100%;height:100%;object-fit:cover;}
.promo h2{font-size:28px;}
.promo .lead-line{color:var(--text);font-weight:800;}
.promo .sub{color:var(--muted);font-weight:700;margin:2px 0;}

/* CALCULATOR / FORMS */
.calc-grid{display:grid;grid-template-columns:380px 1fr;gap:24px;margin-top:24px;align-items:start;}
.calc-form{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:24px;}
.field{margin-bottom:16px;}
.field-label{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin-bottom:6px;}
.field-label span.req{font-weight:400;color:var(--muted);}
.field input, .field select, .field textarea{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:16px;background:#fff;color:var(--text);appearance:none;}
.field select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%238a8a8a'/></svg>");background-repeat:no-repeat;background-position:right 14px center;}
.calc-result{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:24px;display:grid;grid-template-columns:1fr 1.2fr;gap:24px;}
.calc-result-title{grid-column:1/-1;font-size:18px;font-weight:800;margin:0;}
.calc-result .product-mini .bottle{height:140px;}
.protocol-email{margin-top:20px;padding-top:16px;border-top:1px solid var(--border);}
.protocol-email .lead-note{margin-top:0;margin-bottom:10px;}
.protocol-email .btn[disabled]{opacity:.45;}
.protocol-title{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin-bottom:12px;}
.protocol-step{border-top:1px solid var(--border);padding:12px 0;display:grid;grid-template-columns:70px 1fr;gap:8px;}
.protocol-step:first-child{border-top:none;}
.protocol-step .day{font-size:11px;color:var(--muted);font-weight:700;}
.protocol-step .title{font-size:14px;font-weight:700;margin-bottom:2px;}
.protocol-step .desc{font-size:12px;color:var(--muted);}
.lead-note{font-size:11px;color:var(--muted);margin-top:16px;}
.lead-note-email{display:flex;gap:8px;margin-top:8px;}
.lead-note-email input{flex:1;border:1px solid var(--border);border-radius:var(--radius-pill);padding:10px 16px;font-size:13px;}
.disclaimer{font-size:11px;color:var(--muted);margin-top:16px;}

/* REVIEWS */
.reviews-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 28px;}
.review-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:20px;display:flex;gap:14px;}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--lime);color:var(--black);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none;}
.review-body{flex:1;}
.review-head{display:flex;justify-content:space-between;align-items:flex-start;}
.review-name{font-weight:700;font-size:14px;}
.review-role{font-size:12px;color:var(--muted);}
.stars{color:#f2b90c;font-size:13px;white-space:nowrap;}
.review-text{font-size:13px;color:var(--text);margin-top:8px;}
.center{text-align:center;}

/* FAQ */
details{border-top:1px solid var(--border);padding:16px 0;}
details:last-child{border-bottom:1px solid var(--border);}
summary{cursor:pointer;list-style:none;font-weight:700;font-size:15px;display:flex;justify-content:space-between;align-items:center;}
summary::-webkit-details-marker{display:none;}
summary:after{content:'+';font-size:20px;font-weight:400;color:var(--muted);}
details[open] summary:after{content:'–';}
details p{margin-top:10px;font-size:14px;}

/* NEWSLETTER */
.newsletter{background:var(--lime);border-radius:24px;padding:40px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;}
.newsletter h2{font-size:24px;max-width:360px;}
.newsletter p{color:#3d4a1a;max-width:420px;font-size:13px;}
.newsletter-form{display:flex;gap:8px;flex:1;min-width:280px;max-width:420px;}
.newsletter-form input{flex:1;border:none;border-radius:var(--radius-pill);padding:14px 18px;font-size:16px;}
.form-msg{font-size:12px;margin-top:8px;font-weight:700;}

/* FOOTER */
footer{position:relative;overflow:hidden;background:var(--black);color:#cfcfcf;padding:56px 0 24px;margin-top:24px;}
footer .container{position:relative;z-index:1;}
.footer-top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;margin-bottom:40px;}
.footer-brand .logo{color:#fff;margin-bottom:12px;}
.footer-brand p{max-width:260px;font-size:13px;}
.footer-cols{display:flex;gap:56px;flex-wrap:wrap;}
.footer-col h4{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#8a8a8a;margin-bottom:14px;}
.footer-col a{display:block;font-size:14px;color:#e2e2e2;margin-bottom:10px;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #2c2c2c;padding-top:20px;font-size:12px;color:#8a8a8a;flex-wrap:wrap;gap:12px 24px;}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:8px 24px;}
.footer-legal-links a:hover{color:#fff;}

.brand-outro-mark{
  position:absolute;
  z-index:0;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:80%;
  font-family:'Rubik Mono One','Onest',sans-serif;
  font-weight:400;
  text-transform:uppercase;
  color:rgba(255,255,255,.07);
  font-size:88px;
  line-height:.92;
  letter-spacing:0;
  text-align:left;
  user-select:none;
  pointer-events:none;
}
.brand-outro-mark .logo-dna{width:.5em;height:1em;margin:0 -2px;}
.brand-outro-mark .logo-lab-line{display:inline-block;margin-left:.65em;}

/* CART DRAWER */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.2s;z-index:50;}
.overlay.open{opacity:1;pointer-events:auto;}
#cart-drawer{position:fixed;top:0;right:0;height:100vh;height:100dvh;width:400px;max-width:92vw;background:#fff;z-index:51;
    transform:translateX(100%);transition:.25s;display:flex;flex-direction:column;box-shadow:-8px 0 24px rgba(0,0,0,.12);}
#cart-drawer.open{transform:translateX(0);}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;padding-top:calc(20px + env(safe-area-inset-top));border-bottom:1px solid var(--border);}
.drawer-close{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;background:none;border:none;font-size:20px;cursor:pointer;border-radius:50%;}
.drawer-close:hover{background:var(--bg);}
.drawer-items{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 24px;}
.cart-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);}
.cart-item img{width:48px;height:48px;object-fit:contain;background:#f7f7f6;border-radius:8px;}
.cart-item .info{flex:1;}
.cart-item .tier{font-size:11px;font-weight:800;}
.cart-item .meta{font-size:12px;color:var(--muted);}
.qty-control{display:flex;align-items:center;gap:8px;margin-top:6px;}
.qty-control button{width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:18px;line-height:1;}
.cart-item .right{text-align:right;display:flex;flex-direction:column;align-items:flex-end;}
.cart-item .remove{color:var(--muted);font-size:16px;cursor:pointer;border:none;background:none;padding:10px;margin:-10px -10px 0 0;}
.drawer-foot{border-top:1px solid var(--border);padding:20px 24px;padding-bottom:calc(20px + env(safe-area-inset-bottom));}
.drawer-total{display:flex;justify-content:space-between;font-weight:800;font-size:18px;margin-bottom:4px;}
.empty-cart{color:var(--muted);font-size:14px;text-align:center;padding:40px 0;}

/* CHECKOUT */
.checkout-grid{display:grid;grid-template-columns:1fr 380px;gap:24px;margin-top:24px;align-items:start;}
.checkout-grid h3{font-size:15px;font-weight:800;}
#order-summary{position:sticky;top:88px;}
.field{position:relative;}
.suggestions{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);
    margin-top:4px;max-height:220px;overflow-y:auto;z-index:10;display:none;box-shadow:0 4px 12px rgba(0,0,0,.08);}
.suggestion-item{padding:10px 14px;font-size:13px;cursor:pointer;}
.suggestion-item:hover{background:var(--badge-bg);}
.checkout-success{grid-column:1/-1;text-align:center;padding:56px 24px;}
.field-error{color:#a33;font-size:11px;margin-top:6px;display:none;}
.field.has-error input, .field.has-error select{border-color:#a33;}
.field.has-error .field-error{display:block;}

/* LEGAL / CONTENT PAGES (about, terms, privacy, offer, returns, delivery) */
.legal-page{max-width:760px;margin:0 auto;}
.legal-updated{font-size:12px;color:var(--muted);margin-bottom:24px;}
.legal-content h2{font-size:20px;font-weight:700;margin:36px 0 12px;}
.legal-content h2:first-child{margin-top:0;}
.legal-content p{margin:0 0 14px;}
.legal-content ul{margin:0 0 14px;padding-left:20px;color:var(--muted);line-height:1.6;}
.legal-content li{margin-bottom:6px;}
.legal-content strong{color:var(--text);}
.about-hero{margin-bottom:8px;}
.about-actions{display:flex;gap:12px;margin-top:32px;flex-wrap:wrap;}

/* ============ ПЛАНШЕТ (≤960px) ============ */
@media (max-width:960px){
  .container{padding:0 20px;}
  section{padding:48px 0;}
  .features-grid{grid-template-columns:repeat(2,1fr);}
  .catalog-grid{grid-template-columns:1fr;max-width:420px;margin-left:auto;margin-right:auto;}
  .promo{grid-template-columns:1fr;gap:28px;}
  .promo-img img{max-height:320px;object-fit:cover;width:100%;}
  .calc-grid{grid-template-columns:1fr;}
  .calc-result{grid-template-columns:1fr;}
  .checkout-grid{grid-template-columns:1fr;}
  #order-summary{position:static;}
  .reviews-grid{grid-template-columns:1fr;max-width:480px;margin-left:auto;margin-right:auto;}
  h1{font-size:32px;}
  h2{font-size:24px;}
  #cart-drawer{width:380px;}
}

/* ============ СМАРТФОНИ (≤767px): бургер-меню замість горизонтальної навігації ============ */
@media (max-width:767px){
  header .container{justify-content:flex-start;gap:12px;}
  .nav-burger{display:flex;margin-left:auto;}
  .header-nav{
    position:fixed;top:0;right:0;z-index:60;
    height:100vh;height:100dvh;width:78%;max-width:300px;
    background:#fff;flex-direction:column;align-items:stretch;gap:0;
    padding:calc(64px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    transform:translateX(100%);transition:.25s ease;
    box-shadow:-8px 0 24px rgba(0,0,0,.12);
    overflow-y:auto;
  }
  .header-nav.open{transform:translateX(0);}
  .header-nav a{font-size:16px;padding:14px 0;border-bottom:1px solid var(--border);}
}

/* ============ МОБІЛЬНІ (≤640px) ============ */
@media (max-width:640px){
  .container{padding:0 16px;}
  section{padding:36px 0;}
  header .container{height:60px;}
  .logo{font-size:16px;}

  .hero{padding-top:32px;text-align:left;}
  .hero h1{font-size:26px;text-align:left;margin:0 0 12px;}
  .hero p{text-align:left;margin:0 0 20px;font-size:14px;}
  .hero-actions{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:28px;}
  .hero-actions .btn{width:100%;}
  .hero-img{border-radius:16px;}

  .features-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .feature-card{padding:14px;border-radius:12px;}
  .feature-card h3{font-size:13px;}
  .feature-card p{font-size:12px;}

  .badge{font-size:11px;padding:5px 12px;}
  h2{font-size:21px;}

  .catalog-grid{max-width:100%;}
  .product-card{padding:16px;border-radius:14px;}
  .product-card .bottle{height:140px;}

  .promo{gap:20px;}
  .promo h2{font-size:20px;}
  .promo-img img{max-height:220px;}

  .calc-form{padding:18px;}
  .calc-result{padding:18px;gap:20px;}
  .protocol-step{grid-template-columns:56px 1fr;}

  .reviews-grid{max-width:100%;gap:12px;}
  .review-card{padding:16px;flex-direction:row;}

  .newsletter{flex-direction:column;align-items:stretch;padding:28px 20px;border-radius:18px;}
  .newsletter h2{font-size:19px;max-width:100%;}
  .newsletter p{max-width:100%;}
  .newsletter-form{flex-direction:column;max-width:100%;}
  .newsletter-form .btn{width:100%;}

  .footer-top{flex-direction:column;gap:28px;}
  .footer-cols{gap:28px;justify-content:space-between;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
  .footer-legal-links{gap:8px 16px;}

  .brand-outro-mark{
    top:280px;
    left:16px;
    transform:none;
    max-width:78%;
    font-size:52px;
    line-height:.9;
  }

  #cart-drawer{width:100%;max-width:100vw;}
  .drawer-head{padding:16px 18px;padding-top:calc(16px + env(safe-area-inset-top));}
  .drawer-items{padding:12px 18px;}
  .drawer-foot{padding:16px 18px;padding-bottom:calc(16px + env(safe-area-inset-bottom));}
}

@media (max-width:380px){
  .features-grid{grid-template-columns:1fr;}
  .hero h1{font-size:22px;}
}
