/* ── FOOTER VARIANTS ─────────────────────────────────────────
   8 вариантов футера. Акцентный цвет через var(--accent).
   Шрифты через var(--font-head) и var(--font-body).
─────────────────────────────────────────────────────────── */

/* ── УНИВЕРСАЛЬНЫЕ ПРАВИЛА (все варианты) ───────────────── */
/* fw-text: сбрасываем браузерные отступы у p, strong, a */
[class*="bfner-fv"] .bfner-fw-text,
.bfner-footer-widget-text {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 13px;
    color: #767676;
    line-height: 1.7;
}
[class*="bfner-fv"] .bfner-fw-text p,
.bfner-footer-widget-text p { margin: 0; }
[class*="bfner-fv"] .bfner-fw-text p + p,
.bfner-footer-widget-text p + p { margin-top: 8px; }
[class*="bfner-fv"] .bfner-fw-text strong,
.bfner-footer-widget-text strong { font-weight: 600; color: #555; }
[class*="bfner-fv"] .bfner-fw-text a,
.bfner-footer-widget-text a { color: #888; text-decoration: underline; text-underline-offset: 3px; }
[class*="bfner-fv"] .bfner-fw-text a:hover,
.bfner-footer-widget-text a:hover { color: var(--accent, #e8132a); }

/* ── F1: 3 колонки, серый фон ───────────────────────────── */
.bfner-footer {
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    margin-top: 20px;
}

.bfner-footer-widgets {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.bfner-footer-widget-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.bfner-footer-widget-text {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.bfner-footer-widget-text p + p { margin-top: 14px; }

.bfner-footer-widget-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bfner-footer-widget-links a {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.bfner-footer-widget-links a:hover { color: var(--accent, #e8132a); }

.bfner-footer-links-scroll {
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.bfner-footer-bar {
    border-top: 1px solid #e2e2e2;
    background: #ebebeb;
    padding: 14px 24px;
}

.bfner-footer-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #888;
}

.bfner-footer-bar-inner a { color: #555; text-decoration: none; }
.bfner-footer-bar-inner a:hover { color: var(--accent, #e8132a); }

.bfner-footer-bar-nav { display: flex; gap: 20px; }

/* ── F2: Тёмный, 4 колонки ───────────────────────────────── */
.bfner-fv2 { background: #121212; border-top: 3px solid var(--accent, #e8132a); margin-top: 20px; }
.bfner-fv2 .bfner-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.bfner-fv2 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.bfner-fv2 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #999; line-height: 1.7; }
.bfner-fv2 .bfner-fw-links { display: flex; flex-direction: column; gap: 8px; }
.bfner-fv2 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #999; text-decoration: none; }
.bfner-fv2 .bfner-fw-links a:hover { color: #fff; }
.bfner-fv2 .bfner-bar {
    border-top: 1px solid #2a2a2a;
    padding: 14px 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #555;
}
.bfner-fv2 .bfner-bar a { color: #555; text-decoration: none; }
.bfner-fv2 .bfner-bar a:hover { color: #fff; }
.bfner-fv2 .bfner-bar-nav { display: flex; gap: 20px; }

/* ── F4: Лого+слоган слева, ссылки справа ───────────────── */
.bfner-fv4 { background: #f5f5f5; border-top: 1px solid #e2e2e2; margin-top: 20px; }
.bfner-fv4 .bfner-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.bfner-fv4 .bfner-brand .bfner-logo {
    font-family: var(--font-head, Georgia, serif);
    font-weight: 700;
    font-size: 32px;
    color: #121212;
    margin-bottom: 10px;
    display: block;
}
.bfner-fv4 .bfner-brand .bfner-tagline {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 13px;
    color: #767676;
    line-height: 1.6;
}
.bfner-fv4 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv4 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.bfner-fv4 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv4 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }
.bfner-fv4 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #767676; line-height: 1.7; }
.bfner-fv4 .bfner-fw-text p { margin: 0; }
.bfner-fv4 .bfner-fw-text p + p { margin-top: 8px; }
.bfner-fv4 .bfner-fw-text strong { font-weight: 600; color: #555; }
.bfner-fv4 .bfner-fw-text a { color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv4 .bfner-fw-text a:hover { color: var(--accent, #e8132a); }
.bfner-fv4 .bfner-bar {
    border-top: 1px solid #e2e2e2;
    padding: 14px 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #aaa;
}
.bfner-fv4 .bfner-bar a { color: #888; text-decoration: none; }
.bfner-fv4 .bfner-bar a:hover { color: var(--accent, #e8132a); }
.bfner-fv4 .bfner-bar-nav { display: flex; gap: 20px; }

/* ── F5: Центрированный ──────────────────────────────────── */
.bfner-fv5 { background: #fff; border-top: 3px solid #121212; margin-top: 20px; }
.bfner-fv5 .bfner-top { max-width: 800px; margin: 0 auto; padding: 48px 24px 32px; text-align: center; }
.bfner-fv5 .bfner-logo {
    font-family: var(--font-head, Georgia, serif);
    font-weight: 700;
    font-size: 32px;
    color: #121212;
    margin-bottom: 8px;
    display: block;
}
.bfner-fv5 .bfner-tagline { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #999; margin-bottom: 28px; }
.bfner-fv5 .bfner-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; text-align: left; margin-bottom: 32px; }
.bfner-fv5 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv5 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #767676; line-height: 1.7; }
.bfner-fv5 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 130px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.bfner-fv5 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv5 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }
.bfner-fv5 .bfner-bar {
    border-top: 1px solid #e2e2e2;
    padding: 16px 24px;
    text-align: center;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #aaa;
}
.bfner-fv5 .bfner-bar-nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 6px; }
.bfner-fv5 .bfner-bar-nav a { color: #888; text-decoration: none; font-size: 12px; }
.bfner-fv5 .bfner-bar-nav a:hover { color: var(--accent, #e8132a); }

/* ── F7: 4 колонки, тёмная нижняя полоса ────────────────── */
.bfner-fv7 { background: #f5f5f5; border-top: 1px solid #e2e2e2; margin-top: 20px; }
.bfner-fv7 .bfner-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.bfner-fv7 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv7 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #767676; line-height: 1.7; }
.bfner-fv7 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.bfner-fv7 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv7 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }
.bfner-fv7 .bfner-bar {
    background: #121212;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #666;
}
.bfner-fv7 .bfner-bar-nav { display: flex; gap: 20px; }
.bfner-fv7 .bfner-bar a { color: #666; text-decoration: none; }
.bfner-fv7 .bfner-bar a:hover { color: #fff; }

/* ── F8: Тёмный, красный акцент сверху ──────────────────── */
.bfner-fv8 { background: #111; border-top: 4px solid var(--accent, #e8132a); margin-top: 20px; }
.bfner-fv8 .bfner-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.bfner-fv8 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent, #e8132a);
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv8 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #777; line-height: 1.7; }
.bfner-fv8 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.bfner-fv8 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #777; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv8 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }
.bfner-fv8 .bfner-bar {
    border-top: 1px solid #222;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #444;
}
.bfner-fv8 .bfner-bar-nav { display: flex; gap: 20px; }
.bfner-fv8 .bfner-bar a { color: #444; text-decoration: none; }
.bfner-fv8 .bfner-bar a:hover { color: #fff; }

/* ── F9: Сплит — тёмная левая + светлая правая ───────────── */
.bfner-fv9 { margin-top: 20px; display: grid; grid-template-columns: 1fr 2fr; min-height: 200px; }
.bfner-fv9 .bfner-left {
    background: #121212;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bfner-fv9 .bfner-left .bfner-logo {
    font-family: var(--font-head, Georgia, serif);
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    margin-bottom: 10px;
    display: block;
}
.bfner-fv9 .bfner-left .bfner-tagline { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #666; line-height: 1.6; }
.bfner-fv9 .bfner-left .bfner-copy { font-family: var(--font-body, Arial, sans-serif); font-size: 11px; color: #444; margin-top: 32px; }
.bfner-fv9 .bfner-right { background: #f5f5f5; padding: 48px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bfner-fv9 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv9 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #767676; line-height: 1.7; }
.bfner-fv9 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.bfner-fv9 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv9 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }

/* ── F10: Газетный — большое лого по центру ─────────────── */
.bfner-fv10 { background: #fff; border-top: 4px solid #121212; margin-top: 20px; }
.bfner-fv10 .bfner-logo-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e2e2;
}
.bfner-fv10 .bfner-logo {
    font-family: var(--font-head, Georgia, serif);
    font-weight: 700;
    font-size: 42px;
    color: #121212;
    letter-spacing: -1px;
    display: block;
}
.bfner-fv10 .bfner-cols {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.bfner-fv10 .bfner-fw-title {
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #121212;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.bfner-fv10 .bfner-fw-text { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #767676; line-height: 1.7; }
.bfner-fv10 .bfner-fw-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}
.bfner-fv10 .bfner-fw-links a { font-family: var(--font-body, Arial, sans-serif); font-size: 13px; color: #888; text-decoration: underline; text-underline-offset: 3px; }
.bfner-fv10 .bfner-fw-links a:hover { color: var(--accent, #e8132a); }
.bfner-fv10 .bfner-bar {
    background: #f5f5f5;
    border-top: 1px solid #e2e2e2;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: 12px;
    color: #aaa;
}
.bfner-fv10 .bfner-bar-nav { display: flex; gap: 20px; }
.bfner-fv10 .bfner-bar a { color: #888; text-decoration: none; }
.bfner-fv10 .bfner-bar a:hover { color: var(--accent, #e8132a); }

/* ── АДАПТИВ для футеров ────────────────────────────────── */
@media (max-width: 768px) {
    .bfner-footer-widgets { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px; }
    .bfner-footer-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
    .bfner-fv2 .bfner-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .bfner-fv4 .bfner-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .bfner-fv5 .bfner-cols { grid-template-columns: 1fr; gap: 24px; }
    .bfner-fv7 .bfner-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .bfner-fv8 .bfner-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .bfner-fv9 { grid-template-columns: 1fr; }
    .bfner-fv9 .bfner-right { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .bfner-fv9 .bfner-left { padding: 32px 16px; }
    .bfner-fv10 .bfner-cols { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
    .bfner-fv10 .bfner-logo { font-size: 28px; }
    .bfner-fv5 .bfner-top { padding: 32px 16px; }
    .bfner-fv2 .bfner-bar, .bfner-fv4 .bfner-bar, .bfner-fv7 .bfner-bar, .bfner-fv8 .bfner-bar, .bfner-fv10 .bfner-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .bfner-fv2 .bfner-bar-nav, .bfner-fv4 .bfner-bar-nav, .bfner-fv5 .bfner-bar-nav,
    .bfner-fv7 .bfner-bar-nav, .bfner-fv8 .bfner-bar-nav, .bfner-fv10 .bfner-bar-nav { justify-content: center; flex-wrap: wrap; }
}
