/* ===================================
   ШАБЛОН 3 — СТИЛЬ ХАЛВА МЕДИА
   Nunito + PT Serif
   Белый, чистый, акцент малиновый #e8275e
   Категории в навбаре как вкладки
   Featured блок + 3 колонки карточек
==================================== */

:root {
    --accent:       #e8275e;
    --accent-light: #fef0f4;
    --accent-hover: #c91e50;
    --bg:           #ffffff;
    --bg2:          #f8f9fa;
    --bg3:          #f0f2f5;
    --text:         #1a1a2e;
    --text-muted:   #6b7280;
    --text-light:   #9ca3af;
    --border:       #e5e7eb;
    --white:        #ffffff;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
    --shadow-md:    0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --radius:       12px;
    --radius-sm:    8px;
    --radius-tag:   20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.bcfcfcontainer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.bcfcfheader {
    background: var(--white);
    padding: 22px 0 18px;
    border-bottom: 3px solid var(--accent);
}

.bcfcfheader .bcfcfcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bcfcflogo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bcfcflogo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.bcfcflogo-text {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
}

.bcfcflogo:hover .bcfcflogo-text { color: var(--accent); }

.bcfcflogo-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 400;
}

/* ===== NAV ===== */
.bcfcfnav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.bcfcfnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bcfcfnav-list {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bcfcfnav-list::-webkit-scrollbar { display: none; }

.bcfcfnav-link {
    display: block;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.bcfcfnav-link:hover { color: var(--accent); }
.bcfcfnav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.bcfcfnav-about {
    margin-left: auto;
    color: var(--text);
}

/* ===== BURGER ===== */
.bcfcfburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.bcfcfburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== TAG ===== */
.bcfcftag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border-radius: var(--radius-tag);
    transition: background 0.2s, color 0.2s;
}

.bcfcftag:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== FEATURED ===== */
.bcfcffeatured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 32px 0 40px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.bcfcffeatured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bcfcffeatured-img {
    overflow: hidden;
    height: 420px;
}

.bcfcffeatured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bcfcffeatured:hover .bcfcffeatured-img img { transform: scale(1.04); }

.bcfcffeatured-body {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: var(--white);
}

.bcfcffeatured-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.bcfcffeatured:hover .bcfcffeatured-title { color: var(--accent); }

.bcfcffeatured-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.bcfcffeatured-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.bcfcffeatured-meta i { margin-right: 4px; color: var(--accent); }

/* ===== SECTION HEAD ===== */
.bcfcfsection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.bcfcfsection-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.bcfcfsection-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== MAIN ===== */
.bcfcfmain {
    padding: 0 0 60px;
}

/* ===== GRID ===== */
.bcfcfgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== CARD ===== */
.bcfcfcard {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.bcfcfcard:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.bcfcfcard-img-wrap {
    display: block;
    overflow: hidden;
    height: 190px;
    flex-shrink: 0;
}

.bcfcfcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.bcfcfcard:hover .bcfcfcard-img { transform: scale(1.05); }

.bcfcfcard-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.bcfcfcard-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.bcfcfcard-title a { color: var(--text); transition: color 0.2s; }
.bcfcfcard-title a:hover { color: var(--accent); }

.bcfcfcard-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.bcfcfcard-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: auto;
}

.bcfcfcard-more {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.82rem;
    transition: gap 0.2s;
    white-space: nowrap;
}

.bcfcfcard-more:hover { text-decoration: underline; }

/* ===== PAGINATION ===== */
.bcfcfpagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.bcfcfpg-btn,
.bcfcfpg-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: all 0.2s;
}

.bcfcfpg-btn:hover,
.bcfcfpg-num:hover { border-color: var(--accent); color: var(--accent); }
.bcfcfpg-num.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ===== FOOTER ===== */
.bcfcffooter {
    background: var(--text);
    color: #a0aec0;
    margin-top: 40px;
}

.bcfcffooter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bcfcffooter-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.bcfcffooter-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.bcfcffooter-about-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s;
}

