/* ============================================
   ФИНАЛЬНАЯ ДОРАБОТКА SERVICES.CSS
   Проект TAXI755 - Финальная стадия разработки
   ============================================ */

/* =====================================
   СТИЛИ ТОЛЬКО ДЛЯ SERVICES-CONTENT
   ===================================== */

/* Основной контейнер услуг с улучшенным дизайном */
.services-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 50px 30px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 25px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 215, 0, 0.1) !important;
}

/* Улучшенная цветная полоса сверху */
.services-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ffa500 20%,
    #ff6b35 40%,
    #e91e63 60%,
    #9c27b0 80%,
    #673ab7 100%
  );
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Декоративный элемент в углу */
.services-content::after {
  content: "🚕";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  opacity: 0.1;
  pointer-events: none;
}

/* Основной текст описания с улучшениями */
.services-content > p:first-child {
  font-size: 1.3rem !important;
  color: #555 !important;
  line-height: 1.8 !important;
  margin-bottom: 45px !important;
  text-align: center !important;
  padding: 30px !important;
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaf6 100%) !important;
  border-radius: 20px !important;
  border-left: 6px solid #ffd700 !important;
  border-right: 6px solid #ffa500 !important;
  font-weight: 400 !important;
  position: relative !important;
}

.services-content > p:first-child::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 25px;
  font-size: 3rem;
  color: #ffd700;
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Улучшенные заголовки H2 */
.services-content h2 {
  font-size: 2rem !important;
  color: #2c3e50 !important;
  margin: 50px 0 30px 0 !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 20px !important;
  border-bottom: 4px solid transparent !important;
  border-image: linear-gradient(90deg, #ffd700, #ffa500) 1 !important;
  position: relative !important;
  letter-spacing: -0.5px !important;
}

.services-content h2::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #e91e63);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

/* Улучшенные параграфы */
.services-content p {
  color: #4a5568 !important;
  line-height: 1.8 !important;
  margin-bottom: 25px !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}

/* =====================================
   СПОСОБЫ ОПЛАТЫ - ПРЕМИУМ КАРТОЧКИ
   ===================================== */

/* Сетка способов оплаты */
.services-content h2:contains("💳") + p + ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 25px !important;
  margin: 40px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Карточки способов оплаты */
.services-content h2:contains("💳") + p + ul li {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 18px !important;
  padding: 25px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  transform: translateY(0) !important;
}

.services-content h2:contains("💳") + p + ul li::before {
  content: "💳";
  font-size: 2.2rem !important;
  margin-right: 15px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
}

.services-content h2:contains("💳") + p + ul li:nth-child(1)::before { content: "💵"; }
.services-content h2:contains("💳") + p + ul li:nth-child(2)::before { content: "💳"; }
.services-content h2:contains("💳") + p + ul li:nth-child(3)::before { content: "🏢"; }
.services-content h2:contains("💳") + p + ul li:nth-child(4)::before { content: "📱"; }

/* Hover эффекты для способов оплаты */
.services-content h2:contains("💳") + p + ul li:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: #ffd700 !important;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%) !important;
  color: white !important;
}

.services-content h2:contains("💳") + p + ul li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ff6b35);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.services-content h2:contains("💳") + p + ul li:hover::after {
  transform: scaleX(1);
}

/* =====================================
   ИНСТРУКЦИЯ ПО ЗАКАЗУ - ПРЕМИУМ СТИЛЬ
   ===================================== */

/* Нумерованный список */
.services-content h2:contains("📞") + p + ol {
  counter-reset: step-counter !important;
  padding: 0 !important;
  list-style: none !important;
  margin: 40px 0 !important;
}

/* Шаги инструкции */
.services-content h2:contains("📞") + p + ol li {
  background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%) !important;
  border-radius: 16px !important;
  padding: 25px 25px 25px 80px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  border-left: 5px solid #ffd700 !important;
  position: relative !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: #2d3748 !important;
  counter-increment: step-counter !important;
  transition: all 0.3s ease !important;
}

