:root {
  --ink: #171713;
  --muted: #6c6c62;
  --line: #dedbd2;
  --paper: #ffffff;
  --wash: #f5f4ef;
  --soft: #edf1ee;
  --accent: #27656b;
  --accent-2: #a84936;
  --brass: #b99354;
  --night: #111514;
}
* { 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.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.brand span { color: var(--accent); }
.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  overflow-x: auto;
}
.nav-link,
.load-more,
.icon-button,
.source-link {
  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(360px, .74fr) minmax(0, 1.26fr);
  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,
.catalog-intro span,
.toolbar-kicker,
.eyebrow,
label,
.filter-head span,
.price-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title h1 {
  margin: 12px 0 18px;
  max-width: 560px;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: .94;
  font-weight: 500;
}
.hero-title p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.48;
}
.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;
  color: #fff;
  background: #303737;
  border-left: 1px solid rgba(255,255,255,.26);
  border-bottom: 1px solid rgba(255,255,255,.26);
}
.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.62)), 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 { color: rgba(255,255,255,.76); font-size: 13px; }
.section-panel strong { max-width: 310px; font-size: clamp(28px, 3.2vw, 52px); line-height: .96; font-weight: 500; }
.section-panel small { color: rgba(255,255,255,.8); font-size: 14px; }
.section-outdoor { grid-column: span 2; grid-row: span 2; }
.section-pendants { grid-column: span 2; }
.section-wall,
.section-ceiling,
.section-table-floor { padding: 22px; }
.section-wall strong,
.section-ceiling strong,
.section-table-floor 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(245,244,239,.98) 0%, rgba(245,244,239,.84) 45%, rgba(245,244,239,.08) 100%), var(--hero-image);
  background-position: center right;
  background-size: auto 96%;
  background-repeat: no-repeat;
}
.catalog-hero h1 {
  margin: 12px 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 90px);
  line-height: .94;
  font-weight: 500;
}
.catalog-hero p {
  max-width: 580px;
  color: #404842;
  font-size: 18px;
  line-height: 1.5;
}
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 36px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.catalog-intro p {
  max-width: 980px;
  margin: 0;
  color: #3f4642;
  font-size: 17px;
  line-height: 1.45;
}
.catalog-intro a {
  font-weight: 700;
  color: #273d38;
  border-bottom: 1px solid currentColor;
}
.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: 44px;
  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: 7px 0 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 520;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.toolbar-actions select { min-width: 190px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(33,37,34,.12);
}
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--wash);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: multiply;
}
.product-meta {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.product-kicker {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card h3 {
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}
.product-line { color: var(--muted); font-size: 13px; }
.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  color: var(--accent-2);
  font-weight: 800;
}
.load-more {
  margin: 28px auto 0;
  border-color: var(--line);
  background: var(--night);
  color: #fff;
}
.load-more[hidden] { display: none; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.pagination-link {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
}
.pagination-link:hover,
.pagination-link.is-current {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}
.product-page {
  padding: 30px 36px 78px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(320px, .78fr);
  gap: 42px;
  align-items: start;
}
.product-gallery {
  display: grid;
  gap: 14px;
}
.product-main-image {
  aspect-ratio: 1 / 1;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  mix-blend-mode: multiply;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.thumb {
  aspect-ratio: 1 / 1;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.thumb.is-active { border-color: var(--accent); }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 8px;
}
.product-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .96;
  font-weight: 520;
}
.article-line {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.product-description {
  margin: 8px 0 4px;
  color: #39413d;
  font-size: 18px;
  line-height: 1.52;
}
.price-line {
  color: var(--accent-2);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}
.product-contact {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}
.source-link {
  justify-self: start;
  padding: 0;
  min-height: 0;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-weight: 700;
}
.product-section {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.product-section h2 {
  font-size: 30px;
  font-weight: 540;
}
.spec-list {
  display: grid;
  grid-template-columns: minmax(190px, 320px) 1fr;
  max-width: 980px;
  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.35;
}
.spec-list dt { color: var(--muted); padding-right: 18px; }
.muted-text { color: var(--muted); }
.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px 36px;
  border-top: 1px solid var(--line);
  background: var(--night);
  color: #fff;
}
.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
}
.site-footer .footer-source {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.52);
}
.site-footer .footer-source a {
  color: rgba(255,255,255,.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer div:last-child {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.78);
  text-align: right;
}
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-panels { grid-template-columns: repeat(2, 1fr); }
  .section-outdoor,
  .section-pendants { grid-column: span 2; }
}
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }
  .site-header nav { justify-content: flex-start; }
  .section-hero,
  .catalog-layout,
  .product-hero,
  .catalog-intro,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .hero-title,
  .catalog-hero,
  .catalog-layout,
  .product-page,
  .catalog-intro,
  .site-footer { padding-left: 18px; padding-right: 18px; }
  .section-hero { min-height: auto; }
  .hero-title { min-height: 520px; }
  .section-panels { grid-template-columns: 1fr; grid-template-rows: none; }
  .section-outdoor,
  .section-pendants { grid-column: span 1; grid-row: span 1; }
  .section-panel { min-height: 220px; }
  .filters { position: static; padding-right: 0; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-footer div:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .hero-title h1 { font-size: 40px; }
  .catalog-hero h1 { font-size: 42px; }
  .product-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .product-info h1 { font-size: 34px; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list dt { padding-bottom: 2px; border-bottom: 0; }
  .spec-list dd { padding-top: 0; }
}
