:root {
  --bg: #f7f1ea;
  --surface: #fffaf5;
  --surface-strong: #fff4e8;
  --text: #2a1f19;
  --muted: #6d5648;
  --line: #e7d3c2;
  --accent: #a24d2b;
  --accent-dark: #7f3a1d;
  --shadow: 0 18px 50px rgba(73, 38, 20, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcf7f2 0%, #f7f1ea 100%);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.narrow { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.lead { font-size: 1.05rem; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(162, 77, 43, 0.12);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
}
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.hero-grid,
.two-col,
.checkout-grid,
.footer-grid,
.details-grid {
  display: grid;
  gap: 24px;
}
.hero-grid { grid-template-columns: 1.35fr 0.9fr; align-items: stretch; }
.two-col { grid-template-columns: 1.2fr 0.9fr; }
.checkout-grid { grid-template-columns: 0.95fr 1.05fr; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.details-grid { grid-template-columns: 1fr 1fr; }

.hero-card,
.info-panel,
.cart-card,
.form-card,
.product-card,
.text-card,
.legal-card,
.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card,
.info-panel,
.cart-card,
.form-card,
.legal-card,
.success-card { padding: 28px; }
.text-card { padding: 30px; }

.hero-card {
  background: linear-gradient(180deg, #fff5ec 0%, #fffaf5 100%);
  display: grid;
  gap: 14px;
}
.hero-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(162, 77, 43, 0.06);
  border: 1px solid rgba(162, 77, 43, 0.10);
}
.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.muted-section { background: rgba(162, 77, 43, 0.04); }
.alt-section { background: linear-gradient(180deg, rgba(255,244,232,0.75) 0%, rgba(255,250,245,0.6) 100%); }
.section-heading { margin-bottom: 28px; }
.section-heading.left { margin-bottom: 22px; }
.section-heading p { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.product-card.featured {
  background: linear-gradient(180deg, #fff1e6 0%, #fffaf5 100%);
  transform: translateY(-6px);
}
.product-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.product-badge {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(162, 77, 43, 0.10);
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.price {
  font-size: 1.7rem;
  font-weight: 800;
}
.info-panel { display: grid; gap: 14px; }
.info-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.full { width: 100%; }

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cart-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.empty-cart { color: var(--muted); }
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 18px;
  font-size: 1.05rem;
}
.cart-summary strong { font-size: 1.6rem; }

.checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}
input:focus, textarea:focus {
  outline: 2px solid rgba(162, 77, 43, 0.20);
  border-color: rgba(162, 77, 43, 0.35);
}

.site-footer {
  padding: 38px 0 56px;
  border-top: 1px solid rgba(162, 77, 43, 0.12);
}
.site-footer p,
.site-footer a { color: var(--muted); }

.legal-page { min-height: 100vh; display: grid; align-items: center; }
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}
.order-box {
  margin: 22px 0 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.order-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}
.order-box strong { font-size: 1.9rem; }

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .checkout-grid,
  .footer-grid,
  .details-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero-grid,
  .two-col,
  .checkout-grid,
  .details-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card.featured { transform: none; }
}

@media (max-width: 480px) {
  .container, .narrow { width: min(100% - 24px, 1120px); }
  .hero-card,
  .info-panel,
  .cart-card,
  .form-card,
  .product-card,
  .text-card,
  .legal-card,
  .success-card { padding: 22px; }
  .product-footer,
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cart-row {
    grid-template-columns: 1fr;
  }
}
