:root {
  --primary: #0a5b59;
  --white: #fff;
}

/* === Шрифт === */
@font-face {
  font-family: 'Zero Cool';
  src: url('./ZeroCool.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.navigation .container {
    font-family: 'Zero Cool', sans-serif!important;
    letter-spacing: 0.05em!important;
}

/* === Контейнер карточек === */
.navigation .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* === Карточка === */
.navigation__card {
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 20px;
  text-decoration: none;
  flex: 1 1 250px;
  max-width: 260px;
  height: 300px;
  transition: transform 0.3s, background-color 0.3s;
  overflow: hidden;
  gap: 10px;
}

.navigation__card:hover {
  transform: translateY(-5px);
  background-color: #094e4d;
}

/* Заголовок по умолчанию (мобильная версия) */
.navigation__card h2 {
  width: 100%;
  margin: 0 0 10px 0; /* без верхнего отступа */
  text-align: center;
  font-size: 1.2rem; /* мобильный размер */
}

/* Десктоп */
@media (min-width: 1121px) {
  .navigation__card h2 {
    margin: 20px 0 10px 0; /* верхний отступ только на десктопе */
    font-size: 1.5rem;      /* десктопный размер */
  }
}

/* Картинка растягивается на оставшееся место */
.navigation__card img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: 0 0 15px 15px; /* закругление только снизу */
}

/* === Слайдер на мобильных === */
.slider-wrapper {
  padding-left: 20px;
  padding-top: 25px;
  padding-bottom: 10px;
  overflow-x: clip;
}


@media (max-width: 1180px) {
  .navigation .container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    min-height: 100%;
  }

  .navigation__card {
    flex: 0 0 220px;
    height: 280px;
    scroll-snap-align: start;
    padding: 15px 0 0 0;
  }

  .navigation__card h2 {
    font-size: 1.2rem;
  }

  /* Скрыть скроллбар */
  .navigation .container::-webkit-scrollbar {
    display: none;
  }
  .navigation .container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.navigation {
  background: #efeff4; /* светло-серый фон */
  margin-top: -15px;
}

@media (max-width: 1180px) {
  .slider-wrapper {
  padding-top: 10px;
  }
}

.slider-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}