:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #2b2b26;
  --muted: #7a756c;
  --green: #2e5d4e;
  --green-dark: #22473c;
  --rose: #c96f6f;
  --line: #e8e0d5;
  --shadow: 0 10px 30px rgba(43, 43, 38, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

.section { padding: 72px 0; }

.section-sub { margin: 0 0 36px; max-width: 640px; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  text-decoration: none;
}

.site-nav { display: flex; gap: 20px; }

.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--green); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:disabled { cursor: not-allowed; opacity: 0.6; }

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

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

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.btn-outline:hover:not(:disabled) { background: var(--green); color: #fff; }

.btn-block { width: 100%; margin-top: 8px; }

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

.cart-btn { position: relative; white-space: nowrap; }

.cart-count {
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Герой */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
  color: #fff;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 27, 0.45), rgba(18, 32, 27, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 96px 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 520px;
  margin: 0 0 28px;
  opacity: 0.92;
}

/* Каталог */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(43, 43, 38, 0.14);
}

.card-photo {
  aspect-ratio: 4 / 5;
  background: #efe7dc;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card-body h3 { margin: 0; font-size: 1.15rem; }

.card-desc { margin: 0; }

.card-price {
  margin: 4px 0 14px;
  font-size: 1.3rem;
  font-weight: 600;
}

.card-body .btn { margin-top: auto; }

/* Страница доставки */
.page-head {
  background: var(--green-dark);
  color: #fff;
  padding: 64px 0;
}

.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.page-head p { margin: 0; opacity: 0.9; }

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

.delivery-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.option-list { display: grid; gap: 16px; margin-bottom: 36px; }

.option {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.option h3 { margin: 0 0 6px; font-size: 1.05rem; }
.option p { margin: 0; }

.delivery-info h2 { margin-top: 32px; }
.delivery-info h2:first-child { margin-top: 0; }

/* Футер */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-logo { font-weight: 700; font-size: 1.15rem; color: var(--green-dark); margin: 0 0 4px; }
.footer-inner p { margin: 0 0 4px; }

/* Корзина */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 16, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 40;
}

.drawer-backdrop.open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(430px, 100%);
  background: var(--surface);
  z-index: 50;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  padding: 20px 20px 32px;
  overflow-y: auto;
}

.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer-head h2 { margin: 0; font-size: 1.3rem; }

.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover { background: #f3ece2; }

.cart-items { list-style: none; margin: 0 0 12px; padding: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s;
}

.cart-item-qty button:hover { background: #f3ece2; }

.cart-item-sum { font-weight: 600; white-space: nowrap; }

.cart-item-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--rose); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  padding: 14px 0;
  margin: 0;
}

/* Форма заказа */
.order-form h3 { margin: 8px 0 16px; }

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.order-form input[type="text"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fffdf9;
}

.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-direction: row !important;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0 12px;
}

.lead-consent input { margin-top: 3px; }

.order-status {
  background: #eef5ee;
  border: 1px solid #cfe3cf;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 800px) {
  .delivery-layout { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; gap: 10px; }
  .site-nav { gap: 12px; font-size: 0.95rem; }
  .hero-content { padding: 72px 20px; }
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
