:root {
  --page: #f5f6f2;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6d706b;
  --line: rgba(21, 21, 21, .12);
  --soft: #eef2ed;
  --accent: #0d6b5d;
  --accent-deep: #123f38;
  --rose: #a94f44;
  --gold: #b78d48;
  --shadow: 0 24px 68px rgba(21, 21, 21, .12);
  --soft-shadow: 0 14px 34px rgba(21, 21, 21, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfbfa 0, #f4f5f1 48%, #eef2ed 100%);
  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: 15px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(21, 21, 21, .08);
  background: rgba(251, 251, 250, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-width: max-content;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.brand small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: #4f524e;
  font-size: 14px;
  font-weight: 720;
}

nav a {
  position: relative;
  padding: 9px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform .2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  width: min(1240px, calc(100% - 38px));
  margin: 0 auto;
}

.hero {
  min-height: clamp(610px, calc(100svh - 118px), 780px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  padding: clamp(38px, 6vw, 76px) 0 36px;
}

.hero-copy {
  position: relative;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(76px, 14vw, 172px);
  line-height: .78;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: .94;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: #4d514d;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.34;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 28px rgba(21, 21, 21, .18);
}

.button.secondary {
  background: rgba(255, 255, 255, .72);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 94px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.hero-showcase {
  position: relative;
  min-height: 565px;
}

.showcase-main,
.showcase-tile,
.showcase-note {
  position: absolute;
  border: 1px solid rgba(21, 21, 21, .1);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.showcase-main {
  inset: 0 10% auto 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.showcase-main img,
.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-main span,
.showcase-main strong {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.showcase-main span {
  bottom: 62px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.showcase-main strong {
  right: 18px;
  bottom: 18px;
  color: #fff;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .42);
}

.showcase-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .58));
}

.showcase-tile {
  overflow: hidden;
  width: 37%;
  aspect-ratio: 1;
}

.tile-a {
  right: 0;
  top: 12%;
}

.tile-b {
  right: 8%;
  bottom: 78px;
}

.showcase-note {
  right: 0;
  bottom: 0;
  width: min(330px, 74%);
  padding: 18px;
}

.showcase-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.showcase-note strong {
  display: block;
  font-size: 20px;
  line-height: 1.16;
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

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

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, .74fr) 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box,
.filter-box {
  display: grid;
  gap: 10px;
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--soft-shadow);
}

.search-box span,
.filter-box > span,
.product-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.search-box input:focus {
  outline: 2px solid rgba(13, 107, 93, .22);
  border-color: rgba(13, 107, 93, .46);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-tab {
  min-height: 36px;
  border: 1px solid rgba(21, 21, 21, .12);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: #454944;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
}

.category-tab[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-status {
  min-height: 18px;
  margin: 0 0 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, .11);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(21, 21, 21, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(13, 107, 93, .28);
  box-shadow: 0 22px 48px rgba(21, 21, 21, .11);
}

.product-card.featured {
  grid-column: span 2;
}

.product-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
}

.product-card.featured .product-media {
  aspect-ratio: 16 / 10;
}

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

.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  transform: scale(1.035);
}

.product-body {
  display: grid;
  gap: 11px;
  padding: 17px 17px 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(21, 21, 21, .1);
  border-radius: 999px;
  padding: 0 9px;
  color: #535851;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
}

.product-action strong {
  font-size: 24px;
  letter-spacing: 0;
}

.product-action .button {
  min-height: 40px;
  padding: 0 15px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  font-weight: 760;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact h2 {
  max-width: 720px;
}

.site-footer {
  width: min(1240px, calc(100% - 38px));
  margin: 0 auto;
  padding: 26px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-showcase {
    min-height: 520px;
  }

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

@media (max-width: 760px) {
  .site-header,
  .section-heading,
  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  h1 {
    font-size: clamp(72px, 24vw, 116px);
  }

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

  .hero-showcase {
    min-height: 460px;
  }

  .showcase-main {
    inset: 0 18% auto 0;
  }

  .showcase-tile {
    width: 42%;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .showcase-note {
    width: 82%;
  }

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

  .product-card.featured {
    grid-column: auto;
  }

  .product-card.featured .product-media {
    aspect-ratio: 1;
  }

  .product-action {
    align-items: flex-start;
    flex-direction: column;
  }
}
