/* Extracted from index.html for 1:1 chrome on /kupit-steklo/ */

/* =========================================================
   МосСтеклоМонтаж — Design System
   Editorial Architectural Glass / 2026
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  /* Color — Ink & Paper palette with a single warm accent */
  --ink-1000: #0B0D10;       /* near-black, deep page bg */
  --ink-900: #14171C;        /* surface 1 */
  --ink-800: #1C2027;        /* surface 2 */
  --ink-700: #2A2F38;        /* surface 3 / borders */
  --ink-500: #5A6270;        /* secondary text on dark */
  --ink-300: #9CA3AF;        /* tertiary */

  --paper-1000: #F5F3EE;     /* primary light bg */
  --paper-900: #EDEAE3;      /* surface */
  --paper-800: #E1DDD3;      /* divider */
  --paper-700: #C8C2B5;      /* muted */

  --brass-600: #A8896A;      /* primary accent — brushed brass */
  --brass-500: #B89A7A;      /* hover */
  --brass-300: #D7C2A4;      /* tint */

  --crystal-500: #7DA3B5;    /* secondary cool accent — chilled glass */

  --white: #FFFFFF;
  --black: #000000;

  /* Typography */
  --ff-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --ff-body:    'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --ff-tech:    'IBM Plex Mono', ui-monospace, 'Cascadia Code', monospace;
  /* Крупный hero H1: современный гротеск, максимальная читаемость по кириллице */
  --ff-hero:    'Onest', 'Source Sans 3', system-ui, sans-serif;

  --fs-7xl: clamp(3.5rem, 8vw, 7.5rem);
  --fs-6xl: clamp(2.75rem, 6vw, 5.25rem);
  --fs-5xl: clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-4xl: clamp(1.75rem, 3vw, 2.5rem);
  --fs-3xl: clamp(1.375rem, 2vw, 1.75rem);
  --fs-2xl: 1.25rem;
  --fs-xl:  1.125rem;
  --fs-lg:  1rem;
  --fs-md:  0.9375rem;
  --fs-sm:  0.8125rem;
  --fs-xs:  0.6875rem;

  --lh-tight: 1.02;
  --lh-snug:  1.15;
  --lh-base:  1.5;
  --lh-loose: 1.7;

  --tracking-display: -0.02em;
  --tracking-tech:    0.1em;
  --tracking-body:    0;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 9rem);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-mid:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  220ms;
  --dur-base:  450ms;
  --dur-slow:  900ms;

  /* Border & Shadow */
  --border-hairline: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  --shadow-soft: 0 30px 60px -20px rgba(11, 13, 16, 0.18);
  --shadow-deep: 0 60px 120px -30px rgba(11, 13, 16, 0.45);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ---------- Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4.75rem, 11vw, 6rem);
}
body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--ink-1000);
  background: var(--paper-1000);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

/* Subtle paper grain that defines premium feel without weighing down perf */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body.theme-dark::before { mix-blend-mode: screen; opacity: 0.06; }

::selection { background: var(--brass-600); color: var(--paper-1000); }

/* ---------- Typography ---------- */
.t-display, h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-feature-settings: "kern" 1, "liga" 1;
}
h1 { font-size: var(--fs-7xl); }
h2 {
  font-family: var(--ff-hero);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-feature-settings: "kern" 1, "liga" 1;
}

h3, h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
}
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }

.t-tech, .eyebrow {
  font-family: var(--ff-tech);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
}

p { color: inherit; }
.lead { font-size: var(--fs-xl); line-height: var(--lh-loose); max-width: 64ch; }

/* Italic display variant — for editorial pulls */
.t-display-italic {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.section h2 .t-display-italic,
.showcase__title .t-display-italic {
  font-family: var(--ff-hero);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.026em;
}

/* ---------- Theme variants ---------- */
.theme-dark {
  background: var(--ink-1000);
  color: var(--paper-1000);
}
.theme-dark .surface { background: var(--ink-900); }
.theme-paper {
  background: var(--paper-1000);
  color: var(--ink-1000);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.container--wide { max-width: 1680px; }
.container--narrow { max-width: 1080px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 5rem); }

.divider-line {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    color-mix(in srgb, currentColor 22%, transparent),
    transparent);
}

