@font-face {
    font-family: Onest;
    src: url("fonts/onest-cyrillic.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Onest;
    src: url("fonts/onest-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    font-family: Onest, system-ui, sans-serif;
    background: #f6f7f9;
    color: #0e1116;
    --ink: #0e1116;
    --muted: #5b6270;
    --border: #e6e8ec;
    --accent: #b94020;
    --green: #0b6e4d;
    --mint: #e8f6ef;
    --panel: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #ae4928; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.mast, .mast-actions, .brand { display: flex; align-items: center; }
.mast { min-height: 73px; flex-wrap: wrap; gap: 14px 24px; padding-block: 14px; }
.brand { flex: none; gap: 10px; line-height: 1.13; }
.brand img { display: block; border-radius: 10px; }
.brand strong { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: .74rem; }
.mast-actions { flex: 1 1 255px; justify-content: flex-end; gap: 10px; }
.search { display: flex; flex: 0 1 250px; min-width: 0; align-items: center; border: 1px solid #dfe3e8; border-radius: 12px; padding: 0 4px 0 12px; background: #fff; height: 44px; }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search-button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; flex: 0 0 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
.search-button:hover { background: #f1f2f4; }
.search-icon { position: relative; width: 13px; height: 13px; border: 1.7px solid currentColor; border-radius: 50%; margin: -3px 3px 0 0; }
.search-icon::after { position: absolute; width: 7px; height: 1.7px; background: currentColor; content: ""; bottom: -3px; right: -5px; transform: rotate(45deg); }
.action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 12px; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.action-dark { background: var(--ink); color: #fff; }
.action-dark:hover { background: #313641; color: #fff; }
.channel-link .platform-icon { width: 17px; height: 17px; }
.action-accent { background: var(--accent); color: #fff; }
.action-accent:hover { background: #973319; color: #fff; }

.feed { display: grid; gap: 36px; padding-top: clamp(28px, 4vw, 48px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.hero-copy { display: grid; align-content: center; justify-items: start; gap: 15px; }
.updated { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #fff1ea; color: #ac391c; font-size: .82rem; font-weight: 600; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #df522f; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.04; letter-spacing: -.027em; font-weight: 800; overflow-wrap: anywhere; }
.hero p { max-width: 560px; color: #4a505a; font-size: clamp(1rem, 1.6vw, 1.19rem); line-height: 1.5; }
.rules, .sidebar-panel { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.rules h2, .sidebar-panel h2 { color: var(--green); font-weight: 750; font-size: .79rem; letter-spacing: .075em; text-transform: uppercase; }
.rules ol { margin: 16px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; counter-reset: rule; }
.rules li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; counter-increment: rule; }
.rules li::before { content: counter(rule); flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; }
.filters, .filters nav, .pagination { display: flex; flex-wrap: wrap; align-items: center; }
.filters { justify-content: space-between; gap: 12px; scroll-margin-top: 12px; }
.filters nav, .pagination { gap: 8px; }
.filters p { color: var(--muted); font-size: .87rem; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid #dfe3e8; background: #fff; border-radius: 999px; font-size: .86rem; font-weight: 550; }
.chip:hover { border-color: #b1b8c4; }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.article-lead { display: grid; grid-column: 1 / -1; grid-template-columns: 1.05fr 1fr; border-radius: 24px; }
.tone-authorities { --tint: #eef3ff; --label: #23468e; }
.tone-messengers { --tint: #e9f6fb; --label: #17596f; }
.tone-payments { --tint: #fff4e5; --label: #804314; }
.tone-apps { --tint: #f1eeff; --label: #5c418d; }
.tone-family { --tint: #e8f6ef; --label: #26634d; }
.tone-threats { --tint: #fdeeee; --label: #9f3028; }
.tone-other { --tint: #f1f2f5; --label: #4b5361; }
.shot { display: flex; min-width: 0; align-items: end; padding: 17px 17px 0; }
.shot:focus-visible { outline-offset: -4px; }
.shot-frame { display: block; width: 100%; overflow: hidden; background: #fff; border-radius: 11px 11px 0 0; box-shadow: 0 8px 24px #1e293b19; }
.shot-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid #eef0f3; font-size: .69rem; color: var(--muted); }
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dfe3e8; }
.shot-bar span { margin-left: 5px; padding: 3px 8px; border-radius: 5px; background: #f2f4f6; }
.shot img { display: block; width: 100%; height: 152px; padding: 8px; object-fit: contain; }
.article-lead .shot { padding: clamp(18px, 2.6vw, 32px) clamp(18px, 2.6vw, 32px) 0; }
.article-lead .shot img { height: clamp(215px, 26vw, 360px); padding: 13px; }
.card-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(16px, 2vw, 23px); }
.article-lead .card-copy { justify-content: center; gap: 15px; padding: clamp(23px, 3vw, 37px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; color: var(--muted); font-size: .77rem; }
.category-badge, .lead-badge { padding: 4px 9px; border-radius: 999px; background: var(--tint); color: var(--label); font-weight: 650; line-height: 1.25; }
.lead-badge { background: var(--accent); color: #fff; }
.card-copy h2 { font-size: 1.18rem; line-height: 1.28; letter-spacing: -.012em; font-weight: 720; overflow-wrap: anywhere; }
.article-lead h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.16; font-weight: 800; }
.excerpt { color: #4a505a; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.article-lead .excerpt { font-size: 1rem; }
.risk, .read-link { color: #ad371e; font-size: .82rem; font-weight: 660; }
.risk::before { content: "▲"; margin-right: 6px; }
.card-actions { margin-top: auto; padding-top: 12px; border-top: 1px solid #eef0f3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.article-lead .card-actions { margin-top: 0; padding-top: 4px; border: 0; justify-content: flex-start; gap: 10px; }
.read-link:hover { text-decoration: underline; text-underline-offset: .18em; }

.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.card-actions .share-label { position: absolute; clip-path: inset(50%); }
.share-label, .share-status { color: var(--muted); font-size: .83rem; }
.share-icon { display: inline-grid; place-items: center; width: 34px; height: 36px; padding: 0; border: 1px solid #e4e7ec; border-radius: 9px; background: #f4f5f7; color: #45505c; cursor: pointer; }
.share-icon:hover { background: #fff; border-color: #aeb6c1; }
.platform-icon { display: block; width: 18px; height: 18px; background: url("icons/social.png") no-repeat; background-size: 400% 100%; }
.platform-icon--telegram { background-position: 0 0; }
.platform-icon--vk { background-position: 33.333% 0; }
.platform-icon--max { background-position: 66.667% 0; }
.platform-icon--odnoklassniki { background-position: 100% 0; }
.copy-icon { width: 19px; height: 19px; position: relative; }
.copy-icon::before, .copy-icon::after { content: ""; width: 11px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: absolute; }
.copy-icon::before { top: 2px; left: 2px; }
.copy-icon::after { top: 5px; left: 6px; background: #f4f5f7; }
.share-status:empty { display: none; }
.share-url { flex-basis: 100%; min-width: 0; max-width: 100%; padding: 7px; border: 1px solid #e4e7ec; border-radius: 6px; font-size: .8rem; }
.empty { grid-column: 1 / -1; padding: 32px 18px; border: 1px dashed #d5d9df; border-radius: 18px; background: #fff; text-align: center; }
.empty h2 { margin-bottom: 7px; font-size: 1.25rem; }
.empty p { color: var(--muted); }
.empty a { color: var(--accent); text-decoration: underline; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: 32px; }
.article-detail { display: grid; gap: 26px; min-width: 0; }
.back-link { color: var(--muted); font-size: .89rem; }
.article-heading { display: grid; gap: 12px; }
.article-heading h1 { font-size: clamp(1.9rem, 4.1vw, 2.875rem); line-height: 1.08; letter-spacing: -.023em; font-weight: 800; overflow-wrap: anywhere; }
.article-figure { overflow: hidden; border-radius: 20px; background: var(--tint); }
.article-figure .shot { padding: clamp(14px, 3vw, 28px) clamp(14px, 3vw, 28px) 0; }
.article-figure img { height: auto; max-height: min(60vh, 520px); padding: 10px; }
figcaption { padding: 12px 17px; color: #4a505a; font-size: .81rem; }
.analysis-panel, .advice-panel, .publication-notice { padding: clamp(17px, 2.4vw, 26px); border-radius: 18px; }
.analysis-panel { border: 1px solid var(--border); background: #fff; }
.advice-panel { background: var(--mint); }
.analysis-panel h2, .advice-panel h2 { margin-bottom: 10px; font-size: 1.3rem; font-weight: 800; }
.advice-panel h2 { color: var(--green); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(.98rem, 1.65vw, 1.08rem); line-height: 1.66; }
.publication-notice { background: #fff1eb; color: #7e301d; border-left: 3px solid #df522f; line-height: 1.5; }
.publication-notice p + p { margin-top: 9px; }
.article-detail .share-links { padding-top: 16px; border-top: 1px solid var(--border); }
.article-detail .share-icon { width: 42px; height: 44px; }
.article-detail .share-label { margin-right: 9px; }
.sidebar { display: grid; gap: 18px; }
.sidebar-panel { display: grid; gap: 12px; font-size: .91rem; line-height: 1.48; }
.related h2 { color: var(--muted); }
.related a { padding-bottom: 10px; border-bottom: 1px solid #eef0f3; font-weight: 650; }
.related a:last-child { border-bottom: 0; padding-bottom: 0; }

.subscription { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(23px, 4vw, 40px); border-radius: 22px; background: var(--ink); color: #fff; }
.subscription h2 { font-size: clamp(1.25rem, 2.5vw, 1.86rem); font-weight: 800; line-height: 1.18; }
.subscription p { margin-top: 7px; color: #c5cad3; font-size: .95rem; line-height: 1.45; }
.subscription-side { padding: 23px; }
.subscription-side h2 { font-size: 1.13rem; }
.site-footer { margin-top: 55px; background: #fff; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; padding-block: 25px; color: var(--muted); font-size: .85rem; }
.footer-inner strong { color: var(--ink); }
.footer-inner nav { display: flex; gap: 16px; }

@media (max-width: 960px) {
    .mast { gap: 12px 16px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 34px); }
    .feed { gap: 25px; }
    .hero, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .article-lead { grid-template-columns: minmax(0, 1fr); }
    .article-detail { gap: 20px; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .wrap { width: calc(100% - 28px); }
    .mast { gap: 9px; }
    .mast-actions { display: contents; }
    .channel-link { margin-left: auto; min-height: 38px; padding-inline: 10px; }
    .search { order: 1; flex: 1 0 100%; }
    .article-grid, .sidebar { grid-template-columns: minmax(0, 1fr); }
    .shot img, .article-lead .shot img { height: 190px; }
    .article-detail .shot img { height: auto; }
    .article-detail .share-label { flex-basis: 100%; }
    .share-icon { width: 36px; height: 40px; }
}
