/* ============================================================
   PrintFix 67 — Industrial Luxe / Техногенный премиум
   Dark theme by default
   ============================================================ */

:root {
  --ink:        #0D1117;   /* constant dark — text on accent buttons, glyphs */
  --surface:    #161B22;
  --surface-2:  #1C232D;
  --cyan:       #00E5FF;
  --orange:     #FF6D00;
  --green:      #00C853;
  --white:      #F0F6FC;
  --muted:      #8B97A7;
  --line:       rgba(255, 255, 255, 0.08);
  --line-cyan:  rgba(0, 229, 255, 0.25);

  /* themed semantic surfaces (dark defaults) */
  --bg:         #0D1117;
  --field-bg:   #0D1117;
  --glass:      rgba(22, 27, 34, 0.60);
  --header-bg:  rgba(13, 17, 23, 0.72);
  --overlay-bg: rgba(13, 17, 23, 0.96);
  --alt-band:   rgba(22, 27, 34, 0.50);
  --footer-bg:  rgba(13, 17, 23, 0.60);
  --map-filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.92) saturate(.85);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== LIGHT THEME ===== */
:root[data-theme="light"] {
  --surface:    #FFFFFF;
  --surface-2:  #F1F5FA;
  --cyan:       #0098B3;
  --white:      #14202E;   /* primary text */
  --muted:      #5B6776;
  --line:       rgba(13, 17, 23, 0.10);
  --line-cyan:  rgba(0, 150, 180, 0.30);

  --bg:         #EEF2F7;
  --field-bg:   #FFFFFF;
  --glass:      rgba(255, 255, 255, 0.72);
  --header-bg:  rgba(244, 247, 251, 0.80);
  --overlay-bg: rgba(238, 242, 247, 0.97);
  --alt-band:   rgba(13, 17, 23, 0.035);
  --footer-bg:  rgba(255, 255, 255, 0.70);
  --map-filter: none;
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Background grid + circuit ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% -8%, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% -8%, #000 28%, transparent 78%);
}
/* Дорожки печатной платы + узелки на пересечениях, медленно дрейфуют */
.bg-grid::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background-image:
    radial-gradient(circle, rgba(0, 229, 255, 0.45) 1px, transparent 1.6px),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 56px 56px;
  animation: grid-pan 26s linear infinite;
  will-change: transform;
}
@keyframes grid-pan {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-56px, -56px, 0); }
}
/* Плавно гуляющее свечение поверх сетки */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 55% at 50% 0%, rgba(0, 229, 255, 0.12), transparent 70%);
  animation: grid-glow 9s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes grid-glow {
  0%, 100% { opacity: 0.35; transform: translateX(-16%); }
  50%      { opacity: 1;    transform: translateX(16%); }
}
.bg-scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 229, 255, 0.015) 3px,
    rgba(0, 229, 255, 0.015) 4px
  );
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px var(--cyan);
}

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__ring {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid var(--cyan); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s;
}
.cursor__ring::before, .cursor__ring::after {
  content: ''; position: absolute; background: var(--cyan); opacity: .6;
}
.cursor__ring::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
.cursor__ring::after { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
.cursor__dot { position: fixed; width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; transform: translate(-50%, -50%); }
.cursor.is-active .cursor__ring { width: 52px; height: 52px; border-color: var(--orange); }
@media (hover: none), (max-width: 1024px) { .cursor { display: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: var(--cyan);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 10px;
  background: var(--btn-bg); color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
/* Световой блик-проблеск по диагонали при наведении */
.btn::before {
  content: ''; position: absolute; top: 0; left: -130%; z-index: -1;
  width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
}
.btn:hover::before { animation: btn-shine 0.85s var(--ease); }
@keyframes btn-shine { from { left: -130%; } to { left: 150%; } }
/* Material-рябь от клика */
.btn__ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: scale(0); opacity: 0.7;
  animation: btn-ripple 0.6s ease-out forwards;
}
@keyframes btn-ripple { to { transform: scale(2.6); opacity: 0; } }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--cyan { --btn-bg: var(--cyan); box-shadow: 0 8px 30px -10px var(--cyan); }
.btn--cyan:hover { box-shadow: 0 12px 36px -8px var(--cyan); }
.btn--urgent { --btn-bg: var(--orange); color: #fff; box-shadow: 0 8px 30px -10px var(--orange); }
.btn--urgent:hover { box-shadow: 0 12px 40px -8px var(--orange); }
.btn--ghost {
  background: transparent; color: var(--white);
  border-color: var(--line-cyan);
}
.btn--ghost:hover { border-color: var(--cyan); box-shadow: inset 0 0 20px rgba(0,229,255,.08); }

/* «Дышащая» пульсация через box-shadow — не клипается overflow:hidden */
.pulse { animation: pulse-glow 2.4s ease-out infinite; }
@keyframes pulse-glow {
  0%   { box-shadow: 0 8px 30px -10px var(--orange), 0 0 0 0 rgba(255, 109, 0, 0.55); }
  70%  { box-shadow: 0 8px 30px -10px var(--orange), 0 0 0 14px rgba(255, 109, 0, 0); }
  100% { box-shadow: 0 8px 30px -10px var(--orange), 0 0 0 0 rgba(255, 109, 0, 0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); }
.logo__icon { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0,229,255,.5)); }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .3px; white-space: nowrap; }
.logo__accent { color: var(--muted); font-weight: 500; }
.logo__num { color: var(--cyan); margin-left: 3px; }
.logo--footer .logo__text { font-size: 1.4rem; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__link { position: relative; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { font-family: var(--font-mono); font-weight: 500; color: var(--white); white-space: nowrap; }
.header__phone:hover { color: var(--cyan); }

.burger {
  display: none; width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--white); transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu__link { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.mobile-menu__link:hover { color: var(--cyan); }
.mobile-menu__footer { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.mobile-menu__phone { font-family: var(--font-mono); font-size: 1.2rem; color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(0,229,255,.10), transparent 70%),
    radial-gradient(50% 50% at 90% 30%, rgba(255,109,0,.08), transparent 70%);
}
.hero__particles { position: absolute; inset: 0; z-index: -1; }
.hero__particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cyan); opacity: .4; will-change: transform;
}
.hero__inner { position: relative; max-width: 880px; }

.hero__status {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
  padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.02); margin-bottom: 1.75rem;
}
.dot-online {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,200,83,.6); animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0,200,83,.5); }
  70% { box-shadow: 0 0 0 8px rgba(0,200,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); }
}

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.02;
  margin: 0 0 1.25rem; letter-spacing: -1px;
}
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 0 2rem; }
.hero__subtitle strong { color: var(--white); }

