/* Travel People Footer Styles */
.ppl-footer {
    background-color: #ffffff;
    color: #345CA7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.ppl-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 10px 15px;
}

/* Верхняя часть подвала с группами ссылок - ВЕБ ВЕРСИЯ */
.ppl-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0px;
}

.ppl-footer-group {
    flex: 1;
    text-align: left;
    margin: 0 15px;
}

.ppl-footer-group:first-child {
    margin-left: 0;
}

.ppl-footer-group:last-child {
    margin-right: 0;
}

.ppl-footer-group-title {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 10px;
    color: #345CA7;
}

.ppl-footer-list {
    list-style-type: none;
    padding-left: 5px;
    margin-left: 0;
}

.ppl-footer-item {
    margin-bottom: 10px;
    list-style: none;
}

.ppl-footer-item a {
    text-decoration: none;
    color: #345CA7;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.ppl-footer-item a:hover {
    opacity: 0.8;
}

/* Третий блок (информация) */
.ppl-footer-info-block {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.ppl-footer-info-item {
    margin-bottom: 10px;
}

.ppl-footer-info-item:last-child {
    margin-bottom: 0;
}

.ppl-footer-logo-block {
    display: flex;
    flex-direction: column;
}

.ppl-footer-logo-text {
    font-size: 20px;
    color: #345CA7;
    font-weight: 500;
    margin-bottom: 5px;
}

.ppl-footer-copyright {
    font-size: 14px;
    color: #91919d;
    font-weight: normal;
}

.ppl-footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppl-footer-legal-link {
    color: #345CA7;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.ppl-footer-legal-link:hover {
    opacity: 0.8;
}

/* Контейнер для иконок с фоном */
.ppl-footer-social-container {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 10px 20px;
    display: inline-block;
}

.ppl-footer-social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ppl-footer-social-icon, .ppl-footer-app-icon {
    color: #345CA7;
    font-size: 24px;
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Увеличиваем иконку App Store для визуального баланса */
.fa-app-store-ios {
    font-size: 28px;
}

/* Немного увеличиваем Google Play для баланса */
.fa-google-play {
    font-size: 26px;
}

.ppl-footer-social-icon:hover, .ppl-footer-app-icon:hover {
    opacity: 0.8;
}

/* Нижняя часть подвала - СКРЫВАЕМ для веб-версии */
.ppl-footer-bottom-block {
    display: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .ppl-footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .ppl-footer-group {
        margin: 0;
        text-align: left;
        width: 100%;
        padding-bottom: 0px;
        position: relative;
    }

    /* В мобильной версии скрываем третий блок (инфо-блок) в верхней части */
    .ppl-footer-group:nth-child(3) {
        display: none;
    }

    /* Добавляем разделительную линию под каждым заголовком */
    .ppl-footer-group::after {
        content: '';
        display: block;
        height: 1px;
        background-color: #D2D9E5;
        width: 100%;
        margin: 0;
    }

    /* Убираем линию после последнего видимого блока */
    .ppl-footer-group:nth-child(2)::after {
        display: none;
    }

    /* Стили для аккордеонов в мобильной версии */
    .ppl-footer-group-title {
        cursor: pointer;
        position: relative;
        padding-right: 30px;
        user-select: none;
        margin-bottom: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Треугольник-галочка для аккордеона */
    .ppl-footer-group-title::after {
        content: '';
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 10px;
        height: 10px;
        border-right: 2px solid #345CA7;
        border-bottom: 2px solid #345CA7;
        transition: transform 0.3s ease;
    }

    .ppl-footer-group-title.ppl-footer-active::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    .ppl-footer-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 5px;
    }

    .ppl-footer-list.ppl-footer-expanded {
        max-height: 500px;
        margin-top: 0px;
        padding-bottom: 15px;
    }

    .ppl-footer-social-container {
        background-color: #F8F9FA;
        border-radius: 12px;
        padding: 10px 20px;
        display: inline-block;
        align-self: flex-start;
        margin-bottom: 30px;
    }

    /* В мобильной версии показываем нижний блок */
    .ppl-footer-bottom-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ppl-footer-logo-block {
        margin-bottom: 15px;
        margin-top: 30px;
    }

    .ppl-footer-legal-links {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .ppl-footer-social-icons {
        align-self: flex-start;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .ppl-footer-container {
        padding: 0px 20px 0px;
    }
    
    .ppl-footer-group {
        max-width: 100%;
    }
}