/* ==========================================================================
   1. ОБЩИЕ НАСТРОЙКИ СТРАНИЦЫ
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-blue-original {
    background-color: #104fa2;
}

.popular-row {
  display: flex;
  justify-content: space-between; /* Растянет элементы по краям */
  align-items: center;
  width: 100%;
  box-sizing: border-box; /* Учитывает padding в общей ширине */
}

/* ==========================================================================
   2. ШАПКА САЙТА (HEADER) — ВОЗВРАЩЕНО КАК БЫЛО
   ========================================================================== */
.main-header {
    background-color: #104fa2;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 20px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    color: #104fa2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-left: 8px;
}

.header-stat {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 180px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .header-stat { display: none; }
}

.header-contacts {
    text-align: right;
    margin-right: 20px;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: block;
}

.phone-link:hover {
    text-decoration: underline;
}

.work-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.login-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Кнопка бургер-меню */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    padding: 0;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.burger-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Боковое меню */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #0a3a78;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-nav.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 12px 0;
}

.sidebar-menu li a {
    display: block;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   3. СЕКЦИЯ С ПОИСКОМ (ФОРМА ПОИСКА) — ВОЗВРАЩЕНО КАК БЫЛО
   ========================================================================== */
.search-section {
    padding-top: 24px;
    padding-bottom: 16px;
}

.search-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.search-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}

.search-form {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 2px;
}

