:root {
  --white: #ffffff;
  --mist: #eef0f2;
  --line: #d6dadf;
  --graphite: #1e2328;
  --graphite-2: #2a3036;
  --steel: #4b545d;
  --steel-2: #6b747d;
  --red: #d12027;
  --red-dark: #a8181e;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--graphite); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--graphite); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .nr { font-family: var(--mono); font-weight: 500; }
.nr { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 500 16px/1.2 var(--sans); text-decoration: none;
  border: 1px solid var(--red); background: var(--red); color: var(--white);
  border-radius: 2px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-line { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-line:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn-line.on-dark { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-line.on-dark:hover { background: var(--white); color: var(--graphite); }
.btn small { font-family: var(--mono); font-size: 12px; opacity: .75; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  transition: height .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(30,35,40,.06); }
.site-header.is-scrolled .wrap { height: 64px; }
.brand { display: block; flex: none; width: 172px; padding: 4px 0; background: var(--white); }
.brand img { width: 100%; height: auto; aspect-ratio: 1600 / 395; object-fit: contain; object-position: left center; transition: transform .25s ease; transform-origin: left center; }
.site-header.is-scrolled .brand img { transform: scale(.86); }
.brand img.is-missing { visibility: hidden; }
.brand:has(img.is-missing) { background: var(--mist); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: var(--graphite); font-weight: 500; font-size: 16px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-contact { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--mono); font-weight: 500; color: var(--graphite); text-decoration: none; font-size: 15px; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.header-phone:hover { color: var(--red); }
.menu-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--graphite); position: relative; transition: transform .2s ease, background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand { width: 148px; }
  .menu-toggle { display: inline-flex; }
  .header-contact { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav[data-open="true"] { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; gap: 0; }
  .main-nav a { min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .main-nav .nav-cta { margin-top: 16px; }
  .main-nav .nav-cta a { justify-content: center; background: var(--red); color: var(--white); border: 0; }
}
@media (min-width: 901px) { .main-nav .nav-cta { display: none; } }

/* Image frames: tinted block while image is missing */
.frame { position: relative; background: #d9dde1; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img.is-missing { visibility: hidden; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  min-height: min(720px, calc(100vh - var(--header-h)));
}
.hero-text {
  padding: clamp(48px, 7vw, 104px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero-place { font-family: var(--mono); font-size: 14px; color: var(--steel-2); margin-bottom: 28px; }
.hero h1 { font-size: clamp(34px, 3.5vw, 52px); font-weight: 600; max-width: 15em; }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-spec {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0;
  border-top: 1px solid var(--line); margin: 0;
}
.hero-spec div { padding: 16px 16px 0 0; }
.hero-spec dt { font-size: 14px; color: var(--steel-2); }
.hero-spec dd { margin: 2px 0 0; color: var(--graphite); font-weight: 500; }
.hero-media { min-height: 420px; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-position: 60% 55%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3.6; }
  .hero-media img { object-position: 50% 70%; }
  .hero-text { padding: 36px var(--gutter) 40px; gap: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-mist { background: var(--mist); }
.section-dark { background: var(--graphite); color: #c3c9cf; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px;
  align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(30px, 3.2vw, 46px); max-width: 14em; }
.section-head p { max-width: 38em; margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* Category index (home) */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 40px 24px; }
.cat-list li:nth-child(1) { grid-column: 1 / span 7; }
.cat-list li:nth-child(2) { grid-column: 8 / span 5; padding-top: 120px; }
.cat-list li:nth-child(3) { grid-column: 1 / span 5; }
.cat-list li:nth-child(4) { grid-column: 6 / span 7; padding-top: 64px; }
.cat-card { display: block; text-decoration: none; color: inherit; }
.cat-card .frame { aspect-ratio: 3 / 2; }
.cat-card .frame img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover .frame img { transform: scale(1.035); }
.cat-card:hover h3 { color: var(--red); }
.cat-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cat-meta h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; transition: color .2s; }
.cat-meta .nr { font-size: 14px; white-space: nowrap; }
.cat-card p { margin: 12px 0 0; font-size: 16px; max-width: 34em; }
@media (max-width: 900px) {
  .cat-list { grid-template-columns: 1fr; gap: 40px; }
  .cat-list li:nth-child(n) { grid-column: auto; padding-top: 0; }
}

/* Products (home) */
.products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.product .frame { aspect-ratio: 1 / 1; background: #e3e6e9; }
.product figcaption { padding-top: 16px; }
.product h3 { font-size: 20px; font-weight: 500; }
.product p { margin: 6px 0 0; font-size: 16px; }
.product .nr { font-size: 14px; display: block; margin-bottom: 6px; }
.products .product:nth-child(2) { margin-top: 72px; }
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; gap: 40px; }
  .products .product:nth-child(2) { margin-top: 0; }
}

/* Packaging table */
.pack { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 24px 48px; }
.pack h3 { font-size: 24px; font-weight: 500; }
.pack-intro p { margin-top: 12px; font-size: 16px; }
@media (max-width: 900px) { .pack { grid-template-columns: 1fr; } }

/* Tables */
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table caption { text-align: left; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-size: 14px; font-weight: 500; color: var(--steel-2); border-bottom-color: var(--graphite); padding-top: 0; }
.spec-table td { color: var(--graphite); overflow-wrap: anywhere; }
.spec-table .col-nr { width: 6.5em; }
.spec-table td.nr, .spec-table td.qty { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.spec-table td.nr { color: var(--red); }
.spec-table td.qty { text-align: right; padding-right: 0; color: var(--graphite); }
.spec-table th.qty { text-align: right; padding-right: 0; }
.spec-table tbody tr { transition: background-color .15s; }
.spec-table tbody tr:hover { background: rgba(209,32,39,.04); }

/* Contract moulding block */
.contract { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 0; }
.contract .frame { aspect-ratio: 3 / 2; min-height: 100%; }
.contract-text { padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.contract-text h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 24px; }
.contract-text .quote { color: var(--white); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; border-left: 3px solid var(--red); padding-left: 20px; margin: 0 0 28px; }
.contract-steps { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.contract-steps li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
.contract-steps b { color: var(--white); font-weight: 500; }
@media (max-width: 900px) {
  .contract { grid-template-columns: 1fr; }
  .contract .frame { min-height: 0; }
  .contract-text { padding: 36px var(--gutter) 8px; }
  .contract-steps li { grid-template-columns: 1fr; gap: 2px; }
}

/* Company block */
.company { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 32px 64px; align-items: start; }
.company .frame { aspect-ratio: 3 / 2; }
.company h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 24px; }
.company-text p { max-width: 36em; }
.company-years { font-size: clamp(56px, 7vw, 104px); font-weight: 300; color: var(--graphite); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.company-years span { font-size: 0.24em; letter-spacing: 0; font-weight: 500; color: var(--steel); display: block; margin-top: 12px; line-height: 1.3; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphite); font-weight: 500; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--red); }
@media (max-width: 900px) { .company { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px 64px; }
.contact-grid h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 20px; }
.people { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.people li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.people strong { color: var(--graphite); font-weight: 500; }
.people a { font-family: var(--mono); font-weight: 500; color: var(--graphite); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.people a:hover { color: var(--red); }
.address { font-style: normal; color: var(--graphite); line-height: 1.7; }
.address a { color: var(--graphite); }
.address .mono { color: var(--steel); font-size: 15px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; background: var(--white); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); }
.section-mist .form { border-color: transparent; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: var(--graphite); }
.field input, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--graphite);
  border: 1px solid #b9c0c7; border-radius: 2px; padding: 12px 14px; min-height: 48px; background: var(--white); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form [role="status"] { font-size: 15px; color: var(--graphite); font-weight: 500; }
.form [role="status"]:empty { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* Page header (subpages) */
.page-head { border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 24px 48px; align-items: end; }
.page-head h1 { font-size: clamp(38px, 5vw, 68px); }
.page-head p { margin: 0; max-width: 38em; }
.crumbs { grid-column: 1 / -1; font-family: var(--mono); font-size: 14px; color: var(--steel-2); }
.crumbs a { color: var(--steel-2); }
@media (max-width: 900px) { .page-head .wrap { grid-template-columns: 1fr; } }

/* Offer page */
.offer-index { position: sticky; top: 64px; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.offer-index ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.offer-index ul::-webkit-scrollbar { display: none; }
.offer-index a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 0; margin-right: 20px; text-decoration: none; color: var(--graphite); white-space: nowrap; font-weight: 500; font-size: 15px; }
.offer-index a .nr { font-size: 13px; }
.offer-index a:hover { color: var(--red); }
.category { padding: clamp(56px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.category:nth-of-type(even) { background: var(--mist); }
.category-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 40px 64px; align-items: start; }
.category-aside { position: sticky; top: 140px; }
.category-aside .frame { aspect-ratio: 3 / 2; margin-bottom: 24px; }
.category h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.category-aside p { font-size: 16px; }
.category-count { font-family: var(--mono); font-size: 14px; color: var(--steel-2); }
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-aside { position: static; }
}

/* Offer cta band */
.cta-band { background: var(--graphite); color: #c3c9cf; padding: clamp(48px, 6vw, 80px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 2.6vw, 36px); max-width: 20em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-band .actions, .cta-band .actions .btn { width: 100%; } }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 48px 64px; align-items: start; }
.about-grid .lead { font-size: clamp(20px, 1.8vw, 24px); color: var(--graphite); line-height: 1.5; max-width: 30em; }
.about-photos { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); }
.about-photos .frame:nth-child(1) { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.about-photos .frame:nth-child(2) { grid-column: 8 / span 5; aspect-ratio: 4 / 5; margin-top: 96px; }
.about-photos figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--graphite); font-size: 14px; padding: 8px 14px 0 0; }
.range { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.range li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.range a { color: var(--graphite); text-decoration: none; font-weight: 500; }
.range a:hover { color: var(--red); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { grid-template-columns: 1fr; }
  .about-photos .frame:nth-child(n) { grid-column: auto; margin-top: 0; aspect-ratio: 3 / 2; }
}

/* Footer */
.site-footer { background: var(--graphite); color: #aab2ba; font-size: 15px; padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0,4fr) repeat(3, minmax(0,2.6fr)); gap: 40px 32px; }
.footer-logo { width: 172px; aspect-ratio: 1600 / 395; margin-bottom: 20px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.footer-logo img.is-missing { visibility: hidden; }
.site-footer h2 { color: var(--white); font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a, .site-footer address a { color: #d5dade; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .mono { font-size: 14px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.footer-bottom img { height: 18px; width: auto; display: inline-block; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--graphite); border-top: 1px solid rgba(255,255,255,.1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; }
  .mobile-bar a:first-child { background: var(--red); }
  .mobile-bar svg { width: 18px; height: 18px; flex: none; }
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
