/* ==========================================================================
   СТО SAP CAR — Premium Automotive Service & Precision Engineering
   ========================================================================== */

:root {
  --bg-dark: #080a0f;
  --bg-surface: #0f131a;
  --bg-card: rgba(17, 21, 30, 0.75);
  --bg-card-hover: rgba(23, 28, 40, 0.95);
  
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-gradient: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #b45309 100%);
  --amber-gradient-hover: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #d97706 100%);
  --amber-glow: 0 0 25px rgba(245, 158, 11, 0.25);
  
  --steel-300: #cbd5e1;
  --steel-400: #94a3b8;
  --steel-500: #64748b;
  --steel-border: rgba(148, 163, 184, 0.15);
  --steel-glow: 0 0 20px rgba(148, 163, 184, 0.1);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Engineering Cyber Grid Background */
.tech-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% -10%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 35%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-tech {
  font-family: var(--font-tech);
}

.text-amber-gradient {
  background: var(--amber-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* High-Tech Card */
.tech-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--steel-border);
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.1);
}

.tech-card:hover::before {
  opacity: 1;
}

/* Buttons */
.btn-amber {
  background: var(--amber-gradient);
  color: #080a0f;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.28);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-amber::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.5s;
}

.btn-amber:hover::after {
  left: 100%;
}

.btn-amber:hover {
  background: var(--amber-gradient-hover);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #000;
}

.btn-steel {
  background: rgba(17, 21, 30, 0.85);
  color: var(--text-main);
  border: 1px solid var(--steel-border);
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-steel:hover {
  border-color: var(--amber-500);
  background: rgba(28, 34, 48, 0.95);
  color: var(--amber-400);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

/* Badges */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-400);
}

/* Service Pill */
.service-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--steel-300);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}