@media (max-width: 768px) {
    .search-form { flex-direction: column; gap: 6px; padding: 10px; }
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.border-right {
    border-right: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .border-right { border-right: none; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
}

.input-icon {
    padding-left: 10px;
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 6px 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.input-wrapper input:focus {
    outline: none;
}

.reverse-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

.reverse-btn:hover {
    background-color: #f1f5f9;
}

.submit-btn {
    background-color: #ffcc00;
    color: #0f172a;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

@media (max-width: 768px) {
    .submit-btn { width: 100%; margin-top: 4px; }
}

.submit-btn:hover {
    background-color: #e6b800;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.link-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.link-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   4. КАРТОЧКИ РЕЙСОВ И ЦЕНЫ
   ========================================================================== */
.main-content {
    padding: 8px 0 32px 0;
    flex-grow: 1;
}

.content-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.modern-subtitle {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow: hidden;
}

.route-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.route-towns {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.arrow {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.destination {
    color: #ffffff;
}

.min-price {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.calendar-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.calendar-grid::-webkit-scrollbar {
    display: none;
}

.date-cell {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 76px;
    height: 50px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.date-cell:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.d-date {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 3px;
    line-height: 1.2;
}

.d-price {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
}

.date-cell.cheapest {
    background-color: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
}

.date-cell.cheapest .d-date,
.date-cell.cheapest .d-price {
    color: #4ade80;
}

/* ==========================================================================
   5. БЛОК ИНСТРУКЦИИ «КАК КУПИТЬ БИЛЕТ» — ВОЗВРАЩЕНО КАК БЫЛО
   ========================================================================== */
.instructions-section {
    margin-top: 32px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 900px) {
    .instructions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .instructions-grid { grid-template-columns: 1fr; }
}

.step-card {
    background: #0a3a78;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.step-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.step-text {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   6. АДАПТИВ ДЛЯ ВСЕХ ЭКРАНОВ
   ========================================================================== */

/* Планшет и телефон: прокрутка дат */
@media (max-width: 849px) {
    .calendar-grid {
        scroll-snap-type: x proximity;
        gap: 8px;
        padding: 2px 0 6px;
        margin: 0 -2px;
    }

    .date-cell {
        scroll-snap-align: start;
        width: 74px;
        height: 48px;
    }
}

/* ПК: маршрут и даты в одну строку, ячейки равной ширины */
@media (min-width: 850px) {
    .route-card {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 14px 18px;
    }

    .route-info {
        width: 160px;
        min-width: 160px;
    }

    .calendar-grid {
        flex: 1;
        overflow: hidden;
        gap: 4px;
        padding: 0;
    }

    .date-cell {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 52px;
        border-radius: 8px;
    }

    .d-price {
        font-size: clamp(9px, 0.85vw, 11px);
    }
}

/* Широкий экран */
@media (min-width: 1100px) {
    .header-container,
    .search-container,
    .content-container {
        max-width: 1040px;
    }

    .route-info {
        width: 180px;
        min-width: 180px;
    }

    .date-cell {
        height: 54px;
    }

    .d-date {
        font-size: 10px;
    }

    .d-price {
        font-size: 12px;
    }
}

/* Планшет: форма и шапка */
@media (max-width: 768px) {
    .header-contacts {
        display: none;
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-radius: 10px;
    }

    .input-wrapper {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }

    .border-right {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 6px;
    }

    .reverse-btn {
        transform: rotate(90deg);
        margin: 2px 0;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
    }

    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Смартфон */
@media (max-width: 480px) {
    .search-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .route-card {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .date-cell {
        width: 70px;
        height: 46px;
        padding: 6px 4px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* Базовые стили (Современный темный / глубокий синий дизайн) */
:root {
  --bg-main: #0a192f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent: #0071e3;
  --text: #ffffff;
}

body {
  background-color: var(--bg-main);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Десктопная сетка (Сетка 2 в ряд) */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.app-card, .review-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.store-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.store-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.store-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Пресса */
.press-logos {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.press-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  flex: 1;
}

/* 📱 МОБИЛЬНАЯ ВЕРСИЯ (Обязательно покажи этот кусок кода в ролике!) */
@media (max-width: 768px) {
  /* Перестраиваем сетку в один столбец, чтобы пальцем было удобно скроллить */
  .promo-grid {
    grid-template-columns: 100%;
    gap: 16px;
  }

  /* Прессу превращаем в горизонтальный свайпер, файлы не уходят под экран */
  .press-logos {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .press-item {
    min-width: 250px; /* Карточки не сжимаются, а уходят в бок */
    scroll-snap-align: start;
  }

  .store-buttons {
    flex-direction: column; /* Кнопки сторов на мобилке встают друг под друга */
  }
}


/* Контейнер слайдера */
.reviews-slider-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Кнопки управления */
.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: #0071e3;
  transform: scale(1.05);
}

/* Слайдер и Лента (Окно видимости) */
.slider-viewport {
  overflow: hidden; /* Прячем карточки, которые не влезают */
  width: 100%;
}

.slider-track {
  display: flex;
  /* Плавный сдвиг за счет трансформации */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Отдельный слайд (на десктопе показываем по одному) */
.review-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 5px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.user-name {
  font-weight: 600;
  color: #fff;
}

.review-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 16px;
}

/* 📱 МОБИЛЬНЫЙ АДАПТИВ ДЛЯ СЛАЙДЕРА */
@media (max-width: 768px) {
  .slider-controls {
    display: none; /* Убираем стрелки на мобилке, они только мешают */
  }

  .slider-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .slider-track {
    transform: none !important; /* Отключаем JS-трансформацию на мобилках */
  }

  .review-slide {
    min-width: 85%; /* На мобилке показываем карточку почти на весь экран + виден край следующей */
    scroll-snap-align: start;
    margin-right: 16px;
  }
}


/* Шапка блока и Табы */
.directions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tab-controls {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #0071e3;
  color: #fff;
}

/* Сетка тегов-направлений */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.direction-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
}

.direction-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0071e3;
  transform: translateY(-2px);
}

.price {
  color: #34c759; /* Сочный зеленый цвет для цен */
  font-weight: 700;
}

/* Блок информации (Grid из двух частей) */
.info-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.info-main-card, .info-link-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 18px;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
  padding: 18px 24px;
  transition: 0.2s;
}

.info-link-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

/* 📱 МОБИЛЬНЫЙ АДАПТИВ */
@media (max-width: 768px) {
  .directions-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-controls {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
  }

  .tags-grid {
    grid-template-columns: 100%; /* На мобилке теги встают в один удобный список */
    gap: 10px;
  }

  .info-grid {
    grid-template-columns: 100%; /* Инфо-блоки перестраиваются в стек */
  }
}


/* Верхний блок с текстом */
.about-app-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.02);
}

.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.app-text h2 { font-size: 28px; margin-bottom: 16px; }
.app-text p { color: rgba(255, 255, 255, 0.7); line-height: 1.7; }

/* Дизайн футера */
.main-footer {
  background: #07111e; /* Глубокий премиальный темный тон вместо яркого синего */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col .arrow { display: none; } /* Скрыта на ПК */

.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-content a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 15px;
}

.accordion-content a:hover { color: #0071e3; }

.phone-link {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-icon {
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.social-icon:hover { background: #0071e3; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* 📱 МОБИЛЬНЫЙ АДАПТИВ (АККОРДЕОНЫ) */
@media (max-width: 768px) {
  .app-grid { grid-template-columns: 100%; text-align: center; }

  .footer-grid {
    grid-template-columns: 100%;
    gap: 0;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
  }

  .footer-col h4 {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
  }

  .footer-col .arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
  }

  /* Скрываем контент аккордеона по умолчанию на мобилках */
  .footer-col .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s;
  }

  /* Стили для открытого состояния */
  .footer-col.active .accordion-content {
    max-height: 200px; /* Достаточно для всех ссылок */
    margin-top: 16px;
  }

  .footer-col.active .arrow {
    transform: rotate(180deg);
    color: #0071e3;
  }

  .contacts-col, .social-col { border-bottom: none; padding-top: 24px; }
  .contacts-col h4, .social-col h4 { margin-bottom: 16px; }
}
