:root {
  --ral-3020-screen: #cc0605;
  --signal: #cc0605;
  --signal-deep: #a80608;
  --graphite: #181b1d;
  --graphite-soft: #2b3033;
  --ink: #1b1f22;
  --muted: #62676a;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --surface-cool: #edf2ef;
  --line: #d8d2c8;
  --petrol: #174945;
  --petrol-soft: #dce9e5;
  --brass: #c6a15b;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgb(24 27 29 / 9%);
  --shadow-lg: 0 24px 70px rgb(24 27 29 / 16%);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(24 27 29 / 2.8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(24 27 29 / 2.8%) 1px, transparent 1px);
  background-size: 48px 48px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: var(--petrol); text-underline-offset: .2em; }
a:hover { color: var(--signal-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 40;
  padding: .75rem 1rem;
  border: 2px solid var(--white);
  background: var(--signal-deep);
  color: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 4;
  border-top: 5px solid var(--signal);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background:
    linear-gradient(90deg, rgb(204 6 5 / 18%), transparent 38%),
    var(--graphite);
  color: var(--white);
}
.header-inner,
.hero-inner,
.page-shell,
.info-grid,
.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 1 32rem;
  color: var(--white);
  text-decoration: none;
}
.brand-logo { width: min(100%, 32rem); height: auto; }
.brand:focus-visible { outline-color: var(--brass); }
.main-nav,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1.25rem;
}
.main-nav a,
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: rgb(255 255 255 / 82%);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--signal);
  color: var(--white);
}

h1, h2, h3 {
  line-height: 1.06;
  text-wrap: balance;
}
h1 { margin: 0 0 1rem; font-size: clamp(2.45rem, 6vw, 5.25rem); letter-spacing: -.055em; }
h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.65rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.08rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .75rem;
  color: var(--signal);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 2.4rem; height: 3px; background: currentColor; content: ""; }

.home-page .hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, transparent 0 56%, rgb(204 6 5 / 88%) 56% 77%, transparent 77%),
    radial-gradient(circle at 78% 24%, rgb(198 161 91 / 24%), transparent 24rem),
    var(--graphite);
  color: var(--white);
}
.home-page .hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 8vw, 7.5rem);
}
.home-page .hero .eyebrow { color: #f1d7a4; }
.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 1.6rem 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}
.hero-points { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-points span {
  padding: .65rem .9rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-left: 4px solid var(--signal);
  background: rgb(24 27 29 / 52%);
  color: rgb(255 255 255 / 88%);
  font-size: .82rem;
}
.hero-model { position: relative; min-height: 285px; display: grid; place-items: center; }
.model-shadow {
  position: absolute;
  width: 86%;
  height: 28%;
  bottom: 5%;
  border-radius: 50%;
  background: rgb(0 0 0 / 32%);
  filter: blur(18px);
}
.model-box {
  position: relative;
  width: min(430px, 92%);
  aspect-ratio: 1.85;
  border: 8px solid #e8e2d7;
  background:
    repeating-linear-gradient(90deg, transparent 0 33px, rgb(24 27 29 / 17%) 33px 35px),
    #f0ebe1;
  box-shadow: 18px 22px 0 rgb(0 0 0 / 30%), -12px -12px 0 rgb(204 6 5 / 86%);
  transform: perspective(700px) rotateY(-9deg) rotateX(2deg);
}
.model-box::before {
  position: absolute;
  inset: -18px -8px auto;
  height: 12px;
  background: var(--graphite-soft);
  content: "";
}
.model-window,
.model-door {
  position: absolute;
  bottom: 18%;
  border: 5px solid var(--graphite-soft);
  background: linear-gradient(145deg, #54817d, #c9d8d3);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 35%);
}
.model-window { left: 12%; width: 24%; height: 45%; }
.model-window:nth-child(2) { left: 44%; }
.model-door { right: 6%; width: 18%; height: 70%; background: var(--signal); }

.page-shell { padding-block: clamp(2rem, 6vw, 5rem); }
.breadcrumbs { margin: 0 0 1.5rem; color: var(--muted); font-size: .92rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: .45rem; color: var(--signal); content: "/"; }

.catalogue-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 63%, rgb(204 6 5 / 90%) 63% 82%, transparent 82%),
    var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.catalogue-page .hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 49.7%, rgb(255 255 255 / 7%) 50%, transparent 50.3%);
  background-size: 54px 100%;
  content: "";
  pointer-events: none;
}
.catalogue-page .hero > * { position: relative; z-index: 1; }
.catalogue-page .hero h1 { max-width: 12ch; }
.lead { max-width: 68ch; color: inherit; font-size: 1.08rem; }
.catalogue-page .hero .lead { color: rgb(255 255 255 / 78%); }
.hero-card,
.panel,
.catalog-card,
.configuration,
.result-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero-card { margin: 0; overflow: hidden; border: 4px solid var(--surface); transform: rotate(1.25deg); }
.hero-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-card figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .88rem; }

