:root {
    --accent: #f43346;
    --accent-2: #ff7a32;
    --background: #080e1c;
    --panel: #141d31;
    --panel-2: #19243a;
    --line: #2e3d59;
    --muted: #aebbd0;
    --ink: #f8fafc;
    --focus: #ffd166;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
body.article-page { font-size: 18px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #111;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 16px 70px; }
.article-wrap { max-width: 980px; }

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand-main { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 950;
    background: radial-gradient(circle, #f43346 0 20%, #631a2a 22% 42%, #121a2a 44%);
    box-shadow: 0 0 28px #f4334655;
}
.brand h1 { margin: 0; font-size: clamp(27px, 5vw, 48px); letter-spacing: .02em; }
.brand p, .muted { margin: 3px 0; color: var(--muted); }
.brand-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.button, button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 850;
}
.button.secondary, button.secondary { background: #26344d; }
.button.ghost { background: transparent; border: 1px solid var(--line); }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 22px 0;
    padding: clamp(26px, 6vw, 62px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: radial-gradient(circle at 85% 25%, #f4334630, transparent 35%), linear-gradient(125deg, #16233b, #0c1426);
}
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 55px solid #f4334618;
    border-radius: 50%;
    right: -95px;
    top: -145px;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker { color: #ff9b76; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero h2 { max-width: 820px; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; margin: 9px 0 15px; }
.hero h2 strong { color: var(--accent); }
.hero p { max-width: 850px; margin-bottom: 0; font-size: 1.08rem; color: #dbe4f3; }

.daily { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.daily-card, .radar, .card, .pinned-zone, .article-card, .source-card, .gallery-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.daily-card { padding: 17px; }
.daily-card strong { display: block; font-size: 1.65rem; }
.daily-card span { color: var(--muted); }

.radar { padding: 20px; }
.radar-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.radar-head h2 { margin: 0; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.filters input, .filters select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #3a4966;
    border-radius: 11px;
    background: #0d1526;
    color: #fff;
}
.check { display: flex; align-items: center; gap: 8px; min-height: 46px; color: #dbe4f3; }
.check input { width: auto; accent-color: var(--accent); }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.cache-note { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.pinned-zone {
    padding: 18px;
    margin: 20px 0;
    border-color: #744a2b;
    background: linear-gradient(135deg, #211a20, #151d30);
}
.pinned-zone h2 { margin: 0 0 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 24px 0 12px; }
.section-title h2 { margin: 0; }

.card { overflow: hidden; position: relative; }
.card.pinned { border-color: #e99d38; box-shadow: 0 0 0 1px #e99d3844; }
.card-media { display: block; background: #10182a; }
.card img { display: block; width: 100%; height: 270px; object-fit: cover; background: #10182a; }
.content { padding: 20px; }
.badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #283650;
    border: 1px solid #3b4b68;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .74rem;
    font-weight: 900;
}
.badge.own { background: #f6d34a; color: #17120a; border-color: #f6d34a; }
.badge.press { background: #e8eef9; color: #17243a; border-color: #e8eef9; }
.badge.new { background: var(--accent); border-color: var(--accent); }
.badge.updated { background: #167d91; border-color: #167d91; }
.badge.ended { background: #485369; border-color: #485369; }
.badge.pin { background: #9a5d17; border-color: #b77a25; }
.meta { display: block; color: var(--muted); font-size: .9rem; }
.card h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.12; margin: 12px 0; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.subtitle { font-weight: 850; color: #f0f4fb; }
.teaser { color: #e6ebf4; line-height: 1.55; }
.empty { grid-column: 1 / -1; padding: 35px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

footer { text-align: center; color: #91a0b8; margin-top: 38px; }
footer a { margin: 0 4px; }

.article-back { display: inline-flex; margin: 20px 0 16px; color: #dbe4f3; }
.article-hero {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    background: #10182a;
    border-radius: 24px;
    border: 1px solid var(--line);
}
.article-card { padding: clamp(21px, 5vw, 44px); margin-top: 18px; }
.article-card h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; margin: .3em 0; }
.article-card h2 { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; color: #e5ebf5; }
.article-teaser { font-size: 1.08em; }
.article-body p { margin: 1.15em 0; }
.article-body a { color: #ffb39d; overflow-wrap: anywhere; }
.share { display: flex; gap: 9px; flex-wrap: wrap; margin: 20px 0; }
.share .button, .share button { padding: 10px 13px; }
.source-card { padding: 18px; margin: 28px 0 0; background: #111a2c; }
.source-card.own { border-color: #a87b20; background: #211b12; }
.source-card h3 { margin: 0 0 8px; }
.source-card p { margin: 8px 0; }
.media-credit { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.gallery-section { margin-top: 24px; }
.gallery-section h2 { margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-card { overflow: hidden; margin: 0; }
.gallery-card img { display: block; width: 100%; height: 330px; object-fit: cover; background: #10182a; }
.gallery-card figcaption { padding: 10px 12px; color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
    .daily { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .brand { align-items: flex-start; flex-direction: column; }
    .brand-actions { width: 100%; }
    .brand-actions .button { flex: 1 1 auto; text-align: center; }
    .grid, .daily, .filters, .gallery-grid { grid-template-columns: 1fr; }
    .card img { height: 220px; }
    .gallery-card img { height: auto; max-height: 520px; }
    .radar-head { align-items: stretch; flex-direction: column; }
    .hero { padding: 27px 22px; }
    .section-title { align-items: flex-start; flex-direction: column; }
}
