/* ---------- Nagłówek sekcji (app/ui/section_head.php → ms_section_head) ---------- */
.ms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ms-line);
    flex-wrap: wrap; /* w wąskiej kolumnie link „Wszystkie …” przechodzi pod tytuł */
    row-gap: 6px;
}

.ms-head__title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--ms-ink);
    letter-spacing: -0.3px;
}

.ms-head--accent {
    position: relative;
    border-bottom-width: 2px;
}

.ms-head--accent::after,
.ms-head--side::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 76px;
    height: 3px;
    background: var(--ms-red);
}

.ms-head--side {
    position: relative;
}

.ms-head--side .ms-head__title {
    color: var(--ms-red);
}

.ms-head .ms-btn {
    flex: none;
}

/* nagłówek w szarym panelu bocznym */
.ms-head--panel {
    border-bottom: 0;
    margin-bottom: 8px;
}

.ms-head--panel .ms-head__title {
    font-size: 21px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .ms-head__title {
        font-size: 23px;
    }
}
