/* ==========================================================================
   Весёлый Газ — veselyashhij-gaz.ru
   Дизайн-система «Ночной неон»
   Чистый CSS, mobile-first. Без фреймворков.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg-0: #0d0a1a;
  --bg-1: #14102a;
  --bg-2: #1a1434;
  --bg-3: #241b49;

  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --lime: #c6ff00;
  --lime-soft: rgba(198, 255, 0, 0.13);
  --fuchsia: #ff2e88;
  --fuchsia-soft: rgba(255, 46, 136, 0.14);
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.12);

  --white: #ffffff;
  --text: #ece9f7;
  --muted: #a49cc4;
  --dim: #6f6790;

  --font-display: "Space Grotesk", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 74px;

  --glow-lime: 0 0 0 1px rgba(198, 255, 0, 0.28), 0 0 26px rgba(198, 255, 0, 0.26);
  --glow-cyan: 0 0 0 1px rgba(0, 229, 255, 0.28), 0 0 26px rgba(0, 229, 255, 0.24);
  --glow-fuchsia: 0 0 0 1px rgba(255, 46, 136, 0.3), 0 0 26px rgba(255, 46, 136, 0.26);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 700px at 82% -10%, rgba(198, 255, 0, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(0, 229, 255, 0.06), transparent 55%),
    radial-gradient(800px 800px at 60% 110%, rgba(255, 46, 136, 0.05), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Лёгкий noise-фон поверх всего */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }

::selection { background: var(--lime); color: #0d0a1a; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.section-head--center .eyebrow { justify-content: center; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h2 .accent { color: var(--lime); }

.lead { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.1rem); max-width: 62ch; }
.section-head--center .lead { margin-inline: auto; }

.accent-lime { color: var(--lime); }
.accent-cyan { color: var(--cyan); }
.accent-fuchsia { color: var(--fuchsia); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lime);
  color: #0d0a1a;
  box-shadow: var(--glow-lime);
}
.btn-primary:hover {
  background: #d4ff33;
  box-shadow: 0 0 0 1px rgba(198, 255, 0, 0.4), 0 0 40px rgba(198, 255, 0, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-fuchsia {
  background: var(--fuchsia);
  color: #fff;
  box-shadow: var(--glow-fuchsia);
}
.btn-fuchsia:hover { background: #ff4f9d; box-shadow: 0 0 40px rgba(255, 46, 136, 0.45); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13, 10, 26, 0.92);
  border-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--lime), var(--cyan));
  color: #0d0a1a;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  box-shadow: var(--glow-lime);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.logo-text strong { color: var(--lime); font-weight: 700; }
.logo-tag { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

.site-nav { display: none; }
.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--lime); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.header-phone svg { color: var(--lime); }
.header-phone:hover { color: var(--lime); }
.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
@media (max-width: 899.98px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(13, 10, 26, 0.98);
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 0.75rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
}

/* ---------- Хиро ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.hero-title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.hero-phone svg { color: var(--lime); }
.hero-phone:hover { color: var(--lime); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.9rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(80%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.16), transparent 60%);
  filter: blur(30px);
}
.hero-cylinder { width: min(68vw, 380px); height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }

/* ---------- Преимущества ---------- */
.advantages-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}
.adv-card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.adv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.adv-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.adv-card:hover::before { opacity: 1; }

.adv-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime);
  margin-bottom: 1rem;
}
.adv-card:nth-child(2) .adv-icon { background: var(--cyan-soft); color: var(--cyan); }
.adv-card:nth-child(3) .adv-icon { background: var(--fuchsia-soft); color: var(--fuchsia); }
.adv-card:nth-child(4) .adv-icon { background: var(--lime-soft); color: var(--lime); }

