/* footer.css — Footer: тёмный корпоративный, 4-колоночный */

/* ── Скрываем стандартный footer на главной (он встроен в последний слайд) ── */
html.is-home-presentation .layout-footer {
    display: none !important;
}

/* ── Для обычных страниц footer отделяется от контента ── */
.layout-footer footer {
    margin-top: 60px;
}

footer {
    background: linear-gradient(160deg, #2b2b30 0%, var(--brand-gray) 100%);
    color: var(--brand-light);
    margin-top: 0; /* В слайдовой архитектуре отступ не нужен */
    border-top: 3px solid var(--brand-primary);
    position: relative;
    overflow: hidden;
}

/* Тонкий технический паттерн фона */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 0 48px;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
}

/* Логотип / название в первой колонке */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand__logo {
    max-width: 160px;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}
.footer-brand__text {
    font-family: var(--font-head);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

footer h5 {
    font-family: var(--font-head);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
}
footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1.5px;
    background: var(--brand-teal);
    border-radius: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer li {
    font-size: 14px;
    color: rgba(224, 239, 243, 0.75);
    line-height: 1.45;
}
footer a {
    color: rgba(224, 239, 243, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer a:hover {
    color: var(--brand-teal);
}
footer a:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-lede {
    font-size: 14px;
    max-width: 260px;
    color: rgba(224, 239, 243, 0.68);
    line-height: 1.55;
}

/* ── Нижняя строка ── */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(224, 239, 243, 0.10);
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(224, 239, 243, 0.45);
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}
.footer-bottom__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(53, 196, 181, 0.7);
    font-size: 10px;
    letter-spacing: 0.12em;
}
.footer-bottom__status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-teal);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ── Адаптивность ── */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 48px 24px 40px;
    }
}
@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 40px 20px 32px;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}
