/* =========================================
   9. FOOTER SECTION STYLES
   ========================================= */
.site-footer { 
    background: var(--c-deep-blue); 
    color: rgba(255, 255, 255, 0.8); 
    padding: 40px 0 0; 
    font-size: 0.9rem; 
    margin-top: 50px; 
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-gold) 0%, #d4b062 100%);
}

.footer-content { 
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px; 
    margin-bottom: 30px; 
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col { 
    display: flex;
    flex-direction: column;
}

.footer-about {
    max-width: 100%;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-title { 
    color: var(--c-white); 
    font-family: var(--f-heading); 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    position: relative; 
    font-weight: 700;
    padding-bottom: 10px;
}

/* Footer Accordion */
.footer-accordion-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.3s ease;
}

.footer-accordion-toggle:hover {
    color: var(--c-gold);
}

.footer-accordion-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: var(--c-gold);
    opacity: 0.8;
}

.footer-accordion.active .footer-accordion-icon {
    transform: rotate(180deg);
}

.footer-accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* На десктопе всегда открыто */
@media (min-width: 769px) {
    .footer-accordion-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    .footer-accordion-toggle {
        cursor: default;
        pointer-events: none;
    }
    
    .footer-accordion-icon {
        display: none;
    }
}

/* На мобильных - аккордеон */
@media (max-width: 768px) {
    .footer-accordion-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .footer-accordion.active .footer-accordion-content {
        max-height: 500px;
        opacity: 1;
        margin-top: 10px;
    }
    
    .footer-accordion-toggle {
        margin-bottom: 0;
        pointer-events: auto;
    }
    
    .footer-accordion-icon {
        display: inline-block;
    }
}

.footer-title::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 40px; 
    height: 2px; 
    background: var(--c-gold); 
    border-radius: 2px;
}

.footer-links { 
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a { 
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover { 
    color: var(--c-gold); 
    transform: translateX(5px);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    color: var(--c-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-wa {
    background: #25D366;
}

.social-wa:hover {
    background: #20bd5a;
}

.social-tg {
    background: #229ED9;
}

.social-tg:hover {
    background: #1f8ebc;
}

.social-viber {
    background: #7360f2;
}

.social-viber:hover {
    background: #5f4dd6;
}

.social-fb {
    background: #0084ff;
}

.social-fb:hover {
    background: #0073e6;
}

.social-vk {
    background: #0077FF;
}

.social-vk:hover {
    background: #0066e6;
}

.social-max {
    background: #FF6B00;
}

.social-max:hover {
    background: #e65f00;
}

/* Обратная совместимость */
.social-vb {
    background: #665CAC;
}

.social-vb:hover {
    background: #5a4f9a;
}

/* Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--c-gold);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--c-gold);
}

.contact-item span {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom */
.footer-bottom {
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

.payment-icons { 
    font-size: 1.5rem; 
    color: rgba(255, 255, 255, 0.5); 
    display: flex; 
    gap: 15px; 
}

/* Обратная совместимость для старого класса .social-icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover {
    background: var(--c-gold);
    color: var(--c-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-bar { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: var(--c-white); 
    padding: 15px 20px; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
    z-index: 999; 
    justify-content: space-between; 
    align-items: center; 
}

.btn-mob-book { 
    background: var(--c-gold); 
    color: white; 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 600; 
    border: none; 
}

/* MOBILE CTA */
.mobile-cta {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: var(--c-white); 
    padding: 15px;
    display: none; 
    -webkit-box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
    -moz-box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between; 
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center; 
    z-index: 999;
}

.mobile-cta-text {
    flex: 1;
    min-width: 0;
}

.mobile-cta-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.mobile-cta-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--c-white);
}

.mobile-cta-btn-wa, .mobile-cta-wa {
    background: #25D366;
}

.mobile-cta-btn-wa:hover, .mobile-cta-wa:hover {
    background: #20bd5a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.mobile-cta-btn-tg, .mobile-cta-tg {
    background: #229ED9;
}

.mobile-cta-btn-tg:hover, .mobile-cta-tg:hover {
    background: #1f8ebc;
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
}

.mobile-cta-viber {
    background: #7360f2;
}

.mobile-cta-viber:hover {
    background: #5f4dd6;
    box-shadow: 0 4px 12px rgba(115, 96, 242, 0.35);
}

.mobile-cta-fb {
    background: #0084ff;
}

.mobile-cta-fb:hover {
    background: #0073e6;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.35);
}

.mobile-cta-vk {
    background: #0077FF;
}

.mobile-cta-vk:hover {
    background: #0066e6;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.35);
}

.mobile-cta-max {
    background: #FF6B00;
}

.mobile-cta-max:hover {
    background: #e65f00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.whatsapp-btn { 
    background: #25D366; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-weight: 600; 
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1; 
    -ms-flex: 1; 
    flex: 1; 
    text-align: center; 
    margin-left: 10px; 
}

/* Скрытие плавающего сообщения на мобильных, если настройка включена */
.mobile-cta.hide-on-mobile {
    display: none !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

/* Mobile styles */
@media (max-width: 900px) {
    .mobile-cta:not(.hide-on-mobile) { 
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex; 
    }
    
    body { 
        padding-bottom: 70px; 
    }
    
    .mobile-bottom-bar { 
        display: flex; 
    }
    
    .review-card-mini { 
        -webkit-flex: 0 0 280px; 
        -ms-flex: 0 0 280px; 
        flex: 0 0 280px; 
    }
}

@media (max-width: 768px) {
    .site-footer { 
        padding: 35px 0 0; 
        margin-top: 40px;
    }
    
    .footer-content { 
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 25px;
    }
    
    .footer-about {
        grid-column: 1;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .footer-title::after {
        width: 40px;
        height: 2px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-contact-info {
        gap: 12px;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0;
        margin-top: 35px;
    }
    
    .footer-content {
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .footer-title::after {
        width: 35px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-contact-info {
        gap: 10px;
    }
    
    .contact-item {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 0.95rem;
        width: 18px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}