.container__news {
    margin-top: 44px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.news-header__left {
    flex: 1;
}

.news-header__title {
    font-size: 36px;
    font-weight: 700;
    color: #2A4F7C;
    margin: 0 0 8px;
}

.news-header__description {
    font-size: 16px;
    color: #7A92AF;
    margin: 0;
    padding-top: 15px;
}

.news-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.news-header__label {
    font-size: 16px;
    font-weight: 500;
    color: #2A4F7C;
}

.news-header__telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #e8f4ff;
    border-radius: 12px;
    color: #2A4F7C;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
}

.news-header__telegram:hover {
    background: #6C98CD;
    color: #fff;
}

.news-header__telegram svg {
    width: 18px;
    height: 15px;
}

.news-header__telegram .mobile {
    display: none;
}

.news-featured {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    color: inherit;
    transition: box-shadow 0.2s;
    height: 313px;
}

.news-featured__image {
    flex-shrink: 0;
    width: 50%;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-featured__title {
    font-size: 28px;
    font-weight: 600;
    color: #2A4F7C;
    margin: 12px 0 46px;
}

.news-featured__link {
    font-weight: 500;
    font-size: 14px;
    color: #2A4F7C;
}

.news-featured__link span {
    color: #6C98CD;
}

.news-featured__meta {
    margin-top: auto;
    color: #7A92AF;
    font-size: 14px;
    padding-bottom: 20px;
}

.news-featured__meta-mobile {
    display: none;
}

.news-featured__time {
    margin-left: 16px;
}

.news-featured__tags {
    padding-top: 24px;
}

.news-tag {
    display: inline-block;
    padding: 0 12px 0 0;
    color: #6391F4;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: start;
    margin-bottom: 12px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.news-filters__sort {
    position: relative;
    display: flex;
    align-items: anchor-center;
}

.news-filters__sort svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6C98CD;
}

.news-filters__sort.open svg {
    transform: translateY(-50%) rotate(180deg);
}

.news-filters__sort span {
    color: #7A92AF;
}

.news-filters__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 55%;
    position: relative;
}

.news-card__date {
    margin-right: 12px;
}

.news-card__meta span.divider {
    height: 8px;
    border-right: 1px solid #E8EEF5;
}

.news-filters__tags-title {
    color: #7A92AF;
}

.container__news .text {
    line-height: normal;
}

.news-filter-btn {
    color: #7A92AF;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.news-filter-btn--more svg {
    color: #4771A5;
}

.news-filter-btn--hidden {
    display: none;
}

.news-filter-btn--more.expanded ~ .news-filter-btn--hidden {
    display: inline-block;
}

.news-filter-btn:hover,
.news-filter-btn.active,
.news-filter-btn:hover span {
    background: #79A4FF;
    color: #fff;
}

.news-sort-select {
    padding: 8px 18px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #2A4F7C;
    position: relative;
}

.news-sort-dropdown div {
    font-size: 12px;
}

.news-sort-dropdown .active {
    font-weight: 600;
}

.news-sort-selected {
    color: #2A4F7C;
}

.news-sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px -6px rgba(42, 79, 124, 0.25);
    overflow: hidden;
    display: none;
    z-index: 20;
    text-align: center;
}

.news-filters__sort svg.rotate {
    transform: rotate(180deg);
    top: 42%;
}

.news-sort-select.open .news-sort-dropdown {
    display: block;
    white-space: nowrap;
}

.news-sort-dropdown div {
    padding: 6px 14px;
    cursor: pointer;
}

.news-sort-dropdown div:hover {
    background: #F3F6FB;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 24px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 404px;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.news-card__image {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 16px;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #2A4F7C;
    padding-left: 16px;
    line-height: normal;
}

.news-card__meta {
    margin-top: auto;
    color: #7A92AF;
    font-size: 12px;
    padding-left: 16px;
}

.news-card__time {
    margin-left: 12px;
}

.news-card__tags {
    padding: 0 16px 16px;
    display:flex;
    flex-wrap:wrap;
    gap: 6px;
}

.news-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
}

.news-loader .spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    animation: news-spin 0.9s linear infinite;
}

.news-filter-btn--mobile-toggle {
    display: none;
}

.news-filter-btn.news-filter-btn--more.expanded svg {
    transform: rotate(180deg);
}

.news-filter-btn__count {
    display: none;
    background: #3C76F1;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0 5px;
    margin-left: 4px;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    left: 50px;
}

.news-filter-btn__count.show {
    display: inline-flex;
}

/* Кнопка сброса */
.news-filter-btn--reset {
    display: none;
    color: #2A4F7C;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.news-filter-btn--reset:hover {
    color: #2A4F7C;
    background: transparent;
}

.news-filter-btn--reset.show {
    display: inline-block;
}

