/* ================================================================
   KeyMaster — style.css  (wp-content/themes/lptheme/style.css)
   ================================================================ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg-deep:       #050608;
  --bg-dark:       #0a0c10;
  --bg-card:       #0f1117;
  --bg-card2:      #13161e;
  --accent:        #d4a017;
  --accent2:       #f0c040;
  --accent-glow:   rgba(212,160,23,0.35);
  --red:           #c0392b;
  --text:          #e8e8e8;
  --text-muted:    #7a8094;
  --border:        rgba(212,160,23,0.18);
  --border-strong: rgba(212,160,23,0.45);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,6,8,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

nav.scrolled {
  background: rgba(5,6,8,0.98);
  border-bottom-color: var(--border-strong);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ── Contact dropdown in nav ── */
.nav-contact-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(212,160,23,0.06);
  flex-shrink: 0;
}
.nav-contact-btn:hover { background: rgba(212,160,23,0.14); border-color: var(--accent); }
.nav-pulse-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: livePulse 2s ease-in-out infinite;
}

.nav-contact-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  min-width: 240px;
  padding: 1rem;
  z-index: 2000;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: fadeIn 0.18s ease;
}
.nav-contact-dropdown.open { display: block; }
.ncd-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}
.ncd-row:last-child { border-bottom: none; }
.ncd-row i { color: var(--accent); width: 16px; text-align: center; flex-shrink: 0; }
.ncd-row a { color: var(--text); text-decoration: none; font-weight: 600; }
.ncd-row a:hover { color: var(--accent); }
.ncd-sat { color: var(--text-muted); }
.ncd-emergency i { color: #f39c12; }
.ncd-emergency span { color: #f39c12; font-weight: 600; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  transition: all 0.3s;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(5,6,8,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(212,160,23,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(192,57,43,0.05) 0%, transparent 60%),
    var(--bg-deep);
  will-change: transform;
}

.hero-key-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.06;
  will-change: transform;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 860px;
}

.hero-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.7s 0.4s ease both;
  background: rgba(5,6,8,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  white-space: nowrap;
}
.stat-item { text-align: center; padding: 0 1.5rem; }
.stat-sep {
  width: 1px; height: 36px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  animation: numPulse 2s ease-in-out infinite alternate;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s infinite;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pulse-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.25);
  transform: translate(-50%, -50%);
  animation: expandRing 4s ease-out infinite;
}
.pulse-ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; }
.pulse-ring:nth-child(2) { width: 500px; height: 500px; animation-delay: 1s; }
.pulse-ring:nth-child(3) { width: 700px; height: 700px; animation-delay: 2s; }
.pulse-ring:nth-child(4) { width: 900px; height: 900px; animation-delay: 3s; }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(212,160,23,0.4), transparent);
  animation: scanMove 6s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* ─── BADGE / INDICATOR ─── */
.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  color: #e74c3c;
  padding: 0.35rem 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ping-dot {
  position: relative;
  width: 8px; height: 8px;
}
.ping-dot::before,
.ping-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e74c3c;
}
.ping-dot::after { animation: ping 1.5s ease-out infinite; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #2ecc71;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
}
.live-dot {
  width: 6px; height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

/* Corner pulse in hero */
.live-indicator-corner {
  position: fixed;
  top: 22px; right: 68px;
  z-index: 1100;
  pointer-events: none;
  display: flex; align-items: center; gap: 5px;
}
.live-dot-corner {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 7px #2ecc71, 0 0 14px rgba(46,204,113,0.4);
  animation: livePulse 2s ease-in-out infinite;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-outline:hover {
  background: rgba(212,160,23,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ================================================================
   SECTIONS — shared
   ================================================================ */
section {
  padding: 5rem 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-title .accent { color: var(--accent); }

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

/* ─── REVEAL animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── NEON CARD ─── */
.neon-card {
  position: relative;
  border: 1px solid transparent;
  background: var(--bg-card);
  overflow: hidden;
}
.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.neon-card:hover::before { opacity: 1; }

/* ─── NEON DIVIDER ─── */
.neon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), rgba(212,160,23,0.3), transparent);
  position: relative;
}
.neon-divider::after {
  content: '';
  position: absolute;
  left: 50%; top: -3px;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* ================================================================
   SERVICES  — 4 columns desktop, 2 tablet, 1 mobile
   ================================================================ */
#services { background: var(--bg-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  margin-top: 3rem;
  background: var(--border);
}

/* 8 cards: rows of 4 */
.service-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.35s;
}
.service-card:hover { background: var(--bg-card2); transform: translateY(-4px); }
.service-card:hover::before { height: 100%; }
.service-card:hover { box-shadow: 0 0 30px rgba(212,160,23,0.08), inset 0 0 30px rgba(212,160,23,0.03); }

/* smaller card for the "simple keys" item */
.service-card.service-card--mini { padding: 1.5rem 2rem; }
.service-card.service-card--mini p { font-size: 0.85rem; }
.service-card.service-card--mini .keys-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.service-card.service-card--mini .keys-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(212,160,23,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: rgba(212,160,23,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.service-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.service-price {
  margin-top: 1.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}
.service-price span { font-size: 0.75rem; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; font-weight: 400; }
.service-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--border-strong);
  letter-spacing: 1px;
}

/* ================================================================
   HOW IT WORKS — 4 steps only
   ================================================================ */
#how { background: var(--bg-deep); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 38px; left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 76px; height: 76px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  background: var(--bg-dark);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.3s;
}
.step:hover .step-num {
  background: rgba(212,160,23,0.1);
  box-shadow: 0 0 30px var(--accent-glow);
}
.step h4, .step h3.step-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ================================================================
   PARALLAX DIVIDER
   ================================================================ */
