:root,
html[data-theme="dark"] {
  --bg: #090b10;
  --bg-2: #10141c;
  --card: #161b26;
  --card-end: #121722;
  --line: rgba(232, 237, 245, 0.1);
  --text: #eef2f8;
  --muted: #8b95a8;
  --blue: #3b7bff;
  --blue-2: #1d4ed8;
  --yellow: #f5c518;
  --red: #ff4d5a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --glow: rgba(59, 123, 255, 0.16);
  --glow-2: rgba(245, 197, 24, 0.08);
  --header-bg: rgba(9, 11, 16, 0.72);
  --header-bg-strong: rgba(9, 11, 16, 0.92);
  --nav-active: #fff;
  --nav-hover: rgba(255, 255, 255, 0.06);
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --hero-veil: linear-gradient(180deg, rgba(9,11,16,0.25) 0%, rgba(9,11,16,0.55) 45%, var(--bg) 100%);
  --hero-card: linear-gradient(180deg, rgba(22,27,38,0.86), rgba(22,27,38,0.72));
  --stat-bg: rgba(16, 20, 28, 0.7);
  --float-bg: rgba(9, 11, 16, 0.78);
  --overlay: linear-gradient(180deg, transparent, rgba(9,11,16,0.92));
  --tile-list: #d7deea;
  --input-bg: #0d1118;
  --footer-bg: #07080c;
  --burger: #fff;
  --check-dot: #16120a;
  --nav-mobile: #0c1018;
  --tab-on: #fff;
  --tab-on-text: #111;
  --ok: #5ee9a3;
  --err: #ff8b93;
  --radius: 22px;
  --header-h: 84px;
  --max: 1200px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-end: #f7f9fd;
  --line: rgba(20, 28, 44, 0.1);
  --text: #121826;
  --muted: #5b6578;
  --blue: #2458e6;
  --blue-2: #1d4ed8;
  --yellow: #e3b00c;
  --shadow: 0 18px 40px rgba(28, 42, 70, 0.08);
  --glow: rgba(36, 88, 230, 0.1);
  --glow-2: rgba(227, 176, 12, 0.12);
  --header-bg: rgba(244, 246, 251, 0.78);
  --header-bg-strong: rgba(255, 255, 255, 0.94);
  --nav-active: #121826;
  --nav-hover: rgba(18, 24, 38, 0.06);
  --ghost-bg: rgba(18, 24, 38, 0.04);
  --hero-veil: linear-gradient(180deg, rgba(244,246,251,0.72) 0%, rgba(244,246,251,0.82) 42%, var(--bg) 100%);
  --hero-card: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.86));
  --stat-bg: rgba(255, 255, 255, 0.78);
  --float-bg: rgba(255, 255, 255, 0.9);
  --overlay: linear-gradient(180deg, transparent, rgba(12,16,24,0.88));
  --tile-list: #e8edf5;
  --input-bg: #eef2f8;
  --footer-bg: #e8edf5;
  --burger: #121826;
  --check-dot: #fff7d6;
  --nav-mobile: #ffffff;
  --tab-on: #121826;
  --tab-on-text: #fff;
  --ok: #178a55;
  --err: #c43b46;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow), transparent 50%),
    radial-gradient(900px 500px at 100% 10%, var(--glow-2), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .35s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--yellow);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.03em; }
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.section-head { margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #5b93ff, var(--blue));
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 123, 255, 0.35);
}
.btn-ghost {
  background: var(--ghost-bg);
  border-color: var(--line);
  color: var(--text);
}
.btn-yellow {
  background: var(--yellow);
  color: #16120a;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: height .25s, background .25s, border-color .25s;
}
.header.is-compact {
  --header-h: 68px;
  background: var(--header-bg-strong);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}
