/*
 | Стили автоблога SportNut. Самодостаточны (без Bootstrap CDN) и повторяют
 | фирменный стиль сайта: акцент #d40041, бирюзовый #5fc0bf, шрифты Bebas Neue / Roboto.
 | Шрифт Bebas Neue берётся из локальной папки лендинга (/landing), Roboto — Google Fonts.
 */

@font-face {
    font-family: 'Bebas Neue';
    src: url('/landing/BebasNeueBold.woff') format('woff'),
         url('/landing/BebasNeueBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bebas Neue';
    src: url('/landing/BebasNeueRegular.woff') format('woff'),
         url('/landing/BebasNeueRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bn-accent: #d40041;
    --bn-accent-dark: #b80038;
    --bn-teal: #5fc0bf;
    --bn-text: #3a3a3a;
    --bn-muted: #8b8b8b;
    --bn-line: #ececec;
    --bn-bg-soft: #f7f7f7;
}

* { box-sizing: border-box; }

#menu { top: 0; }

body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: var(--bn-text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bn-container a:not(.bn-btn):not(.bn-btn-ghost) { color: var(--bn-accent); text-decoration: none; }
.bn-container a:not(.bn-btn):not(.bn-btn-ghost):hover { color: var(--bn-accent-dark); text-decoration: underline; }

.bn-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Шапка / подвал ---- */
.bn-header {
    border-bottom: 1px solid var(--bn-line);
    background: #fff;
}
.bn-header .bn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
}
.bn-brand {
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
    color: var(--bn-accent);
    text-transform: uppercase;
}
.bn-brand:hover { color: var(--bn-accent-dark); text-decoration: none; }
.bn-nav { display: flex; align-items: center; gap: 18px; }
.bn-nav a {
    color: var(--bn-text);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bn-nav a:hover { color: var(--bn-accent); text-decoration: none; }
.bn-lang { display: flex; gap: 8px; }
.bn-lang a {
    color: var(--bn-muted);
    font-size: 13px;
    text-transform: uppercase;
}
.bn-lang a.is-active { color: var(--bn-accent); font-weight: 700; }

.bn-footer {
    border-top: 1px solid var(--bn-line);
    margin-top: 60px;
    padding: 28px 0;
    color: var(--bn-muted);
    font-size: 14px;
    text-align: center;
}

/* ---- Заголовок раздела ---- */
.bn-page { padding: 48px 0; }
.bn-page-head { text-align: center; margin-bottom: 40px; }
.bn-page-head h1 {
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 52px;
    letter-spacing: 1px;
    margin: 0 0 10px;
    color: var(--bn-text);
    text-transform: uppercase;
}
.bn-page-head .bn-lead {
    font-size: 18px;
    color: var(--bn-muted);
    margin: 0 auto;
    max-width: 640px;
}

/* ---- Сетка карточек ---- */
.bn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bn-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.bn-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}
.bn-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.bn-card-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
}
.bn-card-title a { color: var(--bn-text); }
.bn-card-title a:hover { color: var(--bn-accent); text-decoration: none; }
.bn-card-excerpt { color: var(--bn-muted); font-size: 15px; flex: 1; margin: 0 0 18px; }
.bn-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bn-card-date { color: var(--bn-muted); font-size: 13px; }
.bn-stretched::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---- Кнопки ---- */
.bn-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: var(--bn-accent);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}
.bn-btn:hover { background: var(--bn-accent-dark); color: #fff; text-decoration: none; }
.bn-btn-sm { padding: 7px 16px; font-size: 13px; }
.bn-btn-lg { padding: 14px 34px; font-size: 16px; }
.bn-btn-ghost {
    background: transparent;
    color: var(--bn-accent);
    border: 1px solid var(--bn-accent);
}
.bn-btn-ghost:hover { background: var(--bn-accent); color: #fff; }

.bn-empty { text-align: center; color: var(--bn-muted); padding: 60px 0; font-size: 18px; }

/* ---- Пагинация ---- */
.bn-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}
.bn-pagination a,
.bn-pagination span {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--bn-line);
    border-radius: 8px;
    color: var(--bn-text);
    font-size: 15px;
}
.bn-pagination a:hover { border-color: var(--bn-accent); color: var(--bn-accent); text-decoration: none; }
.bn-pagination .is-active { background: var(--bn-accent); border-color: var(--bn-accent); color: #fff; }
.bn-pagination .is-disabled { color: #cfcfcf; }

/* ---- Статья ---- */
.bn-article-wrap { max-width: 760px; margin: 0 auto; }
.bn-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--bn-muted);
}
.bn-breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--bn-line); }
.bn-breadcrumb li:last-child::after { content: ''; }
.bn-article h1 {
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: .5px;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.bn-article-date { color: var(--bn-muted); font-size: 14px; margin: 0 0 30px; }
.bn-content { font-size: 18px; line-height: 1.8; }
.bn-content h2 {
    font-size: 28px;
    margin: 36px 0 14px;
    font-weight: 700;
    color: var(--bn-text);
}
.bn-content h3 { font-size: 22px; margin: 28px 0 12px; font-weight: 700; }
.bn-content p { margin: 0 0 18px; }
.bn-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bn-content ul, .bn-content ol { margin: 0 0 18px; padding-left: 22px; }
.bn-content li { margin-bottom: 8px; }
.bn-content a { text-decoration: underline; }
.bn-content blockquote {
    margin: 0 0 18px;
    padding: 12px 20px;
    border-left: 4px solid var(--bn-teal);
    background: var(--bn-bg-soft);
    color: var(--bn-text);
}

/* ---- CTA ---- */
.bn-cta {
    text-align: center;
    margin-top: 50px;
    padding: 36px 28px;
    border-radius: 12px;
    background: var(--bn-bg-soft);
    border: 1px solid var(--bn-line);
}
.bn-cta h2 {
    font-size: 26px;
    margin: 0 0 10px;
    font-weight: 700;
}
.bn-cta p { color: var(--bn-muted); margin: 0 0 22px; }

/* ---- Шаринг ---- */
.bn-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--bn-line);
}
.bn-share-label { color: var(--bn-muted); font-size: 14px; margin-right: 4px; }
.bn-share-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid var(--bn-line);
    color: var(--bn-text);
    font-size: 14px;
}
.bn-share-btn:hover { border-color: var(--bn-accent); color: var(--bn-accent); text-decoration: none; }

/* ---- Читайте также ---- */
.bn-related { margin-top: 56px; }
.bn-related-title {
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 24px;
    text-align: center;
}

.bn-back { display: inline-block; margin-top: 30px; font-size: 15px; }

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .bn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    body { padding-top: 50px; }
    .bn-grid { grid-template-columns: 1fr; }
    .bn-page-head h1 { font-size: 40px; }
    .bn-article h1 { font-size: 34px; }
    .bn-header .bn-container { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
}
