:root {
  --ink: #122033;
  --muted: #53647a;
  --navy: #07182e;
  --navy-2: #0c2f5c;
  --blue: #1357c8;
  --blue-2: #1d6dff;
  --cyan: #5ec8ff;
  --ice: #e7f0fb;
  --paper: #f4f7fb;
  --line: rgba(18, 32, 51, 0.12);
  --white: #fff;
  --danger: #a42323;
  --shadow: 0 24px 60px rgba(7, 24, 46, 0.12);
  --radius: 22px;
  --header: 76px;
  --font: Manrope, "Segoe UI", sans-serif;
  --display: Unbounded, Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; max-width: 100%; }
input, textarea, select { min-width: 0; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, .logo-name { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: break-word; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
::selection { background: #cfe0ff; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-2), var(--cyan));
  z-index: 80;
}

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2, .hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 0 0 14px; }
.section-head p, .lead { color: var(--muted); font-size: 18px; }
.section-white { background: var(--white); }
.narrow { max-width: 760px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #0e4cae; }
.btn-light { background: white; color: var(--navy); }
.btn-line { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.45); }
.btn-dark { background: var(--navy); color: white; }
.btn-ghost { background: white; color: var(--navy); border-color: var(--line); }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  color: white;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.header.is-stuck {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(7, 24, 46, 0.06);
}
.header .container { display: flex; align-items: center; gap: 22px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}
.logo-name { font-size: 18px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; font-weight: 650; font-size: 15px; }
.header-phone { text-decoration: none; font-weight: 800; white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span:before { top: -7px; }
.nav-toggle span:after { top: 7px; }

.hero {
  position: relative;
  padding: 132px 0 72px;
  color: white;
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(60, 150, 255, 0.38), transparent 55%),
    linear-gradient(180deg, #071525 0%, #0b2c5c 58%, #07182e 100%);
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000 20%, transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: center; }
.hero h1 span { color: var(--cyan); }
.lead { color: rgba(255, 255, 255, 0.78); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.stats strong { display: block; font-family: var(--display); font-size: 22px; }
.stats span { color: rgba(255, 255, 255, 0.68); font-size: 13px; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-copy > * { animation: rise 0.8s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.float-card {
  position: absolute;
  left: 16px;
  bottom: 28px;
  background: rgba(7, 24, 46, 0.82);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 16px;
  min-width: 180px;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 16px; line-height: 1.3; }
.float-card span { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.float-card.alt { left: auto; right: 18px; bottom: auto; top: 18px; animation-delay: -2s; }

.marquee { background: var(--navy); color: #d7e7ff; overflow: hidden; max-width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: ticker 36s linear infinite; }
.marquee span { font-weight: 700; letter-spacing: 0.04em; }
.marquee i { color: var(--cyan); font-style: normal; }

.product-grid, .object-grid, .reasons, .kit-grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: 1.15fr 0.85fr; }
.product-card, .object-card, .reason, .kit-card, .calc-card, .form-box, .faq-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 24, 46, 0.05);
}
.product-card { overflow: hidden; }
.product-card img { width: 100%; height: 280px; object-fit: cover; }
.product-copy, .object-card div, .reason, .kit-card { padding: 22px; }
.product-copy h3, .object-card h3 { margin-bottom: 8px; font-size: 28px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.meta li { background: var(--ice); color: var(--navy-2); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }

.fill-list { display: grid; gap: 18px; }
.fill-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(7, 24, 46, 0.05);
}
.fill-panel img { height: 240px; width: 100%; object-fit: cover; border-radius: 16px; }
.fill-panel ul { margin: 0; padding-left: 18px; }
.fill-tagline { color: var(--muted); font-weight: 700; margin-bottom: 8px; }

.cmp-wrap { margin-top: 22px; max-width: 100%; background: white; border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { font-size: 14px; }
.cmp td:first-child, .cmp th:first-child { font-weight: 800; }

.anatomy-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.anatomy-photo {
  margin: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 24, 46, 0.05);
}
.anatomy-photo img { width: 100%; height: 360px; object-fit: contain; display: block; background: #eceff4; }
.anatomy-photo figcaption {
  padding: 14px 18px 16px;
  font-weight: 700;
  font-family: var(--display);
}

.object-grid { grid-template-columns: 1.4fr 1fr; }
.object-card { overflow: hidden; }
.object-card img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.6s ease; }
.object-card:hover img { transform: scale(1.04); }
.object-card.wide { grid-row: span 2; }
.object-grid .object-card:last-child { grid-column: 1 / -1; }
.object-grid .object-card:last-child img { height: 320px; }
.object-card.wide img { height: 460px; }
.object-card p { color: var(--muted); margin-bottom: 0; }

.calc-section { background:
  radial-gradient(700px 300px at 0% 0%, rgba(29, 109, 255, 0.16), transparent 60%),
  var(--paper); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr); gap: 18px; align-items: start; }
.calc-layout > * { min-width: 0; }
.calc-card, .calc-summary { padding: 22px; }
.calc-summary {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
}
.sum-kicker, .step-kicker { margin: 0 0 8px; color: var(--cyan); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.step-kicker { color: var(--blue); }
.calc-card h3, #step-title { margin: 8px 0 16px; font-size: 28px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; list-style: none; padding: 0; margin: 0 0 8px; }
.stepper button {
  border: 0;
  background: var(--ice);
  color: var(--navy);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 800;
  font-size: 13px;
}
.stepper button.is-current { background: var(--blue); color: white; }
.stepper button.is-done { background: #d9e8ff; }
.calc-error, .form-error, .sum-warn {
  background: #fff1f1;
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.sum-warn { background: rgba(255, 180, 180, 0.12); color: #ffd0d0; }

.roof-types, .dims, .thick-grid, .services { display: grid; gap: 12px; }
.roof-types { grid-template-columns: repeat(3, 1fr); }
.roof-card, .service {
  text-align: left;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 16px;
  padding: 12px;
}
.roof-card svg { width: 100%; height: 78px; display: block; background: #f4f7fb; border-radius: 10px; }
.draft-sheet { fill: none; stroke: #122033; stroke-width: 0.7; }
.draft-ground, .draft-tick { stroke: #122033; stroke-width: 1.15; }
.draft-wall { stroke: #122033; stroke-width: 1.25; }
.draft-roof { fill: none; stroke: #122033; stroke-width: 1.55; stroke-linejoin: miter; }
.draft-roof-th { fill: none; stroke: #122033; stroke-width: 0.9; }
.draft-roof-slab { fill: none; stroke: #122033; stroke-width: 1.45; }
.draft-axis { stroke: #1357c8; stroke-width: 0.7; stroke-dasharray: 5 2 1 2; }
.draft-dim { stroke: #1357c8; stroke-width: 0.8; }
.roof-card strong, .service strong { display: block; }
.roof-card small, .service small, .hint, .sum-note, .fine { color: var(--muted); }
.roof-card.is-selected, .service:has(input:checked), .chip.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 87, 200, 0.15);
}
.dims, .thick-grid { grid-template-columns: 1fr 1fr; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 800; }
.field, .step, .spin { min-width: 0; }
.field { display: grid; gap: 6px; font-weight: 700; }
#calc-form .dims .field:last-child { grid-column: 1 / -1; }
.field > span { font-size: 14px; }
.spin { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.spin button, .wizard-nav button:not(.btn-primary), .text-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 12px;
  min-height: 46px;
  font-weight: 800;
}
.spin input, .field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:disabled { background: #eef2f6; color: #8ea0b5; }
.is-off { opacity: 0.55; }
.area-readout {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  background: var(--ice);
  border-radius: 16px;
  padding: 14px 16px;
}
.area-readout strong { font-family: var(--display); font-size: 40px; line-height: 1; }
.text-btn { margin-top: 8px; padding: 0 14px; color: var(--blue); border-color: transparent; background: transparent; }
.elev {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 12px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.elev-sheet { fill: none; stroke: #122033; stroke-width: 1.1; }
.elev-grid line { stroke: rgba(18, 32, 51, 0.07); stroke-width: 0.6; }
.elev-ground { stroke: #122033; stroke-width: 1.3; }
.elev-wall { fill: url(#elev-hatch-wall); stroke: #122033; stroke-width: 1.35; }
.elev-roof { fill: url(#elev-hatch-roof); fill-opacity: 0.55; stroke: #122033; stroke-width: 1.5; stroke-linejoin: miter; }
.elev-center { stroke: #1357c8; stroke-width: 0.85; stroke-dasharray: 6 2.5 1.2 2.5; }
.elev-ext { stroke: #1357c8; stroke-width: 0.8; }
.elev-dim { stroke: #1357c8; stroke-width: 1; }
.elev-title { fill: #53647a; font-size: 11px; font-family: var(--font); letter-spacing: 0.04em; }
.elev-dim-text { fill: #1357c8; font-size: 11px; font-family: var(--font); font-weight: 700; }
.thick-grid > .field { align-content: start; }
.chips, .swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.chip {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 800;
}
.chip.is-selected { background: var(--blue); color: white; }
.color-block { margin-top: 16px; }
.color-block h4 { margin: 0 0 4px; }
.color-name { margin: 0 0 8px; font-weight: 800; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: var(--c);
  padding: 0;
}
.swatch.is-metal { background: linear-gradient(135deg, #fff, var(--c) 42%, #6d6d6d); }
.swatch.is-wood {
  background:
    repeating-linear-gradient(90deg, rgba(90, 50, 20, 0.25) 0 2px, transparent 2px 11px),
    linear-gradient(#e0b27a, #a86b3c);
}
.swatch.is-selected { outline: 2px solid var(--blue); outline-offset: 2px; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.service input { width: 18px; height: 18px; margin-top: 3px; }
.wizard-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.wizard-nav .btn { min-width: 0; flex: 1 1 140px; }
.wizard-nav .btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  border-radius: 12px;
  min-height: 46px;
  font-weight: 800;
}
.wizard-nav .btn-primary:hover { background: #0e4cae; color: #fff; }
.sum { display: grid; gap: 8px; margin: 12px 0; }
.sum div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 8px; }
.sum dt { color: rgba(255, 255, 255, 0.62); min-width: 0; }
.sum dd { margin: 0; text-align: right; font-weight: 800; max-width: 64%; min-width: 0; overflow-wrap: anywhere; }
.sum-note, .calc-summary .fine { color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.calc-note { margin-top: 18px; color: var(--muted); }
.success-list { padding-left: 18px; }
.success-list li { margin: 6px 0; }

.kit-grid { grid-template-columns: 1.1fr 1.1fr 0.8fr; }
.kit-card img { width: 100%; height: 220px; object-fit: cover; }
.kit-card h3 { margin-bottom: 6px; }
.screw {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 7px, #1357c8 8px 10px, transparent 11px),
    linear-gradient(#123, #123) center 18px / 4px 28px no-repeat,
    linear-gradient(#dce9f8, #dce9f8);
  margin-bottom: 8px;
}

.production { background: var(--navy); color: white; }
.production .kicker { color: var(--cyan); }
.production .section-head p { color: rgba(255, 255, 255, 0.72); }
.prod-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.prod-grid img { width: 100%; height: 460px; object-fit: cover; border-radius: 28px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.step-list b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(94, 200, 255, 0.14);
  color: var(--cyan);
}
.reasons { grid-template-columns: repeat(4, 1fr); }
.reason strong { display: block; margin-bottom: 6px; font-size: 18px; }
.reason p { margin: 0; color: var(--muted); }

.request-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.form-box { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; }
.form-success { padding: 12px 0 0; }
.form-success h3 { font-size: 28px; }

.faq { display: grid; gap: 10px; }
.faq-item { padding: 0 18px; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  min-height: 64px;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-q:after { content: "+"; font-family: var(--display); color: var(--blue); font-size: 24px; }
.faq-item.is-open .faq-q:after { content: "–"; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 16px; color: var(--muted); }

.footer { background: #06111f; color: rgba(255, 255, 255, 0.78); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.footer a { color: white; }
.footer h3 { color: white; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }

.dialog { border: 0; padding: 0; background: transparent; width: min(520px, calc(100% - 24px)); }
.dialog::backdrop { background: rgba(7, 18, 36, 0.62); }
.dialog-card { background: white; border-radius: 24px; padding: 22px; position: relative; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ice);
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(7, 24, 46, 0.08);
}
.noscript-note { background: #fff4d8; padding: 10px 16px; text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

.policy { padding: 120px 0 72px; }
.policy h1 { font-size: clamp(32px, 4vw, 52px); }
.policy h2 { font-size: 24px; margin-top: 28px; }
.policy-file { margin: 8px 0 24px; }
.policy-file a { color: var(--blue); text-decoration: underline; }
.policy-body h2 { font-size: 24px; margin-top: 28px; }
.policy-body h3 { font-size: 18px; margin-top: 18px; }
.policy-body p { margin-bottom: 12px; }
.policy-body ul, .policy-body ol { padding-left: 1.25em; margin: 0 0 12px; }
.policy-body a { color: var(--blue); text-decoration: underline; }
.policy-body blockquote { margin: 12px 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }
.policy-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.policy-body th, .policy-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: white;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.cookie-bar p { margin: 0; max-width: 720px; font-size: 14px; }
.cookie-bar a { color: var(--cyan); }
@media (min-width: 721px) {
  .cookie-bar { bottom: 16px; left: 24px; right: auto; width: min(720px, calc(100% - 48px)); }
}

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  50% { transform: translateY(-8px); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .header-phone { display: none; }
  .nav { gap: 12px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .header .btn-primary { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: white;
    color: var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .header-phone { display: none; }
  .hero-grid, .product-grid, .anatomy-photos, .fill-panel, .calc-layout, .prod-grid, .request-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .reasons, .stats { grid-template-columns: 1fr 1fr; }
  .object-grid, .kit-grid { grid-template-columns: 1fr; }
  .object-card.wide { grid-row: auto; }
  .object-grid .object-card:last-child { grid-column: auto; }
  .object-grid .object-card:last-child img { height: 220px; }
  .object-card.wide img, .hero-photo img, .prod-grid img { height: 280px; min-height: 0; }
  .calc-summary { position: static; }
  .hero { padding-top: 112px; }
}

@media (max-width: 720px) {
  .container { width: min(1160px, calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .section-head h2, .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .section-head p, .lead { font-size: 16px; }
  .roof-types, .dims, .thick-grid, .form-grid, .reasons { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 74px; }
  .float-card { left: 12px; min-width: 0; max-width: calc(100% - 24px); }
  .float-card.alt { display: none; }
  .hero-photo img { height: 220px; }
  .anatomy-photo img { height: 240px; }
  .cmp thead { display: none; }
  .cmp tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp td { display: block; width: auto; border: 0; padding: 0; }
  .cmp td:first-child { grid-column: 1 / -1; font-size: 16px; }
  .cmp td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .faq-q { font-size: 16px; }
  .calc-card, .calc-summary, .form-box, .dialog-card { padding: 16px; }
  .area-readout strong { font-size: 32px; }
}

@media (max-width: 400px) {
  .hero { padding-top: 104px; }
  .stats strong { font-size: 20px; }
  .product-copy h3, .object-card h3, .calc-card h3, #step-title, .form-success h3 { font-size: 22px; }
  .hero-actions .btn, .wizard-nav .btn, .mobile-bar .btn { padding-inline: 14px; }
}

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