/* Номера шагов */
.services-content h2:contains("📞") + p + ol li::before {
  content: counter(step-counter) !important;
  position: absolute !important;
  left: 25px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

/* Hover для шагов */
.services-content h2:contains("📞") + p + ol li:hover {
  transform: translateX(8px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  border-left-color: #ffa500 !important;
}

/* =====================================
   ВАЖНАЯ ИНФОРМАЦИЯ - УЛУЧШЕННЫЙ БЛОК
   ===================================== */

.services-content div[style*="background: #fff3cd"] {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 30px !important;
  margin: 40px 0 !important;
  position: relative !important;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15) !important;
}

.services-content div[style*="background: #fff3cd"]::before {
  content: "⚠️";
  position: absolute;
  top: -10px;
  left: 25px;
  background: #ffd700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.services-content div[style*="background: #fff3cd"] h3 {
  color: #e65100 !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
  margin-top: 5px !important;
}

.services-content div[style*="background: #fff3cd"] p {
  color: #bf360c !important;
  font-weight: 500 !important;
  margin-bottom: 15px !important;
}

/* =====================================
   АДАПТИВНОСТЬ SERVICES-CONTENT
   ===================================== */

@media (max-width: 768px) {
  .services-content {
    padding: 30px 20px !important;
    margin: 0 15px !important;
    border-radius: 20px !important;
  }

  .services-content::after {
    display: none;
  }

  .services-content > p:first-child {
    padding: 25px 20px !important;
    font-size: 1.1rem !important;
  }

  .services-content h2 {
    font-size: 1.6rem !important;
    margin: 40px 0 25px 0 !important;
  }

  .services-content h2:contains("💳") + p + ul {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .services-content h2:contains("📞") + p + ol li {
    padding: 20px 20px 20px 70px !important;
    font-size: 1rem !important;
  }

  .services-content h2:contains("📞") + p + ol li::before {
    left: 20px !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1.1rem !important;
  }

  .services-content div[style*="background: #fff3cd"] {
    padding: 25px 20px !important;
    margin: 30px 0 !important;
  }

  .services-content div[style*="background: #fff3cd"] h3 {
    font-size: 1.2rem !important;
  }
}

/* ============================================
   КАТЕГОРИЯ УСЛУГ - ПРЕМИУМ КАРТОЧКИ
   Превращаем таблицу в современные карточки
   ============================================ */

/* Контейнер категории услуг */
.com-content-category__articles {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Заголовок категории */
.com-content-category__title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.com-content-category__title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Скрываем стандартные элементы */
.com-content-category__pagination,
.com-content-category__table caption {
    display: none !important;
}

/* Переопределяем таблицу полностью */
.com-content-category__table {
    display: block !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
}

/* Скрываем заголовок */
.com-content-category__table thead {
    display: none !important;
}

/* Превращаем tbody в сетку премиум-карточек */
.com-content-category__table tbody {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Базовые стили карточек */
.com-content-category__table tbody tr {
    display: block !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    transform: translateY(0) !important;
    border-left: 6px solid #ffd700 !important;
}

/* Скрываем остальные ячейки, оставляем только заголовок */
.com-content-category__table tbody tr td:not(.list-title) {
    display: none !important;
}

/* Заголовки услуг - премиум стиль */
.com-content-category__table .list-title {
    padding: 35px 30px !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.com-content-category__table .list-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.com-content-category__table .list-title a {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    line-height: 1.4 !important;
    position: relative !important;
    z-index: 2 !important;
    letter-spacing: -0.3px !important;
}

/* Иконки для услуг */
.com-content-category__table .list-title a::before {
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
    flex-shrink: 0 !important;
}

/* Hover эффекты */
.com-content-category__table tbody tr:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    border-color: #ffa500 !important;
}

.com-content-category__table tbody tr:hover .list-title {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%) !important;
}

.com-content-category__table tbody tr:hover .list-title a {
    color: #2c3e50 !important;
    transform: translateX(8px) !important;
}

/* Индивидуальные цвета для каждой услуги */
.com-content-category__table tbody tr:nth-child(1) { border-left-color: #28a745; }
.com-content-category__table tbody tr:nth-child(1):hover .list-title { background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important; }
.com-content-category__table tbody tr:nth-child(1) .list-title a::before { content: "✈️"; }

.com-content-category__table tbody tr:nth-child(2) { border-left-color: #007bff; }
.com-content-category__table tbody tr:nth-child(2):hover .list-title { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important; }
.com-content-category__table tbody tr:nth-child(2) .list-title a::before { content: "🚂"; }

.com-content-category__table tbody tr:nth-child(3) { border-left-color: #ffc107; }
.com-content-category__table tbody tr:nth-child(3):hover .list-title { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important; }
.com-content-category__table tbody tr:nth-child(3) .list-title a::before { content: "🏙️"; }

.com-content-category__table tbody tr:nth-child(4) { border-left-color: #17a2b8; }
.com-content-category__table tbody tr:nth-child(4):hover .list-title { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important; }
.com-content-category__table tbody tr:nth-child(4) .list-title a::before { content: "🏞️"; }

.com-content-category__table tbody tr:nth-child(5) { border-left-color: #6f42c1; }
.com-content-category__table tbody tr:nth-child(5):hover .list-title { background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important; }
.com-content-category__table tbody tr:nth-child(5) .list-title a::before { content: "⚡"; }

.com-content-category__table tbody tr:nth-child(6) { border-left-color: #fd7e14; }
.com-content-category__table tbody tr:nth-child(6):hover .list-title { background: linear-gradient(135deg, #fd7e14 0%, #e8650e 100%) !important; }
.com-content-category__table tbody tr:nth-child(6) .list-title a::before { content: "🚐"; }

.com-content-category__table tbody tr:nth-child(7) { border-left-color: #20c997; }
.com-content-category__table tbody tr:nth-child(7):hover .list-title { background: linear-gradient(135deg, #20c997 0%, #1aa085 100%) !important; }
.com-content-category__table tbody tr:nth-child(7) .list-title a::before { content: "🚙"; }

.com-content-category__table tbody tr:nth-child(8) { border-left-color: #e83e8c; }
.com-content-category__table tbody tr:nth-child(8):hover .list-title { background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%) !important; }
.com-content-category__table tbody tr:nth-child(8) .list-title a::before { content: "🚌"; }

.com-content-category__table tbody tr:nth-child(9) { border-left-color: #dc3545; }
.com-content-category__table tbody tr:nth-child(9):hover .list-title { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important; }
.com-content-category__table tbody tr:nth-child(9) .list-title a::before { content: "👶"; }

.com-content-category__table tbody tr:nth-child(10) { border-left-color: #6c757d; }
.com-content-category__table tbody tr:nth-child(10):hover .list-title { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important; }
.com-content-category__table tbody tr:nth-child(10) .list-title a::before { content: "🚗"; }

.com-content-category__table tbody tr:nth-child(11) { border-left-color: #343a40; }
.com-content-category__table tbody tr:nth-child(11):hover .list-title { background: linear-gradient(135deg, #343a40 0%, #23272b 100%) !important; }
.com-content-category__table tbody tr:nth-child(11) .list-title a::before { content: "🚕"; }

/* Анимации появления */
.com-content-category__table tbody tr {
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.com-content-category__table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.com-content-category__table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.com-content-category__table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.com-content-category__table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.com-content-category__table tbody tr:nth-child(5) { animation-delay: 0.3s; }
.com-content-category__table tbody tr:nth-child(6) { animation-delay: 0.35s; }
.com-content-category__table tbody tr:nth-child(7) { animation-delay: 0.4s; }
.com-content-category__table tbody tr:nth-child(8) { animation-delay: 0.45s; }
.com-content-category__table tbody tr:nth-child(9) { animation-delay: 0.5s; }
.com-content-category__table tbody tr:nth-child(10) { animation-delay: 0.55s; }
.com-content-category__table tbody tr:nth-child(11) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .com-content-category__articles {
        padding: 40px 20px;
    }
    
    .com-content-category__table tbody {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .com-content-category__table .list-title {
        padding: 25px 20px !important;
    }
    
    .com-content-category__table .list-title a {
        font-size: 1.2rem !important;
        gap: 12px !important;
    }

    .com-content-category__table .list-title a::before {
        font-size: 1.5rem !important;
    }
}

/* Убираем Bootstrap стили */
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th,
.table-bordered,
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th,
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    background-color: transparent !important;
    border: none !important;
}