/* Architectural hairline rule used as section meta */
.section-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.section-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.section-meta__index {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-wrap { white-space: nowrap; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

.grid { display: grid; gap: var(--gutter); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

.uppercase { text-transform: uppercase; }
.center { text-align: center; }

/* =========================================================
   МосСтеклоМонтаж — Components
   ========================================================= */

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper-1000) 74%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--paper-800);
  padding: 0.6rem 0;
}
.theme-dark .site-header.is-scrolled,
.site-header.is-on-dark.is-scrolled {
  background: color-mix(in srgb, var(--ink-1000) 70%, transparent);
  border-bottom-color: var(--ink-700);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.brand__mark {
  width: 36px; height: 36px;
  position: relative;
  display: inline-block;
}
.brand__mark svg { width: 100%; height: 100%; }

/* Primary nav */
.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.primary-nav__item {
  position: relative;
  padding: 0.35rem 0;
}
/* V2: mega-menu anchors to fixed header, not to the nav item */
.primary-nav__item--mega-v2 {
  position: static;
}
.primary-nav__link {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.primary-nav__item:hover .primary-nav__link::after,
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.chevron { width: 10px; height: 10px; transition: transform var(--dur-fast); }
.primary-nav__item:hover .chevron { transform: rotate(180deg); }

/* Mega menu — мостик только у открытого «Каталог» (см. layout-responsive.css) */
/* =====================================================
   MEGA-MENU V2 — dark editorial, landscape tiles
   ===================================================== */
.mega-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}
.primary-nav__item.is-mega-open .mega-menu,
.primary-nav__item:hover .mega-menu,
.primary-nav__item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* V2 panel — dark full-width dropdown */
.mega-menu--v2 {
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  width: 100vw;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0;
  background-color: #0d1117;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.60);
  color: #f0f4f8;
}
.mega-menu--v2.mm2--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mm2-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 340px;
  max-height: 80vh;
  overflow: hidden;
  max-width: var(--container, 1440px);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
  padding-inline: var(--gutter, 1.5rem);
}

/* LEFT column */
.mm2-left {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  overflow-y: auto;
  scrollbar-width: thin;
  background: transparent;
  margin-inline-start: calc(-1 * var(--gutter, 1.5rem));
  padding-inline-start: var(--gutter, 1.5rem);
}

.mm2-section-head {
  font-size: var(--fs-xs, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0 1.25rem 0.75rem;
}

.mm2-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  gap: 0.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.58);
  border-left: 2px solid transparent;
  transition:
    background var(--dur-fast, 150ms),
    border-color var(--dur-fast, 150ms),
    color var(--dur-fast, 150ms);
}
.mm2-row:hover,
.mm2-row--active {
  background: rgba(255,255,255,0.05);
  border-left-color: rgba(255,255,255,0.80);
  color: #fff;
}
.mm2-row--all {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.mm2-row--all:hover {
  border-left-color: rgba(255,255,255,0.80);
  color: #fff;
}

.mm2-row__name {
  font-size: var(--fs-md);
  font-weight: 500;
  flex: 1;
  line-height: 1.3;
}
.mm2-row__count { display: none; }

.mm2-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.5rem 1.25rem;
}

/* RIGHT panel area */
.mm2-right {
  padding: 2rem 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
  background: transparent;
}

.mm2-panel { display: none; }
.mm2-panel--active { display: block; }

.mm2-panel-label {
  font-size: var(--fs-xs, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.25rem;
}

/* Tile grid — 4 columns, landscape */
.mm2-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
}
.mm2-tiles--solo {
  grid-template-columns: 260px;
}
.mm2-tiles--article {
  grid-template-columns: repeat(3, 1fr);
}

