:root {
    --news-bg: transparent;
    --news-surface: rgba(70, 25, 33, 0.84);
    --news-text: #fffdfb;
    --news-muted: #f1ddd3;
    --news-line: rgba(246, 201, 109, 0.2);
    --news-accent: #d72638;
    --news-accent-soft: rgba(246, 201, 109, 0.2);
}

.news-hero__inner h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.news-hero__inner p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.news-kicker {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f6c96d;
}

.news-filters {
    background: transparent;
    border-bottom: 0;
}

.news-filter-form {
    display: grid;
    grid-template-columns: 60px 1fr 40px 160px auto auto;
    gap: 10px;
    align-items: center;
    padding: 16px 0;
}

.news-filter-form label {
    font-size: 0.84rem;
    color: var(--news-muted);
    font-weight: 600;
}

.news-filter-form input,
.news-filter-form select {
    min-height: 46px;
    border: 1px solid var(--news-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--news-text);
    padding: 0 12px;
    font-size: 0.95rem;
}

.news-filter-form input:focus-visible,
.news-filter-form select:focus-visible,
.news-filter-form button:focus-visible,
.news-filter-form a:focus-visible,
.news-back:focus-visible,
.news-card a:focus-visible,
.news-featured a:focus-visible,
.news-modal__close:focus-visible,
.news-modal__nav:focus-visible {
    outline: 3px solid rgba(246, 201, 109, 0.9);
    outline-offset: 2px;
}

.news-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #ffe8bd 50%), linear-gradient(135deg, #ffe8bd 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.news-filter-form select option {
    color: #1b2435;
    background: #ffffff;
}

.news-filter-form button,
.news-filter-form a {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 16px;
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.news-filter-form button {
    background: var(--news-accent);
    color: #fffdfb;
    cursor: pointer;
}

.news-filter-form a {
    background: rgba(246, 201, 109, 0.16);
    color: #ffe8bd;
}

.news-shell {
    display: block;
    background: var(--news-bg);
    padding: 18px 0 34px;
}

.news-shell .container {
    width: min(1180px, 92%);
}

.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--news-surface);
    overflow: hidden;
    margin-bottom: 14px;
    align-items: stretch;
    width: 100%;
    grid-column: 1 / -1;
}

.news-featured__media {
    display: block;
    height: 100%;
    min-height: 100%;
}

.news-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-featured__content {
    padding: 18px;
}

.news-featured__content h2 {
    margin: 8px 0;
    line-height: 1.3;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}

.news-featured__content h2 a {
    color: var(--news-text);
    text-decoration: none;
}

.news-featured__content p {
    margin: 0 0 12px;
    color: var(--news-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 12px;
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
}

.news-card {
    background: var(--news-surface);
    padding: 14px;
    width: 100%;
    min-width: 0;
    grid-column: auto;
}

.news-grid--single {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
}

.news-grid--single .news-card--with-media {
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
    align-items: start;
    padding: 18px;
}

.news-grid--single .news-card--with-media > :not(.news-card__media) {
    grid-column: 2;
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.news-grid--single .news-card__media {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin-bottom: 0;
}

.news-grid--single .news-card__media img {
    height: 100%;
}

.news-card__gallery-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 20, 30, 0.82), rgba(52, 26, 34, 0.72));
    border: 1px solid rgba(255, 232, 189, 0.45);
    box-shadow: 0 8px 20px rgba(8, 5, 10, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff6e0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.news-card__gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe9c2 0%, #f6c96d 58%, #d38a2e 100%);
    box-shadow: 0 0 0 3px rgba(246, 201, 109, 0.18);
}

.news-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.45;
}

.news-card h3 a {
    color: var(--news-text);
    text-decoration: none;
}

.news-card p {
    margin: 0 0 10px;
    color: var(--news-muted);
    line-height: 1.6;
}

.news-card__excerpt {
    white-space: pre-line;
}

.news-meta {
    color: #dab8aa;
    font-size: 0.8rem;
}

.news-card__footer {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-card__read-more {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 12px;
    background: rgba(246, 201, 109, 0.16);
    color: #ffe8bd;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-card__read-more:hover {
    background: rgba(246, 201, 109, 0.24);
}

@supports selector(:has(*)) {
    .news-grid:has(> .news-card:only-child) {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
}

.news-mini-preview {
    margin: 8px 0 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.news-mini-preview__item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--news-line);
}

.news-mini-preview__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.news-detail-card {
    background: var(--news-surface);
    border: 1px solid var(--news-line);
    border-radius: 18px;
    padding: 20px;
}

.news-detail-card h1 {
    color: var(--news-text);
    margin: 8px 0 10px;
    line-height: 1.3;
}

.news-date {
    margin: 0 0 16px;
    color: #dab8aa;
    font-size: 0.9rem;
}

.news-detail-cover {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.news-detail-cover img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
}

.news-content {
    color: var(--news-muted);
    line-height: 1.75;
}

.news-detail-gallery-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--news-line);
}

.news-detail-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.news-detail-gallery-head h2 {
    margin: 0;
    color: var(--news-text);
    font-size: 1rem;
    line-height: 1.3;
}

.news-detail-gallery-head span {
    color: #dab8aa;
    font-size: 0.82rem;
    font-weight: 700;
}

.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.news-detail-gallery__item {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--news-line);
    background: rgba(255, 255, 255, 0.04);
}

.news-detail-gallery__item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
}

.news-back {
    margin-top: 18px;
    display: inline-flex;
    background: var(--news-accent-soft);
    color: #ffe8bd;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 600;
}

.news-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 7, 10, 0.84);
    z-index: 1200;
    padding: 24px;
}

.news-modal[aria-hidden="false"] {
    display: flex;
}

.news-modal__box {
    position: relative;
    width: min(980px, 96vw);
    max-height: 88vh;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--news-line);
    background: rgba(36, 12, 18, 0.96);
}

.news-modal__counter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff6e0;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 232, 189, 0.35);
}

.news-modal__box img {
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    display: block;
}

.news-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.news-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.news-modal__nav--left {
    left: 10px;
}

.news-modal__nav--right {
    right: 10px;
}

@media (max-width: 960px) {
    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured__media {
        min-height: 220px;
        height: 220px;
    }

    .news-mini-preview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .news-filter-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .news-filter-form label {
        margin-top: 4px;
    }

    .news-grid--single .news-card--with-media {
        display: flex;
        flex-direction: column;
        padding: 14px;
    }

    .news-grid--single .news-card__media,
    .news-grid--single .news-card__media img {
        min-height: 0;
        height: 100%;
    }

    .news-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-card__read-more {
        width: 100%;
    }

    .news-detail-gallery-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
