/* =================================================================
   ХАТАН ТААС — Tempered glass manufacturer, Yakutsk
   Design system: architectural brand. White, light, precise.
   Font: Inter. Accent (petrol-teal) is reserved for CTA / active / links only.
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-alt:        #f7f8f8;
  --bg-ink:        #0f1112;   /* rare, dark editorial frames only */

  /* Text */
  --text:          #111111;
  --text-2:        #222222;
  --muted:         #6b7280;
  --on-ink:        #f3f4f4;
  --on-ink-muted:  rgba(243,244,244,.62);

  /* Brand accent — petrol teal. CTA / active / links / small UI only. */
  --accent:        #15727e;
  --accent-ink:    #0e5862;
  --accent-soft:   rgba(21,114,126,.10);

  /* Lines */
  --line:          rgba(17,17,17,.12);
  --line-soft:     rgba(17,17,17,.07);
  --line-on-ink:   rgba(243,244,244,.16);

  /* Geometry */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-pill:   999px;

  /* Rhythm */
  --container:     1440px;
  --pad-x:         clamp(1.5rem, 3vw, 3rem);  /* 48px from ~1600px up */
  --section-y:     clamp(5rem, 10vw, 9.5rem);
  --gap:           clamp(1rem, 1.6vw, 1.5rem);

  /* Motion — slow, expensive, no bounce */
  --ease:          cubic-bezier(.22,.61,.36,1);
  --ease-out:      cubic-bezier(.16,1,.3,1);
  --t-slow:        .9s;
  --t-med:         .55s;

  /* Type scale */
  --fs-display:    clamp(2.85rem, 6.2vw, 6rem);
  --fs-h2:         clamp(2rem, 4.3vw, 3.7rem);
  --fs-h3:         clamp(1.35rem, 2.1vw, 1.95rem);
  --fs-lead:       clamp(1.05rem, 1.45vw, 1.4rem);
  --fs-body:       1.0625rem;
  --fs-small:      .8125rem;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss03" 1, "tnum" 1;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section  { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.eyebrow {
  font-size: var(--fs-small);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: currentColor;
  opacity: .55;
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; color: var(--text); }
.display { font-size: var(--fs-display); line-height: .98; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.08; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.measure { max-width: 42ch; }
.measure-sm { max-width: 34ch; }

/* ---------- 5. Buttons ---------- */
.btn {
  --_bg: var(--accent); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--_fg);
  border: 1px solid var(--_bd);
  font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .ico { transition: transform var(--t-med) var(--ease); }
.btn:hover .ico { transform: translate(3px,-3px); }

.btn--ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--line); }
.btn--ghost:hover { --_bg: var(--bg-alt); background: var(--bg-alt); color: var(--text); border-color: var(--line); transform: translateY(-2px); }
.btn--on-ink { --_bg: rgba(255,255,255,.08); --_fg: var(--on-ink); --_bd: var(--line-on-ink); backdrop-filter: blur(6px); }
.btn--on-ink:hover { --_bg: rgba(255,255,255,.16); background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }

/* Hero CTA buttons */
.btn--teal {
  background: var(--accent); color: #fff;
  border: 1px solid transparent;
  padding: 1rem 2rem;
}
.btn--teal:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn--glass {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
}
.btn--glass:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1.0625rem; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-weight: 500; letter-spacing: -0.01em;
  transition: gap var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.link:hover { color: var(--accent-ink); gap: .8rem; }

