:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #18201b;
  background: #f5f2ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: min(8vw, 88px);
  background: #151915;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 18, 14, 0.82), rgba(14, 18, 14, 0.4) 46%, rgba(14, 18, 14, 0.12)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f0b24b;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: #f3eadb;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 8px;
  font-weight: 700;
}

.button--primary {
  background: #f0b24b;
  color: #1d160a;
  border-color: #f0b24b;
}

.button--secondary {
  color: #fffaf0;
}

.status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d9d0c1;
}

.status article {
  min-height: 190px;
  padding: 34px;
  background: #f5f2ec;
}

.status span {
  color: #a45b2a;
  font-weight: 800;
}

.status h2 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.status p {
  margin: 0;
  line-height: 1.55;
  color: #4c524d;
}

.catalog {
  padding: 72px min(6vw, 72px) 86px;
  background: #fffaf0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  color: #a45b2a;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.section-heading p:last-child {
  margin: 18px 0 0;
  color: #59615a;
  font-size: 1.05rem;
  line-height: 1.55;
}

.catalog-search {
  display: grid;
  grid-template-columns: 170px minmax(220px, 520px);
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.catalog-search label {
  color: #4c524d;
  font-weight: 800;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9d0c1;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #18201b;
  outline: none;
}

.catalog-search input:focus {
  border-color: #a45b2a;
  box-shadow: 0 0 0 3px rgba(164, 91, 42, 0.16);
}

.catalog-empty {
  margin: 0 0 20px;
  color: #a45b2a;
  font-weight: 800;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid #e4dccd;
  border-radius: 8px;
  background: #ffffff;
}

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

.product-card__body {
  padding: 20px;
}

.product-card__tag {
  margin: 0 0 10px;
  color: #a45b2a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.product-card__body p:not(.product-card__tag) {
  min-height: 48px;
  margin: 10px 0 18px;
  color: #59615a;
  line-height: 1.5;
}

.product-card strong {
  color: #13705f;
  font-size: 1.2rem;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-card__actions button,
.product-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d9d0c1;
  border-radius: 8px;
  padding: 0 12px;
  background: #fffaf0;
  color: #18201b;
  font-weight: 800;
}

.product-card__actions a {
  background: #13705f;
  color: #fff;
  border-color: #13705f;
}

.product-card__placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #ebe3d5;
  color: #a45b2a;
  font-weight: 900;
}

.product-dialog[hidden] {
  display: none;
}

.product-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 13, 0.68);
}

.product-dialog__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(280px, 430px);
  width: min(900px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(13, 18, 13, 0.28);
}

.product-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.7);
  border-radius: 50%;
  background: rgba(24, 32, 27, 0.78);
  color: #fffaf0;
  font-size: 1.5rem;
  line-height: 1;
}

.product-dialog__image {
  min-height: 380px;
  background: #ebe3d5;
}

.product-dialog__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.product-dialog__body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
}

.product-dialog__body h2,
.product-dialog__body p {
  margin: 0;
}

.product-dialog__body h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.product-dialog__body p:not(.product-card__tag) {
  color: #59615a;
  line-height: 1.55;
}

.product-dialog__body strong {
  color: #13705f;
  font-size: 1.5rem;
}

@media (max-width: 760px) {
  .hero {
    min-height: 68vh;
    padding: 34px 22px;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(14, 18, 14, 0.24), rgba(14, 18, 14, 0.86)),
      url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1100&q=80");
    background-position: center;
    background-size: cover;
  }

  .actions {
    width: 100%;
  }

  .button {
    flex: 1 1 160px;
  }

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

  .status article {
    min-height: auto;
    padding: 26px 22px;
  }

  .catalog {
    padding: 46px 22px 58px;
  }

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

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

  .product-card__body p:not(.product-card__tag) {
    min-height: auto;
  }

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

  .product-dialog__image,
  .product-dialog__image img {
    min-height: 240px;
  }

  .product-dialog__body {
    padding: 24px;
  }
}