.hero__offers { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2.25rem; }
.offer-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem;
  padding: .6rem 1.1rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
}
.offer-chip__ico { font-size: 1.05rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__metrics { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 0; }
.metric dt { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--cyan); }
.metric dd { margin: 0; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--cyan);
  animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } }

/* ---------- Glitch ---------- */
.glitch { position: relative; }
.glitch.is-glitching::before, .glitch.is-glitching::after {
  content: attr(data-text); position: absolute; inset: 0;
  clip-path: inset(0 0 0 0);
}
.glitch.is-glitching::before { color: var(--cyan); animation: glitch-x .6s steps(2) 1; left: 2px; }
.glitch.is-glitching::after { color: var(--orange); animation: glitch-y .6s steps(2) 1; left: -2px; }
@keyframes glitch-x { 0%{clip-path:inset(0 0 80% 0)} 25%{clip-path:inset(40% 0 40% 0)} 50%{clip-path:inset(80% 0 0 0)} 75%{clip-path:inset(20% 0 55% 0)} 100%{clip-path:inset(0 0 100% 0)} }
@keyframes glitch-y { 0%{clip-path:inset(70% 0 10% 0)} 25%{clip-path:inset(10% 0 70% 0)} 50%{clip-path:inset(45% 0 30% 0)} 75%{clip-path:inset(0 0 85% 0)} 100%{clip-path:inset(85% 0 0 0)} }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--alt-band), transparent); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.eyebrow { font-family: var(--font-mono); font-size: .82rem; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; margin: .75rem 0 1rem; letter-spacing: -.5px; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   NEWS / ОБЪЯВЛЕНИЯ
   ============================================================ */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 1.9rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* цветная полоса-акцент слева (цвет задаёт тип объявления) */
.news-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--news-accent, var(--cyan));
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--news-accent, var(--line-cyan));
  box-shadow: 0 18px 40px -22px var(--news-accent, var(--cyan));
}
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.news-card__badge {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--news-accent, var(--cyan));
  border: 1px solid var(--news-accent, var(--line-cyan));
  background: color-mix(in srgb, var(--news-accent, var(--cyan)) 12%, transparent);
  padding: .28rem .6rem; border-radius: 100px; white-space: nowrap;
}
.news-card__date { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.news-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .55rem; }
.news-card__text { color: var(--muted); font-size: .96rem; margin: 0; }
.news-card__text a { color: var(--cyan); border-bottom: 1px solid var(--line-cyan); }
.news-card__text a:hover { border-bottom-color: var(--cyan); }