/* ---------- 6. Header — floating glassmorphism pill ---------- */
.header {
  position: fixed; top: 30px; left: 0; right: 0; z-index: 60;
  padding-inline: 20px;
  pointer-events: none;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 60px;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  background: rgba(148, 184, 197, 0.17);
  border: 1px solid rgba(148, 184, 197, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  pointer-events: auto;
  transition: background var(--t-med) var(--ease);
}
.header.is-stuck .header__inner {
  background: rgba(148, 184, 197, 0.32);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; letter-spacing: .02em; font-size: 1.0625rem; }
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand small { font-weight: 500; letter-spacing: .18em; font-size: .72rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav a { color: rgba(255,255,255,.82); font-weight: 500; letter-spacing: -0.01em; position: relative; padding-block: .25rem; transition: color var(--t-med) var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: #fff; transition: width var(--t-med) var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__aside { display: flex; align-items: center; gap: 1.25rem; }
.header__phone { color: rgba(255,255,255,.82); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: color var(--t-med) var(--ease); }
.header__phone:hover { color: #fff; }
.brand { color: #fff; }
.brand__mark { color: rgba(255,255,255,.9); }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger span { position: relative; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform var(--t-med) var(--ease); }
.burger span::before { top: -6.5px; }
.burger span::after { top: 6.5px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 100px 0 auto 0; z-index: 55;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--pad-x) 2.5rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; padding-block: .7rem; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 1.5rem; }

/* ---------- 7. Media slot (real photo lives here; degrades to a hint) ---------- */
.media {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius);
  isolation: isolate;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__hint {
  display: none;
  position: absolute; inset: 0;
  align-items: flex-end;
  padding: 1.25rem 1.4rem;
  font-size: var(--fs-small); color: var(--muted);
  letter-spacing: .02em;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(17,17,17,.015), transparent 60%);
}
.media__hint::before {
  content: "◇ ФОТО"; position: absolute; top: 1.25rem; left: 1.4rem;
  font-size: .68rem; letter-spacing: .18em; color: rgba(17,17,17,.32);
}
.media.is-empty { background: var(--bg-alt); }
.media.is-empty .media__hint { display: flex; }
/* subtle material texture so an empty slot still reads as a surface, never "broken" */
.media.is-empty::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(17,17,17,.022) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(17,17,17,.022) 1px, transparent 1px);
  background-size: 30px 30px;
}
.media--on-ink.is-empty { background: #15181a; }
.media--on-ink.is-empty .media__hint { color: var(--on-ink-muted); }
.media--on-ink.is-empty .media__hint::before { color: rgba(243,244,244,.32); }

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x4  { aspect-ratio: 3 / 4; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-3x2  { aspect-ratio: 3 / 2; }

/* ---------- 8. Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- 9. Factory-trio reveal (opacity only, no movement) ----------
   #about (05): JS toggles `.is-in`; CSS cascades photo + text card together.
   #why / #steps (06/07): JS drives per-card opacity directly — cards are
   stacked in the viewport centre and shown ONE AT A TIME (fade-in → hold →
   fade-out → next). See the stacked-card rules in the STEP CARDS block. */
[data-ft-head], [data-ft-item] {
  opacity: 0;
  will-change: opacity;
}

/* About cascade: smooth transition + small stagger */
.ft-section--about [data-ft-head],
.ft-section--about [data-ft-item] {
  transition: opacity 460ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ft-section--about.is-in [data-ft-head],
.ft-section--about.is-in [data-ft-item] { opacity: 1; }
.ft-section--about [data-ft-head] { transition-delay: 0ms; }
.about-body > [data-ft-item]:nth-child(1) { transition-delay: 60ms; }
.about-body > [data-ft-item]:nth-child(2) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-ft-head], [data-ft-item] { opacity: 1 !important; }
  .btn, .card, .sol-panel, .sol-cat, .link, [data-parallax] { transition: none !important; }
  .sol-panel__btn { transition: none !important; }
  .sol-panel__btn-label { transition: none !important; }
  .sol-group { transition: none !important; }
}

/* =================================================================
   HERO (01) — full-bleed background
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* clearance под фиксированной шапкой — контент не налезает даже на низком окне/зуме */
  padding-top: clamp(116px, 13vh, 150px);
  overflow: hidden;
  background: var(--bg-ink); /* dark fallback if image missing */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5,8,12,.45) 0%,
      rgba(5,8,12,.20) 45%,
      transparent 68%
    );
}

.hero__body {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3.5rem, 7vh, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
  margin-bottom: clamp(1.4rem, 3vh, 2.5rem);
}

.hero__lead {
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,.68);
  max-width: 44ch;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Stats — glassmorphism cards (Figma: 197×127, r:19, bg 8% white, border 16% grey, blur 3.2px) */
.hero__stats {
  display: flex;
  gap: 16px;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}
.hero__stat {
  width: 197px;
  min-height: 127px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(131, 131, 131, 0.16);
  backdrop-filter: blur(3.2px);
  -webkit-backdrop-filter: blur(3.2px);
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__stat-n {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.hero__stat-n sup {
  font-size: .42em;
  letter-spacing: 0;
  opacity: .75;
}
.hero__stat-n em {
  font-style: normal;
  font-size: .5em;
  color: rgba(255,255,255,.7);
  letter-spacing: 0;
}
.hero__stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.58);
  line-height: 1.35;
  margin-top: 10px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* =================================================================
   GLASS TYPES (02) — interactive panels → calculator modal
   ================================================================= */
.glass-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.glass-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.glass-panel {
  position: relative; text-align: left;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 3 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.15rem;
  color: var(--text);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  will-change: transform;
}
.glass-panel:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: 0 22px 50px -28px rgba(17,17,17,.35); }
.glass-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* material surface — restrained, neutral, no neon */
.glass-panel__surface { position: absolute; inset: 0; z-index: -1; }
.glass-panel__surface::before {
  content: ""; position: absolute; inset: 0;
  background: var(--surf, #e9edee);
}
.glass-panel__surface::after { /* single soft sheen, not a color wash */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 66%, rgba(255,255,255,.28) 100%);
  mix-blend-mode: screen; opacity: .9;
}
.glass-panel__label { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; }
.glass-panel__sub { font-size: var(--fs-small); color: var(--muted); margin-top: .25rem; }
.glass-panel__cta {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-small); font-weight: 500; color: var(--accent);
  transition: gap var(--t-med) var(--ease);
}
.glass-panel:hover .glass-panel__cta { gap: .7rem; }
.glass-panel--dark { color: var(--on-ink); }
.glass-panel--dark .glass-panel__sub { color: var(--on-ink-muted); }
/* reeded/fluted surface for "Мору" */
.glass-panel__surface--reeded::after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 3px, rgba(255,255,255,0) 3px 9px, rgba(17,17,17,.05) 9px 12px),
    linear-gradient(118deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%);
  mix-blend-mode: normal; opacity: 1;
}

