/* ============================================
   2.2 АТМОСФЕРЫ - ПРОФЕССИОНАЛЬНЫЙ ШИНОМОНТАЖ
   СОВРЕМЕННЫЙ ДИЗАЙН С НЕОНОВЫМИ ЭФФЕКТАМИ
   ============================================ */

/* ---------- СИСТЕМА ЦВЕТОВ ---------- */
:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #151515;
  --bg-card-light: #1e1e1e;
  
  --neon-red: #ff003c;
  --neon-red-light: #ff3366;
  --neon-red-glow: rgba(255, 0, 60, 0.7);
  --neon-red-glow-strong: rgba(255, 0, 60, 0.9);
  
  --neon-white: #ffffff;
  --neon-white-glow: rgba(255, 255, 255, 0.7);
  
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #888888;
  
  --border-dark: #333333;
  --border-light: #444444;
  
  --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 30px var(--neon-red-glow);
  
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
  --border-radius-xl: 50px;
}

/* ---------- СБРОС И БАЗОВЫЕ СТИЛИ ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Страховка от горизонтальной прокрутки: overflow-x на одном body
     браузер переносит на область просмотра, и сам body перестаёт обрезать
     содержимое. Правило нужно и на html, иначе любой вылезший вбок блок
     раздвигает страницу и на телефоне всё «уезжает» вправо. */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 0, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 60, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- ТИПОГРАФИЯ ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--neon-red) 0%, var(--neon-red-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--neon-red-glow);
}

h2 {
  font-size: 2.5rem;
  color: var(--neon-red);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-red), transparent);
  border-radius: 2px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* ---------- ШАПКА ---------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--neon-red), transparent) 1;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 1rem 4rem;
  background: rgba(5, 5, 5, 0.98);
  box-shadow: var(--shadow-medium);
}

/* ЛОГОТИП */
.logo {
  position: relative;
  transition: all var(--transition-medium);
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: all var(--transition-medium);
}

.logo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--neon-red-glow);
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-medium);
}

.logo:hover::before {
  opacity: 0.5;
}

.logo:hover img {
  transform: scale(1.05) rotate(-5deg);
  filter: 
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  animation: logo-pulse 2s infinite;
}

@keyframes logo-pulse {
  0%, 100% { 
    filter: 
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.7))
      drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  }
  50% { 
    filter: 
      drop-shadow(0 0 30px rgba(255, 255, 255, 1))
      drop-shadow(0 0 60px rgba(255, 255, 255, 0.5));
  }
}

/* МЕНЮ */
.menu {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

.menu a {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all var(--transition-fast);
}

.menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow);
  transition: width var(--transition-medium);
}

.menu a:hover {
  color: var(--neon-red);
}

.menu a:hover::before {
  width: 100%;
}

.menu a.active {
  color: var(--neon-red);
  text-shadow: 0 0 15px var(--neon-red-glow);
}

.menu a.active::before {
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-light) 100%);
  color: var(--text-primary);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: var(--border-radius-xl);
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-medium);
}

