:root {
  --ink: #1f241f;
  --muted: #66706a;
  --paper: #fffaf2;
  --cream: #f5eddc;
  --leaf: #2f6846;
  --leaf-dark: #244f37;
  --tomato: #c84835;
  --gold: #e0a62f;
  --line: #e5dccb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(45, 53, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--white);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--cream);
  color: var(--leaf-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(25, 30, 24, 0.78), rgba(25, 30, 24, 0.26)),
    url("assets/hero-market.svg") center/cover;
  color: var(--white);
}

.hero-content {
  width: min(720px, 100%);
  padding-bottom: clamp(20px, 7vh, 92px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd16d;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
}

.hero p:not(.eyebrow),
.page-title p,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--leaf);
  color: var(--white);
}

.button.primary:hover {
  background: var(--leaf-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--leaf-dark);
}

.section,
.page-title {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 7vw, 84px) 0;
}

.page-title {
  padding: clamp(50px, 8vw, 90px) 0 24px;
}

.page-title h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
}

.page-title p {
  max-width: 720px;
}

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

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

.product-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(45, 53, 42, 0.08);
}

.product-image {
  min-height: 178px;
  background-color: var(--cream);
  background-position: center;
  background-size: cover;
}

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

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.price {
  color: var(--tomato);
  font-size: 1.22rem;
  font-weight: 800;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf3eb;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 68px);
  align-items: center;
  border-top: 1px solid var(--line);
}

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

.stats-grid div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.stats-grid strong {
  color: var(--leaf);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px 210px;
  gap: 14px;
  padding-top: 12px;
}

.search-box,
.select-box,
.order-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 104, 70, 0.18);
  border-color: var(--leaf);
}

.empty-state {
  margin: 28px 0 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.detail-layout {
  min-height: calc(100vh - 162px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 6vw, 64px);
  align-items: start;
}

.detail-photo {
  min-height: 500px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-content h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

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

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.detail-list span:first-child {
  color: var(--muted);
  font-weight: 700;
}

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

.story-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.story-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
}

.order-form,
.contact-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(20px, 4vw, 32px);
}

.order-form {
  display: grid;
  gap: 18px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.7;
}

.order-summary {
  margin-top: 24px;
  border-radius: 8px;
  background: var(--cream);
  padding: 18px;
  color: var(--leaf-dark);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .section-heading,
  .split-section,
  .detail-layout,
  .contact-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

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

  .detail-photo {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .section,
  .page-title {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 560px;
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