/* типы объявлений — задают акцентный цвет */
.news-card--schedule { --news-accent: var(--cyan); }
.news-card--holiday  { --news-accent: var(--orange); }
.news-card--promo    { --news-accent: var(--green); }
.news-card--info     { --news-accent: var(--muted); }

/* ============================================================
   SERVICES — flip cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.flip { perspective: 1200px; min-height: 280px; }
.flip__inner { position: relative; width: 100%; height: 100%; min-height: 280px; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.flip__front { background: linear-gradient(160deg, var(--surface), var(--bg)); }
.flip__front::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(0,229,255,.08), transparent 50%);
}
.flip__tag { font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1.5px; }
.flip__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: .75rem 0; }
.flip__desc { color: var(--muted); font-size: .96rem; margin: 0; }
.flip__hint { margin-top: auto; color: var(--cyan); font-size: .9rem; font-weight: 600; }
.flip__back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  border-color: var(--line-cyan);
  justify-content: center; align-items: flex-start; gap: .5rem;
}
.flip__price { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--cyan); }
.flip__meta { font-family: var(--font-mono); font-size: .85rem; color: var(--green); margin: 0; }
.flip__note { color: var(--muted); font-size: .92rem; margin: .5rem 0 1rem; }

.services__note {
  margin: 2.5rem auto 0; max-width: 720px; text-align: center;
  font-size: .95rem; color: var(--muted);
  display: flex; align-items: center; gap: .6rem; justify-content: center;
}
.services__note strong { color: var(--orange); }
.warn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); flex: none; }

/* ============================================================
   PROCESS — pipeline
   ============================================================ */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; counter-reset: step; }
.pipeline::before {
  content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: var(--line);
}
.pipeline.is-active::after {
  content: ''; position: absolute; top: 34px; left: 8%; height: 2px; width: 84%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px var(--cyan);
  transform-origin: left; animation: fill-line 1.6s var(--ease) forwards;
}
@keyframes fill-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { text-align: center; position: relative; padding-top: 0; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--cyan);
  background: var(--bg); border: 2px solid var(--line-cyan);
  position: relative; z-index: 1; margin-bottom: 1rem;
  transition: box-shadow .3s, border-color .3s;
}
.step:hover .step__num { border-color: var(--cyan); box-shadow: 0 0 24px -4px var(--cyan); }
.step__title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .5rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ============================================================
   BRANDS
   ============================================================ */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.brand {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--muted); padding: 2rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: .3s var(--ease);
}
.brand:hover { color: var(--white); border-color: var(--line-cyan); transform: translateY(-4px); box-shadow: 0 16px 40px -20px var(--cyan); }

/* ============================================================
   STATS
   ============================================================ */
.section--stats { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat {
  text-align: center; padding: 2rem 1rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.stat__num { display: block; font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--cyan); }
.stat__label { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   REVIEWS slider
   ============================================================ */
.slider { max-width: 760px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .5s var(--ease); }
.review { min-width: 100%; padding: 2.5rem; border: 1px solid var(--line-cyan); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 40px -20px var(--cyan); }
.review__rating { display: flex; gap: .35rem; margin-bottom: 1.25rem; }
.review__rating span { width: 12px; height: 18px; border-radius: 2px; background: var(--green); box-shadow: 0 0 8px rgba(0,200,83,.5); }
.review__text { font-size: 1.2rem; line-height: 1.6; margin: 0 0 1.5rem; }
.review__author strong { display: block; font-family: var(--font-display); }
.review__author span { color: var(--muted); font-size: .9rem; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.75rem; }
.slider__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--white); font-size: 1.4rem; line-height: 1; transition: .25s; }
.slider__btn:hover { border-color: var(--cyan); color: var(--cyan); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); transition: .25s; }
.slider__dots button.is-active { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); width: 26px; border-radius: 5px; }

