/* --- Базовые настройки --- */
:root {
    --primary-color: #143211;
    --primary-hover: #143211;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Навигация --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Главный экран (Видео по скроллу) --- */
.video-scroll-container {
    height: 400vh; /* Высота для долгого скролла */
    position: relative;
    background-color: #000;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scroll-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7; /* Легкое затемнение для читаемости текста */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 54px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Общие стили секций --- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
}

/* --- Сетка маршрутов (Карточки) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
    position: relative;
}

.card-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.card-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
    flex-grow: 1;
}

.price {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Подвал --- */
.site-footer {
    background: #ffffff;
    color: var(--primary-color);
    padding: 34px 0 0;
    border-top: 1px solid #dfe9dc;
    box-shadow: 0 -8px 28px rgba(20, 50, 17, 0.05);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding-bottom: 28px;
}

.footer-brand {
    max-width: 370px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-brand p {
    color: #5f6f5c;
    font-size: 14px;
}

.footer-contacts {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    font-style: normal;
}

.footer-contacts a,
.footer-location {
    display: flex;
    min-width: 155px;
    flex-direction: column;
    justify-content: center;
    padding: 11px 14px;
    border: 1px solid #cbdac7;
    border-radius: 10px;
    background: #f7faf6;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-contacts a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(20, 50, 17, 0.14);
}

.footer-contacts span {
    margin-bottom: 2px;
    color: #71806e;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-contacts strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.footer-contacts a:hover span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid #dfe9dc;
    color: #71806e;
    font-size: 12px;
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .footer-contacts {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .footer-contacts a,
    .footer-location {
        width: 100%;
    }

    .footer-bottom {
        gap: 16px;
    }
}

/* --- Стили для деталей тура (теги details и summary) --- */
details {
    margin: 15px 0 25px 0;
    text-align: left;
    font-size: 14px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #eee;
}

summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    outline: none;
    list-style: none; /* Убираем стандартную стрелочку в некоторых браузерах */
    position: relative;
    transition: background 0.3s;
}

/* Кастомная стрелочка для раскрывающегося меню */
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 18px;
    font-weight: normal;
}
details[open] summary::after {
    content: '−';
}
details[open] summary {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.details-content {
    padding: 0 15px 15px 15px;
    color: #555;
    animation: fadeIn 0.4s ease;
}

.details-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.details-content li {
    margin-bottom: 5px;
}

.details-content p {
    margin-bottom: 10px !important; /* Переопределяем базовый отступ P в карточке */
    font-size: 14px !important;
}

.warning {
    color: #e74c3c !important;
    font-weight: 600;
    background: #fdf3f2;
    padding: 8px;
    border-radius: 5px;
    margin-top: 15px;
}

.short-desc {
    min-height: 45px;
}

/* Плавное появление текста при раскрытии */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Для кнопок WhatsApp внутри карточек */
.card-content .btn {
    width: 100%;
    margin-top: auto;
}

/* --- Секция "Наши гиды" --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
}

.guide-img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Делаем фото круглым */
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.guide-card:hover .guide-img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.guide-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.guide-info p {
    color: #666;
    font-size: 15px;
}

/* --- Секция "Календарь" --- */
.schedule-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    color: #666;
}

.calendar-wrap {
    display: flex;
    justify-content: center;
}

.calendar-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cal-btn {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cal-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.2);
}

