:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #617168;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dbe4dc;
  --forest: #173d32;
  --moss: #7c9b61;
  --clay: #c4663b;
  --sky: #cfe6ec;
  --gold: #d6a642;
  --shadow: 0 18px 45px rgba(23, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions select,
.shop-tools select,
.shop-tools input,
.lead-form input,
.lead-form select,
.checkout-form select,
.promo-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.header-actions select {
  width: 82px;
  padding: 0 8px;
}

.icon-button,
.cart-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  min-width: 42px;
  padding: 0 10px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: clamp(72px, 10vw, 140px) clamp(18px, 5vw, 72px) 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 22, 18, 0.76), rgba(9, 22, 18, 0.18) 62%, rgba(9, 22, 18, 0.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=82")
      center / cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 246, 0));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd18c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.primary-button,
.product-card button,
.promo-row button,
.cookie-banner button {
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-link,
.primary-button,
.product-card button,
.cookie-banner button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #fff;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 58px;
}

.hero-stats span {
  display: grid;
  min-width: 112px;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  font-size: 28px;
}

.hero-stats small {
  color: rgba(255, 255, 255, 0.8);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip span {
  padding: 18px;
  background: var(--surface);
  color: var(--forest);
  font-weight: 800;
  text-align: center;
}

.collection-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 0 !important;
}

.collection-section article {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(17, 31, 26, 0.08), rgba(17, 31, 26, 0.72)),
    url("https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=1400&q=82")
      center / cover;
  color: #fff;
}

.collection-section article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(17, 31, 26, 0.05), rgba(17, 31, 26, 0.66)),
    url("https://images.unsplash.com/photo-1600121848594-d8644e57abab?auto=format&fit=crop&w=1400&q=82")
      center / cover;
}

.collection-section span {
  color: #ffd18c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-section h2 {
  font-size: clamp(30px, 5vw, 58px);
}

.collection-section p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.collection-section a {
  width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid #ffd18c;
  color: #fff;
  font-weight: 900;
}

section:not(.hero) {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.shop-tools label,
.lead-form label,
.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-tools input,
.shop-tools select,
.lead-form input,
.lead-form select,
.checkout-form select,
.promo-row input {
  width: 100%;
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(23, 33, 28, 0.06);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--gold);
  color: #1e1b12;
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.ghost-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  padding: 0 14px;
  font-weight: 900;
}

.price {
  color: var(--forest);
  font-size: 22px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  background: #eef4ed;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article,
.ops-grid article,
.policy-content,
.checkout-preview,
.lead-form {
  border: 1px solid var(--line);
  background: var(--surface);
}

.feature-list article,
.ops-grid article {
  padding: 24px;
}

.feature-list p,
.ops-grid p,
.checkout-preview p,
.policy-content p,
.product-body p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.operations-section {
  background: #f7efe7;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.checkout-preview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  border-inline: 0;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
}

.form-message {
  min-height: 22px;
  color: var(--forest);
  font-weight: 800;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 16px;
}

.tab-button.active {
  background: var(--forest);
  color: #fff;
}

.policy-content {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(23, 33, 28, 0.42);
}

.cart-drawer.open {
  display: flex;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 28, 0.48);
}

.product-modal.open {
  display: grid;
}

.product-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: 28px;
  padding: clamp(18px, 4vw, 34px);
}

.product-detail-layout img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 8px;
  object-fit: cover;
}

.product-detail-layout p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  font-weight: 900;
  text-align: right;
}

.delivery-note {
  margin-bottom: 22px;
}

.drawer-panel {
  width: min(100%, 460px);
  height: 100%;
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.drawer-header h2 {
  font-size: 30px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

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

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--clay);
  font-weight: 900;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 16px 0;
}

.promo-row button {
  min-height: 42px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  padding: 0 14px;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.totals dt,
.totals dd {
  margin: 0;
}

.grand-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  max-width: 390px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #101b17;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .trust-strip,
  .collection-section,
  .product-grid,
  .ops-grid,
  .shop-tools,
  .split-section,
  .checkout-preview,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 76vh;
    padding-top: 92px;
  }

  .hero-actions a {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 66px 1fr;
  }

  .cart-item img {
    width: 66px;
    height: 66px;
  }

  .remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .cookie-banner {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout img {
    min-height: 280px;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-actions {
    justify-content: stretch;
  }

  .product-actions button {
    flex: 1;
  }
}