.bcfcffooter-about-link:hover { color: white; }

.bcfcffooter-cats h4 {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.bcfcffooter-cats ul { display: flex; flex-direction: column; gap: 8px; }

.bcfcffooter-cats li a {
    font-size: 0.88rem;
    color: #a0aec0;
    transition: color 0.2s;
}

.bcfcffooter-cats li a:hover { color: var(--white); }

.bcfcffooter-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ===== BREADCRUMBS ===== */
.bcfcfbreadcrumbs {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.bcfcfbreadcrumbs .bcfcfcontainer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bcfcfbreadcrumbs a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.bcfcfbreadcrumbs a:hover { color: var(--accent); }

.bcfcfbreadcrumbs i { font-size: 0.65rem; color: var(--text-light); }

.bcfcfbreadcrumbs span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .bcfcfgrid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .bcfcffeatured { grid-template-columns: 1fr; }
    .bcfcffeatured-img { height: 280px; }
    .bcfcffeatured-body { padding: 28px 28px; }
}

@media (max-width: 768px) {
    .bcfcfburger { display: flex; }
    .bcfcfnav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid var(--border);
        background: var(--white);
    }
    .bcfcfnav-list.bcfcfopen { max-height: 600px; }
    .bcfcfnav-inner { flex-wrap: wrap; }
    .bcfcfnav-link { border-bottom: 1px solid var(--border); padding: 13px 20px; border-bottom-color: var(--border) !important; }
    .bcfcfnav-about { margin-left: 0; }

    .bcfcffeatured { margin: 20px 0 28px; }
    .bcfcfgrid { grid-template-columns: 1fr; }
    .bcfcffooter-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .bcfcfcontainer { padding: 0 16px; }
    .bcfcffeatured-body { padding: 22px 20px; }
    .bcfcfsection-title { font-size: 1.25rem; }
}

/* ===================================
   ФОРМА ОБРАТНОЙ СВЯЗИ (about.php)
=================================== */
.bcfcfcf-block{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:28px;margin:28px;box-shadow:var(--shadow-sm)}
.bcfcfcf-block h2{margin:0 0 5px;font-size:19px;color:var(--text);font-family:'Nunito',sans-serif;font-weight:800}
.bcfcfcf-sub{color:var(--text-muted);font-size:13px;margin:0 0 22px}
.bcfcfcf-row{margin-bottom:15px}
.bcfcfcf-row label{display:block;margin-bottom:4px;font-weight:700;font-size:13px;color:var(--text)}
.bcfcfcf-row input,.bcfcfcf-row textarea{width:100%;padding:10px 13px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:14px;font-family:inherit;box-sizing:border-box;transition:border-color .2s;background:#fff;color:var(--text)}
.bcfcfcf-row input:focus,.bcfcfcf-row textarea:focus{outline:none;border-color:var(--accent)}
.bcfcfcf-row textarea{min-height:110px;resize:vertical}
.bcfcfcf-captcha-row{display:flex;align-items:center;gap:10px}
.bcfcfcf-captcha-q{background:var(--accent-light);border:1px solid var(--accent);border-radius:var(--radius-sm);padding:9px 14px;font-weight:800;font-size:14px;color:var(--accent);white-space:nowrap}
.bcfcfcf-captcha-row input{max-width:90px}
.bcfcfcf-btn{display:inline-flex;align-items:center;gap:7px;background:var(--accent);color:#fff;border:none;padding:11px 26px;border-radius:var(--radius-tag);font-size:14px;font-weight:700;cursor:pointer;transition:background .2s;font-family:inherit}
.bcfcfcf-btn:hover{background:var(--accent-hover)}
.bcfcfcf-ok{background:#dcfce7;border:1px solid #86efac;border-radius:var(--radius-sm);padding:13px 16px;color:#166534;margin-bottom:16px;font-size:14px}
.bcfcfcf-err{background:#fee2e2;border:1px solid #fca5a5;border-radius:var(--radius-sm);padding:13px 16px;color:#991b1b;margin-bottom:16px;font-size:14px}

