:root {
  --ink: #28251f;
  --muted: #6f6a60;
  --paper: #fffdf8;
  --line: #ddd4c3;
  --bg: #f2eee5;
  --earth: #8d4426;
  --moss: #486a3d;
  --sand: #d8be8b;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.head, .nav, .hero, .intro, .section, .benefits, .promo-row, .text-columns, .partner, .footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.head {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo img { width: 214px; height: auto; }
.contacts-mini {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.nav a {
  flex: 0 0 auto;
  padding: 15px 17px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: #403a31;
}
.nav a:hover { background: #ece2d0; color: var(--earth); }

.hero {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 22px;
  align-items: stretch;
  padding: 28px 0;
}

.hero-copy, .hero-media, .intro, .catalog-card, .benefits article, .promo-row article, .text-columns > div, .partner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-copy {
  padding: clamp(30px, 4.8vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.03;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.16; }
p { color: var(--muted); font-size: 18px; line-height: 1.58; }

.hero-copy > a {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 22px;
  background: var(--earth);
  color: #fff;
  border-radius: 4px;
  font-weight: 900;
}
.hero-copy > a:hover { background: #6f311b; }

.hero-media {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #d5c8b4;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
  margin-bottom: 38px;
}
.intro h2 { margin-bottom: 0; }

.section { padding: 10px 0 46px; }
.section-head { max-width: 840px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  min-height: 286px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--earth), var(--sand), var(--moss));
}
.catalog-card strong {
  display: block;
  margin: 18px 20px 12px;
  color: var(--earth);
  font-size: 24px;
  line-height: 1.14;
}
.catalog-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.catalog-card p { margin: 0; padding: 0 20px 22px; font-size: 16px; }
.catalog-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(42,34,24,.12); }

.benefits {
  display: grid;
  grid-template-columns: 1.15fr .75fr .75fr;
  gap: 18px;
  padding-bottom: 44px;
}
.benefits article { padding: 28px; }
.benefits article:first-child { background: #2f3d2a; color: #fff; }
.benefits article:first-child p { color: rgba(255,255,255,.82); }

.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 44px;
}
.promo-row article {
  min-height: 190px;
  padding: 26px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.promo-row span {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
}
.promo-row p { margin-bottom: 0; }
.promo-row p { color: rgba(255,255,255,.88); text-shadow: 0 2px 12px rgba(0,0,0,.55); }

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 24px;
}
.text-columns > div { padding: 28px; }

.partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  margin-bottom: 54px;
}

.partner h2 {
  margin-bottom: 14px;
}

.partner p {
  margin-bottom: 0;
}

.partner-links {
  display: grid;
  gap: 12px;
}

.partner-links a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--earth);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.partner-links a:hover {
  background: #6f311b;
}

.footer {
  width: 100%;
  max-width: none;
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 24px max(20px, calc((100% - 1180px) / 2));
  background: #2a241d;
  color: #fff;
}
.footer div { display: grid; gap: 8px; }
.footer strong { font-size: 26px; }
.footer span, .footer p { color: #d7c9b6; margin: 0; }
.footer a { color: #fff; font-weight: 800; }

@media (max-width: 980px) {
  .hero, .intro, .benefits, .text-columns, .partner, .footer { grid-template-columns: 1fr; }
  .catalog-grid, .promo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-mini { text-align: left; }
  .hero-media { min-height: 360px; }
}

@media (max-width: 620px) {
  .head, .nav, .hero, .intro, .section, .benefits, .promo-row, .text-columns, .partner { width: min(100% - 28px, 1180px); }
  .head { display: grid; padding: 18px 0; }
  .logo img { width: 176px; }
  .catalog-grid, .promo-row { grid-template-columns: 1fr; }
  .intro, .benefits article, .text-columns > div, .hero-copy, .partner { padding: 22px; }
  h1 { font-size: 36px; }
  h2 { font-size: 31px; }
  p { font-size: 16px; }
  .hero-media { min-height: 250px; }
  .footer { grid-template-columns: 1fr; }
}


.nav a.active {
  background: #ece2d0;
  color: var(--earth);
}

.catalog-page,
.product-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.catalog-hero,
.product-detail,
.category-page-card,
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-hero {
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

.catalog-hero.compact {
  max-width: 820px;
}

.catalog-hero h1,
.product-detail h1 {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--earth);
  font-weight: 900;
}

.category-page-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-page-card,
.product-card {
  overflow: hidden;
  min-height: 310px;
}

.category-page-card img,
.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-page-card strong,
.product-card span {
  display: block;
  padding: 18px 20px 0;
  color: var(--earth);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.14;
}

.category-page-card p,
.product-card p {
  padding: 10px 20px 0;
  margin: 0;
  font-size: 15px;
}

.category-page-card > span {
  display: inline-flex;
  margin: 16px 20px 20px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #efe3cd;
  color: var(--earth);
  font-size: 13px;
  font-weight: 900;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 38px);
}

.product-detail figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e7ded0;
}

.product-detail figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.product-detail dl {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.product-detail dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.product-detail dt {
  color: var(--muted);
  font-weight: 700;
}

.product-detail dd {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .category-page-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .catalog-page,
  .product-page {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .category-page-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 20px;
  }

  .product-detail figure img {
    min-height: 260px;
  }

  .product-detail dl div {
    grid-template-columns: 1fr;
  }
}
