.page-news {
    --news-text: #333333;
    --news-muted: #707070;
    --news-soft: #e6e6e6;
    --news-border: #767676;
    --news-pill-fill: #ffffff;
    --news-search-icon: #008ac2;
    --news-placeholder: #6b6b6b;

    color: var(--news-text);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.page-news * {
    box-sizing: border-box;
}

.page-news__intro,
.page-news__featured,
.page-news__filters,
.page-news__grid-section {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

.page-news__intro {
    padding-top: 15px;
    padding-bottom: 30px;
}

.page-news__intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 7.5fr);
    column-gap: 24px;
    row-gap: 16px;
    align-items: center;
}

.page-news__intro-pill {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: block;
    width: 100%;
    height: 120px;
    background: var(--news-soft);
    border-radius: 12px;
}

.page-news__title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center;
    margin: 0;
    padding: 0 32px;
    font-size: 70px;
    font-weight: 700;
    color: var(--news-text);
    letter-spacing: -0.01em;
    z-index: 1;
}

.page-news__lead {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    color: #000000;
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 7.5fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    min-height: 550px;
}

.page-news__featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--news-muted);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-news__featured-card:hover,
.page-news__featured-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.page-news__featured-card--lead {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 550px;
}

.page-news__featured-card--side {
    grid-column: 2 / 3;
    min-height: 263px;
}

.page-news__featured-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(20px, 2vw, 40px) clamp(20px, 2vw, 36px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    min-height: 45%;
}

.page-news__featured-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 1.7vw, 32px);
    font-weight: 700;
    line-height: 1.2;
}

.page-news__filters {
    padding-top: 30px;
    padding-bottom: clamp(24px, 2vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: 120px;
}

.page-news__pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.page-news__pill-item {
    flex: 1 1 200px;
    min-width: 180px;
}

.page-news__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    padding: 0 24px;
    background: var(--news-pill-fill);
    border: 2px solid var(--pill-accent, var(--news-muted));
    border-radius: 10px;
    color: var(--pill-accent, var(--news-text));
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.page-news__pill:hover,
.page-news__pill:focus-visible {
    background: var(--pill-accent, var(--news-muted));
    color: #ffffff;
    transform: translateY(-1px);
}

.page-news__pill--active {
    background: var(--pill-accent, var(--news-muted));
    color: #ffffff;
}

.page-news__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    height: 60px;
    padding: 0 16px;
}

.page-news__search-label {
    position: absolute;
    left: -9999px;
}

.page-news__search-input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    padding: 0 12px;
    font-size: 18px;
    color: var(--news-text);
    background: transparent;
    letter-spacing: 0.05em;
}

.page-news__search-input::placeholder {
    color: var(--news-placeholder);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 19px;
}

.page-news__search-input:focus {
    outline: none;
}

.page-news__search:focus-within {
    border-color: var(--news-search-icon);
    box-shadow: 0 0 0 3px rgba(0, 138, 194, 0.12);
}

.page-news__search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--news-muted);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-news__search-clear[hidden] {
    display: none;
}

.page-news__search-clear:hover,
.page-news__search-clear:focus-visible {
    background: var(--news-soft);
    color: var(--news-text);
}

.page-news__search-clear svg {
    width: 16px;
    height: 16px;
}

.page-news__search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--news-search-icon);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-news__search-button:hover,
.page-news__search-button:focus-visible {
    background: #006d99;
}

.page-news__search-icon {
    width: 20px;
    height: 20px;
}

.page-news__grid-section {
    padding-top: clamp(8px, 1vw, 16px);
    padding-bottom: clamp(48px, 5vw, 96px);
}

.page-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 2vw, 32px);
}

.page-news__card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news__card:hover,
.page-news__card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.page-news__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.page-news__card-thumb {
    aspect-ratio: 508 / 295;
    width: 100%;
    background: var(--news-soft) center / cover no-repeat;
}

.page-news__card-body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.page-news__card-title {
    margin: 0;
    font-size: clamp(20px, 1.4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--news-text);
}

.page-news__card-date {
    margin-top: auto;
    font-size: 18px;
    color: var(--news-text);
    font-weight: 400;
}

.page-news__pagination {
    position: static;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    background: transparent;
    overflow: visible;
    z-index: auto;
    margin-top: clamp(40px, 4vw, 64px);
    display: flex;
    justify-content: center;
}

.page-news__pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-news__pagination-list .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--news-border);
    background: #ffffff;
    color: var(--news-text);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-news__pagination-list .page-numbers:hover,
.page-news__pagination-list .page-numbers:focus-visible {
    background: var(--news-search-icon);
    color: #ffffff;
    border-color: var(--news-search-icon);
}

.page-news__pagination-list .page-numbers.current {
    background: var(--news-search-icon);
    color: #ffffff;
    border-color: var(--news-search-icon);
}

.page-news__pagination-list .page-numbers.dots {
    border: 0;
    background: transparent;
}

.page-news__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--news-muted);
    font-size: 18px;
}

@media (max-width: 1024px) {
    .page-news__intro-inner {
        grid-template-columns: 1fr;
    }

    .page-news__intro-pill {
        display: none;
    }

    .page-news__title,
    .page-news__lead {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 0;
    }

    .page-news__featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .page-news__featured-card--lead {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .page-news__featured-card--side {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .page-news__pill-item {
        flex: 1 1 100%;
    }

    .page-news__pill {
        height: 56px;
        font-size: 16px;
    }

    .page-news__title {
        font-size: 40px;
    }

    .page-news__featured-title {
        font-size: 18px;
    }

    .page-news__card-title {
        font-size: 18px;
    }
}