/* ---------- Before / after ---------- */
.ba { max-width: 760px; margin: 4rem auto 0; }
.ba__title { text-align: center; font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 .4rem; }
.ba__sub { text-align: center; color: var(--muted); font-size: .95rem; margin: 0 0 1.5rem; }
.ba__compare { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-cyan); user-select: none; cursor: ew-resize; box-shadow: 0 24px 60px -30px var(--cyan); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { filter: saturate(1.14) contrast(1.05); }
/* before layer sits on top, revealed by clip-path (perfect pixel alignment) */
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__img--broken { filter: grayscale(.82) brightness(.5) contrast(1.18) sepia(.4) hue-rotate(-12deg); }
.ba__before::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255,109,0,.18), transparent 60%),
    linear-gradient(180deg, rgba(13,17,23,.25), rgba(13,17,23,.45));
}
.ba__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.35) 2px 3px);
  animation: ba-scan 6s linear infinite;
}
@keyframes ba-scan { from { background-position-y: 0; } to { background-position-y: 120px; } }

.ba__err {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-weight: 700; font-size: .9rem; letter-spacing: 1px;
  color: var(--orange); line-height: 1.2;
  padding: .5rem .75rem; border: 1px solid rgba(255,109,0,.5); border-radius: 8px;
  background: rgba(13,17,23,.65); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 2px;
  animation: err-blink 1.6s steps(1) infinite;
}
.ba__err small { font-weight: 500; font-size: .68rem; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
@keyframes err-blink { 0%, 80% { border-color: rgba(255,109,0,.5); } 85%, 100% { border-color: rgba(255,109,0,.95); box-shadow: 0 0 16px -4px var(--orange); } }

.ba__label {
  position: absolute; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: 1px; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 100px;
  background: rgba(13,17,23,.7); backdrop-filter: blur(6px); border: 1px solid var(--line);
}
.ba__label--before { left: 14px; color: var(--orange); }
.ba__label--after { right: 14px; color: var(--cyan); }
.ba__dot { width: 7px; height: 7px; border-radius: 50%; }
.ba__dot--ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ba__dot--err { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%); cursor: ew-resize; display: flex; align-items: center; justify-content: center; z-index: 3; }
.ba__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.ba__handle span { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); display: flex; align-items: center; justify-content: center; }
.ba__handle span::before { content: '⟺'; color: var(--ink); font-weight: 700; }

/* ============================================================
   FORM
   ============================================================ */
.form__wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form__intro { position: sticky; top: 100px; }
.form__intro .section__title { text-align: left; }
.form__perks { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.form__perks li { display: flex; align-items: center; gap: .65rem; color: var(--white); }

.card-form {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); transition: border-color .3s, box-shadow .3s;
}
.card-form.is-urgent { border-color: var(--orange); box-shadow: 0 0 50px -20px var(--orange); }

.urgent-toggle { display: flex; align-items: center; gap: .85rem; cursor: pointer; margin-bottom: 1.75rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; transition: .3s; }
.card-form.is-urgent .urgent-toggle { border-color: var(--orange); background: rgba(255,109,0,.06); }
.urgent-toggle input { position: absolute; opacity: 0; }
.urgent-toggle__box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--muted); flex: none; position: relative; transition: .2s; }
.urgent-toggle input:checked + .urgent-toggle__box { background: var(--orange); border-color: var(--orange); }
.urgent-toggle input:checked + .urgent-toggle__box::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.urgent-toggle__text { font-weight: 600; }
.urgent-toggle__text em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .9rem; }
.card-form.is-urgent .urgent-toggle__text em { color: var(--orange); }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--white); background: var(--field-bg); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}
.field input.is-error { border-color: var(--orange); }
#phone { font-family: var(--font-mono); }
.field select { appearance: none; cursor: pointer; }

