/* =====================================================
   БРО — стили раздела «Статьи» (/blog/)
   Оформление повторяет дизайн главной страницы сайта
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #2a2420;
    --bg-darker: #1f1a16;
    --bg-card: #342d27;
    --accent-red: #c0392b;
    --text-white: #ffffff;
    --text-cream: #f5efe8;
    --text-muted: #b0a090;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@font-face {
    font-family: 'CustomHeading';
    src: url('../Заголовок.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CustomText';
    src: url('../Текст.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'CustomText', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'CustomHeading', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== HEADER ==================== */
.bh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(42, 36, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.bh-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 40px;
    gap: 20px;
}

.bh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bh-logo {
    font-family: 'CustomHeading', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
}

.bh-sub {
    font-family: 'CustomText', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: lowercase;
    line-height: 1.3;
    white-space: nowrap;
}

.bh-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bh-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.bh-nav a:hover,
.bh-nav a.active {
    color: var(--text-white);
}

.bh-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bh-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: inherit;
}

.bh-btn:hover {
    background: var(--text-cream);
    transform: scale(1.03);
}

.bh-btn-big {
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    width: 100%;
}

.bh-btn-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

/* ==================== HERO ==================== */
.bh-hero {
    position: relative;
    padding: 170px 40px 90px;
    text-align: center;
    background: var(--bg-darker);
    overflow: hidden;
}

.bh-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.bh-label {
    position: relative;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 18px;
}

.bh-hero h1 {
    position: relative;
    font-size: 52px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.bh-meta {
    position: relative;
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

/* ==================== MAIN/CONTENT ==================== */
.bh-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 70px 40px 40px;
}

.bh-card {
    max-width: 880px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
}

.bh-body {
    padding: 48px 56px;
}

.bh-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 34px 0 14px;
    letter-spacing: 0.5px;
}

.bh-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin: 28px 0 12px;
    letter-spacing: 0.5px;
}

.bh-body p {
    font-size: 16px;
    color: var(--text-cream);
    line-height: 1.8;
    margin-bottom: 16px;
}

.bh-body ul,
.bh-body ol {
    margin: 0 0 18px 24px;
}

.bh-body li {
    font-size: 16px;
    color: var(--text-cream);
    line-height: 1.7;
    margin-bottom: 8px;
}

.bh-body strong {
    color: var(--text-white);
}

/* ==================== FEED (list of articles) ==================== */
.bh-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bh-post {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bh-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.bh-post:hover::before {
    transform: scaleX(1);
}

.bh-post:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.bh-post h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.bh-post h2 a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.bh-post h2 a:hover {
    color: var(--text-cream);
}

.bh-post p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.bh-post .bh-btn {
    margin-top: auto;
}

/* ==================== LEAD FORM ==================== */
.bh-form {
    grid-column: 1 / -1;
    margin-top: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 44px 36px;
    text-align: center;
}

.bh-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.bh-form-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.bh-form-f {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.bh-form-f input,
.bh-form-f textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
}

.bh-form-f input::placeholder,
.bh-form-f textarea::placeholder {
    color: var(--text-muted);
}

.bh-form-f input:focus,
.bh-form-f textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.bh-form-f textarea {
    resize: vertical;
    min-height: 80px;
}

.bh-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    z-index: -1;
}

.bh-consent {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    text-align: center;
    margin-top: 4px;
}

.bh-form-msg {
    min-height: 20px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    color: var(--text-muted);
}

.bh-form-msg.ok {
    color: #7fb069;
}

.bh-form-msg.err {
    color: var(--accent-red);
}

/* ==================== FOOTER ==================== */
.bhf {
    margin-top: 60px;
    background: #181412;
    border-top: 1px solid var(--border-subtle);
    padding: 48px 40px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
}

.bhf-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
}

.bhf-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.bhf-links a:hover {
    color: var(--text-white);
}

/* ==================== BACK BUTTON ==================== */
.bh-back {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.bh-back svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bh-back:hover {
    transform: translateY(-2px);
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .bh-nav a {
        padding: 7px 8px;
        font-size: 12.5px;
    }

    .bh-actions {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .bh-nav {
        display: none;
    }

    .bh-actions .bh-phone {
        display: none;
    }

    .bh-brand .bh-sub {
        font-size: 8px;
        letter-spacing: 0.6px;
        line-height: 1.45;
        white-space: normal;
        max-width: 115px;
        flex-shrink: 0;
    }

    .bh-actions .bh-btn {
        padding: 8px 14px;
        font-size: 12px;
        letter-spacing: 1px;
        border-radius: 18px;
    }

    .bh-hero {
        padding: 130px 24px 60px;
    }

    .bh-hero h1 {
        font-size: 36px;
    }

    .bh-main {
        padding: 40px 20px;
    }

    .bh-body {
        padding: 32px 24px;
    }

    .bh-inner {
        padding: 0 24px;
        gap: 12px;
    }

    .bhf {
        padding: 40px 24px 32px;
    }
}

@media (max-width: 620px) {
    .bh-list {
        grid-template-columns: 1fr;
    }

    .bh-inner {
        padding: 0 16px;
        gap: 10px;
    }

    .bh-brand .bh-sub {
        font-size: 7px;
        max-width: 95px;
    }

    .bh-actions .bh-btn {
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .bh-hero h1 {
        font-size: 28px;
    }

    .bh-form {
        padding: 32px 22px;
    }

    .bh-back {
        bottom: 110px;
        left: 16px;
        padding: 10px 16px;
        gap: 6px;
        font-size: 13px;
    }

    .bh-back svg {
        width: 16px;
        height: 16px;
    }
}