/* Footer Styles */
.footer-notice {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(15, 27, 46, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 2px solid rgba(94, 189, 249, 0.3);
    border-bottom: 2px solid rgba(94, 189, 249, 0.3);
    position: relative;
    animation: noticeGlow 3s ease-in-out infinite;
}

@keyframes noticeGlow {
    0%, 100% { border-top-color: rgba(94, 189, 249, 0.3); border-bottom-color: rgba(94, 189, 249, 0.3); }
    50% { border-top-color: rgba(94, 189, 249, 0.6); border-bottom-color: rgba(94, 189, 249, 0.6); }
}

.footer-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5ebdf9, transparent);
}

.footer-notice__text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
}

.footer-notice__text strong {
    color: #5ebdf9;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(94, 189, 249, 0.5);
}

.footer-notice__text a {
    color: #5ebdf9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-notice__text a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(94, 189, 249, 0.8);
    border-bottom-color: #5ebdf9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(15, 27, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 0;
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5ebdf9, transparent);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 30px;
    transition: all 0.3s;
    text-shadow: 0 0 20px rgba(94, 189, 249, 0.5);
}

.footer__logo:hover {
    color: #5ebdf9;
    text-shadow: 0 0 30px rgba(94, 189, 249, 0.8);
    transform: translateX(5px);
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #5ebdf9, transparent);
    border-radius: 2px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer__list a:hover {
    color: #5ebdf9;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(94, 189, 249, 0.5);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(94, 189, 249, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__legal-text {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для виджета перевода */
.footer__translate-wrapper {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(94, 189, 249, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer__translate-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-align: right;
}

#ytWidget {
    margin-top: 8px;
    width: auto;
    max-width: 200px;
    display: inline-block;
}

/* Стилизация кнопки виджета Яндекс.Переводчика */
#ytWidget iframe {
    border-radius: 8px;
    overflow: hidden;
}

/* Кастомизация виджета перевода */
.footer__translate-wrapper .ya-widget {
    background: rgba(94, 189, 249, 0.1);
    border: 1px solid rgba(94, 189, 249, 0.3);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
}

.footer__translate-wrapper .ya-widget:hover {
    background: rgba(94, 189, 249, 0.15);
    border-color: rgba(94, 189, 249, 0.5);
    box-shadow: 0 0 15px rgba(94, 189, 249, 0.2);
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer__content {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer__logo {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .footer__title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer__text {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .footer__list a {
        font-size: 13px;
    }
    
    .footer__bottom {
        padding-top: 20px;
        font-size: 13px;
    }
    
    .footer__legal-text {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .footer-notice {
        padding: 20px 0;
    }
    
    .footer-notice__text {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .footer__translate-wrapper {
        margin-top: 20px;
        padding-top: 20px;
        align-items: center;
        text-align: center;
    }
    
    .footer__translate-description {
        font-size: 13px;
        text-align: center;
    }
    
    #ytWidget {
        max-width: 100%;
        margin: 10px auto 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer__content {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer__logo {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .footer__title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer__text {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer__list a {
        font-size: 12px;
    }
    
    .footer__bottom {
        padding-top: 15px;
        font-size: 12px;
    }
    
    .footer__legal-text {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 12px;
        padding: 0 8px;
    }
    
    .footer-notice {
        padding: 15px 0;
    }
    
    .footer-notice__text {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .footer__translate-wrapper {
        margin-top: 18px;
        padding-top: 18px;
        align-items: center;
        text-align: center;
    }
    
    .footer__translate-description {
        font-size: 12px;
        text-align: center;
        margin-bottom: 10px;
    }
    
    #ytWidget {
        max-width: 100%;
        margin: 8px auto 0;
    }
}