:root {
  --bg: #050505;
  --surface: #111312;
  --surface-2: #171a18;
  --surface-3: #f5f6f1;
  --text: #ffffff;
  --ink: #111411;
  --muted: #bfc6c0;
  --muted-dark: #59605b;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(5, 5, 5, 0.13);
  --accent: #74f2c2;
  --accent-2: #e8d06d;
  --danger: #ff8f70;
  --radius: 8px;
  --gutter: clamp(16px, 3.5vw, 56px);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(180deg, #090a09 0%, #050505 36%, #10130f 100%);
  color: var(--text);
  font-family: Inter, Manrope, "Helvetica Neue", Arial, system-ui, sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr 48px;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  width: 192px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-action,
.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: 18px;
  min-height: clamp(500px, calc(100vh - 170px), 560px);
  padding: 18px var(--gutter) 0;
}

.hero-copy,
.hero-product,
.catalog-section,
.selection,
.delivery,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.012) 55%),
    rgba(15, 16, 15, .88);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 48px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover,
.header-action:hover,
.dialog-close:hover {
  transform: translateY(-1px);
  border-color: rgba(116, 242, 194, .62);
}

.button-primary {
  background: var(--accent);
  color: #05100b;
  border-color: rgba(116, 242, 194, .7);
}

.button-ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
}

.hero-product {
  position: relative;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(116,242,194,.13), transparent 46%),
    linear-gradient(180deg, #161916, #090a09);
}

.hero-product::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116,242,194,.88), transparent);
  transform: rotate(-14deg);
}

.hero-product-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 34px;
}

.hero-product-media img {
  width: min(80%, 540px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 30px 48px rgba(0,0,0,.56));
}

.hero-product-info {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(16px);
}

.hero-product-info span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.hero-product-info h2 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-product-info p {
  margin-bottom: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.quick-stats {
  width: calc(100% - var(--gutter) * 2);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 12, 11, .86);
}

.quick-stats article {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

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

.quick-stats strong {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.catalog-section,
.selection,
.delivery,
.contact {
  width: calc(100% - var(--gutter) * 2);
  margin: 18px auto 0;
  padding: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.012) 50%),
    rgba(12, 13, 12, .88);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

#resultCount {
  margin-bottom: 0;
  color: rgba(255,255,255,.76);
  font-weight: 800;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 210px));
  gap: 12px;
  margin-bottom: 18px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.72);
}

input,
select {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0e0d;
  color: var(--text);
  outline: none;
}

.search-field input {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

select {
  padding: 0 14px;
}

input::placeholder {
  color: rgba(255,255,255,.48);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 462px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f6f1;
  color: var(--ink);
}

.product-media {
  aspect-ratio: 1 / .72;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(140deg, #fff, #dfe7dc 82%),
    #fff;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #20251f;
  font-size: 12px;
  font-weight: 800;
}

.tag.accent {
  background: #d7f8e9;
  border-color: #9deacb;
}

.product-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 17px;
  display: -webkit-box;
  min-height: 62px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card p {
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.48;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.product-meta span {
  min-height: 44px;
  display: grid;
  align-content: center;
  padding: 8px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #232923;
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 8px;
  margin-top: 12px;
}

.card-actions button,
.card-actions a {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.card-actions button {
  background: #111411;
  color: #fff;
}

.card-actions a {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #05100b;
}

.selection-grid,
.delivery-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.selection-grid article,
.delivery-list article {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(116,242,194,.6);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 900;
}

.selection-grid p,
.delivery p,
.contact p {
  margin-bottom: 0;
}

.delivery {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.delivery-copy {
  display: grid;
  align-content: center;
}

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

.delivery-list article {
  display: grid;
  align-content: center;
  gap: 10px;
}

.delivery-list strong {
  color: var(--accent-2);
  font-size: 22px;
}

.delivery-list span {
  color: var(--muted);
  line-height: 1.45;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
}

.product-dialog {
  width: min(1040px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f7f2;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(7px);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(320px, 1.14fr);
  gap: 20px;
  padding: 26px;
}

.dialog-body img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
}

.dialog-copy {
  padding-right: 42px;
}

.dialog-copy h2 {
  color: var(--ink);
}

.dialog-copy p {
  color: var(--muted-dark);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.spec-list div {
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
}

.spec-list dt {
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 800;
}

.spec-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.site-footer {
  width: calc(100% - var(--gutter) * 2);
  min-height: 104px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 190px repeat(2, auto) 1fr;
  align-items: center;
  gap: 26px;
  color: rgba(255,255,255,.78);
}

.site-footer img {
  width: 178px;
}

.site-footer span {
  justify-self: end;
  color: rgba(255,255,255,.58);
}

@media (max-width: 1240px) {
  .hero,
  .delivery,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

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

  .quick-stats article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr 48px;
    gap: 8px 12px;
    min-height: 0;
    padding: 10px 14px;
  }

  .brand {
    width: 150px;
  }

  .header-action {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline: 14px;
  }

  .catalog-section,
  .selection,
  .delivery,
  .contact,
  .quick-stats,
  .site-footer {
    width: calc(100% - 28px);
  }

  .catalog-tools,
  .product-grid,
  .selection-grid,
  .delivery-list,
  .quick-stats,
  .dialog-body,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .quick-stats article:last-child {
    border-bottom: 0;
  }

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

  .hero-copy {
    padding: 22px 18px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  h1 {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .hero-product {
    grid-template-columns: 132px 1fr;
    grid-template-rows: 1fr;
    min-height: 178px;
  }

  .hero-product::after {
    display: none;
  }

  .hero-product-media {
    min-height: 176px;
    padding: 10px;
  }

  .hero-product-media img {
    max-height: 152px;
    width: 100%;
  }

  .hero-product-info {
    display: grid;
    align-content: center;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 16px;
  }

  .hero-product-info h2 {
    font-size: 20px;
  }

  .product-card h3 {
    min-height: auto;
  }

  .dialog-copy {
    padding-right: 0;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .site-footer span {
    justify-self: start;
  }
}