/* =================================================================
   SOLUTIONS (03) — accordion image panels
   ================================================================= */
.sol-section {
  padding-block: var(--section-y);
  position: relative;
  z-index: 3;
  background: var(--bg);
  margin-top: clamp(-56px, -3.5vh, -30px);
}

.sol-head {
  margin-bottom: 2.5rem;
}
.sol-head__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

/* Category tabs */
.sol-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.sol-cat {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(17,17,17,0.20);
  line-height: 1;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.sol-cat.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sol-cat:hover:not(.is-active) {
  border-color: rgba(17,17,17,0.40);
  color: var(--text);
}
.sol-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Row meta: title + nav link above accordion */
.sol-row-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sol-row-meta__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sol-row__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 200ms ease, gap 200ms ease;
}
.sol-row__link:hover { color: var(--accent); gap: 10px; }

/* Accordion container — three always-visible rows */
.sol-accordion {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Group block wrapper */
.sol-block { display: flex; flex-direction: column; gap: 1rem; }
.sol-block__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.sol-block__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Panel groups — one per row */
.sol-group {
  display: flex;
  height: clamp(280px, 40vh, 480px);
  gap: 10px;
}

/* Individual accordion panel */
.sol-panel {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 54px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sol-panel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sol-panel:hover .sol-panel__img { transform: scale(1.04); }

/* Brand teal gradient — only bottom 35% darkens, top 65% stays clean */
.sol-panel__scrim {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 74, 92, 1.00) 0%,
    rgba(10, 74, 92, 0.85) 10%,
    rgba(10, 74, 92, 0.55) 22%,
    rgba(10, 74, 92, 0.20) 30%,
    rgba(10, 74, 92, 0.04) 34%,
    rgba(0, 0, 0, 0) 35%
  );
}

/* Panel text overlay */
.sol-panel__body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.sol-panel__name {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Button — always visible, outline by default, white fill on hover */
.sol-panel__btn {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  padding: 0.48rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  margin-top: 0.35rem;
  transition: background 0.28s ease, border-color 0.28s ease;
}
.sol-panel__btn-label {
  grid-area: 1 / 1;
  transition: opacity 0.22s ease;
}
.sol-panel__btn-label--off { color: #fff; opacity: 1; }
.sol-panel__btn-label--on  { color: #0A4A5C; opacity: 0; }
.sol-panel:hover .sol-panel__btn,
.sol-panel.is-expanded .sol-panel__btn {
  background: #fff;
  border-color: #fff;
}
.sol-panel:hover .sol-panel__btn-label--off,
.sol-panel.is-expanded .sol-panel__btn-label--off { opacity: 0; }
.sol-panel:hover .sol-panel__btn-label--on,
.sol-panel.is-expanded .sol-panel__btn-label--on  { opacity: 1; }

/* Shared tag */
.tag { font-size: var(--fs-small); color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .3rem .7rem; }

/* =================================================================
   CUTTING BOARDS (04)
   ================================================================= */
.boards { background: var(--bg-alt); border-radius: clamp(20px, 3vw, 34px); padding: clamp(1.5rem, 4vw, 3.5rem); }
.boards__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.boards__media { aspect-ratio: 4 / 3; border-radius: clamp(12px, 2vw, 20px); overflow: hidden; }
.boards__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.boards h2 { margin-bottom: 1.2rem; }
.boards .lead { margin-bottom: 2rem; }
.price-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.price-list .size { font-weight: 500; letter-spacing: -0.01em; }
.price-list .price { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.price-list .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.board-feats { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.boards__cta { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.boards__note { color: var(--muted); font-size: var(--fs-small); }

/* =================================================================
   FACTORY TRIO (05 · 06 · 07) — one background, three sections
   ================================================================= */
.factory-trio {
  position: relative;
  background: #080a0c;
  color: var(--on-ink);
}

.factory-trio__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* Pull following content up to overlap */
  margin-bottom: -100vh;
  z-index: 0;
  pointer-events: none;
}
.factory-trio__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.factory-trio__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,12,.25) 0%, rgba(8,10,12,.05) 40%, rgba(8,10,12,.55) 100%),
    linear-gradient(to bottom, rgba(8,10,12,.18) 0%, rgba(8,10,12,.08) 50%, rgba(8,10,12,.38) 100%);
}

/* Each section is a short scroll-track. Its inner .pin-stage is a sticky box
   sized to its CONTENT (not the full viewport) and centred via top:50%, so the
   "dead zone" between sections — which equals the sticky element's height —
   collapses to roughly the card height instead of a whole screen. */
.ft-section {
  position: relative;
  z-index: 1;
}
/* Cards section is tall enough to scroll through 4 sequential card "screens"
   (one card shown at a time). About keeps a short single reveal. */
.ft-section--cards { height: 180vh; }
.ft-section--about { height: 130vh; }

.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 3vh, 2.5rem);
}

