/* ==================== ОСНОВНЫЕ СТИЛИ БЛОКА МАРШРУТЫ ==================== */
.routes-section {
  max-width: 1290px;
  margin: 100px auto 0;
  padding: 0 20px;
}

.routes-title {
  color: #24272C;
  font-family: Onest;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 40px;
}

.routes-grid {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(25% - 23px);
  min-width: 240px;
}
/*
.route-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
*/
.route-slider-container {
  position: relative;
  width: 100%;
  height: 225px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.route-slider {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.3s ease;
}

.route-slide {
  width: 25%;
  height: 225px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.route-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.route-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.2s;
}

.route-slider-dot.active {
  background: #fbbf24;
  transform: scale(1.2);
  border-color: #fbbf24;
}

.route-info {
  display: flex;
  width: 100%;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-radius: 0 0 16px 16px;
  border-right: 1px solid var(--Line, #EDEDED);
  border-bottom: 1px solid var(--Line, #EDEDED);
  border-left: 1px solid var(--Line, #EDEDED);
  background: var(--White, #FFF);
}

.route-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  height: 70px;
}

.route-divider {
  width: 100%;
  height: 1px;
  background: #EDEDED;
  margin: 0;
}

.route-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
}

.route-details-btn {
  display: flex;
  height: 38px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Heading, #24272C);
  background-color: #fff;
  cursor: pointer;
  font-family: Onest;
  font-size: 14px;
  font-weight: 500;
  color: var(--Heading, #24272C);

}



.route-details-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.all-articles-btn {
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Line, #EDEDED);
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
 font-weight: bold;
  line-height: normal;
  background-color: #fc0;
  cursor: pointer;
  margin: 0 auto;
}

.all-articles-btn:hover {
  background: #f59e0b;
  border-color: #999;
}

.all-articles-btn .arrow-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0.3);
}

/* ==================== АДАПТИВНЫЕ СТИЛИ БЛОКА МАРШРУТЫ ==================== */

/* Для экранов 1280px - уменьшаем карточки */
@media (max-width: 1280px) {
  .routes-section {
    max-width: 1100px;
  }

  .routes-grid {
    gap: 20px;
  }

  .route-card {
    width: calc(25% - 15px);
    min-width: 220px;
  }

  .route-slider-container {
    height: 200px;
  }

  .route-slide {
    height: 200px;
  }

  .route-info {
    padding: 12px;
    gap: 15px;
  }

  .route-title {
    font-size: 16px;
  }

  .route-details-btn {
    height: 34px;
    padding: 8px;
    font-size: 13px;
  }

  .routes-title {
    font-size: 32px;
  }
}

/* Для экранов 1024px и меньше - 2 карточки в ряд */
@media (max-width: 1024px) {
  .routes-section {
    max-width: 95%;
  }

  .routes-grid {
    gap: 20px;
    justify-content: center;
  }

  .route-card {
    width: 300px;
    min-width: auto;
  }

  .route-slider-container {
    height: 225px;
  }

  .route-slide {
    height: 225px;
  }

  .route-info {
    padding: 16px;
  }

  .route-title {
    font-size: 18px;
  }

  .route-details-btn {
    height: 38px;
    font-size: 14px;
  }
}

/* Для экранов 768px и меньше - 1 карточка в ряд */
@media (max-width: 768px) {
  .routes-section {
    margin: 60px auto 0;
    padding: 0 15px;
  }

  .routes-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .routes-grid {
    gap: 20px;
  }

  .route-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .route-slider-container {
    height: 200px;
  }

  .route-slide {
    height: 200px;
  }

  .route-info {
    padding: 12px;
    gap: 12px;
  }

  .route-title {
    font-size: 16px;
  }

  .route-details-btn {
    height: 34px;
    padding: 8px;
    font-size: 13px;
  }

  .all-articles-btn {
    padding: 12px 20px;
    font-size: 18px;
  }
}