/* =========================================================
   Neuron24 — Блог: header section
   Кольори зняті безпосередньо з макету
   ========================================================= */

:root {
    --color-dark:        #1A1233;   /* тёмний текст заголовка "Наш" */
    --color-accent:      #2E9BFF;   /* синій акцент "Блог" */
    --color-accent-active: #1D93FF; /* заливка активної вкладки */
    --color-border:      #39A0FF;   /* рамка неактивних вкладок */
    --color-text:        #55586B;   /* основний текст опису */
    --color-muted:       #8B95A1;   /* хлібні крихти */
    --color-white: rgb(255 255 255);
    --color-white2: rgb(255 255 255 / 0);

    --radius-pill: 999px;
    --container-blog-max: 1313px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-white);
}

.body-blog {
    width: 100%;
}

.blog-header {
    width: var(--container-blog-max);
    margin: 0 auto;
    padding: 28px 24px 32px;
}

/* ---------- Хлібні крихти ---------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 22px;
}

.breadcrumbs__link {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s ease;
}

.breadcrumbs__link:hover {
    color: var(--color-accent);
}

.breadcrumbs__sep {
    letter-spacing: 1px;
    opacity: .6;
}

.breadcrumbs__current {
    color: var(--color-muted);
    font-weight: 400;
}

/* ---------- Верхній блок: заголовок + опис ---------- */
.blog-header__top {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: space-around;
}

.blog-header__title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-header__title-dark {
    color: var(--color-dark);
}

.blog-header__title-accent {
    color: var(--color-accent);
}

.blog-header__desc {
    flex: 1 1 560px;
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    max-width: 720px;
}

/* ---------- Вкладки категорій ---------- */
.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-evenly;
}

.blog-tab {
    appearance: none;
    cursor: pointer;
    border: 1.5px solid var(--color-accent);
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 600;
    width: 230px;
    height: 40px;
    padding: 5px 4px;
    border-radius: var(--radius-pill);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
    white-space: nowrap;

    /* добавлено для <a> */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.blog-tab:visited {
    color: var(--color-dark);
}

.blog-tab:hover {
    background: var(--color-accent-2);
    color: var(--color-white);
    transform: translateY(-1px);
}


.blog-tab:active {
    transform: scale(0.98);
}

.blog-tab:focus-visible {
    outline: 2px solid var(--color-accent-active);
    outline-offset: 2px;
}

.blog-tab--active,
.blog-tab--active:hover {
    background: var(--color-accent-active);
    border-color: var(--color-accent-active);
    color: var(--color-white);
}

/* ---------- Контейнер під картки статей ---------- */
.blog-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .blog-header__top {
        gap: 16px;
    }
    .blog-header__title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .blog-header {
        padding: 20px 16px 24px;
    }
    .blog-header__title {
        font-size: 28px;
        white-space: normal;
    }
    .blog-tabs {
        gap: 10px;
    }
    .blog-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
}