:root {
  --ink: #151515;
  --muted: #6d706a;
  --line: #deded6;
  --paper: #ffffff;
  --wash: #f5f5f1;
  --soft: #edf1ee;
  --accent: #1f6863;
  --accent-2: #b05238;
  --night: #101414;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 108px;
  min-height: 58px;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 56px;
  max-width: 108px;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  overflow-x: auto;
}

.nav-link,
.load-more,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link { color: var(--muted); }
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: var(--wash); }

.section-hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  border-bottom: 1px solid var(--line);
}

.hero-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 54px 36px;
  background: var(--night);
  color: #fff;
}

.hero-title span,
.catalog-hero span,
.toolbar-kicker,
.eyebrow,
label,
.filter-head span,
.price-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.88;
  font-weight: 500;
}

.section-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(240px, 1fr));
}

.section-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  background: #303737;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.6)), var(--tile-image);
  background-position: center;
  background-size: cover;
  transition: transform 260ms ease;
}

.section-panel:hover::before { transform: scale(1.045); }
.section-panel > * { position: relative; z-index: 1; }
.section-panel span { font-size: 13px; color: rgba(255,255,255,0.76); }
.section-panel strong { max-width: 270px; font-size: clamp(28px, 3.4vw, 54px); line-height: 0.95; font-weight: 500; }
.section-panel small { font-size: 14px; color: rgba(255,255,255,0.78); }
.section-indoor { grid-column: span 2; grid-row: span 2; }
.section-outdoor { grid-column: span 2; }
.section-technical { grid-column: span 1; }
.section-accessories { grid-column: span 1; }
.panels-3 .section-technical { grid-column: span 2; }
.section-technical, .section-accessories { padding: 22px; }
.section-technical strong, .section-accessories strong { font-size: 30px; line-height: 1; }

.catalog-hero {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 48px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  background-image: linear-gradient(90deg, rgba(237,241,238,0.98) 0%, rgba(237,241,238,0.86) 44%, rgba(237,241,238,0.06) 100%), var(--hero-image);
  background-position: center right;
  background-size: auto 96%;
  background-repeat: no-repeat;
}

.catalog-hero h1 {
  margin: 12px 0 12px;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 500;
}

.catalog-hero p {
  max-width: 620px;
  color: #3f4642;
  font-size: 18px;
  line-height: 1.5;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  padding: 34px 36px 72px;
  scroll-margin-top: 86px;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding-right: 8px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.filter-block { display: grid; gap: 8px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; color: var(--muted); }

input, select {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.catalog-main { min-width: 0; }

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.catalog-toolbar h2 {
  margin: 6px 0 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar-actions select { width: 210px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #c4c9c1;
  box-shadow: 0 14px 36px rgba(19, 24, 22, 0.09);
}

.product-image {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--wash);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img { transform: scale(1.035); }

.status-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(16,20,20,0.74);
  color: #fff;
  font-size: 12px;
}

.product-meta {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-kicker,
.product-line,
.variant-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-card h3 {
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
  margin-top: 2px;
}

.product-footer span {
  font-weight: 800;
  color: var(--accent-2);
}

.load-more {
  margin: 28px auto 0;
  border-color: var(--line);
  background: var(--night);
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
}

.pagination .is-current {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
  text-align: center;
}

.product-page {
  padding: 26px 36px 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(300px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.product-gallery { min-width: 0; }

.product-main-image {
  display: grid;
  place-items: center;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.product-main-image img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  padding: 24px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.thumb.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-info {
  position: sticky;
  top: 100px;
}

.product-info h1 {
  margin: 12px 0 12px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.96;
  font-weight: 500;
}

.article-line { color: var(--muted); }
.product-description { color: #333936; font-size: 17px; line-height: 1.62; }
.price-label { margin-top: 28px; color: var(--muted); }
.price-line { margin: 5px 0 24px; font-size: 32px; font-weight: 800; color: var(--accent-2); }

.product-contact {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.product-section {
  margin-top: 50px;
}

.product-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 600;
}

.spec-list {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.spec-list dt { color: var(--muted); padding-right: 20px; }

.variant-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.variant-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.variant-table th,
.variant-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.variant-table th {
  background: var(--wash);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
  padding: 34px 36px;
  border-top: 1px solid var(--line);
  background: var(--night);
  color: #fff;
}

.site-footer p,
.site-footer address {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  font-style: normal;
}

.site-footer .footer-credit {
  margin-top: 8px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

.footer-credit a {
  color: rgba(255,255,255,0.58);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit a:hover { color: #fff; }

.site-footer address {
  display: grid;
  gap: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 12px 18px;
  }

  .site-header nav { justify-content: flex-start; }
  .section-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-title { min-height: 260px; padding: 42px 18px; }
  .section-panels { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .section-indoor, .section-outdoor, .section-technical, .section-accessories { grid-column: span 1; grid-row: span 1; min-height: 220px; }
  .catalog-layout { grid-template-columns: 1fr; padding: 28px 18px 58px; }
  .filters { position: static; padding-right: 0; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { justify-content: space-between; }
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .product-info { position: static; }
  .product-page { padding: 22px 18px 60px; }
  .product-main-image { min-height: 420px; }
  .product-main-image img { height: 420px; }
}

@media (max-width: 620px) {
  .brand { width: 92px; min-height: 48px; }
  .brand img { height: 48px; max-width: 92px; }
  .site-header nav { flex-wrap: wrap; overflow-x: visible; gap: 4px; }
  .nav-link { min-height: 36px; padding: 0 9px; font-size: 13px; }
  .section-panels { grid-template-columns: 1fr; }
  .catalog-hero { min-height: 300px; padding: 36px 18px; background-size: auto 72%; }
  .catalog-hero h1 { font-size: 46px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .toolbar-actions select { width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list dt { padding-bottom: 2px; border-bottom: 0; }
  .spec-list dd { padding-top: 2px; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 18px; }
}