/* Tile card — landscape with text below */
.mm2-tile {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: unset;
  background: transparent;
  overflow: visible;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease-out, ease);
}
.mm2-tile:hover { transform: translateY(-3px); }

.mm2-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  background: #1a2130;
  flex-shrink: 0;
}

.mm2-tile__label {
  position: static;
  background: none;
  padding: 0.5rem 0.1rem 0;
  font-size: 0.72rem;
  font-style: normal;
  color: rgba(255,255,255,0.60);
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color 150ms ease;
}
.mm2-tile:hover .mm2-tile__label { color: #fff; }
.mm2-tile__label em { font-style: normal; }

/* CTA tile — same layout as regular tile: image on top, text below */
.mm2-tile--cta {
  aspect-ratio: unset;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: unset;
}
.mm2-tile--cta img {
  position: static;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  opacity: 1;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}
.mm2-tile--cta:hover img { opacity: 0.85; }
.mm2-tile--cta:hover { transform: translateY(-3px); border-color: transparent; }
.mm2-tile__cta-body {
  position: static;
  z-index: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(255,255,255,0.70);
  padding: 0.5rem 0.1rem 0;
}
.mm2-tile--cta:hover .mm2-tile__cta-body { color: #fff; }
.mm2-tile__cta-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-300);
}
.mm2-tile__cta-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: inherit;
}
.mm2-tile__cta-sub {
  font-size: 0.68rem;
  opacity: 0.75;
  line-height: 1.3;
}
.mm2-tile__cta-arrow {
  font-size: 0.68rem;
  color: var(--brass-300);
  margin-top: 0.1rem;
}

/* Article tile */
.mm2-tile--article img { aspect-ratio: 16 / 9; }
.mm2-tile--article .mm2-tile__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.70);
}

/* Panel switch animation */
.mm2-panel { animation: none; }
.mm2-panel--active {
  animation: mm2FadeIn 160ms var(--ease-out, ease) both;
}
@keyframes mm2FadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Header right */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.phone-link {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.phone-link__num { font-family: var(--ff-body); font-size: var(--fs-md); letter-spacing: 0; text-transform: none; font-weight: 500; }
.site-header__phones .phone-link { flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.phone-link__label { font-size: 0.65rem; letter-spacing: 0.04em; text-transform: none; opacity: 0.7; font-family: var(--ff-body); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle__bars {
  display: inline-block;
  width: 22px; height: 14px;
  position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.menu-toggle__bars::before { top: 2px; }
.menu-toggle__bars::after  { top: 10px; }
.menu-toggle.is-open .menu-toggle__bars::before { top: 6px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bars::after  { top: 6px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper-1000);
  z-index: 99;
  padding: 6rem var(--gutter) 2rem;
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer__list {
  display: flex; flex-direction: column;
  gap: 0.25rem;
}
.mobile-drawer__link {
  display: block;
  padding: 1rem 0;
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-800);
  letter-spacing: -0.015em;
}
.mobile-drawer__group-title {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 1.25rem 0 0.5rem;
}

/* When header is over a dark hero */
.site-header.is-on-dark { color: var(--paper-1000); }

@media (max-width: 1280px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink-1000);
  color: var(--paper-1000);
}
.btn--primary:hover { background: var(--brass-600); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--ink-1000);
  color: var(--paper-1000);
  border-color: var(--ink-1000);
}
.theme-dark .btn--primary { background: var(--paper-1000); color: var(--ink-1000); }
.theme-dark .btn--primary:hover { background: var(--brass-300); }

.btn--inline {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}
.btn--inline:hover { color: var(--brass-600); }

.btn--lg { padding: 1.15rem 2rem; }

.site-footer {
  background: var(--ink-1000);
  color: var(--paper-1000);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  position: relative;
  z-index: 2;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--ink-700);
}
.site-footer__brand-line {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 2rem;
}
.site-footer__col h6,
.site-footer__col .site-footer__heading {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.site-footer__col a {
  display: block;
  padding: 0.4rem 0;
  font-size: var(--fs-md);
  color: color-mix(in srgb, var(--paper-1000) 80%, transparent);
  transition: color var(--dur-fast);
}
.site-footer__col a:hover { color: var(--brass-300); }
.site-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--ink-300);
}
.site-footer__big {
  font-family: var(--ff-hero);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: color-mix(in srgb, var(--paper-1000) 9%, transparent);
  margin-top: 4rem;
  text-align: left;
  text-wrap: balance;
  user-select: none;
}
@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===================== FORM ===================== */
.form {
  display: grid;
  gap: 1rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  position: relative;
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  padding: 1.1rem 1rem 0.5rem;
  font-size: var(--fs-md);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus { border-color: var(--brass-600); }
.field__label {
  position: absolute;
  top: 0.55rem; left: 1rem;
  font-size: var(--fs-sm);
  color: color-mix(in srgb, currentColor 60%, transparent);
  pointer-events: none;
  font-family: var(--ff-tech);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.625rem;
}
.field__textarea { min-height: 120px; padding-top: 1.4rem; resize: vertical; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }

.form__consent {
  font-size: var(--fs-sm);
  color: color-mix(in srgb, currentColor 65%, transparent);
  line-height: 1.5;
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding-block: 1.5rem;
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 65%, transparent);
}
.breadcrumbs a:hover { color: var(--brass-600); }
.breadcrumbs__sep::before { content: "/"; opacity: 0.5; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  position: relative;
  min-height: 78svh;
  background: var(--ink-1000);
  color: var(--paper-1000);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 8rem 0 4rem;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroPan 20s ease-in-out infinite alternate; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.2) 30%, rgba(11,13,16,0.85) 100%);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  width: 100%;
}
.page-hero__inner > * {
  min-width: 0;
  max-width: 100%;
}
.page-hero__title {
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 100%;
  overflow-wrap: break-word;
}
.page-hero__lead {
  font-size: var(--fs-xl);
  line-height: var(--lh-loose);
  color: color-mix(in srgb, var(--paper-1000) 80%, transparent);
  max-width: 50ch;
}
@media (max-width: 880px) { .page-hero__inner { grid-template-columns: 1fr; }
.page-hero__inner > * {
  min-width: 0;
  max-width: 100%;
} }

