/* Footer Styles - Based on Figma Design */
.site-footer {
    background: transparent;
    border-top: none;
    margin-top: 10px;
    padding: 0 0 20px 0;
}

/* Убираем подчеркивание у всех ссылок в футере, кроме политик */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

/* Дополнительно для всех элементов */
.site-footer * a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Убираем маркеры списка у всех списков в футере */
.site-footer ul,
.site-footer ol,
.site-footer li {
    list-style: none !important;
    list-style-type: none !important;
}

.site-footer li::before,
.site-footer li::after {
    content: none !important;
    display: none !important;
}

.footer-container {
    width: 100%;
}

.footer-content {
    padding: 0;
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 1408px;
    margin: 0 auto;
    min-height: 182px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

/* Footer Top */
.footer-top {
    padding: 20px 46px 15px 46px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* Brand Column */
.footer-brand {
    width: 133px;
    flex-shrink: 0;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo-img {
    height: auto;
    width: auto;
    max-width: 133px;
    max-height: 52px;
    object-fit: contain;
    display: block;
}

.footer-logo a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Contact Info */
.footer-contact {
    width: 148px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    padding-top: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #231F20;
    line-height: 17px;
    min-height: 17px;
}

.contact-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.contact-item a {
    color: #231F20;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ee2722;
    text-decoration: none !important;
}

/* Navigation Columns */
.footer-nav-left {
    width: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.footer-nav-right {
    width: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

/* Footer Menu */
.footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

.footer-menu li::before {
    content: none !important;
    display: none !important;
}

.footer-menu li {
    margin-bottom: 15px;
    min-height: 17px;
    display: flex;
    align-items: center;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #231F20;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 17px;
}

.footer-menu-main {
    font-weight: 600 !important;
}

.footer-menu a:hover {
    color: #ee2722;
    text-decoration: none !important;
}

/* Legal Links */
.footer-legal-links {
    min-width: 220px;
    max-width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.footer-menu-legal {
    padding-top: 0;
    margin-top: 0;
}

.footer-menu-legal li {
    margin-bottom: 15px;
    min-height: 17px;
    display: flex;
    align-items: center;
}

.footer-menu-legal a {
    text-decoration: underline !important;
    font-size: 12px;
    color: #918F8F;
    line-height: 17px;
    word-wrap: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.footer-menu-legal a:hover {
    color: #ee2722;
    text-decoration: underline !important;
}

/* Newsletter Subscription - ПРАВАЯ ЧАСТЬ */
.footer-newsletter {
    width: 236px;
    margin-left: auto !important;
    flex-shrink: 0;
    order: 999 !important;
}

.newsletter-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #231F20;
    margin-bottom: 19px;
    line-height: 15px;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
}

.newsletter-input {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 20px !important;
    border: 1px solid #EEEEEE !important;
    border-radius: 5px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #231F20 !important;
    background: #FFFFFF !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ee2722;
    box-shadow: 0 0 0 2px rgba(238, 39, 34, 0.1);
}

.newsletter-input::placeholder {
    color: #918F8F;
}

.newsletter-submit {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 5px !important;
    background: #918F8F !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    line-height: 17px !important;
}

.newsletter-submit:hover {
    background: #7a7878;
}

.newsletter-submit:active {
    transform: translateY(1px);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer Divider */
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(2, 19, 31, 0.15);
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 15px 40px;
    background: #FFFFFF;
    border-radius: 0 0 10px 10px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #918F8F;
    line-height: 17px;
}

.footer-copyright p {
    margin: 0;
}

.footer-dev {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #918F8F;
    line-height: 12px;
}

.footer-dev p {
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .footer-content {
        max-width: 100%;
        border-radius: 0;
    }
    
    .footer-top {
        padding: 20px;
    }
    
    .footer-bottom {
        padding: 15px 20px;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        margin-left: 0 !important;
        order: 0 !important;
    }
}

@media (max-width: 640px) {
    .footer-content {
        padding: 0;
    }

    .footer-top {
        padding: 15px;
        padding-bottom: 12px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }

    .footer-brand,
    .footer-contact,
    .footer-nav-left,
    .footer-nav-right,
    .footer-legal-links,
    .footer-newsletter {
        width: 100%;
    }

    .footer-newsletter {
        margin-left: 0 !important;
        order: 0 !important;
    }

    .footer-bottom {
        padding: 12px 15px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
    }

    .newsletter-input {
        height: 50px !important;
        min-height: 50px !important;
        font-size: 15px !important;
    }
    
    .newsletter-submit {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 14px !important;
    }
}
