/*
 * Footer — подвал сайта
 *
 * Структура:
 * .site-footer
 *   .footer-inner         — основной контент (4 колонки)
 *     .footer-brand       — лого + описание + соцсети
 *     .footer-nav-col     — колонка навигации
 *     .footer-disclaimer  — медицинский дисклеймер
 *   .footer-bottom        — копирайт
 */

.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    transition: background var(--transition-normal),
                border-color var(--transition-normal);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}


/* ============================================================
   FOOTER BRAND (first column)
   ============================================================ */
.footer-brand {}

.footer-logo {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bio-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.footer-brand p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Social links */
.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
}


/* ============================================================
   FOOTER NAVIGATION COLUMNS
   ============================================================ */
.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}


/* ============================================================
   MEDICAL DISCLAIMER
   ============================================================ */
.footer-disclaimer {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1rem;
}

.footer-disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-disclaimer-title svg {
    width: 14px;
    height: 14px;
    color: var(--bio-accent);
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-disclaimer a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ============================================================
   FOOTER BOTTOM
   ============================================================ */
.footer-bottom {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-hint);
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}