:root {
  color-scheme: light;
  --night: #070707;
  --night-soft: #0b5c3b;
  --ink: #0a0a0a;
  --muted: #626660;
  --ice: #f9e8e8;
  --frost: #f7f7f2;
  --christmas-red: #d32931;
  --christmas-red-dark: #a9151c;
  --christmas-green: #0d8554;
  --christmas-green-dark: #075c3b;
  --white: #ffffff;
  --line: #d7d8d1;
  --content: 1480px;
  --shadow: 0 18px 54px rgba(7, 27, 42, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--christmas-green-dark);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--night);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--christmas-red);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--content));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.brand {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  text-decoration: none;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 2rem; }
.site-header nav a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--white); }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 2rem;
  align-items: center;
  padding: 148px max(24px, calc((100vw - var(--content)) / 2)) 76px;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(7,7,7,.99) 0 50%, rgba(6,58,37,.88) 78%, rgba(7,7,7,.97) 100%),
    radial-gradient(circle at 78% 38%, rgba(211,41,49,.28), transparent 34%),
    radial-gradient(circle at 88% 62%, rgba(13,133,84,.22), transparent 30%),
    var(--night);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0 45%, #000 74%);
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.season, .section-index {
  margin: 0 0 1rem;
  color: var(--christmas-red);
  font-weight: 700;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(3.5rem, 6.4vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero-intro { max-width: 640px; margin: 2rem 0 2.5rem; color: #d5d8d5; font-size: 1.18rem; }
.hero-download {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: center;
  width: min(100%, 460px);
  padding: 1rem 1.25rem;
  color: var(--white);
  background: var(--christmas-red);
  border: 2px solid var(--christmas-red);
  text-decoration: none;
  box-shadow: 10px 10px 0 rgba(13, 133, 84, .4);
}
.hero-download:hover { background: var(--christmas-red-dark); border-color: var(--christmas-red-dark); }
.hero-download:focus-visible { outline-color: var(--white); }
.hero-download svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero-download strong { display: block; font-family: Bahnschrift, sans-serif; font-size: 1.3rem; line-height: 1.15; }
.hero-download small { display: block; margin-top: .25rem; color: rgba(255, 255, 255, .82); font-size: .83rem; }

.hero-art { align-self: stretch; display: grid; place-items: center; min-height: 500px; }
.light-structure { width: min(100%, 720px); overflow: visible; filter: drop-shadow(0 0 12px rgba(13,133,84,.24)); }
.light-structure .wire { stroke: #7c8c82; stroke-width: 1; }
.light-structure .faint { opacity: .4; }
.light-structure .beam, .light-structure .motif, .light-structure .stars { stroke: #f5fff8; stroke-width: 2; }
.light-structure .beam, .light-structure .motif { stroke-dasharray: 900; animation: draw-line 1.8s ease-out both; }
.light-structure .motif { stroke: var(--christmas-green); filter: drop-shadow(0 0 8px rgba(13,133,84,.8)); }
.light-structure .stars { fill: var(--white); stroke: none; filter: drop-shadow(0 0 7px white); }
.hero-art p { position: absolute; right: 0; bottom: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--christmas-red); color: #aeb5b0; }
.hero-art strong { color: var(--white); font-weight: 600; }
@keyframes draw-line { from { stroke-dashoffset: 900; opacity: .25; } to { stroke-dashoffset: 0; opacity: 1; } }

.catalogue { max-width: var(--content); margin: 0 auto; padding: 96px 24px 120px; color: var(--white); }
.catalogue .section-index { color: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 520px); gap: 3rem; align-items: end; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: Bahnschrift, sans-serif; font-size: clamp(2.3rem, 4.5vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.section-heading > p { margin: 0; color: #e3f0e8; }

.catalogue-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; }
.filters { position: sticky; top: 1rem; align-self: start; padding: 1.5rem 2rem 1.5rem 1.5rem; color: var(--ink); background: var(--white); border-right: 4px solid var(--night); }
.filter-title { display: flex; justify-content: space-between; align-items: baseline; }
.filter-title h3 { margin: 0; font-family: Bahnschrift, sans-serif; font-size: 1.35rem; }
.text-button { padding: 0; color: var(--christmas-red-dark); background: none; border: 0; cursor: pointer; font-weight: 650; }
.filters fieldset { margin: 1.8rem 0 0; padding: 1.6rem 0 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { padding: 0; font-weight: 700; }
.filter-options { display: grid; gap: .7rem; margin-top: 1rem; }
.check-row { display: grid; grid-template-columns: 18px 1fr auto; gap: .65rem; align-items: center; color: #334b59; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--christmas-red-dark); }
.check-row small { color: #8a9aa3; }
select, .price-range input { width: 100%; padding: .65rem .7rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .9rem; }
.price-range label { color: var(--muted); font-size: .78rem; }
.price-range input { margin-top: .35rem; }
.results-toolbar { min-height: 46px; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.results-toolbar p { margin: 0; color: var(--white); font-weight: 700; }
.sort-control { display: flex; gap: .7rem; align-items: center; color: #e3f0e8; font-size: .85rem; }
.sort-control select { width: auto; min-width: 210px; }
.active-filters { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 24px; margin: .8rem 0 1.2rem; }
.filter-chip { padding: .25rem .55rem; background: var(--ice); border: 1px solid #e6c4b8; color: #7f2228; font-size: .75rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; background: transparent; }
.product-card { min-width: 0; color: var(--ink); background: var(--white); }
.card-open { width: 100%; height: 100%; display: grid; grid-template-rows: 220px 1fr; padding: 0; text-align: left; color: inherit; background: transparent; border: 0; cursor: pointer; }
.card-visual { position: relative; overflow: hidden; background: var(--night); }
.card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,7,.44)); pointer-events: none; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .35s ease; }
.card-open:hover .card-visual img { transform: scale(1.025); }
.card-body { min-height: 255px; display: flex; flex-direction: column; padding: 1.2rem; }
.card-meta { display: flex; justify-content: space-between; gap: .7rem; color: var(--christmas-red-dark); font-size: .72rem; font-weight: 700; }
.card-page { color: var(--muted); font-weight: 500; }
.card-reference { margin-top: .9rem; font-family: Bahnschrift, sans-serif; font-size: 1.35rem; letter-spacing: -.02em; }
.card-description { min-height: 3.2em; margin-top: .35rem; color: var(--muted); font-size: .86rem; }
.card-specs { margin-top: .85rem; color: #405864; font-size: .78rem; }
.card-footer { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #e5eef2; }
.card-price { font-family: Bahnschrift, sans-serif; font-size: 1.45rem; font-weight: 600; }
.view-label { color: var(--christmas-red-dark); font-size: .78rem; font-weight: 700; }
.view-label b { font-size: 1rem; }

.empty-state { padding: 5rem 2rem; text-align: center; background: var(--white); border: 1px solid var(--line); }
.empty-state svg { width: 64px; fill: none; stroke: var(--christmas-red-dark); stroke-width: 2; }
.empty-state h3 { margin-bottom: .25rem; font-family: Bahnschrift, sans-serif; font-size: 1.5rem; }
.empty-state p { margin-top: 0; color: var(--muted); }
.outline-button { padding: .65rem 1rem; color: var(--night); background: transparent; border: 1px solid var(--night); cursor: pointer; font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.pagination button { min-width: 38px; height: 38px; padding: 0 .65rem; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.pagination button[aria-current="page"] { color: var(--white); background: var(--night); border-color: var(--night); }
.pagination button:disabled { opacity: .4; cursor: default; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2.2rem max(24px, calc((100vw - var(--content)) / 2)); color: #a9bec9; background: var(--night); }
.footer-brand { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { color: var(--white); text-underline-offset: 4px; }

.product-dialog { width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: var(--white); border: 0; box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(4,17,26,.82); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 42px; height: 42px; color: var(--white); background: var(--night); border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); min-height: 620px; }
.dialog-visual { position: relative; margin: 0; display: grid; place-items: center; overflow: auto; background: #eeeeea; }
.dialog-visual img { width: 100%; height: 100%; object-fit: contain; }
.dialog-visual figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .55rem; color: var(--white); background: rgba(7,27,42,.85); font-size: .75rem; }
.dialog-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.dialog-category { margin: 0 0 .6rem; color: var(--christmas-red-dark); font-weight: 700; }
.dialog-copy h2 { margin: 0; font-family: Bahnschrift, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; line-height: 1; overflow-wrap: anywhere; }
.dialog-description { color: var(--muted); }
.dialog-price { margin: 1.5rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); font-family: Bahnschrift, sans-serif; font-size: 2.2rem; font-weight: 600; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec-list div { padding: .7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .72rem; }
.spec-list dd { margin: .15rem 0 0; font-weight: 700; }
.catalogue-link { display: inline-block; margin-top: 1.5rem; color: var(--christmas-red-dark); font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { position: absolute; right: -170px; bottom: -70px; width: 650px; opacity: .35; }
  .hero-copy { max-width: 820px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { width: calc(100% - 32px); padding: 18px 0; }
  .site-header nav a:first-child { display: none; }
  .site-header nav { gap: 1rem; }
  .hero { min-height: 690px; padding: 126px 16px 56px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-art { right: -280px; bottom: -130px; }
  .catalogue { padding: 64px 16px 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .catalogue-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .filters { position: static; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); }
  .filters fieldset { margin-top: 1rem; padding-top: 1rem; }
  .filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { min-width: 0; width: 66%; }
  .product-grid { grid-template-columns: 1fr; }
  .card-open { grid-template-columns: 38% 1fr; grid-template-rows: 1fr; }
  .card-body { min-height: 245px; }
  .site-footer { grid-template-columns: 1fr; gap: .8rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-visual { min-height: 42vh; max-height: 50vh; }
}

@media (max-width: 520px) {
  .site-header nav a { font-size: .84rem; }
  .filter-options { grid-template-columns: 1fr; }
  .card-open { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; }
  .card-body { min-height: 250px; }
  .dialog-copy { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