.ft-inner {
  display: flex;
  justify-content: flex-end;
}

.ft-content {
  width: min(560px, 100%);
}

.ft-eyebrow { color: rgba(255,255,255,.38); }
.ft-eyebrow::before { background: rgba(255,255,255,.38); }

.ft-heading {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-top: 1.4rem;
  margin-bottom: 2.4rem;
}

/* Director photo */
.ft-director { margin-bottom: 2rem; }
.ft-director img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  display: block;
}

/* About text */
.ft-body p {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: .9rem;
}
.ft-body p:last-child { margin-bottom: 0; }

/* Numbered list (Why us / Steps) */
.ft-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ft-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 14px;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.ft-item:last-child { border-bottom: 1px solid rgba(255,255,255,.09); }

.ft-item__num {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.ft-item__title {
  font-size: .97rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: .35rem;
}
.ft-item__text {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

/* Factory photo — mobile only, between sections 06 and 07 */
.ft-factory-photo {
  display: none; /* hidden on desktop, shown on mobile via media query */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ft-factory-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* =================================================================
   STEP CARDS — sections 06 & 07 — white matte, scroll-scrub opacity
   ================================================================= */
.ft-section--cards .container { width: 100%; }

/* Two-column layout: heading left, cards right */
.cards-layout {
  display: grid;
  grid-template-columns: clamp(170px, 25%, 290px) 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  width: 100%;
}

/* Left column: section heading */
.cards-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.cards-title em {
  font-style: normal;
  color: #94B8C5;
}

/* Cards sit in a fixed horizontal row, always in their final positions.
   They never move — only their opacity changes (sequential fade-in L→R,
   hold, then simultaneous fade-out), driven by scroll progress in main.js. */
.cards-rhs { display: block; }
.cards-row {
  display: flex;
  gap: 20px;
}

/* Individual card — original design */
.cards-step {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Number + icon row */
.cards-step__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}
.cards-step__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cards-step__ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.75;
}

/* Card text */
.cards-step__title {
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  font-weight: 600;
  color: #0A2540;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.cards-step__body {
  font-size: 0.78rem;
  color: #4A5568;
  line-height: 1.55;
}


@media (max-width: 860px) {
  /* Disable pinning/sequence on mobile — sections flow normally, all cards
     visible in a wrapping row (un-stack the centred single-card layout). */
  .ft-section--cards, .ft-section--about { height: auto; }
  .pin-stage { position: static; height: auto; display: block; padding-block: clamp(3rem, 6vh, 5rem); }
  [data-ft-head], [data-ft-item] { opacity: 1 !important; }
  .cards-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cards-row { flex-wrap: wrap; gap: 12px; }
  .cards-step { flex: 1 1 calc(50% - 6px); min-width: 220px; }
}
@media (max-width: 500px) {
  .cards-step { flex: 1 1 100%; }
}

/* =================================================================
   ABOUT (05) — calm director section
   ================================================================= */
.ft-section--about .container { width: 100%; }
/* About content sits a touch higher than dead-centre in its pinned stage */
.ft-section--about .pin-stage { align-items: center; }

.about-heading {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}
.ft-em-name {
  font-style: normal;
  color: #94B8C5;
}

.about-body {
  display: flex;
  align-items: flex-start;
}

.about-photo-wrap {
  width: 62%;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}
.about-photo-wrap img { width: 100%; display: block; }

.about-card {
  width: 46%;
  flex-shrink: 0;
  margin-left: -8%;
  margin-top: clamp(2rem, 5vh, 4rem);
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    0 1px 4px rgba(0, 0, 0, 0.06);
}
.about-card p {
  font-size: 0.9rem;
  color: rgba(15, 30, 45, 0.72);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.about-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .about-body { flex-direction: column; }
  .about-photo-wrap { width: 100%; }
  .about-card { width: 100%; margin-left: 0; margin-top: 1.5rem; }
  .about-heading { font-size: clamp(1.9rem, 7vw, 2.4rem); margin-bottom: 1.8rem; }
}

/* =================================================================
   PORTFOLIO (08) — bento
   ================================================================= */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 12vw; gap: var(--gap); }
.bento figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.bento .media { width: 100%; height: 100%; }
.bento figcaption { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 1.2rem 1.3rem; color: #fff; }
.bento figure[data-shot] .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(15,17,18,.6)); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.bento figure:hover .scrim { opacity: 1; }
.bento figcaption .t { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; opacity: 0; transform: translateY(8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.bento figcaption .s { font-size: var(--fs-small); color: rgba(255,255,255,.75); opacity: 0; transform: translateY(8px); transition: opacity var(--t-med) var(--ease) .05s, transform var(--t-med) var(--ease) .05s; }
.bento figure:hover figcaption .t, .bento figure:hover figcaption .s { opacity: 1; transform: none; }
.b-a { grid-column: span 7; grid-row: span 3; }
.b-b { grid-column: span 5; grid-row: span 3; }
.b-c { grid-column: span 4; grid-row: span 2; }
.b-d { grid-column: span 4; grid-row: span 2; }
.b-e { grid-column: span 4; grid-row: span 2; }

/* =================================================================
   REVIEWS (09)
   ================================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1.5rem; transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.review:hover { transform: translateY(-8px); border-color: var(--accent); }
.review__quote { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.45; color: var(--text); }
.review__stars { color: var(--accent); letter-spacing: .15em; font-size: .9rem; }
.review__by { margin-top: auto; display: flex; align-items: center; gap: .85rem; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-weight: 600; color: var(--accent); border: 1px solid var(--line); flex: none; }
.review__name { font-weight: 500; letter-spacing: -0.01em; }
.review__role { color: var(--muted); font-size: var(--fs-small); }

/* =================================================================
   FINAL CTA (10)
   ================================================================= */
.cta { background: var(--bg-ink); color: var(--on-ink); border-radius: clamp(20px, 3vw, 34px); padding: clamp(2.5rem, 6vw, 6rem); position: relative; overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,4vw,4rem); align-items: end; position: relative; z-index: 2; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta .lead { color: var(--on-ink-muted); max-width: 40ch; margin-top: 1.5rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta__bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.cta__bg .media { width: 100%; height: 100%; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-ink) 18%, rgba(15,17,18,.4) 75%, rgba(15,17,18,.85)); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
.footer__col h4 { font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1.25rem; }
.footer__col a { display: block; color: var(--text-2); padding-block: .35rem; transition: color var(--t-med) var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__intro .lead { max-width: 32ch; margin-top: 1rem; }
.footer__contact { font-size: clamp(1.3rem,2.4vw,2rem); font-weight: 500; letter-spacing: -0.03em; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--fs-small); flex-wrap: wrap; }

/* =================================================================
   MODAL / CALCULATOR DRAWER — premium Linear/Stripe style
   ================================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(15,17,18,.38);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }

/* Drawer panel */
.modal__dialog {
  position: absolute; right: 0; top: 0; height: 100%;
  width: min(520px, 100%);
  background: #0f1112;
  color: var(--on-ink);
  display: flex; flex-direction: column;
  transform: translateX(32px); opacity: 0;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-med) var(--ease);
  overflow: hidden;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }

/* Header */
.modal__head {
  position: relative;
  padding: 2rem 2rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  flex-shrink: 0;
}
.modal__head h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}
.modal__head p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
  letter-spacing: .01em;
}
.modal__close {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.modal__close:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Scrollable body */
.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

/* Field groups */
.field { display: flex; flex-direction: column; gap: .55rem; }
.field > label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.field .hint { color: rgba(255,255,255,.3); font-size: .78rem; }

.control {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: #fff;
  font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none;
}
.control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(21,114,126,.08);
}
.control option { background: #1a1d20; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* Type chips */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.04);
  transition: all .2s ease;
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.chip:hover:not([aria-pressed="true"]) {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Summary */
.summary {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; gap: 0;
}
.summary__row {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .9rem;
  color: rgba(255,255,255,.45);
}
.summary__row:last-of-type { border-bottom: none; }
.summary__row .v { font-weight: 500; color: rgba(255,255,255,.82); }
.summary__total {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding-top: .9rem;
  margin-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.summary__total .lbl { font-size: .85rem; color: rgba(255,255,255,.45); font-weight: 500; }
.summary__total .amt {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}
.summary__note { color: rgba(255,255,255,.3); font-size: .75rem; margin-top: .75rem; line-height: 1.4; }

/* Sticky footer */
.modal__foot {
  padding: 1.25rem 2rem 1.75rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(15,17,18,0) 0%, #0f1112 30%);
}
.modal__foot .btn {
  width: 100%;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background .2s ease, transform .2s ease;
}
.modal__foot .btn:hover { background: var(--accent-ink); transform: translateY(-1px); }

.form-success {
  display: none; gap: .75rem; align-items: center;
  color: #4ade80;
  font-weight: 500; font-size: .92rem;
  padding: 1rem 1.2rem;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.18);
  border-radius: 10px;
}
.form-success.is-shown { display: flex; }

/* =================================================================
   Sub-page hero (catalog pages)
   ================================================================= */
.page-hero { padding-block: clamp(3rem,6vw,5.5rem) clamp(2rem,4vw,3.5rem); }
.page-hero__back { margin-bottom: 2rem; }
.page-hero h1 { font-size: var(--fs-h2); max-width: 16ch; margin-bottom: 1.4rem; }
.page-hero .lead { max-width: 52ch; }
.page-hero__media { aspect-ratio: 21 / 9; margin-top: clamp(2rem,4vw,3.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem,3vw,3rem) var(--gap); }
.feature { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.feature h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.split .media { width: 100%; height: 100%; min-height: 360px; }
.split--3 { grid-template-columns: 1fr 1fr 1fr; }
.split--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* =================================================================
   Horizontal swipers (mobile-first behaviour, applied at breakpoints)
   ================================================================= */
.swiper-rail { display: contents; }

/* =================================================================
   GLASS CATALOG (02) — premium showroom
   ================================================================= */
.glass-catalog {
  position: relative;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #12141a;
}
.glass-catalog__bg { position: absolute; inset: 0; z-index: 0; }
.glass-catalog__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.glass-catalog__dim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,12,16,.55) 0%,
    rgba(10,12,16,.22) 55%,
    rgba(10,12,16,.06) 100%
  );
  transition: background .35s ease;
}
.glass-catalog.is-hovered .glass-catalog__dim {
  background: linear-gradient(to bottom,
    rgba(10,12,16,.72) 0%,
    rgba(10,12,16,.40) 55%,
    rgba(10,12,16,.18) 100%
  );
}

