/* Inter подключается один раз в common/header.twig */

.modern-footer {
    --emmet-footer-bg: #0a0a0a;
    --emmet-footer-glass: rgba(255, 255, 255, 0.03);
    --emmet-footer-accent: #f6d32d;
    --emmet-footer-accent-glow: rgba(246, 211, 45, 0.3);
    --emmet-footer-text-muted: #a0a0a0;
    --emmet-footer-text: #ffffff;
    --emmet-footer-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--emmet-footer-bg);
    color: var(--emmet-footer-text);
    padding: 60px 20px 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--emmet-footer-accent-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.modern-footer .footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr auto 1.35fr;
    gap: 32px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.modern-footer .footer-container--legal,
.modern-footer .footer-container--payments-legal {
    display: block;
}

.modern-footer .footer-column h4 {
    color: var(--emmet-footer-accent);
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.modern-footer .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.modern-footer .footer-link {
    color: var(--emmet-footer-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--emmet-footer-transition);
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.modern-footer .footer-link:hover {
    color: var(--emmet-footer-accent);
    transform: translateX(8px);
}

.modern-footer .footer-link::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--emmet-footer-accent);
    margin-right: 0;
    transition: var(--emmet-footer-transition);
    flex-shrink: 0;
}

.modern-footer .footer-link:hover::before {
    width: 12px;
    margin-right: 8px;
}

.modern-footer .contact-card {
    background: var(--emmet-footer-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modern-footer .contact-card h4 {
    margin-top: 0;
}

.modern-footer .contact-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.modern-footer .contact-item span {
    font-size: 12px;
    color: var(--emmet-footer-text-muted);
    margin-bottom: 4px;
}

.modern-footer .contact-item a,
.modern-footer .contact-item .contact-address {
    color: var(--emmet-footer-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--emmet-footer-transition);
}

.modern-footer .contact-item a:hover {
    color: var(--emmet-footer-accent);
}

.modern-footer .contact-address {
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
}

.modern-footer .contact-card__legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.modern-footer .contact-card__legal-links a {
    color: var(--emmet-footer-text-muted);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px dashed #444;
    transition: var(--emmet-footer-transition);
}

.modern-footer .contact-card__legal-links a:hover {
    color: var(--emmet-footer-accent);
    border-color: var(--emmet-footer-accent);
}

.modern-footer .social-row {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modern-footer .social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--emmet-footer-transition);
    color: var(--emmet-footer-text);
}

.modern-footer .social-icon:hover {
    background: var(--emmet-footer-accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--emmet-footer-accent-glow);
}

.modern-footer .social-icon i {
    font-size: 20px;
    line-height: 1;
}

.modern-footer .footer-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin-top: 18px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: var(--emmet-footer-accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--emmet-footer-transition);
}

.modern-footer .footer-consult-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 20px var(--emmet-footer-accent-glow);
    transform: translateY(-2px);
}

.modern-footer .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-footer .footer-nav .footer-link--promo {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 6px;
    padding: 10px 18px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0a0a !important;
    background: var(--emmet-footer-accent);
    border-radius: 10px;
    box-shadow: 0 4px 14px var(--emmet-footer-accent-glow);
    transform: none;
}

.modern-footer .footer-nav .footer-link--promo::before {
    display: none;
    width: 0;
    margin: 0;
}

.modern-footer .footer-nav .footer-link--promo:hover {
    color: #0a0a0a !important;
    filter: brightness(1.08);
    box-shadow: 0 6px 22px var(--emmet-footer-accent-glow);
    transform: translateY(-2px);
}

/* Способы оплаты: светлые «пилюли» на тёмном фоне, иконки читаемы */
.modern-footer .footer-payments {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

/* Одна длинная полоса (белые лого на чёрном) вместо отдельных бейджей */
.modern-footer .footer-payments__banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.modern-footer .footer-payments__banner-img {
    display: block;
    width: 100%;
    max-width: min(100%, 1040px);
    height: auto;
    margin: 0 auto;
    flex-shrink: 0;
    object-fit: contain;
}

.modern-footer .footer-payments__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.modern-footer .footer-payments__col-pay {
    min-width: 0;
}

.modern-footer .footer-payments__col-legal {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.modern-footer .footer-payments__strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
}

.modern-footer .footer-payments__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 57px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: var(--emmet-footer-transition);
}

.modern-footer .footer-payments__badge:hover {
    border-color: rgba(246, 211, 45, 0.45);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(246, 211, 45, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.modern-footer .footer-payments__img {
    display: block;
    max-height: 36px;
    width: auto;
    max-width: 114px;
    height: auto;
    object-fit: contain;
    filter: contrast(1.08) saturate(1.05);
}

.modern-footer .footer-payments .legal-info p {
    margin: 0 0 0.75em;
}

.modern-footer .footer-payments .legal-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .modern-footer .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Мобайл: длинные списки ссылок в две колонки — меньше прокрутки по высоте */
@media (max-width: 767.98px) {
    .modern-footer .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 6px;
    }

    .modern-footer .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
    }
}

/* ПК: логотипы оплаты слева, юр. текст справа; иконки ~+30% */
@media (min-width: 992px) {
    .modern-footer .footer-payments__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 28px 32px;
    }

    .modern-footer .footer-payments__col-pay {
        flex: 1 1 auto;
        min-width: 0;
    }

    .modern-footer .footer-payments__col-legal {
        flex: 0 1 38%;
        max-width: 480px;
        text-align: left;
    }

    .modern-footer .footer-payments__banner {
        justify-content: flex-start;
    }

    .modern-footer .footer-payments__banner-img {
        margin: 0;
        max-width: min(100%, 1040px);
    }

    .modern-footer .footer-payments__strip {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 7px;
        overflow: visible;
        padding-bottom: 0;
    }

    .modern-footer .footer-payments__badge {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 5px 9px;
    }

    .modern-footer .footer-payments__img {
        max-height: 27px;
        max-width: 73px;
    }
}

/* Очень узкое окно на ПК: слегка уменьшаем всю полосу, всё ещё без скролла */
@media (min-width: 992px) and (max-width: 1199px) {
    .modern-footer .footer-payments__col-legal {
        flex-basis: 42%;
        max-width: 420px;
    }

    .modern-footer .footer-payments__strip {
        gap: 5px;
    }

    .modern-footer .footer-payments__badge {
        padding: 4px 6px;
        min-height: 42px;
    }

    .modern-footer .footer-payments__img {
        max-height: 25px;
        max-width: 65px;
    }
}

@media (max-width: 600px) {
    .modern-footer .footer-container {
        grid-template-columns: 1fr;
    }

    .modern-footer {
        padding: 40px 15px 24px;
    }

    .modern-footer .footer-payments__badge {
        padding: 7px 13px;
        min-height: 52px;
    }

    .modern-footer .footer-payments__img {
        max-height: 31px;
        max-width: 99px;
    }
}
