:root {
  --bg: #242525;
  --bg-2: #1c1d1d;
  --ink: #e5e0d8;
  --mute: #a9a093;
  --accent: #1f7a8c;
  --accent-border: #1a6a7a;
  --accent-2: #434d5d;
  --band: #5b4bd6;
  --band-2: #2a588f;
  --link: #61b7d9;
  --line: #464949;
  --container: 1140px;
  --radius: 6px;
  --font: "Open Sans", Helvetica, Arial, sans-serif;
  --display: Oswald, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--mute);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(32px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 0.8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 7px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent-border); }
.btn-primary:hover { background: #2593a8; }
.btn-secondary { background: var(--accent-2); color: var(--ink); border-color: #556379; }
.btn-secondary:hover { background: #516077; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.topbar {
  background: var(--bg-2);
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1400px, calc(100% - 32px));
}
.topbar a { color: var(--mute); }
.topbar-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search-btn {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid #2c2d2d;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  width: min(1400px, calc(100% - 32px));
  margin-inline: auto;
}
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  display: block;
}
.main-nav > ul > li > a:hover { text-decoration: none; color: var(--link); }
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 520px;
  background: #1a1b1b;
  border: 1px solid #333;
  padding: 18px 22px;
  z-index: 40;
  columns: 2;
  gap: 8px;
}
.submenu a {
  display: block;
  color: var(--mute);
  padding: 4px 0;
  font-size: 13px;
  break-inside: avoid;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { display: block; }
.submenu-title {
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 8px 0 6px;
  column-span: all;
}

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 9px;
}
.burger span { top: 19px; }
.burger span::before, .burger span::after { content: ""; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 620px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #1a1b1b url("../assets/images/hero-collage.png") right center / cover no-repeat;
}
.hero-collage .copy { padding: 64px 8% 64px 0; max-width: 520px; margin-left: auto; }
.hero-collage p { max-width: 38em; }
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
.section-title { text-align: center; padding: 36px 16px 12px; }
.bg-2 { background: var(--bg-2); }
.bg-band { background: var(--band); color: var(--ink); }
.bg-band-2 { background: var(--band-2); color: var(--ink); }
.bg-band h2, .bg-band h4, .bg-band-2 h2, .bg-band-2 h4 { color: var(--ink); }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  flex-wrap: wrap;
}

.steps {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; margin-bottom: 22px; }
.step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.card {
  background: #2a2b2b;
  border-radius: 8px;
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.circle-card { text-align: center; }
.circle-card img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-inline: auto;
}
.carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.carousel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bleed-photo {
  min-height: 146px;
  background: #111 url("../assets/images/band-spool.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 8%;
}
.switchable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.phone-mock { max-width: 280px; margin-inline: auto; }
.cover-cta {
  min-height: 420px;
  background: #111 url("../assets/images/workshop.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
.cover-cta h1 { text-shadow: 0 2px 24px #000; }
.pict img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.overlay-title {
  position: relative;
}
.overlay-title span {
  position: absolute;
  inset: auto 12px 12px 12px;
  color: #fff;
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
}

.site-footer {
  padding: 40px 0 28px;
  text-align: center;
  border-top: 1px solid #2c2d2d;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 20px; }
.footer-links a { color: var(--mute); }
.footer-social img { width: 20px; height: 20px; object-fit: contain; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.site-footer .logo img { height: 28px; margin: 8px auto; }

.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  max-width: 340px;
  background: #1a1b1b;
  border: 1px solid #333;
  padding: 16px 18px;
  z-index: 50;
}
.cookie[hidden] { display: none; }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  z-index: 40;
}
.to-top[hidden] { display: none; }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  place-items: start center;
  padding-top: 12vh;
  z-index: 60;
}
.search-overlay.open { display: grid; }
.search-overlay input {
  width: min(520px, 90vw);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--ink);
  border-radius: var(--radius);
}

.promo-card {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 220px;
  background: #1a1b1b;
  border: 1px solid #333;
  padding: 14px;
  z-index: 35;
  display: none;
}
.promo-card.open { display: block; }
.promo-card [data-promo-x] {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}
.quote-form label { display: block; color: var(--ink); margin-bottom: 12px; }
.cover-hero .grid-3 .card { background: #1a1b1bcc; }
.catalog-layout select, .rail select {
  width: 100%;
  margin: 0 0 16px;
  padding: 8px 10px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

@media (max-width: 1199px) {
  .hero-collage { grid-template-columns: 1fr; min-height: 520px; background-position: center; }
  .hero-collage .copy { margin: 0; padding: 48px 16px; background: linear-gradient(#1a1b1be6, #1a1b1bcc); max-width: none; }
  .grid-3, .grid-4, .carousel { grid-template-columns: repeat(2, 1fr); }
  .steps, .switchable { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .topbar { min-height: 0; padding: 8px 0; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
  .burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 120px;
    background: #1a1b1b;
    padding: 12px;
    z-index: 30;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; display: none; columns: 1; min-width: 0; border: 0; }
  .has-sub.open > .submenu { display: block; }
  .header-bar { position: relative; }
  .grid-3, .grid-4, .carousel { grid-template-columns: 1fr; }
  .app-split { display: none; }
  .hide-mobile { display: none; }
  .promo-card { display: none !important; }
}

.cover-hero {
  min-height: 420px;
  background: #111 center / cover no-repeat;
  display: grid;
  align-items: center;
  padding: 64px 8%;
  position: relative;
  overflow: hidden;
}
.cover-hero.center { text-align: center; place-items: center; }
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #333;
}
.spec-table th { color: var(--ink); font-weight: 600; }
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
}
.rail {
  border: 1px solid #333;
  padding: 16px;
  border-radius: 8px;
  height: fit-content;
}
.rail input, .quote-form input, .quote-form textarea {
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border: 1px solid #333;
  padding: 28px;
  border-radius: 8px;
}
.faq-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
}
.toc { list-style: decimal; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink);
}
.status { color: var(--ink); margin-top: 8px; }

@media (max-width: 1024px) {
  .catalog-layout, .article-layout, .quote-form, .faq-cols { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .submenu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }
  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

.hero-collage::before,
.cover-hero::before,
.cover-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  animation: ken 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-collage > *,
.cover-hero > *,
.cover-cta > * { position: relative; z-index: 1; }

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.card,
.circle-card,
.carousel img {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover,
.circle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px #0006;
}
.carousel img:hover { transform: scale(1.03); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.in,
main > section:first-child.reveal { opacity: 1; transform: none; }

.promo-card.open { animation: slide-up 0.35s ease; }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .hero-collage::before,
  .cover-hero::before,
  .cover-cta::before { animation: none; }
}

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

.page-viewer main,
.page-viewer main h1,
.page-viewer main h2,
.page-viewer main h3 {
  color: #fff;
}
