/**
 * Общие стили ленты журнала: /zhurnal/, /articles/, /weddings/
 */

.journal-list-page .about-section {
    background: #fff;
}

.journal-filter {
    background: #fff;
    padding: 16px 0 12px;
    border-bottom: 1px solid #ececec;
}

.journal-level1-wrap {
    display: flex;
    justify-content: center;
}

.journal-level1 {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    max-width: 100%;
    padding: 3px;
    background: #f3f3f3;
    border-radius: 999px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journal-level1::-webkit-scrollbar {
    display: none;
}

.journal-level1--compact .chip {
    padding: 9px 20px;
    font-size: 14px;
    line-height: 1.15;
}

.journal-level1 .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 9px 22px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #5c5c5c;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.journal-level1 .chip:hover {
    color: #1a1a1a;
}

.journal-level1 .chip.active {
    background: var(--color-accent, #ff4d00);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.journal-level1 .chip.active:hover {
    color: #fff;
}

.journal-filter + .journal-filter {
    border-top: none;
    padding-top: 0;
}

.journal-list-page .container-1140 {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.journal-list-page .padding-top {
    padding-top: 16px;
}

.journal-list-page .padding-bottom-2x {
    padding-bottom: 24px;
}

.journal-list-page .scroll-horizontal-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.journal-list-page .scroll-horizontal {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journal-list-page .scroll-horizontal::-webkit-scrollbar {
    display: none;
}

.journal-list-page .km-dropdown-nav .inline-block {
    display: inline-block;
    flex: 0 0 auto;
}

.journal-list-page .bg-white-darker {
    display: inline-block;
    padding: 9px 16px;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.journal-list-page .border-radius-extra {
    border-radius: 22px;
}

.journal-list-page .bg-white-darker:hover {
    background: #e6e6e6;
    color: #111;
}

.journal-list-page .km-dropdown-nav .inline-block.active .bg-white-darker,
.journal-list-page .bg-white-darker.active {
    background: var(--color-accent, #ff4d00);
    color: #fff;
    font-weight: 600;
}

.journal-list-page .km-dropdown-nav .inline-block.active .bg-white-darker:hover,
.journal-list-page .bg-white-darker.active:hover {
    background: var(--color-accent, #ff4d00);
    color: #fff;
}

.journal-list-page .tag-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

.journal-list-page .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

.journal-list-page .article-author {
    color: var(--color-accent);
    font-weight: 500;
}

.journal-list-page .journal-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent, #ff4d00);
    margin-bottom: 6px;
}

.journal-list-page .article-card {
    border-radius: 0;
}

.journal-list-page .article-image {
    border-radius: 0;
}

.journal-list-page .video-container {
    border-radius: 0;
}

@media (max-width: 768px) {
    .journal-list-page .about-title {
        margin-top: 20px;
    }

    .journal-level1-wrap {
        justify-content: center;
    }

    .journal-level1--compact .chip,
    .journal-level1 .chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    .journal-list-page .bg-white-darker {
        padding: 8px 14px;
        font-size: 13px;
    }

    .journal-list-page .scroll-horizontal-wrapper {
        justify-content: flex-start;
    }

    .journal-list-page .scroll-horizontal {
        justify-content: flex-start;
    }
}