/* ===================== SPEC TABLE ===================== */
.spec-table {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.spec-table__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: var(--fs-md);
}
.spec-table__row dt {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 60%, transparent);
  align-self: start;
}
.spec-table__row dd {
  margin: 0;
  line-height: var(--lh-base);
  max-width: 60ch;
}
@media (max-width: 720px) {
  .spec-table__row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem 0; }
}

/* ===================== FEATURE CARDS (square chips with icon-style) ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
}
.feature-card {
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--paper-1000) 92%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: clamp(14px, 1.4vw, 22px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, currentColor 4%, transparent) inset,
    0 16px 40px -34px color-mix(in srgb, var(--ink-1000) 28%, transparent);
  padding: 1.35rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1),
    background 320ms ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--ink-1000) 6%, transparent) 35%,
    color-mix(in srgb, var(--ink-1000) 12%, transparent) 100%
  );
  transition: height 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-dark .feature-card {
  background: color-mix(in srgb, var(--ink-900) 92%, transparent);
  border-color: color-mix(in srgb, var(--paper-1000) 14%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--paper-1000) 6%, transparent) inset,
    0 20px 48px -36px color-mix(in srgb, var(--black) 52%, transparent);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brass-600) 32%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, currentColor 6%, transparent) inset,
    0 28px 56px -36px color-mix(in srgb, var(--ink-1000) 38%, transparent);
}
.feature-card:hover::after { height: 52%; }
.theme-dark .feature-card:hover {
  border-color: color-mix(in srgb, var(--brass-300) 42%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--paper-1000) 11%, transparent) inset,
    0 28px 58px -36px color-mix(in srgb, var(--black) 64%, transparent);
}
.feature-card__index {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 58%, transparent);
}
.feature-card__title {
  font-family: var(--ff-hero);
  font-weight: 600;
  font-size: clamp(1.12rem, 1.1vw, 1.34rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.feature-card__text {
  font-size: var(--fs-md);
  color: color-mix(in srgb, currentColor 72%, transparent);
  line-height: 1.5;
}
.feature-card__cta {
  width: 40px;
  height: 40px;
  margin-top: 0.35rem;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform 280ms ease;
}
.feature-card:hover .feature-card__cta {
  background: var(--ink-1000);
  color: var(--paper-1000);
  border-color: var(--ink-1000);
  transform: scale(1.04);
}
.theme-dark .feature-card__cta {
  border-color: color-mix(in srgb, var(--paper-1000) 36%, transparent);
  background: color-mix(in srgb, var(--paper-1000) 9%, transparent);
}
.theme-dark .feature-card:hover .feature-card__cta {
  background: var(--paper-1000);
  color: var(--ink-1000);
  border-color: var(--paper-1000);
}
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===================== SCENARIOS / FILTER PILLS ===================== */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  padding: 0.6rem 1.1rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 999px;
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pill:hover, .pill[aria-pressed="true"] {
  background: var(--ink-1000);
  color: var(--paper-1000);
  border-color: var(--ink-1000);
}
.theme-dark .pill:hover, .theme-dark .pill[aria-pressed="true"] {
  background: var(--paper-1000);
  color: var(--ink-1000);
  border-color: var(--paper-1000);
}

