/* ============================================================
   СОВРЕМЕННЫЙ ДИЗАЙН — тёмная тема, glassmorphism, анимации
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0e14;
  --bg-soft: #11161f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(249, 115, 22, 0.4);
  --text: #e8eaed;
  --text-muted: #8b95a5;
  --accent: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.35);
  --accent-soft: rgba(249, 115, 22, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #fb8a3c;
  box-shadow: 0 6px 30px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), #fb8a3c);
  color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.logo-title { font-weight: 800; color: var(--text); line-height: 1.1; font-size: 17px; }
.logo-sub { font-size: 12px; color: var(--text-muted); }

.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a {
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--text); white-space: nowrap; transition: color 0.2s; }
.header-phone:hover { color: var(--accent); }

.burger {
  display: none;
  background: none; border: none;
  font-size: 26px; cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #fdba74;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  backdrop-filter: blur(10px);
}
.badge::before {
  content: "";
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero .accent {
  background: linear-gradient(135deg, var(--accent), #fb8a3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin-top: 64px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}
.stat:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: translateY(-4px);
}
.stat-value {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #fb8a3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---------- Секции ---------- */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-gray { background: rgba(255,255,255,0.015); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-cta { text-align: center; margin-top: 60px; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-brands { grid-template-columns: repeat(4, 1fr); }

/* ---------- Карточки услуг ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
  background: rgba(249, 115, 22, 0.04);
}
.card:hover::before { opacity: 1; }
.card-num {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.8;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.card p { 
  color: var(--text-muted); 
  font-size: 14px; 
  line-height: 1.65; 
  margin-bottom: 20px; /* Отступ до кнопки */
}

/* Новая кнопка "Подробнее" */
.btn-more {
  margin-top: auto; /* Прижимает к низу карточки */
  background: #3b82f6; /* Синий фон */
  color: #000; /* Чёрный текст */
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  align-self: flex-start; /* По ширине текста */
}
.btn-more:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ---------- О компании ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col p { color: var(--text-muted); margin-bottom: 18px; font-size: 16px; line-height: 1.7; }
.two-col .btn { margin-top: 20px; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}
.feature:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
}
.feature span {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- Марки ---------- */
.brand {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s;
  backdrop-filter: blur(20px);
}
.brand:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}

/* ---------- Шаги ---------- */
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.step-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ---------- СЛАЙДЕР ОТЗЫВОВ ---------- */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.review:hover {
  border-color: var(--border-hover);
  background: rgba(249, 115, 22, 0.04);
}
.review-stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fb8a3c);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 15px; }
.review-car { font-size: 13px; color: var(--text-muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.slider-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ---------- Контакты ---------- */
.contact-block { margin-top: 28px; }
.contact-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}
.contact-block p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.note { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

.link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-top: 6px;
  transition: all 0.2s;
}
.link:hover { color: #fb8a3c; transform: translateX(4px); }

.phone-list { list-style: none; }
.phone-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.phone-list li:last-child { border-bottom: none; }
.phone-list a {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}
.phone-list a:hover { color: var(--accent); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px #22c55e;
}

/* ---------- Форма ---------- */
.booking-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
}
.booking-box::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.booking-box > * { position: relative; z-index: 1; }
.booking-box h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }

.form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: all 0.2s;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-muted); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form select { appearance: none; cursor: pointer; }
.form select option { background: var(--bg-soft); color: var(--text); }
.form textarea { resize: vertical; min-height: 90px; }

.form-status { font-size: 14px; margin-top: 4px; }
.form-status.ok { color: #22c55e; }
.form-status.error { color: #ef4444; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- STICKY-КНОПКА ЗВОНКА ---------- */
.sticky-call {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
  transition: all 0.3s;
  animation: stickyPulse 2s infinite;
}
.sticky-call:hover {
  background: #fb8a3c;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.7);
}
@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5); }
  50% { box-shadow: 0 8px 30px rgba(249, 115, 22, 0.9); }
}

/* ---------- МОДАЛЬНОЕ ОКНО УСЛУГИ ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal.open .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.modal-hours {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-content .btn { margin-bottom: 10px; }
body.modal-open { overflow: hidden; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-brands { grid-template-columns: repeat(3, 1fr); }
  .two-col { gap: 50px; }
  .review { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 50px; }
  .nav, .header-actions { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .hero { padding: 80px 0 60px; }
  .sticky-call { display: inline-flex; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-brands { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .booking-box { padding: 28px; }
  .container { padding: 0 18px; }
  .header-inner { height: 68px; }
  .review { flex: 0 0 100%; }
  .sticky-call { padding: 12px 22px; font-size: 14px; }
  .modal-content { padding: 28px 20px 22px; }
  .modal-title { font-size: 19px; }
}