@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bgs: #758f1b;
  --bgs-hover: #4a5e02;
  --bg: #ffffff;
  --bg-sec: #f2f4ee;
  --primary: #eff8d5;
  --cream: #fff6e3;
  --orange: #ea8927;
  --text: #6a7660;
  --text-dark: #3c4d3c;
  --text-th: #4d4d4d;
  --stroke: #bbbeba;
  --br5: 5px;
  --br10: 10px;
  --br15: 15px;
  --br20: 20px;
  --br30: 30px;
  --container: 1240px;
  --shadow: 0 12px 40px rgba(47, 51, 41, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 72px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(187, 190, 186, 0.35);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.logo img {
  height: 40px;
  width: auto;
}

.btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--br10);
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.btn-catalog-icon {
  width: 14px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-main a {
  font-size: 14px;
  color: var(--text-th);
  white-space: nowrap;
}

.nav-main a:hover {
  color: var(--bgs);
}

.header-utils {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.icon {
  display: block;
  flex-shrink: 0;
  color: var(--bgs);
}

.util-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--br10);
  background: var(--cream);
  color: var(--bgs);
}

.util-btn .icon {
  color: var(--bgs);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
}

.header-search {
  padding-bottom: 14px;
}

.search-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--br15);
  overflow: hidden;
  background: #fff;
}

.search-form input {
  flex: 1;
  border: 0;
  padding: 12px 18px;
  font: inherit;
  outline: none;
}

.search-form button {
  display: grid;
  place-items: center;
  width: 56px;
  border: 0;
  background: var(--bgs);
  color: #fff;
  cursor: pointer;
}

.search-form button .icon {
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--text);
}

.breadcrumbs a:hover {
  color: var(--bgs);
}

/* Product hero */
.product-hero {
  padding: 8px 0 48px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr) 280px;
  gap: 32px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--br20);
  overflow: hidden;
  background: var(--bg-sec);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--br10);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-sec);
}

.gallery-thumb.is-active {
  border-color: var(--bgs);
}

.gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.product-info h1 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
}

.option-group {
  margin-bottom: 18px;
}

.option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-th);
  margin-bottom: 8px;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 14px;
  border-radius: var(--br10);
  border: 1px solid var(--stroke);
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--text-th);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.option-btn:hover,
.option-btn.is-active {
  background: var(--primary);
  border-color: var(--bgs);
  color: var(--text-dark);
}

.product-specs {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(187, 190, 186, 0.4);
}

.product-specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.product-specs dt {
  color: var(--text);
  font-weight: 500;
}

.product-specs dd {
  margin: 0;
  color: var(--text-th);
}

/* Buy box */
.buy-box {
  position: sticky;
  top: 120px;
}

.buy-box-inner {
  padding: 24px;
  border-radius: var(--br20);
  background: var(--bg-sec);
}

.price-main {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.price-promo {
  margin-top: 6px;
  font-size: 14px;
  color: #c0392b;
}

.price-promo strong {
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--br10);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--bgs);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bgs-hover);
}

.btn-cart {
  width: 100%;
  margin-top: 18px;
  font-size: 16px;
}

.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.buy-perks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.buy-perks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.buy-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--bgs);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-5.2' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-5.2' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-sec);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2,
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  padding: 24px;
  border-radius: var(--br20);
  background: #fff;
  box-shadow: var(--shadow);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--bgs);
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-dark);
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.howto-copy p {
  margin: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--br15);
  background: var(--bg-sec);
}

.step-num {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bgs);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.steps strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  font-size: 14px;
}

.composition-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.ingredient-list {
  margin: 0;
  padding: 24px;
  list-style: none;
  border-radius: var(--br20);
  background: #fff;
  box-shadow: var(--shadow);
}

.ingredient-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid rgba(187, 190, 186, 0.3);
  color: var(--text-th);
}

.ingredient-list li:last-child {
  border-bottom: 0;
}

.ingredient-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--bgs);
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  padding: 24px;
  border-radius: var(--br20);
  background: var(--bg-sec);
  text-align: center;
}

.trust-stat {
  font-size: 36px;
  font-weight: 800;
  color: var(--bgs);
  line-height: 1;
  margin-bottom: 10px;
}

.trust-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-dark);
}

.trust-card p {
  margin: 0;
  font-size: 13px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  padding: 24px;
  border-radius: var(--br20);
  background: #fff;
  box-shadow: var(--shadow);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--bgs);
  margin-bottom: 12px;
}

.trust-stat-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--bgs);
}

.review-card p {
  margin: 0 0 16px;
  font-size: 14px;
}

.review-card footer {
  font-size: 13px;
  color: var(--text);
}

.faq-wrap h2 {
  margin-bottom: 24px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 800px;
}

.faq-item {
  border-radius: var(--br15);
  background: var(--bg-sec);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 14px;
}

.section-cta {
  padding-bottom: 72px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: var(--br30);
  background: linear-gradient(135deg, var(--bgs) 0%, #5f7516 100%);
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-box p {
  margin: 0;
  opacity: 0.9;
}

.cta-actions {
  text-align: right;
  flex-shrink: 0;
}

.cta-actions .price-main {
  color: #fff;
}

.cta-actions .price-promo {
  color: #ffeaa3;
  margin-bottom: 14px;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--bgs);
}

.cta-actions .btn-primary:hover {
  background: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin: 12px 0;
  font-size: 14px;
}

.footer-brand a {
  color: #fff;
  font-weight: 600;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-social {
  display: grid;
  gap: 10px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}

.footer-legal a:hover {
  color: #fff;
}

/* Sticky buy bar (mobile) */
.sticky-buy {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-buy-price strong {
  display: block;
  font-size: 18px;
  color: var(--text-dark);
}

.sticky-buy-price span {
  font-size: 12px;
  color: #c0392b;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .buy-box {
    grid-column: 1 / -1;
    position: static;
  }

  .benefits-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav-main.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header-utils {
    margin-left: 0;
  }

  .product-hero-grid,
  .howto-grid,
  .composition-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    text-align: center;
    width: 100%;
  }

  .sticky-buy {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .benefits-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .header-top {
    min-height: 64px;
  }

  .btn-catalog {
    order: 3;
    margin-left: auto;
  }

  .product-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 861px) {
  .sticky-buy {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}
