/* ==========================================================================
   Эвакуатор Вологда 24/7 - Custom CSS & Animations
   ========================================================================== */

:root {
  --primary-red: #DC2626;
  --primary-red-hover: #B91C1C;
  --accent-orange: #F97316;
  --accent-yellow: #F59E0B;
  --dark-bg: #0B0F17;
  --card-bg: rgba(17, 24, 39, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --success-green: #10B981;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Glassmorphism containers */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.25);
}

/* Call Button Pulse Animation */
.btn-pulse {
  position: relative;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.btn-pulse-amber {
  animation: pulse-amber 2s infinite;
}

@keyframes pulse-amber {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Online Pulse Dot */
.online-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success-green);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.online-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--success-green);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Hero Background Glow */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(249, 115, 22, 0.08) 40%, rgba(11, 15, 23, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(11, 15, 23, 0) 70%);
  bottom: 0px;
  left: -100px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Input Styling */
.form-input {
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  background: rgba(31, 41, 55, 0.9);
}

/* Prevent iOS Safari auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea, .form-input {
    font-size: 16px !important;
  }
}

.form-select {
  background: rgba(31, 41, 55, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-select option {
  background: #111827;
  color: #FFFFFF;
}

/* Accordion FAQ */
.faq-answer {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 1px solid transparent;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease, border-color 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-top: 0.75rem !important;
  padding-bottom: 1.25rem !important;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Mobile Bottom Fixed Bar */
.mobile-bottom-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F17;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #EF4444;
}