.pagination { display: grid; gap: .9rem; margin: 1.4rem 0 2.5rem; }
.catalog-filter {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #c9c1b6;
  border-left: 7px solid var(--signal);
  background:
    linear-gradient(120deg, rgb(204 6 5 / 7%), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.catalog-filter::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--graphite);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  content: "";
}
.filter-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.filter-kicker {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  background: var(--signal-deep);
  color: var(--white);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter-title { color: var(--graphite); font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 900; }
.filter-status {
  margin-left: auto;
  padding: .4rem .75rem;
  border: 1px solid #c9c1b6;
  background: var(--paper);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}
.pagination-pages,
.pagination-steps { display: flex; flex-wrap: wrap; gap: .55rem; }
.pagination a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--graphite);
  font-weight: 800;
  text-decoration: none;
}
.pagination a:hover,
.pagination a:focus-visible {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--white);
}
.pagination-pages .filter-option {
  min-width: 7.25rem;
  min-height: 66px;
  flex-direction: column;
  gap: .05rem;
  border: 2px solid #c9c1b6;
  padding: .5rem .9rem;
  box-shadow: 4px 4px 0 rgb(24 27 29 / 7%);
}
.filter-value { font-size: 1.08rem; font-weight: 950; line-height: 1.15; }
.filter-meta { color: inherit; font-size: .76rem; font-weight: 700; line-height: 1.2; opacity: .74; }
.catalog-filter .pagination-pages .filter-option:hover {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--white);
}
.catalog-filter .filter-option:focus-visible { outline-color: var(--signal); }
.catalog-filter[aria-label] .pagination-pages .filter-option[aria-current="page"] {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--graphite);
}
.pagination-step { min-width: 10rem; }
.catalogue-page-note { margin: -.5rem 0 1.25rem; color: var(--muted); font-weight: 700; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 5px solid var(--graphite-soft);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catalog-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  background: var(--signal);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  content: "";
  pointer-events: none;
}
.catalog-card:hover,
.catalog-card:focus-within {
  border-top-color: var(--signal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.catalog-card > a:first-child { color: inherit; text-decoration: none; }
.catalog-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-cool); }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1.05rem; }
.catalog-card-body a { color: var(--graphite); text-decoration: none; }
.catalog-card-body a:hover { color: var(--signal-deep); }
.catalog-card .meta { margin: 0; color: var(--muted); font-size: .88rem; }
.price { margin: auto 0 0; color: var(--signal-deep); font-size: 1.25rem; font-weight: 950; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}
.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.gallery figure:first-child { border-top: 7px solid var(--signal); }
.gallery figure:first-child img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: .7rem .9rem; color: var(--muted); font-size: .88rem; }
.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface-cool); }
.panel { position: sticky; top: 1rem; padding: 1.5rem; border-left: 7px solid var(--signal); }
.product-price { margin: 0; color: var(--signal-deep); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 950; }
.delivery { color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs th,
.specs td { padding: .7rem .25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:nth-child(even) { background: rgb(23 73 69 / 4%); }
.specs th { width: 45%; color: var(--muted); font-weight: 650; }
.body-copy { max-width: 75ch; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-grid section { padding: 1.15rem; border: 1px solid var(--line); border-top: 4px solid var(--petrol); background: var(--surface); }
.related-grid section:nth-child(2) { border-top-color: var(--signal); }
.related-grid section:nth-child(3) { border-top-color: var(--brass); }
.related-grid h3 { margin-bottom: .8rem; }
.related-grid ul { padding-left: 1.15rem; margin: 0; }
.related-grid li + li { margin-top: .42rem; }
.cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-left: 8px solid var(--signal);
  background: linear-gradient(110deg, var(--graphite) 0 68%, var(--petrol) 68%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta p { margin: 0; }
.cta a { color: var(--white); }

.section-heading { margin-bottom: 2rem; }
.section-heading h2 { max-width: 760px; margin: 0; }
.section-heading > p:last-child { max-width: 680px; margin: 1rem 0 0; color: var(--muted); line-height: 1.65; }
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  gap: 1.5rem;
  align-items: start;
}
.configuration { padding: clamp(1.25rem, 4vw, 2.2rem); border-top: 7px solid var(--petrol); }
.step { margin: 0; padding: 0 0 2rem; border: 0; }
.step + .step { padding-top: 2rem; border-top: 1px solid var(--line); }
.step:last-child { padding-bottom: 0; }
.step legend { width: 100%; margin-bottom: 1.15rem; padding: 0; font-size: 1.08rem; font-weight: 800; }
.step-number {
  width: 2.1rem;
  aspect-ratio: 1;
  display: inline-grid;
  margin-right: .65rem;
  place-items: center;
  background: var(--signal);
  color: var(--white);
  font-size: .78rem;
  box-shadow: 3px 3px 0 var(--graphite);
}
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.option-card { position: relative; }
.option-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option-card span {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #faf7f1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.option-card span::before {
  width: 3.5rem;
  height: 1.8rem;
  margin-bottom: .9rem;
  border: 4px solid var(--graphite-soft);
  border-top-color: var(--signal);
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgb(24 27 29 / 16%) 8px 9px);
  content: "";
}
.option-card strong { font-size: .96rem; }
.option-card small { margin-top: .25rem; color: var(--muted); }
.option-card input:checked + span { border-color: var(--signal); background: #fff0eb; box-shadow: inset 6px 0 0 var(--signal); }
.option-card input:focus-visible + span,
.check-card input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 3px; }
.option-card span:hover { border-color: var(--signal); transform: translateY(-2px); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .5rem; }
.field > span,
.range-head span,
.counter-label { color: var(--muted); font-size: .82rem; font-weight: 700; }
select,
input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
.counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.counter { display: grid; gap: .55rem; }
.counter-control {
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(2.5rem, 1fr) 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.counter-control button { min-width: 44px; min-height: 46px; align-self: stretch; border: 0; background: var(--graphite); color: var(--white); cursor: pointer; font-size: 1.2rem; }
.counter-control button:hover { background: var(--signal-deep); }
.counter-control input { min-height: 44px; padding: 0; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.counter-control input::-webkit-inner-spin-button { appearance: none; }
.range-wrap { margin-top: 1.1rem; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.range-head output { font-weight: 800; }
input[type="range"] { width: 100%; margin: .8rem 0 0; accent-color: var(--signal); }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.check-card { position: relative; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card span { min-height: 58px; display: flex; align-items: center; gap: .7rem; padding: .75rem; border: 1px solid var(--line); background: #faf7f1; cursor: pointer; }
.check-card span::before {
  width: 1.2rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #92999a;
  background: var(--white);
  color: var(--white);
  content: "✓";
  font-size: .75rem;
}
.check-card input:checked + span { border-color: var(--petrol); background: var(--petrol-soft); }
.check-card input:checked + span::before { border-color: var(--petrol); background: var(--petrol); }
.result-card { position: sticky; top: 1rem; overflow: hidden; border-top: 7px solid var(--signal); }
.result-visual { min-height: 205px; display: grid; place-items: center; padding: 2rem; background: var(--graphite); }
.cabin-view {
  --wall: #d2d1ca;
  position: relative;
  width: min(320px, 95%);
  aspect-ratio: 2.05;
  border: 7px solid #ebe7dc;
  background: repeating-linear-gradient(90deg, transparent 0 27px, rgb(24 27 29 / 14%) 27px 29px), var(--wall);
  box-shadow: 13px 15px 0 rgb(204 6 5 / 72%);
  transition: background-color .18s ease;
}
.cabin-view[data-type="sandwich"] { --wall: #e6e2d2; }
.cabin-view[data-type="timber"] { --wall: #c99d69; }
.cabin-view[data-type="beam"] { --wall: #ae7747; }
.cabin-view::before { position: absolute; inset: -14px -7px auto; height: 9px; background: var(--graphite-soft); content: ""; }
.view-window,
.view-door { position: absolute; bottom: 16%; border: 4px solid var(--graphite-soft); }
.view-window { width: 22%; height: 43%; background: #8fb2ad; }
.view-window.one { left: 10%; }
.view-window.two { left: 38%; }
.view-window.three { left: 66%; }
.cabin-view[data-windows="0"] .view-window,
.cabin-view[data-windows="1"] .view-window.two,
.cabin-view[data-windows="1"] .view-window.three,
.cabin-view[data-windows="2"] .view-window.three { opacity: .12; }
.view-door { right: 5%; width: 18%; height: 68%; background: var(--signal); }
.result-body { padding: 1.5rem; }
.result-kicker { margin: 0 0 .35rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.result-price { display: block; margin: 0; color: var(--signal-deep); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 950; line-height: 1; letter-spacing: -.05em; }
.result-note { margin: .65rem 0 1.25rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.summary { display: grid; gap: 0; margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1.2rem; }
.button { cursor: pointer; }
.button-primary,
.product-page .button { border-color: var(--signal); background: var(--signal); color: var(--white); }
.button-primary:hover,
.button-primary:focus-visible,
.product-page .button:hover,
.product-page .button:focus-visible { border-color: var(--signal-deep); background: var(--signal-deep); color: var(--white); }
.button-secondary:hover { background: var(--surface-cool); }
.info-section { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-top: 6px solid var(--signal); background: var(--surface); box-shadow: var(--shadow-sm); }
.info-card:nth-child(2) { border-top-color: var(--petrol); }
.info-card:nth-child(3) { border-top-color: var(--brass); }
.info-card .number { color: var(--signal-deep); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.info-card h3 { margin: 2.6rem 0 .65rem; font-size: 1.2rem; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.not-found-page { min-height: 100vh; display: flex; flex-direction: column; }
.not-found-main {
  width: min(1180px, calc(100% - 2rem));
  flex: 1;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vw, 4.5rem);
}
.not-found-stage {
  position: relative;
  isolation: isolate;
  min-height: min(680px, 72vh);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  border-left: 9px solid var(--signal);
  padding: clamp(1.5rem, 6vw, 5.5rem);
  background:
    linear-gradient(135deg, rgb(204 6 5 / 18%), transparent 38%),
    var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%);
}
.not-found-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 46%);
}
.not-found-copy { position: relative; z-index: 1; }
.not-found-copy h1 { max-width: 11ch; color: var(--white); font-size: clamp(3rem, 7vw, 6.4rem); }
.not-found-lead { max-width: 40rem; margin: 0; color: rgb(255 255 255 / 76%); font-size: clamp(1rem, 2vw, 1.2rem); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.not-found-actions .button { min-width: 12rem; border-width: 2px; }
.not-found-actions .not-found-primary { border-color: var(--signal); background: var(--signal); color: var(--white); }
.not-found-actions .not-found-primary:hover,
.not-found-actions .not-found-primary:focus-visible { border-color: var(--white); background: var(--signal-deep); color: var(--white); }
.not-found-actions .not-found-secondary { border-color: rgb(255 255 255 / 48%); background: transparent; color: var(--white); }
.not-found-actions .not-found-secondary:hover,
.not-found-actions .not-found-secondary:focus-visible { border-color: var(--white); background: var(--white); color: var(--graphite); }
.not-found-visual { position: relative; min-height: 27rem; display: grid; place-items: center; }
.not-found-code {
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgb(255 255 255 / 7%);
  font-size: clamp(9rem, 22vw, 19rem);
  font-weight: 950;
  letter-spacing: -.12em;
  line-height: .7;
  transform: translate(-52%, -66%);
  white-space: nowrap;
}
.not-found-module {
  position: relative;
  width: min(100%, 25rem);
  aspect-ratio: 1.65;
  border: 5px solid var(--white);
  background: linear-gradient(90deg, rgb(255 255 255 / 4%) 50%, transparent 50%);
  box-shadow: 16px 16px 0 var(--signal);
  transform: rotate(-2deg);
}
.not-found-module::before,
.not-found-module::after { content: ""; position: absolute; background: var(--brass); }
.not-found-module::before { width: calc(100% + 2.5rem); height: 4px; top: -1.35rem; left: -1.25rem; }
.not-found-module::after { width: 4px; height: calc(100% + 2.5rem); top: -1.25rem; right: -1.25rem; }
.not-found-window {
  position: absolute;
  width: 29%;
  height: 38%;
  top: 24%;
  left: 13%;
  border: 4px solid var(--white);
  background: var(--petrol);
  box-shadow: inset 0 0 0 5px var(--graphite);
}
.not-found-window::before,
.not-found-window::after { content: ""; position: absolute; background: var(--white); }
.not-found-window::before { width: 3px; height: 100%; left: calc(50% - 1px); }
.not-found-window::after { width: 100%; height: 3px; top: calc(50% - 1px); }
.not-found-door { position: absolute; width: 21%; height: 68%; right: 13%; bottom: 0; border: 4px solid var(--white); border-bottom: 0; background: var(--signal); }
.not-found-door::after { content: ""; position: absolute; width: 7px; height: 7px; top: 47%; left: 14%; border-radius: 50%; background: var(--white); }
.not-found-cross { position: absolute; width: 23%; height: 5px; top: 45%; left: 46%; background: var(--signal); transform: rotate(-45deg); }
.not-found-cross::after { content: ""; position: absolute; width: 100%; height: 100%; background: var(--signal); transform: rotate(90deg); }
.not-found-plan-label { position: absolute; right: 0; bottom: 0; color: var(--brass); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.not-found-links span { color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.not-found-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; }

.site-footer { padding: 2rem 1rem; border-top: 5px solid var(--signal); background: var(--graphite); color: rgb(255 255 255 / 72%); }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; font-size: .8rem; }
.footer-inner p { margin: 0; }

@media (max-width: 960px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-page .hero,
  .product-layout,
  .hero-inner { grid-template-columns: 1fr; }
  .panel,
  .result-card { position: static; }
  .related-grid,
  .info-grid { grid-template-columns: 1fr; }
  .not-found-stage { grid-template-columns: 1fr; }
  .not-found-visual { min-height: 21rem; }
  .hero-model { min-height: 230px; }
  .calculator-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; padding-block: .85rem; }
  .brand { width: 100%; }
  .brand-logo { width: min(100%, 28rem); }
  .main-nav,
  .site-nav { width: 100%; justify-content: flex-start; gap: .2rem 1rem; }
  .home-page .hero { background: linear-gradient(165deg, var(--graphite) 0 72%, var(--signal-deep) 72%); }
  .hero-inner { min-height: 0; padding-block: 3.5rem; }
  .hero-model { min-height: 190px; }
  .catalogue-page .hero { padding: 1.4rem; clip-path: none; }
  .catalog-grid,
  .gallery-pair,
  .type-grid,
  .field-grid,
  .extras-grid,
  .counter-grid,
  .result-actions { grid-template-columns: 1fr; }
  .page-shell { width: min(100% - 1rem, 1180px); padding-top: 1.25rem; }
  .panel { padding: 1rem; }
  .filter-heading { align-items: flex-start; }
  .filter-status { width: 100%; margin-left: 0; }
  .pagination-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pagination-pages .filter-option { min-width: 0; padding-inline: .35rem; }
  .pagination-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination-step { min-width: 0; }
  .footer-inner { flex-direction: column; }
  .not-found-main { width: min(100% - 1rem, 1180px); padding-top: .5rem; }
  .not-found-stage { min-height: 0; padding: 2rem 1.25rem 3rem; clip-path: none; }
  .not-found-copy h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .not-found-actions { display: grid; grid-template-columns: 1fr; }
  .not-found-actions .button { width: 100%; min-width: 0; }
  .not-found-visual { min-height: 17rem; }
  .not-found-code { font-size: clamp(8rem, 42vw, 12rem); }
  .not-found-module { width: min(88%, 21rem); box-shadow: 10px 10px 0 var(--signal); }
  .not-found-links { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .pagination-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination-steps { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem, 15vw, 3.2rem); }
}

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

@media print {
  .home-page .site-header,
  .home-page .hero,
  .home-page .section-heading,
  .home-page .configuration,
  .home-page .info-section,
  .home-page .site-footer,
  .home-page .result-actions { display: none; }
  .home-page .page-shell { width: 100%; padding: 0; }
  .home-page .calculator-layout { display: block; }
  .home-page .result-card { border: 0; box-shadow: none; }
  .home-page .result-visual { min-height: 180px; print-color-adjust: exact; }
}