/* ---- Top info area: info block anchors bottom, close to glass panels ---- */
.glass-catalog__top {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: clamp(5.5rem, 9vh, 9rem);
  padding-bottom: clamp(2rem, 3vh, 3.5rem);
}

/* Default and active share fade transition */
.gc-default, .gc-active {
  transition:
    opacity 380ms cubic-bezier(0.22,1,0.36,1),
    transform 380ms cubic-bezier(0.22,1,0.36,1);
}

/* gc-active: centered, slightly lower */
.gc-active {
  position: absolute;
  top: clamp(6.5rem, 13vh, 11rem);
  left: 50%;
  width: min(1000px, 90vw);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: clamp(2rem, 3.5vw, 4rem);
  align-items: start;
}
.glass-catalog.is-hovered .gc-default {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  position: absolute;
}
.glass-catalog.is-hovered .gc-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* gc-default: resting state, top-anchored like gc-active; swaps out on glass hover */
.gc-default {
  position: absolute;
  top: clamp(5rem, 8vh, 8.5rem);
  left: 0;
  width: min(1480px, 95vw);
  opacity: 1;
  pointer-events: auto;
}
.gc-default__eyebrow {
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.1rem;
}
.gc-default__heading {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: #fff;
}

.gc-active__eyebrow { display: none; }
.gc-active__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.gc-active__name {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: #fff;
  margin-bottom: 0.9rem;
}
.gc-active__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.50);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.gc-active__desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}
.gc-active__thick { display: none; }

