﻿:root {
  --bg-olive: #8a8768;
  --panel: #f3f3f2;
  --text-main: #2e2e2a;
  --text-muted: #6f6f66;
  --accent: #a7b78e;
  --line: #d9d7cf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: var(--bg-olive);
}

body {
  min-height: 100vh;
  padding: 70px 16px;
  position: relative;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("./assets/images/bg-backdrop.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
  padding: 22px;
}

.hero {
  min-height: 420px;
  background-image: linear-gradient(to bottom, rgba(20, 22, 17, 0.28), rgba(20, 22, 17, 0.55)),
    url("./assets/images/hero-main.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  padding: 8px 12px;
  position: relative;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.08em;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 18px;
}

.nav-toggle {
  display: none;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hero-content {
  width: min(560px, 100%);
  padding: 24px 8px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 10vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.03em;
}

.hero p {
  margin: 0 0 18px;
  font-size: clamp(12px, 1.5vw, 16px);
  max-width: 360px;
}

button {
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  padding: 10px 18px;
  cursor: pointer;
}

.section {
  padding: 26px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 20px;
}

.section-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.section-head h2,
.cta h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.products {
  display: grid;
  gap: 14px;
}

.products-carousel {
  position: relative;
}

.products-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.products-viewport::-webkit-scrollbar {
  display: none;
}

.products-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  min-width: 100%;
  padding-bottom: 4px;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.carousel-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.products--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.meta {
  padding: 8px 10px 12px;
}

.meta h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.meta p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.product-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-main);
}

.product--placeholder .meta p {
  color: #9b6c6c;
}

.market-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #8a5555;
}

.promo {
  margin: 8px 0 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.promo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.promo p {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 780px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.benefits article {
  min-height: 130px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.benefits article:last-child {
  border-right: 0;
}

.benefits h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.benefits p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.benefits__active {
  background: var(--accent);
}

.benefits__active p,
.benefits__active h3 {
  color: #fff;
}

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

.catalog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.catalog-card--tall {
  grid-row: span 2;
  min-height: 390px;
}

.catalog-card--wide {
  grid-column: span 2;
}

.cta {
  margin-top: 26px;
  min-height: 300px;
  background-image: linear-gradient(rgba(40, 45, 34, 0.54), rgba(40, 45, 34, 0.54)),
    url("./assets/images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 28px;
}

.cta p {
  margin: 0;
  max-width: 500px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .shell {
    padding: 14px;
  }

  .hero {
    min-height: 360px;
  }

  .products--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-card--tall {
    grid-row: span 1;
    min-height: 260px;
  }

  .catalog-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  body {
    padding: 40px 10px;
  }

  .topbar {
    gap: 8px;
    padding: 6px 8px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 32px;
    height: 28px;
    padding: 6px;
    border: 1px solid rgba(46, 46, 42, 0.2);
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-toggle span {
    width: 100%;
    height: 1px;
    background: var(--text-main);
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 8px;
    top: calc(100% + 4px);
    z-index: 20;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    min-width: 170px;
  }

  .topbar.is-open .main-nav {
    display: flex;
  }

  .main-nav a {
    font-size: 11px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 300px;
    padding: 12px 10px 18px;
  }

  .hero-content {
    padding: 10px 2px;
  }

  .hero p {
    max-width: 280px;
    font-size: 11px;
  }

  .products--three,
  .benefits,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .section-head--split {
    align-items: flex-end;
  }

  .products-track {
    grid-auto-columns: 88%;
    gap: 8px;
  }

  .promo p,
  .meta p,
  .meta h3 {
    font-size: 10px;
  }

  .section {
    padding: 18px 0;
  }

  .benefits article {
    min-height: 108px;
    padding: 8px;
  }

  .benefits h3,
  .benefits p {
    font-size: 10px;
  }

  .catalog-card--wide {
    grid-column: span 2;
  }

  .cta {
    min-height: 220px;
    padding: 16px;
  }

  .cta p {
    font-size: 11px;
  }

  button {
    font-size: 10px;
    padding: 8px 12px;
  }

  .carousel-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
    padding: 0;
  }
}
