:root {
  --bg: #faf7f2;
  --tint: #f1ebe0;
  --card: #ffffff;
  --ink: #22302b;
  --muted: #6b7a72;
  --line: #e5ddcf;
  --green: #2e5940;
  --green-dark: #1e3d2b;
  --accent: #d9778b;
  --accent-dark: #b95d73;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(34, 48, 43, .10);
  --shadow-lg: 0 18px 44px rgba(34, 48, 43, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 10px; }

h3 { font-size: 1.15rem; margin-bottom: 6px; }

a { color: var(--green); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section-tinted { background: var(--tint); }
.section-lead { color: var(--muted); max-width: 560px; margin-top: 4px; }
.mt { margin-top: 40px; }

.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.demo-note {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark { color: var(--accent); font-size: 1.2rem; }
.logo-light { color: #fff; }

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--accent); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }

.btn-muted { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-block { width: 100%; }

.btn-cart {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 18px;
}
.btn-cart:hover { background: var(--tint); }

.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
  padding: 0 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--tint); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(580px, 80vh);
  display: flex;
  align-items: center;
  background: var(--green-dark);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 34, 27, .45) 0%, rgba(20, 34, 27, .78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 800;
  color: #f4c9d3;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 540px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Catalog ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-desc { color: var(--muted); font-size: .92rem; }

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price { font-weight: 800; font-size: 1.15rem; }

/* ---------- Benefits ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.benefit {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  color: var(--green);
}
.benefit p { color: var(--muted); margin-top: 4px; }

/* ---------- Contacts ---------- */

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

.contacts-list { list-style: none; display: grid; gap: 12px; }
.contacts-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.contacts-list span { color: var(--muted); font-size: .92rem; }
.contacts-list a { text-decoration: none; font-weight: 600; }
.contacts-list a:hover { text-decoration: underline; }

/* ---------- Delivery / privacy pages ---------- */

.page-hero {
  background: var(--tint);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.delivery-intro { max-width: 720px; }
.delivery-intro p { margin-bottom: 14px; }
.delivery-intro img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 20px;
  background: var(--tint);
}

.zone-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.zone-table th, .zone-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.zone-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.zone-table tr:last-child td { border-bottom: none; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin-top: 22px;
  max-width: 640px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.faq { margin-top: 22px; max-width: 680px; }
.faq dt { font-weight: 800; margin-top: 18px; }
.faq dd { color: var(--muted); margin-top: 4px; }

.cta-line { margin-top: 34px; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 34px; font-size: 1.5rem; }
.prose p { margin-top: 10px; }
.prose .btn { margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-dark);
  color: #dfe7e0;
  padding: 56px 0 28px;
}

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

.site-footer h3 {
  font-family: 'Manrope', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9fb4a5;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #dfe7e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: #9fb4a5; font-size: .92rem; margin-top: 10px; max-width: 260px; }

.copyright {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem;
  color: #9fb4a5;
}
.copyright a { color: #c7d6cb; }

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 25, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: var(--bg);
  z-index: 70;
  transform: translateX(105%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-body { flex: 1; overflow-y: auto; padding: 10px 22px; }

.cart-empty { color: var(--muted); padding: 18px 0; }

.cart-items { list-style: none; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-item-name { font-weight: 700; display: block; }
.cart-item-price { color: var(--muted); font-size: .88rem; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty { min-width: 22px; text-align: center; font-weight: 700; }

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease;
}
.qty-btn:hover { background: var(--tint); }
.qty-remove { margin-left: 6px; }
.qty-remove:hover { background: #fbe9ec; color: var(--accent-dark); border-color: var(--accent-dark); }

.cart-item-sum { font-weight: 800; text-align: right; align-self: center; }

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  background: #fff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.cart-total-row strong { font-size: 1.25rem; }

.order-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.order-status { font-size: .9rem; color: var(--green); font-weight: 700; margin-top: 10px; }

/* ---------- Forms ---------- */

form label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 12px;
}

form input[type="text"], form input[type="tel"], form input[type="email"], form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
form textarea { min-height: 90px; resize: vertical; }

.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
}
.lead-consent input { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.lead-consent a { color: var(--green); }

form .btn { margin-top: 4px; }
form .btn + .btn { margin-top: 10px; }

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover { transform: none; }
  .cart-drawer, .cart-overlay, #toast { transition: none; }
}
