/* ========== ПРЕЛОАДЕР ДЛЯ ТАКСИ ========== */

/* Делаем блок на весь экран и поверх всего */
#rec1746144001 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10000 !important;
  overflow: hidden !important;
  background: #000 !important;
  pointer-events: none !important; /* ← ВАЖНО: не блокируем клики! */
}

/* Разрешаем клики только по самому прелоадеру, но не через него */
#rec1746144001 * {
  pointer-events: auto !important; /* Элементы внутри кликабельны */
}

/* Фоновая картинка/видео на весь экран */
#rec1746144001 .t-container,
#rec1746144001 .t-section__wrapper {
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Видео-фон растягиваем */
#rec1746144001 video,
#rec1746144001 .t-video-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: brightness(1);
  transition: filter 2s ease !important;
  pointer-events: none !important; /* Видео не кликабельно */
}

/* Контейнер для текста по центру */
#rec1746144001 .t-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Стили для текста прелоадера */
#rec1746144001 .t-text {
  color: white !important;
  text-align: center !important;
  opacity: 0 !important;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
  pointer-events: none !important; /* Текст не кликабелен */
}

/* Градиентное затемнение поверх видео */
#rec1746144001::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.6) 100%
  );
  opacity: 0.5;
  z-index: 1;
  transition: opacity 2s ease;
  pointer-events: none !important; /* Затемнение не кликабельно */
}

/* ========== АНИМАЦИИ ========== */

/* Появление текста */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Затемнение видео */
@keyframes darkenVideo {
  0% { filter: brightness(1); }
  100% { filter: brightness(0.3); }
}

/* Исчезновение прелоадера */
@keyframes fadeOutPreloader {
  0% { 
    opacity: 1; 
    visibility: visible;
    pointer-events: auto; /* ← ВАЖНО: на время анимации */
  }
  99% {
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
  }
  100% { 
    opacity: 0; 
    visibility: hidden;
    pointer-events: none !important; /* ← ВАЖНО: после скрытия */
  }
}

/* ========== ТАЙМИНГ АНИМАЦИЙ ========== */

/* Текст появляется через 1 секунду */
#rec1746144001 .t-text {
  animation: fadeInUp 1.5s 1s forwards;
}

/* Видео затемняется через 5 секунд */
#rec1746144001 video,
#rec1746144001 .t-video-bg {
  animation: darkenVideo 2s 3s forwards;
}

/* Прелоадер исчезает через 7 секунд */
#rec1746144001 {
  animation: fadeOutPreloader 1s 4s forwards;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 768px) {
  #rec1746144001 .t-text {
    font-size: 40px !important;
    padding: 0 20px;
  }
  
  #rec1746144001 video,
  #rec1746144001 .t-video-bg {
    object-position: center center;
  }
}

/* ========== СТИЛИ КАРТОЧЕК ТАРИФОВ ========== */
/* Новые классы, которых точно нет в твоём сайте */

.tariffs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Georgia', serif !important;
}

/* Ряды карточек */
.tariffs-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Карточка тарифа */
.taxi-tariff-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
  border-radius: 24px !important;
  padding: 30px !important;
  width: 320px !important;
  min-height: 480px !important;
  position: relative !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
}

.taxi-tariff-card:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Бейджи */
.taxi-tariff-badge {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3) !important;
}

.taxi-tariff-badge.premium {
  background: linear-gradient(45deg, #4169e1, #00c6ff) !important;
}

.taxi-tariff-badge.vip {
  background: linear-gradient(45deg, #9370db, #ba68c8) !important;
}

/* Иконки */
.taxi-tariff-icon {
  font-size: 60px !important;
  text-align: center !important;
  margin: 20px 0 !important;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)) !important;
}

/* Заголовки */
.taxi-tariff-title {
  font-family: 'Georgia', serif !important;
  font-size: 32px !important;
  font-weight: bold !important;
  text-align: center !important;
  margin: 10px 0 !important;
  color: #2c3e50 !important;
  letter-spacing: -0.5px !important;
}

/* Цены */
.taxi-tariff-price {
  font-family: 'Georgia', serif !important;
  font-size: 28px !important;
  font-weight: bold !important;
  text-align: center !important;
  color: #e74c3c !important;
  margin: 15px 0 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Список преимуществ */
.taxi-tariff-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 25px 0 !important;
}

.taxi-tariff-features li {
  font-family: 'Georgia', serif !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #e0e0e0 !important;
  color: #555 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.taxi-tariff-features li:last-child {
  border-bottom: none !important;
}

.taxi-tariff-features li::before {
  content: "•" !important;
  color: #3498db !important;
  font-weight: bold !important;
  margin-right: 10px !important;
}

/* Кнопки */
.taxi-tariff-btn {
  font-family: 'Georgia', serif !important;
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  background: linear-gradient(45deg, #2c3e50, #4a6491) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: 20px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.taxi-tariff-btn:hover {
  background: linear-gradient(45deg, #1a2530, #3498db) !important;
  transform: scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3) !important;
}

/* Цвета кнопок для разных тарифов */
.taxi-economy .taxi-tariff-btn { background: linear-gradient(45deg, #f39c12, #f1c40f) !important; }
.taxi-comfort .taxi-tariff-btn { background: linear-gradient(45deg, #2980b9, #3498db) !important; }
.taxi-business .taxi-tariff-btn { background: linear-gradient(45deg, #8e44ad, #9b59b6) !important; }
.taxi-cargo .taxi-tariff-btn { background: linear-gradient(45deg, #d35400, #e67e22) !important; }

/* Модальное окно */
.taxi-modal {
  display: none !important;
  position: fixed !important;
  z-index: 10000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px) !important;
}

.taxi-modal-content {
  background: white !important;
  margin: 5% auto !important;
  padding: 40px !important;
  border-radius: 24px !important;
  width: 90% !important;
  max-width: 600px !important;
  font-family: 'Georgia', serif !important;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
  position: relative !important;
}

.taxi-modal-close {
  position: absolute !important;
  right: 25px !important;
  top: 15px !important;
  font-size: 36px !important;
  font-weight: bold !important;
  color: #aaa !important;
  cursor: pointer !important;
  transition: color 0.3s !important;
}

.taxi-modal-close:hover {
  color: #000 !important;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .taxi-tariff-card {
    width: 280px !important;
  }
}

@media (max-width: 992px) {
  .tariffs-row {
    gap: 20px !important;
  }
  
  .taxi-tariff-card {
    width: 45% !important;
    min-width: 280px !important;
  }
}

@media (max-width: 768px) {
  .tariffs-section {
    padding: 20px 15px !important;
  }
  
  .taxi-tariff-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 30px !important;
  }
  
  .tariffs-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .taxi-modal-content {
    margin: 10% auto !important;
    padding: 30px 20px !important;
    width: 95% !important;
  }
}

@media (max-width: 480px) {
  .taxi-tariff-title {
    font-size: 28px !important;
  }
  
  .taxi-tariff-price {
    font-size: 24px !important;
  }
  
  .taxi-tariff-icon {
    font-size: 50px !important;
  }
  
  .taxi-tariff-btn {
    padding: 14px !important;
    font-size: 16px !important;
  }
}

/* Анимация */
@keyframes taxiFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.taxi-tariff-card {
  animation: taxiFadeInUp 0.6s ease-out !important;
}
@media (max-width: 768px) {
    [data-block-type="video"], 
    [data-block-type="text"],
    [class*="t-block"] {
        padding: 20px 15px !important;
        min-height: auto !important;
    }
    
    [data-block-type="video"] iframe,
    [data-block-type="video"] video {
        width: 100% !important;
        height: 250px !important;
    }
}