.btn:hover {
  background: linear-gradient(135deg, var(--neon-red) 0%, var(--neon-red-light) 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 
    0 10px 30px rgba(255, 0, 60, 0.4),
    0 0 50px rgba(255, 0, 60, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: var(--neon-red);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-2px);
  box-shadow: 
    0 5px 20px rgba(255, 0, 60, 0.6),
    0 0 30px rgba(255, 0, 60, 0.4);
}

.btn.big {
  padding: 1.5rem 4rem;
  font-size: 1.3rem;
}

.btn.neon-btn {
  animation: button-glow 3s infinite alternate;
}

@keyframes button-glow {
  0% {
    box-shadow: 
      0 0 20px rgba(255, 0, 60, 0.3),
      0 0 40px rgba(255, 0, 60, 0.1);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(255, 0, 60, 0.6),
      0 0 60px rgba(255, 0, 60, 0.2);
  }
}

/* ---------- HERO СЕКЦИЯ ---------- */
.hero {
  text-align: center;
  padding: 8rem 2rem 12rem;
  background: 
    radial-gradient(ellipse at center, rgba(255, 0, 60, 0.1) 0%, transparent 70%),
    linear-gradient(rgba(10, 10, 10, 0.9), rgba(5, 5, 5, 0.95)),
    url('images/hero-bg.png') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 60, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 0, 60, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: text-glow 2s infinite alternate;
}

@keyframes text-glow {
  0% {
    text-shadow: 
      0 0 10px var(--neon-red-glow),
      0 0 20px var(--neon-red-glow),
      0 0 30px var(--neon-red-glow);
  }
  100% {
    text-shadow: 
      0 0 20px var(--neon-red-glow-strong),
      0 0 40px var(--neon-red-glow),
      0 0 60px var(--neon-red-glow);
  }
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ---------- ТАБЛИЦЫ ---------- */
.tables-section {
  padding: 6rem 2rem;
  background: var(--bg-darker);
  position: relative;
}

.tables-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.tables-section h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.tables-section h2 {
  margin: 4rem 0 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--neon-red);
  box-shadow: -10px 0 20px var(--neon-red-glow);
}

/* Контейнер для таблиц с прокруткой на мобильных.
   Минимальную ширину задаём только таблицам внутри него: раньше правило
   висело на всех таблицах сразу, и любая таблица вне контейнера
   растягивала страницу на телефоне до горизонтальной прокрутки. */
.table-container table {
  min-width: 1000px;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  background: var(--bg-card);
  padding: 1px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

thead {
  background: linear-gradient(135deg, var(--neon-red) 0%, var(--neon-red-light) 100%);
}

th {
  padding: 1.5rem 1rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--neon-red-light);
  position: relative;
}

th::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, white, transparent);
  opacity: 0.3;
}

tbody tr {
  transition: all var(--transition-fast);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(255, 0, 60, 0.1);
  transform: scale(1.005);
}

td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all var(--transition-fast);
}

td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

td:not(:first-child) {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

/* ---------- КОНТЕНТ СЕКЦИИ ---------- */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
}

.content h1 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.content h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  border-radius: 2px;
}

/* ---------- ФОРМЫ ---------- */
form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-red);
  box-shadow: 
    0 0 20px var(--neon-red-glow),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 0, 60, 0.1);
  border-left: 4px solid var(--neon-red);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- КАРТА ---------- */
.map-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  margin: 3rem 0;
}

.map {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(45deg, transparent, rgba(255, 0, 60, 0.1));
}

/* ---------- ФУТЕР ---------- */
.footer {
  background: linear-gradient(to top, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 4rem 2rem;
  position: relative;
  margin-top: 6rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-secondary);
}

.footer-info a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-info a:hover {
  color: var(--neon-red);
}

/* Социальные сети */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--neon-red);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-medium);
  z-index: 1;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link i,
.social-link img {
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
}

.social-link:hover i,
.social-link:hover img {
  color: white;
  transform: scale(1.2) rotate(10deg);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0.8);
}

.social-link:hover img {
  filter: brightness(1);
}

.footer-copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.company-info {
    color: #666;
    font-size: 0.8rem;
    margin: 5px 0;
    opacity: 0.8;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 1200px) {
  .header {
    padding: 1.5rem 2rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .menu {
    gap: 2rem;
  }
  
  .header .btn {
    margin-left: 2rem;
  }
  
  .hero {
    padding: 6rem 1rem 8rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  /* Шапка на телефоне описана в header.php: логотип, кнопка записи и бургер
     в одну строку. Здесь раньше лежала раскладка «в столбик» — она осталась
     с тех пор, когда бургер-меню ещё не было, и складывала шапку в три этажа. */

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .tables-section,
  .content {
    padding: 4rem 1rem;
  }
  
  form {
    padding: 2rem 1.5rem;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  
  .btn.big {
    padding: 1rem 3rem;
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.8rem 0.5rem;
  }
}

/* ---------- АНИМАЦИИ ПОЯВЛЕНИЯ ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red-light);
  box-shadow: 0 0 10px var(--neon-red-glow);
}

/* ---------- SELECTION ---------- */
::selection {
  background: var(--neon-red);
  color: white;
}

::-moz-selection {
  background: var(--neon-red);
  color: white;
}

/* ---------- PLACEHOLDER АНИМАЦИЯ ---------- */
@keyframes placeholder-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-light) 50%, var(--bg-card) 75%);
  background-size: 1000px 100%;
  animation: placeholder-shimmer 2s infinite linear;
}
/* ---------- ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ INDEX.PHP ---------- */

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section общие стили */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--neon-red);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero дополнительные стили */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 20px var(--neon-red-glow),
        0 0 40px var(--neon-red-glow),
        0 0 60px var(--neon-red-glow);
    animation: title-glow 3s infinite alternate;
}

