 html {
     scroll-behavior: smooth;
 }
 
 .glass {
     backdrop-filter: saturate(150%) blur(10px);
     background: rgba(70, 11, 11, 0.8)
 }
 
 .safe-area {
     padding-left: max(env(safe-area-inset-left), 1rem);
     padding-right: max(env(safe-area-inset-right), 1rem)
 }
 
 .bg-grid {
     background-image: linear-gradient(to right, rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, .04) 1px, transparent 1px);
     background-size: 24px 24px
 }
 
 .no-scrollbar::-webkit-scrollbar {
     display: none;
 }
 
 .no-scrollbar {
     -ms-overflow-style: none;
     scrollbar-width: none;
 }

 /* ==== ОСНОВНЫЕ СТИЛИ ==== */

/* Контейнер */
#servicesWrapper {
  display: flex;
  transition: transform 0.5s ease;
}

/* Карточка услуги */
.service-card {
  min-width: 33.333%;
  padding: 1rem;
}

/* Внутренний блок карточки */
.service-card .bg-gray-800 {
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Заголовки */
.service-card h1 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: red;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ==== АДАПТИВНОСТЬ ==== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .service-card {
    min-width: 50%;
  }
}

/* Телефоны (до 640px) */
@media (max-width: 640px) {
  #servicesWrapper {
    flex-direction: column; /* карточки в колонку */
    align-items: center;
  }

  .service-card {
    min-width: 100%;
    padding: 0.5rem;
  }

  .service-card .bg-gray-800 {
    height: auto; /* убираем фиксированную высоту */
    padding: 1rem;
  }

  .service-card h1 {
    font-size: 1rem;
  }

  .service-card h3 {
    font-size: 0.8rem;
  }

  /* Стрелки можно скрыть на телефонах */
  #prevService,
  #nextService {
    display: none;
  }
}