.parallax-divider {
  height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-divider-bg {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(135deg, rgba(192,57,43,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,160,23,0.06) 0%, transparent 70%),
    var(--bg-dark);
  will-change: transform;
  overflow: hidden;
}

/* Ключ SVG що повільно обертається */
.parallax-divider-bg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='28' cy='28' r='18' stroke='%23d4a017' stroke-width='4' fill='none' opacity='0.35'/%3E%3Ccircle cx='28' cy='28' r='7' fill='%23d4a017' opacity='0.35'/%3E%3Crect x='43' y='24' width='44' height='9' rx='3' fill='%23d4a017' opacity='0.35'/%3E%3Crect x='74' y='33' width='9' height='13' rx='2' fill='%23d4a017' opacity='0.35'/%3E%3Crect x='60' y='33' width='9' height='10' rx='2' fill='%23d4a017' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: pdivKeyRotate 14s linear infinite;
  filter: drop-shadow(0 0 12px rgba(212,160,23,0.5));
}

/* Додаткове мерехтливе кільце */
.parallax-divider-bg::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.1);
  animation: pdivRingPulse 2.5s ease-out infinite;
}

#pdivCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Три пульсуючі кільця (через div-и) */
.pdiv-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.18);
  transform: translate(-50%, -50%) scale(0.4);
  animation: pdivRingPulse 3s ease-out infinite;
  pointer-events: none;
}
.pdiv-ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.pdiv-ring-2 { width: 320px; height: 320px; animation-delay: 1s; }
.pdiv-ring-3 { width: 460px; height: 460px; animation-delay: 2s; }

@keyframes pdivKeyRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pdivRingPulse {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.parallax-divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.big-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}
.big-text .accent { color: var(--accent); }
.big-text .dim    { color: var(--text-muted); font-weight: 300; }

/* ================================================================
   GALLERY
   ================================================================ */
#gallery { background: var(--bg-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s;
  filter: brightness(0.85) saturate(0.7);
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1) saturate(1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,6,8,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.gallery-zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 48px; height: 48px;
  background: rgba(212,160,23,0.15);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.lightbox.open,
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 1px solid var(--border); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(212,160,23,0.1);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(212,160,23,0.25); }
.lightbox-caption {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-align: center;
}

/* ================================================================
   BRANDS  — 7 new + 20 existing = 27 total → 9 columns desktop
   ================================================================ */
#brands { background: var(--bg-dark); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}
.brand-item {
  background: var(--bg-card);
  cursor: pointer;
  perspective: 600px;
  aspect-ratio: 1 / 1.05;
  min-height: 90px;
}
.brand-flip-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}
.brand-item:hover .brand-flip-inner {
  transform: rotateY(180deg);
}
.brand-flip-front, .brand-flip-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.brand-flip-front {
  background: var(--bg-card);
  padding: 0.75rem 0.5rem;
}
.brand-flip-back {
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(212,160,23,0.06));
  border: 1px solid var(--border-strong);
  transform: rotateY(180deg);
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-logo-wrap {
  width: 48px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-logo-img {
  max-width: 44px; max-height: 32px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.brand-item:hover .brand-logo-img { opacity: 0.9; }
.brand-car-icon {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.55;
  position: absolute;
}
.brand-logo-img:not([src=""]) ~ .brand-car-icon { display: none; }
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}
.brand-item:hover .brand-name { color: var(--accent); }
.brand-key-icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
.brand-item i { opacity: 0.7; }
.brand-item:hover i { opacity: 1; }
/* input error state */
.input-err { border-color: #e74c3c !important; box-shadow: 0 0 0 2px rgba(231,76,60,0.25) !important; }

/* ================================================================
   STOCK — В НАЯВНОСТІ
   ================================================================ */
#stock { background: var(--bg-dark); }
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.stock-card {
  padding: 2rem;
  background: var(--bg-card);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stock-card:hover { transform: translateY(-4px); }
.stock-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.stock-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.stock-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.6; }
.stock-list { list-style: none; padding: 0; }
.stock-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.stock-list li:last-child { border-bottom: none; }
.stock-list li i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }

/* ================================================================
   SCROLL TO TOP — KEY SHAPE
   ================================================================ */
.to-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  width: 52px; height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  border-radius: 2px;
}
.to-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top-btn:hover { background: rgba(212,160,23,0.15); border-color: var(--accent); }
.to-top-btn svg { width: 24px; height: 40px; }

/* ================================================================
   WHY US
   ================================================================ */
#why { background: var(--bg-deep); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.why-list { display: flex; flex-direction: column; gap: 1.5rem; }
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}
.why-item:hover { border-color: var(--border-strong); background: var(--bg-card2); transform: translateX(6px); }
.why-icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.why-item h4, .why-item h3.why-title { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.why-item p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.why-visual { position: relative; }
.why-visual-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-visual-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.big-key-icon {
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.8;
  display: block;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite, keyGlow 3s ease-in-out infinite alternate;
}
.why-visual-box h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.why-visual-box p { color: var(--text-muted); font-size: 0.9rem; }
.why-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  margin-top: 0.75rem;
}
.why-stat-row .ws-label { color: var(--text-muted); font-size: 0.85rem; }
.why-stat-row .ws-val {
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

/* ================================================================
   COUNTERS
   ================================================================ */
.counters-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.counters-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212,160,23,0.03) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}
.counters-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.counter-item { text-align: center; position: relative; }
.counter-item::after {
  content: '';
  position: absolute;
  right: -2rem; top: 20%;
  width: 1px; height: 60%;
  background: var(--border);
}
.counter-item:last-child::after { display: none; }
.counter-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 20px rgba(212,160,23,0.5);
}
.counter-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* ================================================================
   REVIEWS
   ================================================================ */
#reviews { background: var(--bg-dark); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 1.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}
.review-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.review-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(212,160,23,0.15);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   FAQ
   ================================================================ */