@keyframes title-glow {
    0% {
        text-shadow: 
            0 0 20px var(--neon-red-glow),
            0 0 40px var(--neon-red-glow),
            0 0 60px var(--neon-red-glow);
    }
    100% {
        text-shadow: 
            0 0 30px var(--neon-red-glow-strong),
            0 0 60px var(--neon-red-glow),
            0 0 90px var(--neon-red-glow);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--neon-red);
    margin-bottom: 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.typing-text {
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-red-glow);
}

.cursor {
    color: var(--neon-red);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
}

.btn-outline:hover {
    background: var(--neon-red);
    color: white;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 0, 60, 0.3),
            0 0 40px rgba(255, 0, 60, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 0, 60, 0.6),
            0 0 60px rgba(255, 0, 60, 0.3);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 0, 60, 0.3),
            0 0 40px rgba(255, 0, 60, 0.1);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
    padding: 40px;
    background: rgba(255, 0, 60, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 60, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red-glow);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-red);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--neon-red);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Advantages Section */
.advantages-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-red);
    box-shadow: var(--shadow-neon);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--neon-red);
    transition: all var(--transition-medium);
}

.advantage-card:hover .advantage-icon {
    background: var(--neon-red);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.advantage-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-red-light));
    transform: translateY(-100%);
    transition: transform var(--transition-medium);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--neon-red);
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    background: var(--neon-red);
    color: white;
    transform: rotate(15deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.service-link:hover {
    color: var(--neon-red-light);
    gap: 12px;
}

.text-center {
    text-align: center;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.process-timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-red), transparent);
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--neon-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-red);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all var(--transition-medium);
}

.process-step:hover .step-number {
    background: var(--neon-red);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-red-glow);
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.step-content h3 {
    font-size: 1.4rem;
    color: var(--neon-red);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at center, rgba(255, 0, 60, 0.15) 0%, transparent 70%),
        linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red-glow);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

.cta-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
}

.cta-info i {
    color: var(--neon-red);
}