/* ===================== CALCULATOR ===================== */
.calc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: var(--paper-900);
  border: 1px solid var(--paper-800);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
}
.calc__steps {
  display: grid;
  gap: 2rem;
}
.calc__step {
  border-bottom: 1px solid var(--paper-800);
  padding-bottom: 1.5rem;
}
.calc__step:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__step-title {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 70%, transparent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.calc__step-title::before {
  counter-increment: calcsteps;
  content: counter(calcsteps, decimal-leading-zero);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--brass-600);
}
.calc { counter-reset: calcsteps; }

.calc__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}
.calc__option {
  padding: 0.85rem;
  border: 1px solid var(--paper-800);
  border-radius: var(--radius-sm);
  background: var(--paper-1000);
  cursor: pointer;
  font-size: var(--fs-sm);
  text-align: center;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.calc__option:hover { border-color: var(--brass-500); }
.calc__option[aria-pressed="true"] {
  background: var(--ink-1000);
  color: var(--paper-1000);
  border-color: var(--ink-1000);
}

.calc__total {
  background: var(--ink-1000);
  color: var(--paper-1000);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calc__total-label {
  font-family: var(--ff-tech);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-tech);
  text-transform: uppercase;
  color: var(--ink-300);
}
.calc__total-num {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.calc__breakdown {
  font-size: var(--fs-sm);
  display: grid;
  gap: 0.4rem;
}
.calc__breakdown-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed color-mix(in srgb, var(--paper-1000) 18%, transparent);
  padding: 0.4rem 0;
  color: color-mix(in srgb, var(--paper-1000) 75%, transparent);
}
@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; }
  .calc__total { position: static; }
}

/* ===================== CONVERSION UI ===================== */
.lead-sent-banner {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--brass-600) 14%, var(--paper-900));
  border: 1px solid var(--brass-600);
  border-radius: var(--radius-md);
}
.lead-sent-banner[hidden] { display: none !important; }
.lead-sent-banner.is-visible { display: block; }
.lead-sent-banner strong { display: block; margin-bottom: 0.35rem; font-family: var(--ff-body); }

.form-thanks {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper-900);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.form-thanks[hidden] { display: none !important; }
.form-thanks h3 { font-family: var(--ff-display); font-size: var(--fs-3xl); margin-bottom: 0.5rem; }

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.messenger-row .btn { font-size: var(--fs-sm); }

[data-lead-status].is-success { color: var(--ink-700); }
[data-lead-status].is-error { color: #b42318; }

/* ===================== STICKY CTA (mobile) ===================== */


