/* ==========================================================
   ProstaVive – main stylesheet
   Font: Red Hat Display (loaded via <link> in each page, system fallbacks below)
   ========================================================== */

/* 1. Design tokens */
:root {
  --navy: #06264f;
  --sky: #01acf1;
  --white: #ffffff;
  --light: #f5f9fc;
  --text: #263445;
  --muted: #5b6b7c;
  --line: #dce7f0;
  --sky-dark: #0189c0;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(6, 38, 79, .09);
  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1160px;
  --nav-h: 68px;
}

/* 2. Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 37px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 76px 0; }
.alt { background: var(--light); }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-weight: 700; font-size: 14px; color: var(--sky-dark); margin-bottom: 10px; }

/* 3. Buttons */
.btn { display: inline-block; font: 700 17px/1.2 var(--font); text-decoration: none; text-align: center; padding: 16px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s; min-height: 48px; }
.btn-primary { background: #fcd34d; color: var(--navy); box-shadow: 0 6px 18px rgba(252, 211, 77, .4); }
.btn-primary:hover { background: #f9c21f; color: var(--navy); transform: translateY(-1px); }
.btn .cart { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-right: 8px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }

/* 4. Top bar + navigation */
.topbar { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); height: var(--nav-h); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-weight: 800; font-size: 24px; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--sky); }
.menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--sky-dark); }
.menu .btn { padding: 11px 20px; font-size: 15px; min-height: 0; color: var(--navy); }
.menu .btn:hover { color: var(--navy); }
.burger { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; padding: 10px; }
.burger span, .burger span::before, .burger span::after { display: block; height: 3px; background: var(--navy); border-radius: 2px; content: ""; position: relative; }
.burger span::before { position: absolute; top: -8px; left: 0; right: 0; }
.burger span::after { position: absolute; top: 8px; left: 0; right: 0; }

/* 5. Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--light), var(--white)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero .kicker { font-weight: 700; color: var(--sky-dark); margin-bottom: 12px; }
.hero p.lead { font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.hero-img img { margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
.trustbar { background: var(--navy); padding: 14px 0; }
.trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.trust > div { display: flex; align-items: center; justify-content: center; gap: 10px; color: #c9d9ea; font-size: 13px; line-height: 1.25; text-align: left; }
.trust strong { display: block; color: #fff; font-size: 14px; }
.trust .ico { width: 26px; height: 26px; margin: 0; flex: none; stroke: var(--sky); }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 6px; }

/* 6. What is */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }

/* 7. Reviews */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.alt .card { background: #fff; }
.review { padding: 0; overflow: hidden; }
.review > :not(img) { margin-left: 26px; margin-right: 26px; }
.review img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; max-height: 280px; }
.review .stars { color: #f5b301; font-size: 20px; letter-spacing: 2px; margin-top: 18px; margin-bottom: 6px; }
.review .verified { color: var(--sky-dark); font-weight: 700; font-size: 14px; }
.review h3 { font-size: 19px; }
.review .who { color: var(--muted); font-size: 15px; margin-top: 0; margin-bottom: 26px; }

/* 8. Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pkg { text-align: center; display: flex; flex-direction: column; padding: 28px 24px; position: relative; }
.pkg img { margin: 0 auto 16px; border-radius: 10px; }
.pkg.featured { border: 3px solid var(--sky); transform: translateY(-8px); }
.pkg .flag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--sky); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }
.pkg .supply { color: var(--muted); margin-bottom: 10px; }
.pkg .per { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0; }
.pkg .total { font-weight: 700; margin: 4px 0; }
.pkg .save { color: var(--sky-dark); font-weight: 700; }
.pkg ul { list-style: none; padding: 0; margin: 16px 0 22px; text-align: left; flex: 1; }
.pkg li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: 15px; }
.pkg li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 3px solid var(--sky); border-bottom: 3px solid var(--sky); transform: rotate(-45deg); }
.pkg .secure { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.notice { max-width: 760px; margin: 30px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.ph { background: #fff6d8; border-radius: 4px; padding: 0 5px; font-weight: 700; color: #6b5200; }

/* 9. Guarantee */
.guarantee { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto; background: #fff; border: 2px solid var(--sky); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.guarantee img { margin: 0 auto; }
.guarantee p:last-child { margin-bottom: 0; }

/* 10. Science */
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.science-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.science-full { margin-top: 28px; max-width: 100%; }
.science-full p { margin-bottom: 1.1em; }
.science-full p:last-child { margin-bottom: 0; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.mini { padding: 22px; }
.mini h3 { font-size: 18px; margin-bottom: 6px; }
.mini p { margin: 0; font-size: 15px; color: var(--muted); }

/* 11. How it works */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stage { padding: 30px 26px; border-top: 5px solid var(--sky); }
.stage .num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.stage .ico { margin: 0 0 12px; width: 40px; height: 40px; }
.stage .when { font-size: 14px; color: var(--muted); font-weight: 600; }

/* 12. Ingredients */
.ing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ing { padding: 24px 20px; text-align: center; }
.ing h3 { font-size: 18px; margin-bottom: 4px; }
.ing .role { font-size: 14px; font-weight: 700; color: var(--sky-dark); margin-bottom: 10px; }
.ing p:last-child { font-size: 15px; color: var(--muted); margin: 0; }

/* 13. Benefits */
.ben-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ben { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; }
.ben .n { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.ben h3 { font-size: 19px; margin-bottom: 6px; }
.ben p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* 14. Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15.5px; }
thead th { background: var(--navy); color: #fff; font-size: 16px; }
tbody th { color: var(--navy); width: 24%; background: var(--light); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.us { background: #eef9fe; }

/* 15. Verdict */
.verdict { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.verdict img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }

/* 16. FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font: 700 18px/1.4 var(--font); color: var(--navy); padding: 20px 56px 20px 22px; cursor: pointer; position: relative; }
.faq-q::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--sky); border-bottom: 3px solid var(--sky); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a[hidden] { display: none; }
.faq-a p { margin: 0 0 .8em; }

/* 17. Final CTA */
.final { background: linear-gradient(135deg, var(--navy), #0a3a73); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { max-width: 680px; margin: 0 auto 1.2em; color: #dbe8f5; }
.final img { margin: 0 auto 26px; border-radius: var(--radius); }
.final small { display: block; margin-top: 16px; color: #b8cde2; }

/* 18. Footer */
footer { background: #031a38; color: #b8cde2; padding: 52px 0 28px; font-size: 14.5px; }
footer .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
footer p { margin-bottom: .9em; }
.copy { border-top: 1px solid #1c3a63; padding-top: 18px; margin: 22px 0 0; }

/* 19. Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 22px; margin-top: 1.8em; }

/* 20. Responsive */
@media (max-width: 980px) {
  .menu { position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; border-bottom: 0; }
  .burger { display: block; }
  .hero-grid, .split, .science-grid, .verdict { grid-template-columns: 1fr; gap: 32px; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
  .trust > div { justify-content: flex-start; }
  .cards3, .price-grid, .stages { grid-template-columns: 1fr; }
  .pkg.featured { transform: none; }
  .ing-grid { grid-template-columns: repeat(2, 1fr); }
  .ben-grid, .mini-grid { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .guarantee img { width: 150px; }
  section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .ing-grid { grid-template-columns: 1fr; }
  .trust > div { font-size: 12px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