.news-filter-btn--more.show {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-filter-btn--more.expanded svg {
    transform: rotate(180deg);
}

.news-filter-btn--tag.hidden-overflow {
    display: none;
}

.news-filter-btn--more.expanded ~ .news-filter-btn--tag.hidden-overflow {
    display: inline-block;
}

@media (max-width: 1140px) {

    .news-featured {
        height: 240px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .news-featured__title {
        font-size: 24px;
        line-height: 1.3;
        margin: 16px 0 32px;
    }

    .news-header__title {
        font-size: 28px;
    }

    .news-header__description {
        font-size: 14px;
    }

    .news-header__label,
    .news-featured__link,
    .news-featured__meta {
        font-size: 12px;
    }


}

@keyframes news-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-header__title {
        font-size: 28px;
    }

    .news-header__description {
        font-size: 12px;
        padding-top: 8px;
    }

    .news-featured {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .container__news {
        margin-top: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .news-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 0;
    }

    .news-header__label {
        display: none;
    }

    .news-header__telegram .desktop {
        display: none;
    }

    .news-header__telegram .mobile {
        display: inline-block;
        font-size: 12px;
    }

    .news-header__telegram svg {
        width: 14px;
        height: 12px;
    }

    .news-featured {
        margin-bottom: 24px;
    }

    .news-header__right {
        align-items: flex-end;
    }

    .news-header__label {
        display: none;
    }

    .news-sort-select {
        font-size: 12px;
    }

    .container__news .sidebar {
        padding-top: 36px;
    }

    .news-filters {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 16px;
        align-items: center;
        margin-bottom: 0;
        padding-top: 24px;
        padding-bottom: 0;
    }

    .news-filters > .news-filter-btn--mobile-toggle,
    .news-filters > .news-filters__sort {
        flex: 0 0 auto;
    }

    .news-filters > .news-filters__tags {
        flex: 0 0 100%;
    }

    .news-filter-btn__count {
        top: -12px;
        left: 95px;
    }

    .news-filters__sort span {
        display: none;
    }

    .news-filters__tags {
        max-width: none;
    }

    .news-filters__tags span,
    .news-filter-btn {
        display: none;
    }

    .news-filter-btn--mobile-toggle,
    .news-filter-btn--mobile-toggle:hover {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 2px solid #D7E9FF;
        border-radius: 14px;
        padding: 10px 16px;
        color: #2A4F7C;
        font-size: 14px;
        position: relative;
    }

    .news-filter-btn--mobile-toggle.active {
        color: #3C76F1;
        border: 2px solid #D7E9FF;
        background: #fff;
    }

    .news-featured {
        flex-direction: column;
        height: auto;
        gap: 0;
        background: #fff;
        overflow: hidden;
        border-top: 1px solid #E8EEF5;
        margin-top: 0;
    }

    .news-featured__image {
        width: 100%;
        height: 200px;
        order: 3;
    }

    .news-featured__content {
        padding: 20px 0;
        order: 1;
    }

    .news-featured__tags {
        padding-top: 0;
        order: 1;
    }

    .news-featured__title {
        font-size: 16px;
        margin: 12px 0 16px;
        order: 2;
    }

    .news-featured__excerpt {
        display: none;
    }

    .news-featured__link {
        font-size: 12px;
        order: 3;
    }

    .news-featured__meta {
        display: none;
    }

    .news-featured__meta-mobile {
        color: #7A92AF;
        margin-top: 0;
        order: 4;
        background: #fff;
        padding-bottom: 0;
        padding-top: 12px;
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .news-tag {
        font-size: 12px;
    }

    .news-card {
        max-height: 280px;
        min-height: 263px;
        padding: 8px 8px 16px;
    }

    .news-card__image {
        height: 120px;
        margin-bottom: 12px;
    }

    .news-card__title {
        font-size: 14px;
        padding: 12px 12px 0;
    }

    .news-card__tags {
        padding: 0 12px;
    }

    .news-card__meta {
        padding-left: 12px;
        font-size: 11px;
    }

    .news-card__time {
        margin-top: 4px;
    }

    .news-filters__tags.open .news-filter-btn--reset {
        display: inline-flex;
        font-size: 12px;
        color: #9098A1;
    }

    .news-header__description {
        margin-bottom: 24px;
    }

    .news-filters__tags span:not(.news-filter-btn span),
    .news-filters__tags .news-filter-btn[data-tag],
    .news-filters__tags .news-filter-btn--more {
        display: none;
    }

    .news-filter-btn--mobile-toggle {
        display: inline-flex;
    }

    .news-filters__tags.open {
        position: relative;
        padding-bottom: 16px;
    }

    .news-filters__tags.open .news-filter-btn[data-tag] {
        display: inline-block;
    }

    .news-filters__tags.open .news-filter-btn--more {
        display: inline-flex;
    }

    .news-filters__tags.open .news-filter-btn--hidden {
        display: none;
    }

    .news-filters__tags.open .news-filter-btn--more.expanded ~ .news-filter-btn--hidden {
        display: inline-block;
    }

    .container__single-news .search__mobile {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .news-card__title {
        font-size: 14px;
    }

    .news-header__title {
        font-size: 24px;
    }

    .news-header__description {
        font-size: 12px;
        margin-bottom: 0;
    }

    .news-header {
        gap: 12px;
    }

    .news-header__telegram {
        margin-bottom: 24px;
    }

    .news-featured__image {
        height: 120px;
    }

    .container__news .sidebar {
        padding-top: 33px;
    }
}