.cal-day {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.cal-month {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-btn:hover .cal-day, 
.cal-btn:hover .cal-month {
    color: var(--primary-color);
}

/* --- Модальное окно (Popup) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

#modalTitle {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-list {
    list-style: none;
}

.modal-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

.modal-spots {
    font-size: 13px;
    color: #27ae60;
    margin-top: 5px;
    font-weight: 600;
}


/* --- Секция "Новости и оповещения" --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid transparent;
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Стили для разных типов новостей (тревога, информация) */
.news-item.alert {
    border-left-color: #e74c3c;
    background-color: #fdf3f2;
}

.news-item.alert h4 {
    color: #c0392b;
}

.news-item.info {
    border-left-color: #3498db;
    background-color: #f2f8fc;
}

.news-item.info h4 {
    color: #2980b9;
}



/* --- Секция "Акции и горящие туры" --- */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.promo-col-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 10px;
}

/* Карточки акций (Левая колонка) */
.promo-card {
    display: flex;
    align-items: flex-start;
    background: #fdfaf4;
    border: 1px solid #fbeeb8;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.1);
}

.promo-icon {
    font-size: 32px;
    margin-right: 15px;
    line-height: 1;
}

.promo-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.promo-text p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Карточки горящих туров (Правая колонка) */
.hot-tour-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hot-tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hot-tour-header {
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-tour-date {
    font-weight: 600;
    font-size: 14px;
}

.hot-tour-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.hot-tour-info {
    padding: 20px;
}

.hot-tour-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.hot-tour-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.hot-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f4f8;
    padding-top: 15px;
    margin-top: 10px;
}

.hot-price {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.new-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-hot {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* Пульсация плашки "Горит!" */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .promos-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Динамический календарь поездок --- */
.schedule { background: #f4f7f3; }

.tour-calendar {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid #dce8d9;
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 18px 48px rgba(20, 50, 17, 0.1);
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.calendar-toolbar h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-nav {
    width: 44px;
    height: 44px;
    border: 1px solid #cbdac7;
    border-radius: 50%;
    background: #f4f8f3;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.calendar-nav:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: #71806e;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-weekdays span { padding: 8px 2px; }
.calendar-weekdays .calendar-sunday,
.calendar-day.is-sunday { color: #b85c5c; }

.calendar-grid {
    gap: 7px;
    transition: opacity 0.2s ease;
}

.calendar-grid.is-loading { opacity: 0.45; }

.calendar-day {
    position: relative;
    min-height: 74px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #334330;
    cursor: default;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.2s ease;
}

.calendar-day.is-outside { color: #c3cbc1; }

.calendar-day.has-events {
    border-color: #bfd2ba;
    background: #f0f6ee;
    color: var(--primary-color);
    cursor: pointer;
}

.calendar-day.has-events::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f7d47;
    transform: translateX(-50%);
}

.calendar-day.has-events:hover,
.calendar-day.has-events:focus-visible {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.calendar-day small {
    position: absolute;
    top: 7px;
    right: 8px;
    color: #4f7d47;
    font-size: 10px;
}

.calendar-day.has-events:hover::after,
.calendar-day.has-events:focus-visible::after {
    background: #fff;
}

.calendar-day.has-events:hover small,
.calendar-day.has-events:focus-visible small {
    color: #fff;
}

.calendar-status {
    min-height: 20px;
    margin-top: 16px;
    color: #71806e;
    font-size: 12px;
    text-align: center;
}

.calendar-modal-content {
    max-width: 620px;
    max-height: min(82vh, 720px);
    overflow-y: auto;
}

.calendar-modal-content .close-modal {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f0f5ef;
    font-size: 26px;
}

.modal-kicker {
    margin-bottom: 4px;
    color: #71806e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-modal-content .modal-list li {
    gap: 8px;
    font-size: 15px;
}

.calendar-modal-content .modal-list li:last-child { border-bottom: 0; }

.modal-event-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-event-heading time {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: #eaf2e7;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.calendar-modal-content .modal-list li p {
    color: #687066;
    font-size: 13px;
}

.modal-booking-link {
    align-self: flex-start;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}

.offers-empty {
    padding: 22px;
    border: 1px dashed #cbdac7;
    border-radius: 12px;
    color: #71806e;
    text-align: center;
}

@media (max-width: 600px) {
    .schedule-subtitle {
        margin-top: -22px;
        margin-bottom: 26px;
        font-size: 14px;
    }

    .tour-calendar {
        padding: 18px 12px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(20, 50, 17, 0.09);
    }

    .calendar-toolbar {
        grid-template-columns: 40px 1fr 40px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .calendar-toolbar h3 { font-size: 19px; }
    .calendar-weekdays { font-size: 11px; }
    .calendar-grid { gap: 3px; }
    .calendar-day { min-height: 50px; border-radius: 9px; font-size: 15px; }
    .calendar-day.has-events::after { bottom: 6px; }
    .calendar-modal-content { padding: 32px 22px 24px; }
}

@media (max-width: 380px) {
    .tour-calendar { padding: 15px 8px; }
    .calendar-toolbar { grid-template-columns: 36px 1fr 36px; }
    .calendar-nav { width: 36px; height: 36px; }
    .calendar-toolbar h3 { font-size: 17px; }
    .calendar-weekdays { font-size: 10px; }
    .calendar-day { min-height: 44px; font-size: 14px; }
    .calendar-day small { top: 4px; right: 5px; font-size: 9px; }
}

/* --- Слайдер маршрутов --- */
.routes-slider {
    position: relative;
}

.routes-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: -28px 0 14px;
}

.routes-slider-arrow {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbdac7;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.routes-slider-arrow:hover:not(:disabled),
.routes-slider-arrow:focus-visible {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.routes-slider-arrow:disabled {
    cursor: default;
    opacity: 0.35;
}

.routes-slider .cards-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    padding: 8px 3px 20px;
    scroll-behavior: smooth;
    scroll-padding-inline: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #8da589 #e5ece3;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.routes-slider .cards-grid::-webkit-scrollbar {
    height: 7px;
}

.routes-slider .cards-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e5ece3;
}

.routes-slider .cards-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #8da589;
}

.routes-slider .card {
    min-width: 0;
    flex: 0 0 calc((100% - 80px) / 5);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.routes-slider .card-content {
    padding: 22px 15px;
}

.routes-slider .card-content h3 {
    font-size: 18px;
    line-height: 1.3;
}

.routes-slider .card-content .short-desc {
    font-size: 13px;
}

.routes-slider .price {
    font-size: 19px;
    line-height: 1.3;
}

.routes-slider .card-content .btn {
    padding: 10px 12px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .routes-slider .card {
        flex-basis: calc((100% - 60px) / 4);
    }
}

@media (max-width: 900px) {
    .routes-slider .card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 700px) {
    .routes-slider-controls {
        margin-top: -34px;
    }

    .routes-slider .card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 520px) {
    .routes-slider-controls {
        margin-top: -32px;
        margin-bottom: 12px;
    }

    .routes-slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .routes-slider .cards-grid {
        gap: 14px;
        padding-bottom: 16px;
    }

    .routes-slider .card {
        flex-basis: 88%;
    }
}