/* Specimen photo inside gc-active__sample */
.gc-active__sample { padding-top: .25rem; }
.gc-photo-wrap {
  width: 270px;
  height: 270px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  flex-shrink: 0;
}
.gc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Buy CTA — now inside gc-default ---- */
.gc-default__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  transition: opacity 280ms ease;
}
.glass-catalog.is-hovered .gc-default__btns {
  opacity: 0;
  pointer-events: none;
}

/* ---- Glass stage ---- */
.glass-catalog__stage {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: clamp(420px, 58vh, 860px);
  overflow: hidden;
}

.glass-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  list-style: none;
  gap: 28px;
  height: 100%;
}

.glass-item {
  flex: none;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

/* pane = visual container; margin-bottom lifts glass above stage bottom → visible reflection zone */
.glass-item__pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(90px, 12vh, 180px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.glass-item.is-active .glass-item__pane {
  transform: translateY(-18px);
}

/* fixed height keeps all panels on the same baseline */
.glass-item__visual {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vh, 600px);
  flex-shrink: 0;
}

/* invisible hover zone: covers the glass body and overhangs into the gaps
   on both sides so neighbouring zones tile with no dead space between glasses */
.glass-item__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  right: -14px;
  z-index: 5;
  cursor: pointer;
}

/* glass image: ground shadow by default; active → edge glow */
.glass-item {
  transition: filter .4s ease, opacity .4s ease;
}
.glass-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter:
    drop-shadow(0 18px 30px rgba(0,0,0,.55))
    drop-shadow(0 3px 8px rgba(0,0,0,.28));
  transition: filter .35s ease;
}
/* dim non-active glasses by the same amount as the background overlay (not darker) */
.glass-catalog.is-hovered .glass-item:not(.is-active) {
  filter: brightness(0.66);
}
/* active glass: remove shadow, add edge glow */
.glass-item.is-active .glass-item__img {
  filter:
    drop-shadow(0 0 16px rgba(185,220,255,.55))
    drop-shadow(0 0 5px rgba(185,220,255,.38));
}