.adv-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.adv-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Шаги заказа ---------- */
.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem;
  padding-top: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step-num {
  position: absolute;
  top: -1px; left: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--lime);
  text-shadow: 0 0 12px rgba(198,255,0,0.5);
}
.step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Каталог / карточки ---------- */
.catalog-grid,
.articles-grid,
.related-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-1);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder-note {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(13,10,26,0.7);
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.card-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.card-desc { color: var(--muted); font-size: 0.93rem; }
.card-price {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.card-price strong { color: var(--lime); font-weight: 600; }
.card-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Категории на главной */
.cat-card .card-media { aspect-ratio: 1 / 1; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.faq-q .plus {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--lime);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.faq-a-inner a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(198,255,0,0.14), transparent 60%),
    radial-gradient(500px 260px at 50% 140%, rgba(0,229,255,0.12), transparent 60%),
    var(--bg-1);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.cta-band p { margin: 0.9rem auto 1.6rem; max-width: 60ch; color: var(--muted); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--fuchsia); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--fuchsia); }

.field-error { display: none; color: var(--fuchsia); font-size: 0.8rem; }
.field.has-error .field-error { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.82rem; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--lime); }
.checkbox a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.checkbox.has-error { color: var(--fuchsia); }

.form-result {
  display: none;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(198,255,0,0.4);
  background: var(--lime-soft);
  color: var(--text);
  font-size: 0.95rem;
}
.form-result.is-visible { display: block; }
.form-result a { color: var(--lime); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form-note { color: var(--dim); font-size: 0.8rem; }

/* ---------- Контакты ---------- */
.contacts-layout { display: grid; gap: 2rem; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
}
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-row .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime);
}
.contact-row:nth-child(2) .ico { background: var(--cyan-soft); color: var(--cyan); }
.contact-row h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.15rem; }
.contact-row a { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.contact-row a:hover { color: var(--lime); }
.contact-row p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Товар (product) ---------- */
.product-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.gallery-main {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.thumb {
  width: 84px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--lime); box-shadow: var(--glow-lime); }

.product-info h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.product-cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.7rem; }
.product-desc { margin-top: 1.1rem; color: var(--muted); max-width: 60ch; }
.product-price-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.product-price-row .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.product-price-row .value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--lime); }

.specs { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs h2 {
  padding: 0.9rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); flex: 1; }
.spec-row dd { text-align: right; color: var(--text); font-weight: 600; }
.spec-row dd .ask { color: var(--dim); font-weight: 400; font-style: italic; }

.product-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.4rem; }

/* ---------- Статьи ---------- */
.article-card .card-media { aspect-ratio: 16 / 9; }
.article-card .card-cat { color: var(--fuchsia); }

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 20ch;
}
.page-hero .sub { margin-top: 1rem; color: var(--muted); max-width: 62ch; }

.block-txt p { margin-top: 1rem; color: var(--muted); max-width: 62ch; }

.block-txt a { color: var(--lime); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs .sep { color: var(--dim); }

.article-hero { max-width: 760px; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4rem); }
.article-hero .h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.3rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.article-meta .tag { color: var(--fuchsia); }

.prose { max-width: 760px; margin-inline: auto; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * + * { margin-top: 1.15rem; }
.prose .lead-text { font-size: 1.18rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 2.2rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-top: 1.8rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 0.55rem; padding-left: 1.3rem; }
.prose ul li { list-style: disc; color: var(--muted); }
.prose ol li { list-style: decimal; color: var(--muted); }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--lime); }
.prose blockquote {
  margin-left: 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--lime);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}
.prose .callout {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, var(--lime-soft), transparent 60%);
  color: var(--text);
  font-size: 0.95rem;
}

.article-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- О компании ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.value-list { display: flex; flex-direction: column; gap: 1rem; }
.value-item {
  display: flex; gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.value-item .ico { flex: none; color: var(--lime); margin-top: 2px; }
.value-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.value-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Подвал ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-strong);
  background: rgba(13, 10, 26, 0.6);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid { display: grid; gap: 2.2rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; max-width: 38ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--lime); }
.footer-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text) !important; }
.footer-phone:hover { color: var(--lime) !important; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---------- Мобильная нижняя CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(13, 10, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
}
.mobile-cta .btn { flex: 1; }

/* ---------- Reveal-анимация ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .adv-card, .card-media img { transition: none; }
}

/* ==========================================================================
   Брейкпоинты (mobile-first)
   ========================================================================== */
@media (min-width: 480px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone span { display: inline; }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
  .nav-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
  .header-actions { gap: 1.1rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .advantages-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .contacts-layout { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .product-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .mobile-cta { display: none; }
}

@media (min-width: 1200px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}