.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.header.is-compact .logo-img { width: 40px; height: 40px; }
.nav {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav a {
  padding: 7px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--nav-active); background: var(--nav-hover); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.header-meta { text-align: right; }
.header-meta a { font-weight: 800; }
.header-meta small { display: block; color: var(--muted); font-size: 12px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--burger);
}
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after { top: 28px; }

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  padding: 40px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20px;
  transition: transform .15s linear;
  background:
    var(--hero-veil),
    url("../img/hero.jpg") center/cover no-repeat;
  filter: saturate(1.05);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: end;
}
.hero-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245,197,24,0.35);
  background: rgba(245,197,24,0.08);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--stat-bg);
  backdrop-filter: blur(10px);
}
.stat b { display: block; font-family: var(--display); font-size: 30px; }
.stat span { color: var(--muted); font-size: 13px; }
.hero-card {
  background: var(--hero-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.hero-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}
.hero-card p { color: var(--muted); margin: 0 0 16px; }

/* Cards / tilt */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, .tilt {
  background: linear-gradient(180deg, var(--card), var(--card-end));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transform-style: preserve-3d;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.card:hover, .tilt:hover {
  border-color: rgba(59,123,255,0.4);
  box-shadow: 0 18px 40px rgba(59,123,255,0.12);
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59,123,255,0.12);
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 16px;
}
.card p { color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.about-float {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--float-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  z-index: 2;
}
.park-track { position: relative; min-height: 420px; }
.park-track figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.park-track figure.is-active { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .park-track figure { transition: none; }
}
.park-track figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.park-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #121826;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.park-prev { left: 12px; }
.park-next { right: 12px; }
.park-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.park-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.park-dots button.is-active { background: #fff; transform: scale(1.25); }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.adv article {
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.adv strong { display: block; margin-bottom: 6px; }

/* Catalog */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}
.tab.is-active { background: var(--tab-on); color: var(--tab-on-text); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { padding: 0; overflow: hidden; }
.product img { height: 260px; width: 100%; object-fit: cover; object-position: center 70%; }
.product img.img-series { object-position: center; }
.product img.img-focus-top { object-fit: contain; object-position: center; background: #efe8dc; }
.product-body { padding: 18px 18px 20px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.product-moq {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue, #2f6bff);
  font-size: 12px;
  font-weight: 800;
}
.product-note {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.price-tag {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
.hidden { display: none !important; }

/* Popular */
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.popular-card img { height: 200px; width: 100%; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }

/* Applications */
.use-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 560px; }
.use-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 250px;
  border: 1px solid var(--line);
}
.use-tile:first-child { grid-row: 1 / span 2; }
.use-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.use-tile:hover img { transform: scale(1.06); }
.use-tile .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: var(--overlay);
}
.use-tile .overlay h3,
.use-tile .overlay li { color: #fff; }
.use-tile ul { margin: 10px 0 0; padding-left: 18px; color: var(--tile-list); }

/* Materials */
.mat-card img { height: 150px; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }

/* Custom form */
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.form, .preview-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.field { margin-bottom: 14px; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: var(--blue); }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  border: none;
  accent-color: var(--blue);
}
.consent a { color: var(--text); font-weight: 700; }
.legal { max-width: 760px; padding-top: 28px; }
.legal h1 { font-family: var(--display); font-size: 34px; line-height: 1.2; margin: 8px 0 16px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 18px; }
.legal-page .header { position: relative; }
.form-status { min-height: 24px; margin-top: 8px; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.preview-wrap { display: grid; place-items: center; overflow: hidden; }
.stage {
  width: 100%;
  height: 360px;
  perspective: 900px;
  display: grid;
  place-items: center;
}
.mat-3d {
  position: relative;
  width: 220px;
  height: 140px;
  transform-style: preserve-3d;
  transform: rotateX(62deg) rotateZ(-18deg);
  transition: width .25s, height .25s;
}
.mat-3d .face {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a62e8, #16398f);
  border: 1px solid rgba(255,255,255,0.15);
}
.mat-3d .top {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(180deg, #3d7dff, #2454c8);
}
.mat-3d .side {
  top: auto;
  height: 28px;
  background: var(--yellow);
  transform-origin: top;
  transform: rotateX(-90deg);
}
.mat-3d .front {
  left: auto;
  width: 28px;
  background: #d4a40d;
  transform-origin: left;
  transform: rotateY(90deg);
}
.preview-labels { display: flex; justify-content: space-between; width: 100%; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* Repair / steps */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
.split img { border-radius: 24px; height: 420px; width: 100%; object-fit: cover; }
.check { list-style: none; padding: 0; margin: 18px 0 24px; }
.check li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 4px var(--check-dot);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; }
.step em {
  font-style: none;
  font-family: var(--display);
  color: var(--yellow);
  font-size: 28px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 10px;
}
.gallery-grid a {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.gallery-grid a:nth-child(1),
.gallery-grid a:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: #fff;
  color: #111;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}
.contact-card, .map-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.contact-card { padding: 26px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 13px; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.messengers a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.map-wrap iframe, .map-fallback {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}
.map-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(9,11,16,0.2), rgba(9,11,16,0.55)),
    url("../img/hall-modern.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: var(--footer-bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer p, .footer small { color: var(--muted); }
.footer small { display: block; line-height: 1.55; }
.footer small a { color: var(--text); font-weight: 700; }
.footer nav { display: grid; gap: 8px; }
.copy { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; }

/* Floating CTA */
.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .float-cta { display: inline-flex; }
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero-grid, .about-grid, .custom-grid, .split, .contacts-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .use-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .use-tile:first-child { grid-row: auto; }
}
@media (max-width: 1180px) {
  .header-meta { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta .btn-primary { display: none; }
  .burger { display: block; }
  .nav.is-open {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--nav-mobile);
    padding: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 45;
  }
  .nav.is-open a { padding: 12px 14px; }
  .grid-3, .catalog-grid, .popular-grid, .gallery-grid, .use-grid, .adv, .dims, .steps, .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid a:nth-child(1),
  .gallery-grid a:nth-child(6) { grid-column: auto; grid-row: auto; }
  .hero { min-height: auto; padding-top: 24px; }
  .section { padding: 72px 0; }
}

/* Extra interactivity */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  pointer-events: none;
}
.pointer-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,123,255,0.18), transparent 68%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s;
}
html[data-theme="light"] .pointer-glow {
  background: radial-gradient(circle, rgba(36,88,230,0.12), transparent 68%);
}
.cursor {
  display: none;
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  pointer-events: none;
}
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245,197,24,0.7);
  transition: width .2s, height .2s, background .2s;
}
.has-cursor.is-hover .cursor-ring {
  width: 56px;
  height: 56px;
  background: rgba(245,197,24,0.12);
}

.card, .tilt, .product, .use-tile {
  position: relative;
  overflow: hidden;
}
.card::after, .tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(59,123,255,0.16), transparent 55%);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover::after, .tilt:hover::after { opacity: 1; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
}
.ticker-track span::before {
  content: "●";
  color: var(--yellow);
  margin-right: 16px;
  font-size: 10px;
  vertical-align: middle;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.faq-wrap { max-width: 860px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.chat-panel {
  display: grid;
  gap: 8px;
  min-width: 180px;
}
.chat-panel[hidden] { display: none; }
.chat-panel a, .chat-toggle {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.chat-panel a {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.chat-toggle {
  background: var(--yellow);
  color: #16120a;
}

@media (pointer: coarse) {
  .cursor, .pointer-glow { display: none !important; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