/* individual PNG reflection — width is set precisely by JS syncReflections() */
.glass-item__reflection {
  display: block;
  position: absolute;
  top: calc(100% - clamp(22px, 3vh, 44px));
  left: 50%;
  transform: translateX(-50%);
  width: 54%; /* fallback until JS runs */
  height: auto;
  pointer-events: none;
}

/* ---- Buttons overlay on glass panels — visible on active/hover ---- */
.glass-item__btns {
  display: flex;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8px));
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(192px, 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22,1,0.36,1), transform 320ms cubic-bezier(0.22,1,0.36,1);
}
.glass-item.is-active .glass-item__btns {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-50%));
}

.gi-btn {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 220ms cubic-bezier(0.22,1,0.36,1),
              box-shadow 220ms cubic-bezier(0.22,1,0.36,1),
              transform 220ms cubic-bezier(0.22,1,0.36,1);
}
.gi-btn--buy {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(21,114,126,.35);
  box-shadow: 0 2px 16px rgba(21,114,126,.42), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gi-btn--buy:hover {
  background: var(--accent-ink);
  box-shadow: 0 4px 24px rgba(21,114,126,.60), inset 0 1px 0 rgba(255,255,255,.20);
  transform: translateY(-2px);
}
.gi-btn--custom {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.gi-btn--custom:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.36);
  transform: translateY(-2px);
}