/* Адаптивность для новых секций */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        height: 50px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantages-grid,
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-timeline {
        max-width: 500px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        height: 40px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* ============================================================
   МОБИЛЬНЫЙ ВИД

   Отдельной версии /mobile/ больше нет — сайт один. Здесь собрано
   всё, что касается телефона: компактная шапка, крупные карточки,
   нижняя панель действий. Селекторы начинаются с body намеренно:
   у страниц есть свои <style> в <head>, они идут после style.css,
   и при равной специфичности перебивали бы эти правила.
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- Общее ---------- */

  body .container,
  body .price-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body h1 { font-size: 1.9rem; }
  body h2 { font-size: 1.45rem; }

  body .section-title { font-size: 1.45rem; margin-bottom: 8px; }
  body .section-subtitle { font-size: 0.92rem; margin-bottom: 26px; }

  /* Секции короче: на телефоне десктопные отступы читаются как пустота */
  body section { padding-top: 48px; padding-bottom: 48px; }

  /* Шапка целиком описана в header.php — здесь её не трогаем,
     иначе правила из двух файлов перебивают друг друга. */

  /* ---------- Выдвижное меню ---------- */
  body .mobile-menu {
    /* Ширина примерно в половину экрана. Прячется сдвигом, а не
       отрицательным right: отрицательный отступ растягивал страницу
       вбок, и на телефоне всё «уезжало» вправо. */
    width: clamp(240px, 62vw, 320px);
    right: 0;
    background: linear-gradient(180deg, #101010 0%, #060606 100%);
    border-left: 1px solid rgba(255, 0, 60, 0.14);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body .mobile-menu-header { padding: 16px 18px; }

  body .mobile-menu-close {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  body .mobile-nav {
    padding: 12px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  body .mobile-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
  }
  body .mobile-nav a i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--neon-red);
  }
  body .mobile-nav a:active { background: rgba(255, 255, 255, 0.06); }
  body .mobile-nav a.active {
    background: rgba(255, 0, 60, 0.14);
    border-left-color: var(--neon-red);
    color: var(--neon-red);
  }

  body .mobile-menu-buttons {
    margin-top: auto;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  body .mobile-menu-buttons .btn {
    width: 100%;
    padding: 14px;
    font-size: .92rem;
    letter-spacing: .5px;
  }

  /* ---------- Первый экран ---------- */
  body .hero {
    padding: 96px 18px 56px;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body .hero-title {
    font-size: clamp(2rem, 10vw, 2.6rem);
    letter-spacing: 1px;
    /* Свечение сдержаннее десктопного: на маленьком экране оно съедает буквы */
    text-shadow: 0 0 12px rgba(255, 0, 60, .55), 0 0 26px rgba(255, 0, 60, .3);
  }

  body .hero-subtitle { font-size: 1.05rem; min-height: 46px; }
  body .hero-description { font-size: .95rem; line-height: 1.65; }
  body .hero-description br { display: none; }

  body .hero-buttons {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  body .hero-buttons .btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 14px 20px;
    font-size: .95rem;
    letter-spacing: 1px;
  }
  body .walk-in-notice { font-size: .82rem; margin-top: 4px; }

  /* Статистика — компактной полосой, а не тремя огромными блоками */
  body .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 18px 8px;
    margin-top: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }
  body .hero-stats .stat-item { padding: 0 6px; }
  body .hero-stats .stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  body .stat-number { font-size: 1.6rem; }
  body .stat-label { font-size: .68rem; line-height: 1.35; }

  /* ---------- Карточки ---------- */
  body .services-grid,
  body .advantages-grid,
  body .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Быстрые действия — в две колонки: это короткие плитки */
  body .quick-actions-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body .quick-action-card { padding: 18px 14px; border-radius: 16px; }
  body .quick-action-card h3 { font-size: .92rem; margin-bottom: 4px; }
  body .quick-action-card p { font-size: .75rem; margin-bottom: 0; }
  body .quick-action-card .action-arrow { display: none; }

  body .service-card,
  body .advantage-card {
    padding: 22px 20px;
    border-radius: 16px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  body .service-card h3,
  body .advantage-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
  body .service-card p,
  body .advantage-card p { font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }

  /* Иконка в плитке — узнаваемый приём из прежней мобильной версии */
  body .service-icon,
  body .advantage-icon,
  body .action-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 0, 60, 0.12);
    color: var(--neon-red);
    margin-bottom: 14px;
  }
  body .quick-action-card .action-icon {
    width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 10px;
  }

  /* На тач-экране нет наведения: карточка реагирует на нажатие */
  body .service-card:active,
  body .advantage-card:active,
  body .quick-action-card:active {
    transform: scale(.985);
    border-color: rgba(255, 0, 60, .4);
  }

  /* ---------- Ход работы ---------- */
  body .process-step { padding: 16px; }
  body .step-number { width: 44px; height: 44px; font-size: 1.05rem; }

  /* ---------- Таблицы и карты ---------- */
  body .table-container,
  body .table-container-wide,
  body .table-container-simple,
  body .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body iframe[src*="yandex.ru/map"] { height: 280px; }

  /* ---------- Формы ---------- */
  /* 16px — порог, ниже которого iOS зумит страницу при фокусе в поле */
  body input,
  body select,
  body textarea { font-size: 16px; }

  body .back-to-top {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }

  /* Подвал целиком описан в footer.php — здесь его не трогаем,
     иначе правила из двух файлов начинают перебивать друг друга. */
}

@media (max-width: 480px) {
  body .quick-actions-grid { gap: 8px; }
  body .hero { padding: 88px 14px 48px; }
  body .container, body .price-container { padding-left: 14px; padding-right: 14px; }
  body .stat-number { font-size: 1.4rem; }
}

/* ---- Выдвижное меню: быстрые анимации ----
   Прежние 0.5s на телефоне читаются как подтормаживание.
   Панель выезжает за 0.26s, пункты подхватываются с крошечной
   задержкой друг за другом — движение ощущается живым, но не тянет. */
.mobile-menu {
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.mobile-menu-overlay {
  transition: opacity .22s ease, visibility .22s ease;
  backdrop-filter: blur(3px);
}

.mobile-menu .mobile-nav a {
  opacity: 0;
  transform: translateX(14px);
}

.mobile-menu.active .mobile-nav a {
  animation: menu-item-in .26s cubic-bezier(.22, .61, .36, 1) forwards;
}

.mobile-menu.active .mobile-nav a:nth-child(1) { animation-delay: .06s; }
.mobile-menu.active .mobile-nav a:nth-child(2) { animation-delay: .09s; }
.mobile-menu.active .mobile-nav a:nth-child(3) { animation-delay: .12s; }
.mobile-menu.active .mobile-nav a:nth-child(4) { animation-delay: .15s; }
.mobile-menu.active .mobile-nav a:nth-child(5) { animation-delay: .18s; }
.mobile-menu.active .mobile-nav a:nth-child(6) { animation-delay: .21s; }
.mobile-menu.active .mobile-nav a:nth-child(7) { animation-delay: .24s; }
.mobile-menu.active .mobile-nav a:nth-child(8) { animation-delay: .27s; }

.mobile-menu.active .mobile-menu-buttons {
  animation: menu-item-in .28s cubic-bezier(.22, .61, .36, 1) .3s backwards;
}

@keyframes menu-item-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Бургер превращается в крестик без подмены иконки */
.mobile-menu-toggle i { transition: transform .22s ease; }
.mobile-menu-toggle.is-open i { transform: rotate(90deg); }

.mobile-menu-close i { transition: transform .22s ease; }
.mobile-menu-close:active i { transform: rotate(90deg); }

/* Системная настройка «уменьшить движение» важнее красоты */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-overlay { transition-duration: .01ms; }
  .mobile-menu .mobile-nav a { opacity: 1; transform: none; }
  .mobile-menu.active .mobile-nav a,
  .mobile-menu.active .mobile-menu-buttons { animation: none; }
}

/* ============================================================
   ПОЛОСЫ ПРОКРУТКИ

   Системные светлые полосы на тёмном сайте смотрятся чужеродно.
   Делаем узкие и в цвет темы. Firefox понимает scrollbar-width
   и scrollbar-color, остальные — псевдоэлементы ::-webkit-scrollbar.
   ============================================================ */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 0, 60, .45) transparent;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .03);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 60, .6);
  background-clip: content-box;
}

::-webkit-scrollbar-corner { background: transparent; }

/* Горизонтальные ленты — категории, дни, чипы — прокручиваются
   пальцем и стрелками, полоса под ними только мешает. */
.quick-nav,
.categories-list,
.bk-days,
.bk-strip,
.services-tags {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav::-webkit-scrollbar,
.categories-list::-webkit-scrollbar,
.bk-days::-webkit-scrollbar,
.bk-strip::-webkit-scrollbar,
.services-tags::-webkit-scrollbar {
  height: 0;
  width: 0;
}

/* ---- Выпадающие списки ----
   Сам список рисует система, а не страница. При тёмной теме Windows
   Chrome красит пункты белым и на тёмный фон нашего select не смотрит —
   выходит белый текст на белом, список выглядит пустым.
   Поэтому задаём пункты сами и просим у браузера тёмную палитру:
   сайт тёмный, светлый список в нём в любом случае неуместен. */
select {
  color-scheme: dark;
}
select option,
select optgroup {
  background-color: #171717;
  color: #fff;
}