#faq { background: var(--bg-deep); }

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.faq-item { background: var(--bg-card); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s, background 0.2s;
}
.faq-question:hover  { color: var(--accent); background: rgba(212,160,23,0.04); }
.faq-question.open   { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 300px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ================================================================
   CONTACT / FORM
   ================================================================ */
#contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,160,23,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.contact-detail:hover { border-color: var(--border-strong); }
.contact-detail i { color: var(--accent); font-size: 1.2rem; width: 24px; text-align: center; }
.contact-detail a, .contact-detail span { color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.contact-detail a:hover { color: var(--accent); }
.work-hours { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--border); background: var(--bg-card); }
.work-hours h4, .work-hours h3.schedule-title { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; letter-spacing: 2px; color: var(--accent); margin-bottom: 0.75rem; }
.work-hours p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.work-hours .emergency { color: var(--accent); margin-top: 0.5rem; font-weight: 600; }

/* Form */
.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
}
.form-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.form-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900; margin-bottom: 0.5rem; }
.form-sub   { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: rgba(122,128,148,0.5); }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a017' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-control option { background: var(--bg-card); color: var(--text); }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}
.form-submit:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.form-submit:active { transform: translateY(0); }
.form-note { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-soc  { display: flex; gap: 1rem; }
.footer-soc a { color: var(--text-muted); font-size: 1.2rem; transition: color 0.2s; text-decoration: none; }
.footer-soc a:hover { color: var(--accent); }

/* ================================================================
   FLOATING BUTTONS
   ================================================================ */
.float-call {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.float-btn.call     { background: var(--accent); color: var(--bg-deep); animation: pulse-ring 2.5s infinite; }
.float-btn.viber    { background: #7360f2; color: white; }
.float-btn.telegram { background: #0088cc; color: white; }
.float-btn:hover    { transform: scale(1.1); }

/* ================================================================
   BRAND MODAL
   ================================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open,
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 0 60px rgba(212,160,23,0.12);
}
.modal-corner { position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; }
.modal-corner.tl { top: -1px; left: -1px;   border-width: 2px 0 0 2px; }
.modal-corner.tr { top: -1px; right: -1px;  border-width: 2px 2px 0 0; }
.modal-corner.bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.modal-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,160,23,0.08);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.modal-title { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; font-weight: 900; margin-bottom: 0.5rem; }
.modal-sub   { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.75rem; }
.modal-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.modal-label { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.modal-input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.modal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-input::placeholder { color: rgba(122,128,148,0.5); }

.modal-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.modal-btn:hover    { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.modal-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.modal-success { text-align: center; padding: 1.5rem 0; display: none; }
.modal-success i  { font-size: 2.5rem; color: #2ecc71; margin-bottom: 1rem; display: block; }
.modal-success h3 { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; margin-bottom: 0.5rem; color: #2ecc71; }
.modal-success p  { color: var(--text-muted); font-size: 0.9rem; }
.modal-secure     { text-align: center; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.75rem; opacity: 0.7; }

/* ================================================================
   GLITCH & SPECIAL FX
   ================================================================ */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.glitch::before { color: #ff6b35; clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translate(-2px, 0); animation: glitch1 4s infinite; }
.glitch::after  { color: #00d4ff; clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px,  0); animation: glitch2 4s infinite; }

.typewriter-cursor { display: inline-block; width: 3px; height: 1em; background: var(--accent); margin-left: 4px; vertical-align: text-bottom; animation: blink 0.8s step-end infinite; }

.section-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sp { position: absolute; width: 2px; height: 2px; background: var(--accent); border-radius: 50%; animation: spFloat linear infinite; opacity: 0; }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ping     { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes livePulse{ 0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(212,160,23,0.5); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes expandRing { 0% { opacity: 0.6; transform: translate(-50%,-50%) scale(0.3); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1); } }
@keyframes scanMove   { 0% { top: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes scrollLine { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes numPulse   { from { text-shadow: 0 0 10px rgba(212,160,23,0.5); } to { text-shadow: 0 0 24px rgba(212,160,23,1), 0 0 50px rgba(212,160,23,0.4); } }
@keyframes keyGlow    { from { filter: drop-shadow(0 0 6px rgba(212,160,23,0.6)); } to { filter: drop-shadow(0 0 18px rgba(212,160,23,1)) drop-shadow(0 0 40px rgba(212,160,23,0.6)); } }
@keyframes shimmer    { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
@keyframes blink      { 50% { opacity: 0; } }
@keyframes glitch1    { 0%, 92%, 100% { transform: translate(0); opacity: 0; } 93% { transform: translate(-3px, 1px); opacity: 0.8; } 95% { transform: translate(3px, -1px); opacity: 0.8; } }
@keyframes glitch2    { 0%, 92%, 100% { transform: translate(0); opacity: 0; } 93% { transform: translate(3px, -1px); opacity: 0.8; } 95% { transform: translate(-3px, 1px); opacity: 0.8; } }
@keyframes spFloat    { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.3; } 100% { transform: translateY(-20px) scale(1); opacity: 0; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid   { grid-template-columns: repeat(6, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links    { display: none; }
  .burger       { display: flex; }
  .why-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row     { grid-template-columns: 1fr; }
  .hero-stats   { gap: 0; flex-wrap: wrap; justify-content: center; padding: 0.6rem 1rem; }
  .stat-item    { padding: 0 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps        { grid-template-columns: repeat(2, 1fr); }
  .steps::before{ display: none; }
  .counters-grid{ gap: 2rem; }
  .counter-item::after { display: none; }
  .brands-grid  { grid-template-columns: repeat(5, 1fr); }
  .stock-grid   { grid-template-columns: repeat(2, 1fr); }
  /* contact info dropdown position */
  .nav-contact-dropdown { right: 0; min-width: 220px; }
}

@media (max-width: 700px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  nav { padding: 0 1.2rem; }
  .nav-logo { font-size: 0.95rem; }

  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.6rem); }
  .hero-sub   { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; }
  .hero-btns  { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
  .hero-key-deco { display: none; }

  .section-title { font-size: clamp(1.3rem, 5.5vw, 2rem); }

  .services-grid { grid-template-columns: 1fr; gap: 1px; }
  .service-card  { padding: 1.5rem; }

  .steps { grid-template-columns: 1fr; gap: 1.5rem; }

  .brands-grid  { grid-template-columns: repeat(3, 1fr); }
  .brand-item   { padding: 1rem 0.5rem; font-size: 0.65rem; }
  .brand-item i { font-size: 1.2rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .why-list   { gap: 1rem; }
  .why-item   { padding: 1rem; }
  .why-visual { display: none; }

  .counters-grid   { flex-direction: column; gap: 1.5rem; align-items: center; }
  .counter-num     { font-size: 2rem; }

  .reviews-grid { grid-template-columns: 1fr; }

  .contact-info { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .stock-grid   { grid-template-columns: 1fr; gap: 1rem; }
  .to-top-btn   { bottom: 1rem; left: 1rem; width: 44px; height: 44px; }

  .float-call { bottom: 1rem; right: 1rem; gap: 0.6rem; }
  .float-btn  { width: 50px; height: 50px; font-size: 1.1rem; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-soc   { justify-content: center; }

  .modal-box { padding: 1.75rem 1.25rem; }

  .parallax-divider { height: 240px; }
  .parallax-divider-content h2, .big-text { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .brands-grid  { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats   { flex-direction: column; gap: 0; white-space: normal; padding: 0.5rem 1rem; }
  .stat-sep     { width: 60px; height: 1px; }
  .stat-item    { flex-direction: row; gap: 0.75rem; align-items: center; padding: 0.4rem 0; width: 100%; justify-content: center; }
  .stat-num     { font-size: 1.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  nav { padding: 0 0.75rem; height: 56px; }
  .nav-logo     { font-size: 0.85rem; }
}


/* ═══════════════════════════════════════
   INLINE OVERRIDES (extracted from index.html)
   ═══════════════════════════════════════ */
    /* ─── BRAND MODAL LOGO ─── */
    .modal-logo-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100px;
      height: 100px;
      margin: 0 auto 0.75rem;
      background: rgba(212,160,23,0.06);
      border: 1px solid rgba(212,160,23,0.2);
      border-radius: 50%;
      position: relative;
    }
    .modal-brand-logo-big {
      width: 72px;
      height: 72px;
      object-fit: contain;
     
      opacity: 0.9;
      animation: logoPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    .modal-brand-fallback-icon {
      display: none;
      font-size: 2.5rem;
      color: #d4a017;
    }
    @keyframes logoPopIn {
      from { transform: scale(0.4) rotate(-15deg); opacity: 0; }
      to   { transform: scale(1) rotate(0deg);     opacity: 0.9; }
    }
    .modal-brand-tag {
      text-align: center;
      margin-bottom: 0.5rem;
    }
    .modal-brand-tag span {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.1rem;
      font-weight: 900;
      color: #d4a017;
      letter-spacing: 3px;
      text-transform: uppercase;
    }
    .brand-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .brand-logo {
      width: 52px;
      height: 52px;
      object-fit: contain;
      opacity: 0.75;
      transition: opacity 0.2s, transform 0.2s;
    }
    .brand-item:hover .brand-logo { opacity: 1; }
    .brand-item span {
      font-size: 0.75rem;
      text-align: center;
    }

    /* ─── SUPER ZOOM EFFECT ON BRAND CLICK ─── */
    .brand-zoom-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(5,6,8,0.85);
      backdrop-filter: blur(8px);
    }
    .brand-zoom-overlay.active { display: flex; animation: zoomIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both; }
    .brand-zoom-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }
    .brand-zoom-inner img {
      width: 160px;
      height: 160px;
      object-fit: contain;
     
      filter: drop-shadow(0 0 30px #d4a017);
    }
    .brand-zoom-inner span {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.5rem;
      font-weight: 900;
      color: #d4a017;
      letter-spacing: 3px;
    }
    @keyframes zoomIn {
      from { transform: scale(0.3); opacity: 0; }
      to   { transform: scale(1);   opacity: 1; }
    }

    /* ─── SCROLL-TO-TOP KEY BUTTON ─── */
    #scrollTopBtn {
      position: fixed;
      left: 1.2rem;
      bottom: 2rem;
      z-index: 1000;
      width: 48px;
      height: 48px;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
      background: none;
      border: none;
      padding: 0;
    }
    #scrollTopBtn.visible { opacity: 1; pointer-events: auto; }
    #scrollTopBtn svg {
      width: 48px;
      height: 48px;
      filter: drop-shadow(0 0 8px #d4a017);
      transition: transform 0.2s;
    }
    #scrollTopBtn:hover svg { transform: translateY(-4px) scale(1.1); }

    /* ─── ONLINE INDICATOR — зелена пульсація ─── */
    .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.78rem;
      color: #2ecc71;
      text-transform: uppercase;
      letter-spacing: 2px;
    }
    .live-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #2ecc71;
      box-shadow: 0 0 0 0 rgba(46,204,113,0.5);
      animation: pulse-green 2s infinite;
    }
    @keyframes pulse-green {
      0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
      70%  { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
      100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
    }

    /* ─── CONTACT INFO — UPDATED ADDRESS ─── */
    .contact-addr-block {
      margin-top: 0.75rem;
    }
    .contact-addr-block .contact-detail {
      align-items: flex-start;
    }
    .contact-addr-block .contact-detail span {
      line-height: 1.5;
    }

    /* ─── KEYS ASSORTMENT SECTION ─── */
    .keys-assortment-section {
      background: #080a0e;
      padding: 4rem 0;
      border-top: 1px solid rgba(212,160,23,0.1);
      border-bottom: 1px solid rgba(212,160,23,0.1);
    }
    .keys-assortment-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    .keys-assortment-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 2.5rem;
    }
    @media (max-width: 700px) {
      .keys-assortment-grid { grid-template-columns: 1fr; }
    }
    .keys-assort-card {
      background: #0f1117;
      border: 1px solid rgba(212,160,23,0.2);
      padding: 2rem 1.75rem;
      position: relative;
      transition: border-color 0.25s;
    }
    .keys-assort-card::before, .keys-assort-card::after {
      content: '';
      position: absolute;
      width: 14px; height: 14px;
      border-color: #d4a017;
      border-style: solid;
    }
    .keys-assort-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
    .keys-assort-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
    .keys-assort-card:hover { border-color: rgba(212,160,23,0.5); }
    .keys-assort-icon {
      font-size: 2.2rem;
      color: #d4a017;
      margin-bottom: 1rem;
    }
    .keys-assort-card h3 {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: #e8e8e8;
      margin-bottom: 0.75rem;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .keys-assort-card p {
      color: #7a8094;
      font-size: 0.92rem;
      line-height: 1.65;
    }
    .keys-assort-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 1rem;
    }
    .keys-assort-tag {
      background: rgba(212,160,23,0.1);
      border: 1px solid rgba(212,160,23,0.25);
      color: #d4a017;
      font-size: 0.72rem;
      padding: 0.25rem 0.6rem;
      border-radius: 2px;
      letter-spacing: 0.5px;
    }
    /* ─── NAV CONTACTS: дзвінок + геолокація ─── */
    .nav-contacts {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .nav-call-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #d4a017;
      text-decoration: none;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 1px;
      padding: 0.4rem 0.75rem;
      border: 1px solid rgba(212,160,23,0.3);
      transition: all 0.2s;
      white-space: nowrap;
    }
    .nav-call-btn:hover {
      background: rgba(212,160,23,0.12);
      border-color: rgba(212,160,23,0.6);
    }
    .nav-phone-num { display: inline; }

    .nav-geo-wrap {
      position: relative;
    }
    /* ─── NAV GUARANTEE & ONLINE BADGE ─── */

    /* nav вже має position:fixed — додаємо relative для дочірніх absolute */
    #navbar { position: fixed !important; }

    .nav-guarantee {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 1.8px;
      text-transform: uppercase;
      color: #d4a017;
      padding: 0.28rem 0.85rem;
      border: 1px solid rgba(212,160,23,0.35);
      background: rgba(212,160,23,0.06);
      white-space: nowrap;
      pointer-events: none;
    }
    .nav-guarantee::before, .nav-guarantee::after {
      content: '';
      position: absolute;
      width: 5px; height: 5px;
      border-color: #d4a017; border-style: solid;
    }
    .nav-guarantee::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
    .nav-guarantee::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
    .nav-guarantee i { font-size: 0.7rem; }

    .nav-online-badge {
      top: 0;
      right: 0;
      display: flex;
      align-items: center;
      gap: 0.38rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.52rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #2ecc71;
      background: rgba(46,204,113,0.07);
      border-left: 1px solid rgba(46,204,113,0.3);
      border-bottom: 1px solid rgba(46,204,113,0.3);
      padding: 0.22rem 0.65rem;
      text-decoration: none;
      transition: background 0.2s;
      animation: liveFramePulse 2.5s ease-in-out infinite;
    }
    .nav-online-badge:hover { background: rgba(46,204,113,0.14); }
    .nav-online-badge .live-dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      background: #2ecc71;
      flex-shrink: 0;
      animation: pulse-green 2s infinite;
    }

    /* Ховаємо обидва на мобільному */
    @media (max-width: 900px) {
      .nav-guarantee    { display: none !important; }
      .nav-online-badge { display: none !important; }
    }
    .geo-toggle-input {
      display: none;
    }
    .nav-geo-btn {
      width: 38px; height: 38px;
      background: none;
      border: 1px solid rgba(212,160,23,0.3);
      color: #d4a017;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      transition: all 0.2s;
    }
    .nav-geo-btn:hover,
    .nav-geo-wrap.open .nav-geo-btn {
      background: rgba(212,160,23,0.15);
      border-color: #d4a017;
    }
    .geo-popup {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      background: #0d0f15;
      border: 1px solid rgba(212,160,23,0.4);
      padding: 1rem 1.1rem 0.85rem;
      min-width: 300px;
      z-index: 9999;
      display: none;
      box-shadow: 0 12px 40px rgba(0,0,0,0.8);
    }
    .nav-geo-wrap.open .geo-popup {
      display: block !important;
      animation: geoFadeIn 0.22s ease;
    }
    @keyframes geoFadeIn {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .geo-popup-arrow {
      position: absolute;
      top: -6px; right: 10px;
      width: 10px; height: 10px;
      background: #0d0f15;
      border-left: 1px solid rgba(212,160,23,0.4);
      border-top: 1px solid rgba(212,160,23,0.4);
      transform: rotate(45deg);
    }
    .geo-row {
      display: flex;
      gap: 0.65rem;
      align-items: flex-start;
      margin-bottom: 0.75rem;
      font-size: 0.82rem;
      line-height: 1.55;
      color: #c8cce0;
    }
    .geo-row > i { color: #d4a017; flex-shrink: 0; margin-top: 3px; font-size: 0.88rem; }
    .geo-row b { color: #e8e8e8; }
    .geo-emergency {
      margin-top: 0.35rem;
      color: #e05c5c;
      font-size: 0.77rem;
      font-weight: 600;
    }
    .geo-emergency i { margin-right: 3px; }

    /* Google Map embed */
    .geo-map-wrap {
      margin: 0.65rem -1.1rem;
      border-top: 1px solid rgba(212,160,23,0.15);
      border-bottom: 1px solid rgba(212,160,23,0.15);
      overflow: hidden;
      height: 160px;
    }
    .geo-map-iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
      filter: grayscale(0.3) invert(0.05);
    }

    /* Navigation button */
    .geo-nav-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      width: 100%;
      margin-top: 0.7rem;
      padding: 0.6rem 0;
      background: #d4a017;
      color: #050608;
      text-decoration: none;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: background 0.2s, transform 0.15s;
    }
    .geo-nav-btn:hover { background: #f0c040; transform: translateY(-1px); }
    .geo-nav-btn i { font-size: 0.95rem; }
    /* Show different text on mobile vs desktop */
    .geo-nav-mobile { display: none; }
    .geo-nav-desktop { display: inline; }
    @media (max-width: 700px) {
      .geo-nav-mobile  { display: inline; }
      .geo-nav-desktop { display: none; }
      .geo-popup {
        position: fixed;
        top: 58px;
        left: 0.5rem;
        right: 0.5rem;
        min-width: unset;
        width: auto;
        display: none;
      }
      .nav-geo-wrap.open .geo-popup {
        display: block !important;
      }
      .geo-popup-arrow { display: none; }
      .geo-nav-btn {
        background: #27ae60;
        animation: phonePulse 2s ease-in-out infinite;
      }
      .geo-nav-btn:hover { background: #2ecc71; }
    }

    /* ─── DESKTOP SIDE CONTACTS ─── */
    .side-contacts {
      position: fixed;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 600;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .side-btn {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      overflow: hidden;
      max-width: 42px;
      height: 46px;
      text-decoration: none;
      color: #fff;
      transition: max-width 0.32s cubic-bezier(0.34,1.4,0.64,1);
      border-radius: 4px 0 0 4px;
      white-space: nowrap;
    }
    .side-btn:hover { max-width: 180px; }
    .side-btn i {
      min-width: 42px; width: 42px; height: 46px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem;
      flex-shrink: 0;
    }
    .side-btn span {
      font-family: 'Rajdhani', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      padding: 0 0.75rem 0 0.4rem;
      opacity: 0;
      transition: opacity 0.15s 0.12s;
    }
    .side-btn:hover span { opacity: 1; }

    .side-viber   { background: rgba(90,70,195,0.9); }
    .side-viber i { background: #5a46c3; }
    .side-viber:hover { background: #7360f2; }

    .side-tg      { background: rgba(0,110,170,0.9); }
    .side-tg i    { background: #006eaa; }
    .side-tg:hover { background: #0088cc; }

    .side-call    { background: rgba(160,115,8,0.9); }
    .side-call i  { background: #b08000; color: #000; }
    .side-call:hover { background: #d4a017; color: #000; }
    .side-call .side-btn span { color: #000; }

    /* Pulse on call */
    @keyframes sidePulse {
      0%   { box-shadow: 0 0 0 0 rgba(212,160,23,0.7); }
      70%  { box-shadow: 0 0 0 7px rgba(212,160,23,0); }
      100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); }
    }
    .side-call i { animation: sidePulse 2.2s infinite; }

    /* ─── MOBILE FAB ─── */
    .mob-fab {
      display: none;
      position: fixed;
      bottom: 1.4rem;
      right: 1.2rem;
      z-index: 900;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.55rem;
    }
    .mob-fab-toggle {
      width: 54px; height: 54px;
      border-radius: 50%;
      background: #0d0f15;
      border: 1.5px solid rgba(212,160,23,0.5);
      color: #d4a017;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
      transition: all 0.28s;
      position: relative;
    }
    .mob-fab-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid rgba(212,160,23,0.4);
      animation: fabRingPulse 2s ease-out infinite;
      pointer-events: none;
    }
    @keyframes fabRingPulse {
      0%   { transform: scale(1);   opacity: 0.7; }
      100% { transform: scale(1.5); opacity: 0; }
    }
    .mob-fab.open .mob-fab-toggle {
      background: #d4a017;
      color: #050608;
      border-color: #d4a017;
      box-shadow: 0 0 24px rgba(212,160,23,0.6);
    }
    .mob-fab.open .mob-fab-pulse { display: none; }
    .mob-icon-open  { display: block; }
    .mob-icon-close { display: none; }
    .mob-fab.open .mob-icon-open  { display: none; }
    .mob-fab.open .mob-icon-close { display: block; }

    .mob-fab-items {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.55rem;
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px) scale(0.95);
      transition: all 0.28s cubic-bezier(0.34,1.5,0.64,1);
    }
    .mob-fab.open .mob-fab-items {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
    .mob-fab-btn {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
      color: #fff;
      border-radius: 30px;
      padding: 0.6rem 1.1rem 0.6rem 0.85rem;
      font-family: 'Rajdhani', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 4px 18px rgba(0,0,0,0.45);
      transition: transform 0.18s, box-shadow 0.18s;
      letter-spacing: 0.5px;
    }
    .mob-fab-btn:hover  { transform: translateX(-4px); }
    .mob-fab-btn:active { transform: scale(0.95); }
    .mob-fab-btn i { font-size: 1.1rem; min-width: 20px; text-align: center; }
    /* Stagger */
    .mob-fab.open .mob-fab-btn:nth-child(1) { transition-delay: 0.05s; }
    .mob-fab.open .mob-fab-btn:nth-child(2) { transition-delay: 0.10s; }
    .mob-fab.open .mob-fab-btn:nth-child(3) { transition-delay: 0.15s; }
    .mob-call  { background: linear-gradient(135deg,#1a8c46,#27ae60); }
    .mob-tg    { background: linear-gradient(135deg,#005f8a,#0088cc); }
    .mob-viber { background: linear-gradient(135deg,#3d2ba0,#6a52e0); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      .nav-phone-num { display: none; }
      .nav-call-btn  { padding: 0.4rem 0.55rem; }
    }
    @media (max-width: 700px) {
      .side-contacts { display: none; }
      .mob-fab       { display: flex; }
      .nav-phone-num { display: none; }
    }

    /* ══════════════════════════════════════
       KEY HERO SCENE (why-visual)
    ══════════════════════════════════════ */
    .key-hero-scene {
      position: relative;
      width: 160px;
      height: 200px;
      margin: 0 auto 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .key-anim-svg {
      width: 100px;
      height: 220px;
      filter: drop-shadow(0 0 18px rgba(212,160,23,0.7));
      animation: keyFloat 3s ease-in-out infinite, keyGlow 2s ease-in-out infinite alternate;
      position: relative;
      z-index: 2;
    }
    @keyframes keyFloat {
      0%,100% { transform: translateY(0) rotate(-3deg); }
      50%      { transform: translateY(-12px) rotate(3deg); }
    }
    @keyframes keyGlow {
      from { filter: drop-shadow(0 0 10px rgba(212,160,23,0.5)); }
      to   { filter: drop-shadow(0 0 28px rgba(212,160,23,1)) drop-shadow(0 0 50px rgba(212,160,23,0.4)); }
    }
    /* Glow rings */
    .key-glow-ring {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(212,160,23,0.25);
      animation: ringExpand 3s ease-out infinite;
    }
    .k-ring-1 { width: 80px;  height: 80px;  top: 10px; left: 40px; animation-delay: 0s; }
    .k-ring-2 { width: 120px; height: 120px; top: -10px; left: 20px; animation-delay: 1s; }
    .k-ring-3 { width: 160px; height: 160px; top: -30px; left: 0px;  animation-delay: 2s; }
    @keyframes ringExpand {
      0%   { transform: scale(0.8); opacity: 0.6; }
      100% { transform: scale(1.3); opacity: 0; }
    }
    /* Floating emoji particles */
    .kp {
      position: absolute;
      font-size: 1.1rem;
      opacity: 0;
      animation: kpFloat 4s ease-in-out infinite;
      pointer-events: none;
    }
    .kp-1 { top: 0;   left: 10px;  animation-delay: 0s;   }
    .kp-2 { top: 30px; right: 5px; animation-delay: 1s;   }
    .kp-3 { bottom: 40px; left: 5px; animation-delay: 2s; }
    .kp-4 { bottom: 10px; right: 10px; animation-delay: 1.5s; }
    @keyframes kpFloat {
      0%   { opacity: 0; transform: translateY(10px) scale(0.7); }
      30%  { opacity: 0.8; }
      70%  { opacity: 0.6; }
      100% { opacity: 0; transform: translateY(-30px) scale(1.1); }
    }

    /* ══════════════════════════════════════
       SERVICE CARDS — 3D price flip
    ══════════════════════════════════════ */
    .svc-flip { cursor: pointer; perspective: 800px; }
    .svc-flip .svc-price-flash {
      position: absolute;
      inset: 0;
      background: #0a0c10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      z-index: 10;
      border-radius: inherit;
      opacity: 0;
      pointer-events: none;
      transform: rotateY(90deg);
      transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1), opacity 0.1s;
      border: 1px solid rgba(212,160,23,0.5);
    }
    .svc-flip .svc-price-flash.show {
      opacity: 1;
      pointer-events: auto;
      transform: rotateY(0deg);
      transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.1s;
    }
    .svc-price-big {
      font-family: 'Orbitron', sans-serif;
      font-size: 2rem;
      font-weight: 900;
      color: #d4a017;
      text-shadow: 0 0 20px rgba(212,160,23,0.8);
    }
    .svc-price-label {
      font-size: 0.75rem;
      color: #7a8094;
      letter-spacing: 2px;
      text-transform: uppercase;
    }
    .svc-price-icon {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      animation: iconSpin 0.5s ease;
    }
    @keyframes iconSpin {
      from { transform: rotateY(0deg) scale(0.5); }
      to   { transform: rotateY(360deg) scale(1); }
    }

    /* ══════════════════════════════════════
       ASSORTMENT CARDS — interactive
    ══════════════════════════════════════ */
    .keys-assort-interactive {
      cursor: default;
      position: relative;
      transition: border-color 0.3s, transform 0.3s;
      overflow: visible !important;
    }
    .keys-assort-interactive:hover { transform: translateY(-4px); border-color: rgba(212,160,23,0.5); }

    /* Icon animation on hover */
    .kac-icon-auto, .kac-icon-home {
      display: inline-block;
      transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }
    .keys-assort-interactive:hover .kac-icon-auto {
      transform: scale(1.3) rotate(-10deg);
    }
    .keys-assort-interactive:hover .kac-icon-home {
      transform: scale(1.3) rotate(5deg);
    }
    .kac-lead {
      font-size: 1rem;
      font-weight: 600;
      color: #d4a017;
      margin-bottom: 0.5rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.8rem;
      letter-spacing: 0.5px;
    }
    .kac-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1.2rem;
      background: #d4a017;
      color: #050608;
      border: none;
      padding: 0.65rem 1.4rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      cursor: pointer;
      transition: all 0.25s;
      clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    }
    .kac-cta-btn:hover { background: #f0c040; transform: translateY(-1px); }

    /* Contact panel slides up */
    .kac-contact-panel {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: #0d0f15;
      border: 1px solid rgba(212,160,23,0.5);
      border-top: 3px solid #d4a017;
      padding: 1.5rem 1.5rem 1.25rem;
      z-index: 20;
      transform: translateY(100%) scale(0.98);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.25s;
      box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    }
    .kac-contact-panel.open {
      transform: translateY(0) scale(1);
      opacity: 1;
      pointer-events: auto;
    }
    /* Mobile: fixed bottom sheet */
    @media (max-width: 700px) {
      .kac-contact-panel {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        top: auto;
        width: 100%;
        border-radius: 16px 16px 0 0;
        border-top: 3px solid #d4a017;
        border-left: none; border-right: none; border-bottom: none;
        padding: 1.5rem 1.25rem 2rem;
        z-index: 2000;
        box-shadow: 0 -16px 50px rgba(0,0,0,0.85);
        transform: translateY(100%);
      }
      .kac-contact-panel.open {
        transform: translateY(0);
      }
      /* Dim overlay behind bottom sheet */
      .kac-contact-panel.open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5,6,8,0.7);
        z-index: -1;
        backdrop-filter: blur(2px);
      }
    }
    .kac-contact-panel h4, .kac-contact-panel h3.assort-title {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.8rem;
      color: #d4a017;
      margin-bottom: 1rem;
      letter-spacing: 1px;
      display: flex; align-items: center; gap: 0.5rem;
    }
    .kac-close {
      position: absolute;
      top: 0.6rem; right: 0.7rem;
      background: none; border: none;
      color: #7a8094; cursor: pointer; font-size: 0.9rem;
      transition: color 0.2s;
    }
    .kac-close:hover { color: #e8e8e8; }
    .kac-input {
      width: 100%;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(212,160,23,0.25);
      color: #e8e8e8;
      padding: 0.6rem 0.85rem;
      font-family: 'Rajdhani', sans-serif;
      font-size: 0.9rem;
      margin-bottom: 0.6rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .kac-input:focus { border-color: #d4a017; }
    .kac-send-btn {
      width: 100%;
      background: #d4a017;
      color: #050608;
      border: none;
      padding: 0.65rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      cursor: pointer;
      transition: background 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }
    .kac-send-btn:hover { background: #f0c040; }
    .kac-call-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      background: #27ae60;
      color: #fff;
      text-decoration: none;
      padding: 1rem;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
      border-radius: 4px;
      animation: phonePulse 1.5s ease-in-out infinite;
    }
    @keyframes phonePulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); }
      50%      { box-shadow: 0 0 0 10px rgba(39,174,96,0); }
    }
    .kac-success {
      color: #2ecc71;
      font-size: 0.85rem;
      text-align: center;
      padding: 0.5rem;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }
    /* Mobile/desktop visibility */
    .kac-mobile-only  { display: none; }
    .kac-desktop-only { display: block; }
    @media (max-width: 700px) {
      .kac-mobile-only  { display: flex; }
      .kac-desktop-only { display: none; }
    }

    /* ══════════════════════════════════════
       SCROLL TO TOP — rotating key
    ══════════════════════════════════════ */
    #scrollTopBtn {
      position: fixed;
      left: 1.1rem;
      bottom: 2rem;
      z-index: 900;
      width: 52px;
      height: 52px;
      background: none;
      border: none;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
      padding: 0;
    }
    #scrollTopBtn.visible { opacity: 1; pointer-events: auto; }
    .scroll-key-wrap {
      width: 52px; height: 52px;
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.3s;
    }
    #scrollTopBtn:hover .scroll-key-wrap { transform: translateY(-4px); }
    .scroll-key-svg {
      width: 38px; height: 70px;
      filter: drop-shadow(0 0 10px rgba(212,160,23,0.8));
      transition: transform 0.4s ease;
    }
    /* Rotation based on scroll direction — JS will add/remove classes */
    #scrollTopBtn.key-rotate-cw  .scroll-key-svg { animation: rotCW  0.5s linear; }
    #scrollTopBtn.key-rotate-ccw .scroll-key-svg { animation: rotCCW 0.5s linear; }
    @keyframes rotCW  { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
    @keyframes rotCCW { from { transform: rotateY(180deg); } to { transform: rotateY(360deg); } }

    /* ══ KEY CALC — видимий скрізь ══ */
    .why-stats-desktop { display: block; }
    .mob-key-calc      { display: block; margin-top: 1.5rem; width: 100%; }

    @media (max-width: 900px) {
      .why-visual        { display: block !important; }
      .why-stats-desktop { display: none !important; }
    }
    .mob-calc-title {
      font-family: 'Orbitron', sans-serif; font-size: 0.7rem; color: #d4a017;
      letter-spacing: 1.5px; text-transform: uppercase;
      margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
      border-bottom: 1px solid rgba(212,160,23,0.2); padding-bottom: 0.65rem;
    }
    .mob-calc-label { font-size: 0.7rem; color: #7a8094; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
    .mob-calc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; margin-bottom: 0.9rem; }
    .mob-calc-opt {
      background: rgba(255,255,255,0.03); border: 1px solid rgba(212,160,23,0.18);
      color: #b0b8cc; padding: 0.5rem 0.3rem;
      font-family: 'Rajdhani', sans-serif; font-size: 0.78rem; font-weight: 500;
      cursor: pointer; display: flex; flex-direction: column;
      align-items: center; gap: 0.25rem; transition: all 0.18s; text-align: center;
    }
    .mob-calc-opt i { color: #d4a017; font-size: 0.85rem; }
    .mob-calc-opt:hover  { border-color: rgba(212,160,23,0.4); color: #e8e8e8; background: rgba(212,160,23,0.07); }
    .mob-calc-opt.active { border-color: #d4a017; color: #d4a017; background: rgba(212,160,23,0.13); box-shadow: 0 0 8px rgba(212,160,23,0.2); }
    .mob-calc-price-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.5rem 0.7rem; background: rgba(212,160,23,0.06);
      border: 1px solid rgba(212,160,23,0.18); margin-bottom: 0.75rem;
    }
    .mob-calc-price-label { font-size: 0.72rem; color: #7a8094; }
    .mob-calc-price-val { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900; color: #d4a017; transition: transform 0.2s; }
    .mob-calc-price-val.bump { transform: scale(1.2); color: #f0c040; }
    .mob-calc-input {
      width: 100%; box-sizing: border-box;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(212,160,23,0.22);
      color: #e8e8e8; padding: 0.6rem 0.8rem;
      font-family: 'Rajdhani', sans-serif; font-size: 1rem;
      margin-bottom: 0.55rem; outline: none; transition: border-color 0.2s;
    }
    .mob-calc-input:focus { border-color: #d4a017; }
    .mob-calc-input::placeholder { color: #4a5068; }
    .mob-calc-send {
      width: 100%; background: #d4a017; color: #050608;
      border: none; padding: 0.75rem;
      font-family: 'Orbitron', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
      cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      transition: background 0.2s, transform 0.15s;
      animation: calcBtnPulse 3s ease-in-out infinite;
    }
    .mob-calc-send:hover { background: #f0c040; transform: translateY(-1px); }
    @keyframes calcBtnPulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); }
      50%     { box-shadow: 0 0 0 6px rgba(212,160,23,0.2); }
    }
    .mob-calc-success {
      display: none; align-items: center; gap: 0.6rem;
      padding: 0.75rem; background: rgba(46,204,113,0.1);
      border: 1px solid rgba(46,204,113,0.35); color: #2ecc71; font-size: 0.85rem;
    }
    .mob-calc-success i { font-size: 1.2rem; }

/* ─── ACCESSIBILITY: h3 replacements for h4 ─── */
h3.key-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