/* Mobile-only glass elements — hidden on desktop */
.glass-item__title,
.glass-item__mobile-cta,
.gc-mobile-cta-btn { display: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
/* Glass row scales down on narrower desktops so 5 panels never clip */
@media (max-width: 1340px) and (min-width: 721px) {
  .glass-item { width: 210px; }
  .glass-row { gap: 22px; }
}
@media (max-width: 1120px) and (min-width: 721px) {
  .glass-item { width: 175px; }
  .glass-row { gap: 16px; }
}

@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .burger { display: inline-flex; }
  .glass-grid { grid-template-columns: repeat(3, 1fr); }
  .glass-panel:nth-child(4), .glass-panel:nth-child(5) { aspect-ratio: 3 / 4; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .bento { grid-auto-rows: 18vw; }
}

@media (max-width: 860px) {
  .hero__title { max-width: none; }
  .boards__grid, .cta__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Sol-accordion — mobile: horizontal snap scroll */
  .sol-section { overflow: hidden; }
  .sol-section .container { padding-inline: 0; }
  .sol-head, .sol-block__hd { padding-inline: var(--pad-x); }
  .sol-head { margin-bottom: 1.5rem; }
  .sol-accordion { padding-inline: 0; gap: 2rem; }
  .sol-group {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    height: 340px;
    padding-inline: var(--pad-x);
  }
  .sol-group::-webkit-scrollbar { display: none; }
  .sol-panel {
    flex: 0 0 74vw !important;
    height: 100%;
    min-width: 0;
    scroll-snap-align: start;
    transition: none !important;
  }
  .sol-panel:hover .sol-panel__img { transform: none; }
  .sol-panel__btn { transition: none !important; }
  .sol-panel__btn-label { transition: none !important; }

  /* Factory trio — full width on mobile */
  .ft-inner { justify-content: flex-start; }
  .ft-content { width: 100%; }

  /* Bento → simpler stack */
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .b-a { grid-column: 1 / -1; grid-row: span 1; aspect-ratio: 16/10; }
  .b-a .media { height: 100%; }
  .b-b, .b-c, .b-d, .b-e { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 720px) {
  .header__inner { height: 64px; }
  .mobile-menu { inset-block-start: 64px; }
  .feature-grid { grid-template-columns: 1fr; }

  /* Шапка на мобиле: убрать кнопку «Рассчитать», лого крупнее */
  .header__aside .btn { display: none; }
  .brand__logo { height: 30px; }

  /* ---- Hero mobile — заголовок/описание сверху, воздух, карточки+кнопки внизу ---- */
  .hero { min-height: 100svh; justify-content: flex-start; align-items: stretch; padding-top: 0; }
  .hero__bg img { object-position: 60% center; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(5,8,12,.18) 0%,
      rgba(5,8,12,.05) 28%,
      rgba(5,8,12,.52) 62%,
      rgba(5,8,12,.84) 100%
    );
  }
  .hero__body {
    padding-top: 88px;
    padding-bottom: 2rem;
    justify-content: flex-start;
    flex: 1;
  }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 1rem; line-height: 0.95; }
  .hero__lead { font-size: 0.9rem; margin-bottom: 1.5rem; max-width: 36ch; }
  /* margin-top:auto — отодвигает блок карточек+кнопок к низу, между описанием и ним «воздух» */
  .hero__stats { flex-wrap: wrap; gap: 10px; margin-top: auto; margin-bottom: 1.25rem; }
  .hero__stat { width: calc(50% - 5px); min-height: auto; padding: 12px 14px; }
  .hero__stat-n { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  /* ---- Glass catalog mobile ---- */
  .glass-catalog {
    height: 100svh;
    min-height: unset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Top: name + description, compact, static (reset desktop absolute) */
  .glass-catalog__top {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 104px;
    padding-bottom: 8px;
    position: static;
  }
  .gc-default { display: none !important; }
  .gc-default__btns { display: none; }
  .gc-active {
    /* Reset desktop: position:absolute; left:50%; transform:translate(-50%); display:grid */
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    width: 100% !important;
    grid-template-columns: unset;
  }
  .gc-active__eyebrow { display: none; }
  .gc-active__name    { font-size: clamp(1.4rem, 7vw, 2rem); margin-bottom: 0.15rem; line-height: 1.05; }
  .gc-active__subtitle { font-size: 0.76rem; margin-bottom: 0.2rem; opacity: .7; }
  .gc-active__desc    {
    font-size: 0.95rem; line-height: 1.45; opacity: .62;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0.6rem;
  }
  /* Photo sample — hidden on mobile to give stage enough room */
  .gc-active__sample  { display: none !important; }

  /* Stage — fills remaining space, glass pinned to bottom so floor lines align */
  .glass-catalog__stage { flex: 1; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: 68px; }

  /* Carousel — tighter gap, edges of adjacent panels visible */
  .glass-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding-inline: 8vw !important;
    padding-bottom: 0 !important;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
  }
  .glass-row::-webkit-scrollbar { display: none; }

  /* Glass items — no dimming, 70vw so ~15vw of adjacent visible on each side */
  .glass-item {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    width: 70vw;
    flex: none;
    flex-direction: column;
    align-items: center;
    opacity: 1 !important;
    filter: none !important;
    transition: none;
  }

  .glass-item__title    { display: none !important; }
  .glass-item__mobile-cta { display: none !important; }

  /* Pane */
  .glass-item__pane {
    margin-bottom: 0 !important;
    transform: none !important;
    width: 100%;
  }

  /* Glass image — height tuned so panels never overflow stage on any phone */
  .glass-item__visual { height: clamp(200px, 56svh, 520px); width: auto; max-width: 100%; }
  .glass-item__img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.4));
  }

  /* Reflections — hidden */
  .glass-item__reflection,
  .glass-item:first-child .glass-item__reflection { display: none !important; }

  .glass-item__btns { display: none; }

  /* Section CTA — pill, full width with standard side margins */
  .gc-mobile-cta-btn {
    display: block;
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 15px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(21,114,126,.45);
  }

  .modal__dialog { width: 100%; }

  /* ---- Factory trio mobile — dark bg, factory photo visible ---- */
  .factory-trio__bg { display: none; }
  .factory-trio { background: #0a0c0e; }
  .ft-heading { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .ft-director img { max-width: 100%; border-radius: 12px; }
  .ft-factory-photo { display: block; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento figure { aspect-ratio: 4/3; }
  .b-a { aspect-ratio: 16/11; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn, .hero__cta a,
  .boards__cta .btn, .cta__actions .btn { width: 100%; justify-content: center; }
}

/* =================================================================
   BRAND LOGO (SVG wordmark) + DARK FOOTER
   ================================================================= */
/* SVG wordmark used in header pill and footer — already white in the file */
.brand__logo { height: 24px; width: auto; display: block; }
.footer .brand__logo { height: 28px; }

/* Dark footer — darkest brand surface, light text, full-width wordmark */
.footer {
  background: var(--bg-ink);   /* #0f1112 — самый тёмный из брендбука */
  color: var(--on-ink);
  border-top: none;
}
.footer .brand { color: #fff; }
.footer__intro .lead { color: var(--on-ink-muted); }
.footer__col h4 { color: rgba(243,244,244,.5); }
.footer__col a { color: rgba(243,244,244,.78); }
.footer__col a:hover { color: #fff; }
.footer__contact { color: #fff; }
.footer__contact:hover { color: #fff; }
.footer__bottom {
  color: var(--on-ink-muted);
  border-top-color: var(--line-on-ink);
}

/* Full-width brand wordmark band */
.footer__logo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}
