:root {
  --fx-bg: #0a0c11;
  --fx-panel-hi: #161a22;
  --fx-panel-lo: #0e1118;
  --fx-line: rgba(255, 255, 255, 0.07);
  --fx-line-top: rgba(255, 255, 255, 0.15);
  --fx-accent: #3b82f6;
  --fx-accent-deep: #1d4ed8;
  --fx-radius: 20px;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fx-line) !important;
  border-top-color: var(--fx-line-top) !important;
  border-radius: var(--fx-radius) !important;
  background: linear-gradient(180deg, var(--fx-panel-hi), var(--fx-panel-lo)) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 14px 34px rgba(0, 0, 0, 0.22),
    0 36px 70px rgba(0, 0, 0, 0.16) !important;
  transition: transform 0.4s var(--fx-ease), box-shadow 0.4s var(--fx-ease), border-color 0.3s;
}

.fx-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -40px;
  width: 220px;
  height: 160px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07), transparent 70%);
}

.fx-panel:hover {
  transform: translateY(-7px);
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 28px 56px rgba(0, 0, 0, 0.3),
    0 60px 110px rgba(0, 0, 0, 0.22) !important;
}

.fx-panel--static:hover {
  transform: none;
  border-color: var(--fx-line) !important;
  border-top-color: var(--fx-line-top) !important;
}

.fx-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 50%, transparent);
}

.fx-divider-v {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.hero.fx-stage,
.section.hero.fx-stage {
  position: relative;
  overflow: hidden;
}

.fx-glow {
  position: absolute;
  top: 8%;
  right: -10%;
  z-index: 0;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 68%);
  filter: blur(90px);
}

.fx-orbit {
  position: absolute;
  top: -180px;
  right: -220px;
  z-index: 0;
  width: 880px;
  height: 880px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero.fx-stage > :not(.fx-glow):not(.fx-orbit),
.section.hero.fx-stage > :not(.fx-glow):not(.fx-orbit) {
  position: relative;
  z-index: 1;
}

.fx-btn {
  transition: transform 0.35s var(--fx-ease), box-shadow 0.35s var(--fx-ease) !important;
}

.fx-btn:hover {
  transform: translateY(-3px);
}

.fx-btn--primary {
  background: linear-gradient(180deg, var(--fx-accent), var(--fx-accent-deep)) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.fx-btn--primary:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.fx-arr {
  display: inline-block;
  transition: transform 0.35s var(--fx-ease);
}

a:hover .fx-arr,
button:hover .fx-arr {
  transform: translateX(5px);
}

.fx-car {
  position: relative;
}

.fx-car img {
  position: relative;
  z-index: 2;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.fx-car::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6%;
  left: 8%;
  z-index: 1;
  height: 46px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 70%);
  filter: blur(14px);
}

.fx-reveal {
  opacity: 1;
  transform: none;
}

.page-wrap,
.topbar,
.site-header,
.hero-right,
.hero-premium,
.service-card,
.trust-row,
.consult,
.card,
.kv-item,
.review,
.person,
.before-after,
.cta-final,
.related-card,
.repair-row,
.detailing-price-card,
.prices,
.footer {
  border-radius: var(--fx-radius);
}

@media (max-width: 900px) {
  .fx-glow {
    right: -30%;
    width: 400px;
    height: 400px;
    filter: blur(64px);
  }

  .fx-orbit {
    top: -120px;
    right: -280px;
    width: 620px;
    height: 620px;
  }

  .fx-panel {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;
  }
}

@media (max-width: 900px) {
  .topbar,
  .site-header,
  .review-photo > span {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (hover: none) {
  .fx-panel:hover,
  .fx-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fx-panel,
  .fx-btn,
  .fx-arr {
    transition: none !important;
  }
}
