/* Footer CSS - винесено з footer-courses.php для async завантаження */

.amo-button-holder,
.amo-vertical {
    display: none !important;
    visibility: hidden !important;
}

.custom-footer {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
    font-family: 'Inter', Arial, sans-serif;
    color: #3F5A7B;
}

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

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 34px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-main-content {
    display: flex;
    align-items: flex-start;
    gap: 83px;
    flex: 1;
}

.footer-columns-group {
    display: flex;
    gap: 83px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-column h4 {
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #3F5A7B;
    margin: 0;
    line-height: 1.3;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-links li::before {
    content: '';
    display: block;
    width: 1px;
    height: 16px;
    background-color: #3F5A7B;
    opacity: 0.6;
}

.footer-links a {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3F5A7B;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4B72BB;
}

.custom-footer .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3F5A7B;
    line-height: 1.2;
}

.contact-text::before {
    content: '';
    display: block;
    width: 1px;
    height: 16px;
    background-color: #3F5A7B;
    opacity: 0.6;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: #333;
}

.language-switcher {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 45px;
}

.lang-btn {
    width: 100%;
    height: 45px;
    border: 2px solid #FFB400;
    border-radius: 24px;
    background: transparent;
    color: #4B72BB;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 10px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #FFB400;
    color: #fff;
}

.lang-btn.active {
    background: #FFB400;
    color: #fff;
}

.mobile-footer-structure {
    display: none;
}

@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-main-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-columns-group {
        flex-direction: column;
        gap: 40px;
    }

    .language-switcher {
        flex-direction: row;
        gap: 10px;
    }

    .lang-btn {
        min-width: 45px;
    }
}

@media (max-width: 768px) {
    .custom-footer {
        padding: 40px 0;
    }

    .footer-content {
        display: none;
    }

    .mobile-footer-structure {
        display: block;
    }

    .mobile-line-1 {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 30px;
    }

    .mobile-logo {
        flex-shrink: 0;
    }

    .mobile-logo .logo-image {
        height: 60px;
        width: auto;
        object-fit: contain;
    }

    .mobile-columns {
        display: flex;
        gap: 30px;
        flex: 1;
    }

    .mobile-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-column h4 {
        font-family: 'Onest', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #3F5A7B;
        margin: 0;
        line-height: 1.3;
    }

    .mobile-line-2 {
        margin-bottom: 30px;
    }

    .mobile-line-2 h4 {
        font-family: 'Onest', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #3F5A7B;
        margin: 0 0 16px 0;
        line-height: 1.3;
    }

    .mobile-line-3 {
        display: flex;
        gap: 10px;
    }

    .mobile-line-3 .lang-btn {
        width: auto;
        min-width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 12px;
    }

    .mobile-line-1 {
        flex-direction: row;
        gap: 25px;
    }

    .mobile-columns {
        flex-direction: row;
        gap: 25px;
    }

    .mobile-logo .logo-image {
        height: 80px;
        padding: 22px 0 0 0;
    }

    .mobile-column h4 {
        font-size: 16px;
    }

    .mobile-line-2 {
        text-align: center;
    }

    .mobile-line-2 h4 {
        font-size: 16px;
    }

    .mobile-line-2 .contact-info {
        justify-content: center;
    }

    .mobile-line-2 .contact-item {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .mobile-line-3 {
        justify-content: center;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: sans-serif;
}

.chat-badge {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: #F1BD54;
    color: white;
    padding: 10px 15px;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.chat-badge.visible {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F1BD54;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.chat-button:hover {
    transform: scale(1.1);
    background: #e0aa3e;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.chat-button.is-active {
    background: #d49e30;
    transform: scale(1.1);
}

.chat-button svg {
    width: 32px;
    height: 32px;
    fill: white;
    transition: transform 0.3s ease;
}

.chat-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chat-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-menu h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.messenger-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.messenger-link:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.messenger-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.messenger-icon svg {
    width: 24px;
    height: 24px;
}

.telegram {
    background: #0088cc;
}

.telegram svg {
    fill: white;
}

.whatsapp {
    background: #25D366;
}

.whatsapp svg {
    fill: white;
}

.viber {
    background: #7360f2;
}

.viber svg {
    fill: white;
}

.messenger-name {
    font-weight: 500;
    flex: 1;
}

.user-id-display {
    margin-top: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
    text-align: center;
}

.status-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}
