/* ============================================================
   BOTinOK — Footer (Solid Panels + Accent Lines)
   Стиль B+A: матовые панели, акцентная кромка, строгие радиусы
   ============================================================ */

.footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--bg-0);
    border-top: 1px solid var(--border-0);
    padding: 24px 0;

    /* для страниц с .layout (footer-auth) — тот же контейнер */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 50px;

    /* «светлая кромка» сверху — как у панелей */
    box-shadow: inset 0 1px 0 var(--edge-light);
    position: relative;
}

/* акцентная линия по верхнему краю футера (B) */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: var(--accent-line);
    border-radius: 0 0 2px 2px;
    background: transparent;
    transition: background var(--dur) var(--ease);
    pointer-events: none;
}

.footer:hover::before {
    background: var(--accent);
}

/* ===== ВНУТРЕННИЙ КОНТЕЙНЕР (для страниц без .layout) ===== */
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ЛОГО ===== */
.footer-left,
.footer-logo,
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-logo-square,
.footer-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 0 var(--edge-light);
}

.footer-logo-square img,
.footer-logo-mark img {
    width: 16px;
    height: 21px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-0);
}

/* ===== ЦЕНТР / КОНТАКТЫ ===== */
.footer-center,
.footer-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link,
.footer-contact,
.footer-contacts a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition:
        color var(--dur) var(--ease),
        background var(--dur) var(--ease);
    padding: 4px 6px;
    border-radius: var(--r-sm);
    position: relative;
}

.footer-link:hover,
.footer-contact:hover,
.footer-contacts a:hover {
    color: var(--text-0);
    background: var(--bg-2);
}

/* акцентная точка-маркер при hover (B) */
.footer-link::before,
.footer-contact::before,
.footer-contacts a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width var(--dur) var(--ease);
    opacity: 0.9;
}

.footer-link:hover::before,
.footer-contact:hover::before,
.footer-contacts a:hover::before {
    width: 18px;
}

/* ===== КОПИРАЙТ ===== */
.footer-copyright,
.footer-copy {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.01em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }

    .footer::before {
        left: 16px;
        right: 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-center,
    .footer-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .footer-link::before,
    .footer-contact::before,
    .footer-contacts a::before {
        display: none;
    }
}