:root {
  --ink: #171b1e;
  --yellow: #f3c623;
  --muted: #687077;
  --line: #d8dcda;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f7f8f6;
  font-family: 'Trebuchet MS',sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 10px 18px;
}
button:hover {
  background: #384148;
}
input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #adb4b1;
  background: white;
  padding: 10px;
  width: 100%;
}
:focus-visible {
  outline: 3px solid #d5a900;
  outline-offset: 3px;
}
.wrap {
  width: min(1320px,calc(100% - 64px));
  margin: auto;
}
.top {
  background: var(--ink);
  color: #d6dbd9;
  font-size: 12px;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.header {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  text-decoration: none;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -2px;
  white-space: nowrap;
}
.logo span {
  color: #bd9500;
}
.logo small {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
}
.header nav {
  display: flex;
  gap: 25px;
  margin: auto;
}
.header nav a {
  text-decoration: none;
  font-size: 14px;
}
.header button {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 8px;
}
.menu-toggle {
  display: none;
}
.hero {
  background: #171b1e;
  color: white;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 560px;
}
.hero-inner > div {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}
.hero img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: .8;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
  color: #977900;
}
.hero .eyebrow,
.dark-section .eyebrow {
  color: var(--yellow);
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(40px,5vw,78px);
  margin: 20px 0;
}
h2 {
  font-size: clamp(32px,4vw,56px);
  margin: 16px 0 28px;
}
h3 {
  font-size: 20px;
}
h3 a {
  text-decoration: none;
}
.hero h1 {
  max-width: 650px;
}
.hero em {
  color: var(--yellow);
  font-style: normal;
}
.hero-search {
  display: flex;
  margin-top: 34px;
  max-width: 600px;
}
.hero-search button,
.dark-section button {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  font-weight: bold;
}
.brands {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  font-size: 12px;
  letter-spacing: .14em;
}
.brands strong {
  font-size: 20px;
  margin-left: 30px;
}
.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.section-head > a {
  margin-bottom: 30px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product {
  background: white;
  padding: 24px;
}
.product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f3;
  color: var(--muted);
  text-decoration: none;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sku {
  color: #8b7000;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .08em;
}
.product p {
  font-size: 14px;
}
.product button {
  margin-top: 8px;
}
.dark-section {
  background: #252c2f;
  color: white;
  padding: 85px 0;
}
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.big-link {
  font-size: clamp(26px,3vw,42px);
  font-weight: bold;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 38px 0;
  font-size: 13px;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 36px 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: bold;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.detail-image {
  height: 500px;
}
.prose {
  min-height: 55vh;
  max-width: 900px;
}
.prose p {
  font-size: 18px;
}
dialog {
  border: 0;
  max-width: min(600px,calc(100% - 32px));
  width: 100%;
  max-height: 90vh;
  padding: 30px;
}
dialog::backdrop {
  background: #000a;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 30px;
}
.dialog-head button {
  background: transparent;
  color: var(--ink);
  border: 0;
  font-size: 28px;
}
.dialog-head + div {
  margin-bottom: 20px;
}
form label {
  margin-bottom: 16px;
}
textarea {
  min-height: 90px;
}
.list-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.list-row input {
  width: 80px;
}
.list-row span {
  flex: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width:960px) {
  .header nav {
    gap: 10px;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: repeat(2,1fr);
  }
  .filters {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top {
    font-size: 11px;
  }
  .header {
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 0;
  }
  .logo {
    margin-right: auto;
  }
  .menu-toggle {
    display: block;
  }
  .header nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    padding: 15px 0;
  }
  .header nav.open {
    display: flex;
  }
  .header nav a {
    padding: 8px;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-inner > div {
    padding: 48px 0 30px;
  }
  .hero img {
    height: 230px;
  }
  .section {
    padding: 50px 0;
  }
  .section-head {
    display: block;
  }
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .product {
    padding: 12px;
  }
  .product-image {
    height: 150px;
  }
  .product h3 {
    font-size: 17px;
  }
  .product button {
    width: 100%;
    padding: 8px;
  }
  .contact-block,
  .detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-image {
    height: 300px;
  }
  .footer {
    flex-direction: column;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 44px;
  }
}
@media (max-width:370px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}
body {
  font-family: 'Golos Text', sans-serif;
}
h1,
h2,
h3,
.logo,
.brands strong {
  font-family: 'Oswald', sans-serif;
}
.product-image {
  position: relative;
}
.product-image span {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  font-size: .75rem;
  background: #fff;
  padding: .3rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.categories a {
  padding: 1rem;
  background: #eee;
  overflow-wrap: anywhere;
}
.company-block {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 2rem;
  align-items: center;
}
.company-block img {
  width: 100%;
  height: auto;
  clip-path: inset(6% 8% 8% 6%);
}
.product,
.detail > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width:700px) {
  .company-block {
    grid-template-columns: minmax(0,1fr);
  }
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .detail-actions button { flex: 1 1 100%; }
  .filters label:first-child { grid-column: 1 / -1; }
}
