/* === FOOTER STYLES === */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr 1.2fr;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 2;
}

.brand-col {
    gap: 20px;
}

.footer-logo {
    width: 186px;
    height: auto;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
    opacity: 0.8;   
}

.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.email-link img {
    width: 20px;
    height: 20px;
}

.footer-link {
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    text-decoration: none;
}

.footer-link:hover {
    color: #2563eb;
}

.footer-sub-link {
    color: #d2d2d2;
    font-size: 14px;
    display: block;
    transition: color 0.3s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-sub-link:hover {
    color: #2563eb;
}

/* Footer Accordion for Mobile */
@media (max-width: 1044px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 40px;
    }
    
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-col:not(.brand-col):not(:last-child) {
        margin-bottom: 0;
    }
    
    /* Brand column stays visible */
    .brand-col {
        text-align: center;
        align-items: center;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .footer-logo {
        margin: 0 auto;
        display: block;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Accordion headers */
    .footer-col-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        cursor: pointer;
        user-select: none;
    }
    
    .footer-col-title {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
    }
    
    .footer-col-toggle {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
     
    }
    
    .footer-col.active .footer-col-toggle {
        transform: rotate(180deg);
    }
    
    /* Accordion content */
    .footer-col-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    .footer-col.active .footer-col-content {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 20px;
        text-align: left;
    }
    
    .footer-col-content .footer-link,
    .footer-col-content .footer-sub-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-col-content .footer-link:last-child,
    .footer-col-content .footer-sub-link:last-child {
        border-bottom: none;
    }
    
    /* Hide sub-links by default in accordion */
    .footer-col:not(.active) .footer-sub-link {
        display: none;
    }
    
    /* Show only main links in collapsed state */
    .footer-col .footer-link.main-link {
        display: block;
        margin: 0;
    }
}

/* Desktop - show all links */
@media (min-width: 1044px) {
    .footer-col-header,
    .footer-col-toggle {
        display: none;
    }
    
    .footer-col-content {
        max-height: none !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
}

.footer-bottom {
    text-align: center;
    color: #7e7e7e;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Subscribe button */
.btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 20px;
    padding: 10px 24px; 
    width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Small mobile */
@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 15px 0;
    }
    
    .footer-logo {
        width: 150px;
    }
    
    .footer-desc {
        font-size: 13px;
    }
    
    .footer-col-title {
        font-size: 15px;
    }
    
    .footer-col-content .footer-link,
    .footer-col-content .footer-sub-link {
        font-size: 14px;
        padding: 8px 0;
    }
}



/* телеграм плажка */
.tg-notice,
.tg-message-box {
    position: fixed;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    pointer-events: none;
    max-width: 600px;
}

.tg-notice.active,
.tg-message-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.tg-notice-link,
.tg-link-wrapper {
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tg-notice-image {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

.tg-notice-close,
.tg-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
}

.tg-notice-close:hover,
.tg-close-btn:hover {
    background: #f3f4f6;
    color: #dc2626;
    border-color: #d1d5db;
    transform: scale(1.05);
}


@media (min-width: 769px) {
    .tg-notice,
    .tg-message-box {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
    }
    
    .tg-notice.active,
    .tg-message-box.active {
        transform: translateX(-50%) translateY(0);
    }
}


@media (max-width: 768px) {
    .tg-notice,
    .tg-message-box {
        top: 70px;
        left: 5%;
        width: 90%;
        transform: translateY(-20px);
        z-index: 998;
    }
    
    .tg-notice.active,
    .tg-message-box.active {
        transform: translateY(0);
    }
    
    .tg-notice-close,
    .tg-close-btn {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        background: rgba(255, 255, 255, 0.95);
    }
}


@media print {
    .tg-notice,
    .tg-message-box {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .tg-notice,
    .tg-message-box {
        top: auto; 
        bottom: 40px;
        left: 18px;; 
        right: auto; 
        width: 180px; 
        max-width: 80%;
        transform: translateY(20px);
        z-index: 9998; 
    }

    .tg-notice.active,
    .tg-message-box.active {
        transform: translateY(0);
    }

    .tg-notice-close,
    .tg-close-btn {
        top: -10px;
        right: -10px;
        width: 28px;
        height: 28px;
    }
}