/* ===== СТИЛИ ПОДВАЛА ===== */

.footer {
    background: 
        linear-gradient(rgba(32, 37, 43, 0.6), rgba(32, 37, 43, 0.8)),
        url('../images/podval.jpg');
    background-size: cover;
    background-position: center;
    color: #b1b1b1;
    font-size: 14px;
    padding: 40px 0;
}

.footer-container {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-logo {
    width: 240px;
    height: auto;
    margin-bottom: 10px;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-icons {           
    display: flex;
    gap: 23px;         
    margin-bottom: 15px;
    justify-content: left;
}


.messenger-icons {
    display: flex;
    gap: 23px;
    margin-bottom: 15px;
    justify-content: left;
}

.social-icon,
.messenger-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.social-icon img,
.messenger-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.social-icon:hover,
.messenger-icon:hover {
    transform: scale(1.3);
}

.footer-heading {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-subheading {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-divider {
    width: 110px;
    height: 2px;
    background-color: var(--red-accent);
    margin-bottom: 15px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.marker {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--red-accent);
    margin-right: 8px;
    flex-shrink: 0;
}

.footer-list li:hover .marker {
    transform: scale(1.5); 
    transition: all 0.2s ease;
}

.footer-link:hover + .marker,
.footer-link:hover ~ .marker {
    
}

.footer-link {
    color: #b1b1b1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: normal; 
    position: relative; 
    cursor: pointer; 
}

.footer-link:hover {
    color: white;
    /* font-weight: bold; */
    text-decoration: underline; 
    text-decoration-thickness: 1px; 
    text-underline-offset: 3px; 
}

.contact-info-2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
}

.contact-info-2:hover {
    transform: scale(1.05);
    color: white;
}

.contact-icon {
    margin-right: 10px;
}

.text-center {
    text-align: left;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal; 
    max-width: 350px;
    width: max-content; 
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10001;
    text-align: left; 
    word-wrap: break-word; 
    line-height: 1.4; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    margin-bottom: 10px; 
}

.contact-info-2:hover .copy-tooltip {
    opacity: 1;
}

.icon-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 9000;
}

.social-icon:hover .icon-tooltip,
.messenger-icon:hover .icon-tooltip {
    opacity: 1;
}

.work-time-bold {
    font-weight: bold;
}

.footer-bottom {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-divider-full {
    width: 97%;
    height: 1px;
    background-color: #757575;
    margin: 20px 0 7px 0;
}

.copyright {
    text-align: left;
    color: #757575;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Модальные окна подвала */
.footer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.footer-modal-content {
    background-color: #20252b;
    margin: 10% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    color: #b1b1b1;
    position: relative;
}

.footer-close {
    color: #b1b1b1;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.footer-close:hover {
    color: white;
}

.modal-heading {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Стили для копирайта с правильными переносами */
.copyright-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
}

.copyright-item {
    white-space: nowrap;
}

.copyright-separator {
    color: #757575;
}

/* Новые стили для выравнивания support email по центру */
.support-email-container {
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

.support-email-container .contact-info-2 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.support-email-container .contact-info-2:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Обеспечиваем, что контактные данные в колонке остаются по левому краю */
.footer-column .contact-info-2 {
    justify-content: flex-start;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .footer-container {
        max-width: 100%;
    }
    
    .footer-bottom {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .footer-column {
        flex: 50%;
    }
}

@media (max-width: 768px) {
    .copyright-content {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }
    
    .copyright-separator {
        display: none; /* Скрываем разделители на мобильных */
    }
    
    .copyright-item {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .footer-column {
        flex: 100%;
    }
    
    .support-email-container .contact-info-2 {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }
    
    .support-email-container .copy-tooltip {
        bottom: -60px;
        left: 50%;
        transform: translateX(-50%);
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }

 .copy-tooltip {
        max-width: 200px;
        font-size: 11px;
        padding: 6px 10px;
        bottom: 100%;
        z-index: 10002;
        margin-bottom: 8px;
    }

}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .copyright {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .copyright-content {
        gap: 1px;
    }
    
    .support-email-container .contact-info-2 {
        font-size: 12px;
        padding: 5px;
    }
}