:root {
  --yellow: #ffd400;
  --yellow-dark: #e8bc00;
  --black: #111111;
  --dark: #1c1c1c;
  --white: #ffffff;
  --background: #f6f7f9;
  --muted: #68707a;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #e5aa00;
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: var(--yellow);
  padding: 12px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--black);
  font-size: 27px;
  font-weight: 900;
}

.brand-name strong {
  color: #c9a500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: #a58500;
}

.hero {
  background:
    radial-gradient(circle at 82% 25%, rgba(255, 212, 0, .16), transparent 30%),
    linear-gradient(125deg, #111111, #292929);
  color: var(--white);
  padding: 100px 0 110px;
}

.hero-content {
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 15px;
  color: #ad8c00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-description {
  max-width: 610px;
  margin: 25px 0 32px;
  color: #d5d5d5;
  font-size: 17px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 25px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.primary-button:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.catalog-section {
  padding: 85px 0 100px;
}

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

.section-heading h2,
.info-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
}

#product-count {
  color: var(--muted);
  font-size: 14px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 20px;
  padding: 22px;
  margin-bottom: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-field,
.category-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.search-field label,
.category-field label {
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.category-field select {
  width: 100%;
  min-height: 49px;
  padding: 12px 15px;
  background: #fafafa;
  color: var(--black);
  border: 1px solid #d7dce1;
  border-radius: 10px;
}

.catalog-status {
  padding: 20px;
  margin-bottom: 20px;
  background: #fff9df;
  border: 1px solid #f1e4a2;
  border-radius: 12px;
  color: #665300;
}

.catalog-status:empty {
  display: none;
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .1);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0f1f3;
  display: block;
}

.product-body {
  padding: 22px;
}

.product-category {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
}

.product-brand {
  color: var(--muted);
  font-size: 13px;
}

.product-price {
  margin: 18px 0 8px;
  font-size: 25px;
  font-weight: 900;
}

.product-stock {
  font-size: 13px;
  font-weight: 700;
}

.product-stock.available {
  color: #187c42;
}

.product-stock.unavailable {
  color: #b42318;
}

.info-section {
  padding: 80px 0;
  background: var(--white);
}

.info-section p:last-child,
.contact-section p:last-child {
  max-width: 700px;
  color: var(--muted);
}

.contact-section {
  padding: 80px 0;
}

.site-footer {
  padding: 32px 0;
  background: var(--black);
  color: #d1d1d1;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 75px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .hero {
    padding: 70px 0 80px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .catalog-section {
    padding: 55px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-card,
  .primary-button {
    transition: none;
  }
}