.dropzone { position: relative; border: 1.5px dashed var(--line); border-radius: 12px; padding: 1.5rem; text-align: center; cursor: pointer; transition: .25s; margin-bottom: 1.5rem; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--cyan); background: rgba(0,229,255,.04); }
.dropzone__icon { font-size: 1.8rem; }
.dropzone__text { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }
.dropzone__text span { font-size: .82rem; }
.dropzone__list { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.dropzone__list li { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .82rem; color: var(--green); }

.card-form__status { margin: 1rem 0 0; font-family: var(--font-mono); font-size: .9rem; min-height: 1.2em; text-align: center; }
.card-form__status.ok { color: var(--green); }
.card-form__status.err { color: var(--orange); }
.card-form__hint { margin: 1rem 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__about { color: var(--muted); font-size: .95rem; margin: 1rem 0 1.5rem; max-width: 320px; }
.footer__socials { display: flex; gap: .75rem; }
.social { font-family: var(--font-mono); font-size: .85rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 100px; transition: .25s; }
.social:hover { border-color: var(--cyan); color: var(--cyan); }
.footer__h { font-family: var(--font-display); font-size: 1rem; margin: 0 0 1rem; }
.footer__list { display: flex; flex-direction: column; gap: .65rem; color: var(--muted); font-size: .95rem; }
.footer__list a:hover { color: var(--cyan); }
.footer__list--mono { font-family: var(--font-mono); font-size: .82rem; }

.footer__map { position: relative; height: 320px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Тёмная стилизация карты под сайт: инверсия + поворот оттенка */
.footer__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: var(--map-filter);
}
/* Виньетка + лёгкий cyan-тон, чтобы карта сливалась с тёмным футером */
.footer__map::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,229,255,.05)),
    linear-gradient(180deg, rgba(13,17,23,.45), transparent 18%, transparent 82%, rgba(13,17,23,.55));
}

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.75rem; padding-bottom: 1.75rem; color: var(--muted); font-size: .82rem; flex-wrap: wrap; }
.footer__sign { font-family: var(--font-mono); color: var(--cyan); opacity: .7; }

/* ---------- Floating action button (mobile) ---------- */
.fab {
  position: fixed; bottom: 16px; left: 50%;
  transform: translateX(-50%) translateY(160%);
  z-index: 90; display: none; white-space: nowrap;
  padding: .8rem 1.5rem; border-radius: 100px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 30px -8px var(--orange);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fab.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------- Side theme switch (light / dark) ---------- */
.theme-switch {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 95; width: 46px; height: 86px; padding: 5px;
  border-radius: 100px; border: 1px solid var(--line-cyan);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  display: grid; cursor: pointer; transition: border-color .3s var(--ease), background .4s var(--ease);
}
.theme-switch:hover { border-color: var(--cyan); }
.theme-switch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* icons baked into the track */
.theme-switch::before, .theme-switch::after {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 15px; line-height: 1; pointer-events: none; transition: opacity .3s var(--ease);
}
.theme-switch::before { content: '☾'; top: 12px; color: var(--cyan); }
.theme-switch::after  { content: '☀'; bottom: 12px; color: var(--orange); }
.theme-switch__knob {
  position: absolute; left: 5px; top: 5px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 14px -2px var(--cyan), 0 4px 10px -4px rgba(0,0,0,.5);
  display: grid; place-items: center; color: var(--ink); font-size: 16px;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.theme-switch__knob::before { content: '☾'; }
/* knob slides to bottom + turns orange in light theme */
:root[data-theme="light"] .theme-switch__knob {
  transform: translateY(40px); background: var(--orange);
  box-shadow: 0 0 14px -2px var(--orange), 0 4px 10px -4px rgba(0,0,0,.25);
}
:root[data-theme="light"] .theme-switch__knob::before { content: '☀'; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav, .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .form__wrap { grid-template-columns: 1fr; }
  .form__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .pipeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .pipeline::before, .pipeline.is-active::after { display: none; }
  .step { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .step__num { margin-bottom: 0; width: 56px; height: 56px; flex: none; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fab { display: inline-flex; }
  /* on touch, disable hover-flip; use tap */
  .flip:hover .flip__inner { transform: none; }
  .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .hero__metrics { gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .review { padding: 1.75rem; }
  .review__text { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
