/* Общая типографика и доступная навигация. */
:root {
    --ink: #192533;
    --blue: #244dcc;
    --paper: #fafbf9;
    --line: #d8ddd9;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 Arial, sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--blue);
}
button, input, textarea {
    font: inherit;
}
button, a, input, textarea {
    -webkit-tap-highlight-color: transparent;
}
:focus-visible {
    outline: 3px solid #da6730;
    outline-offset: 5px;
}
img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}
h1, h2, h3, p, figure {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.14;
    overflow-wrap: anywhere;
}
.container {
    width: min(1320px, calc(100% - 96px));
    margin-inline: auto;
}
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 12px;
    background: white;
}
.kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}
.top-note {
    background: var(--blue);
    color: white;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.top-note .container {
    display: flex;
    justify-content: space-between;
    padding-block: 9px;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 26px;
    border-bottom: 1px solid var(--line);
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    overflow-wrap: anywhere;
}
.site-brand img {
    object-fit: contain;
    flex-shrink: 0;
}
.site-brand small {
    display: block;
    font-size: 9px;
    letter-spacing: .03em;
    font-weight: 400;
    margin-top: 9px;
}
.main-nav {
    display: flex;
    gap: 26px;
    font-size: 12px;
}
.header-search, .large-search {
    display: flex;
    border-bottom: 1px solid var(--ink);
}
.header-search {
    width: 215px;
}
.header-search input, .large-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}
.header-search input {
    font-size: 12px;
}
button {
    cursor: pointer;
}
.header-search button, .large-search button {
    border: 0;
    background: transparent;
    color: var(--blue);
    white-space: nowrap;
}
/* Главная: вступление, обложка и редакционная колонка. */
.opening {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 60px;
    padding-block: 44px 38px;
    align-items: end;
}
.opening h1 {
    font-size: clamp(48px, 5.8vw, 84px);
    letter-spacing: -.065em;
    font-weight: 500;
    margin-top: 19px;
    line-height: .99;
}
.opening h1 em {
    font-family: Georgia, serif;
    color: var(--blue);
    font-weight: 400;
}
.opening-note {
    position: relative;
    padding-top: 35px;
    max-width: 340px;
    justify-self: end;
    font-size: 13px;
}
.opening-note p {
    color: #56616c;
}
.opening-note a {
    display: inline-block;
    color: var(--blue);
    font-weight: 700;
    margin-top: 15px;
}
.orbit {
    position: absolute;
    top: -24px;
    right: 0;
    font-size: 46px;
    color: var(--blue);
    line-height: 1;
}
.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
    gap: 28px;
}
.cover {
    position: relative;
    min-height: 420px;
    background: #d7e4ed;
}
.cover > img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
.cover figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 28px 24px 18px;
    background: linear-gradient(transparent, #10273ac9);
    color: white;
    font-size: 10px;
    letter-spacing: .09em;
}
.popular-panel {
    padding: 24px;
    background: #edf0f9;
    display: flex;
    flex-direction: column;
}
.popular-panel .section-title {
    margin-bottom: 16px;
}
.popular-panel h2 {
    font-size: 27px;
    letter-spacing: -.04em;
}
.popular-panel .section-title > span {
    font-size: 8px;
}
.rank-story {
    display: grid;
    grid-template-columns: 24px 1fr 14px;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid #cbd3e5;
    align-items: start;
}
.rank-story h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.rank {
    font-size: 11px;
    color: var(--blue);
}
.panel-link {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: var(--blue);
}
.latest-section, .tag-block {
    padding-block: 48px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}
.section-title h2 {
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.045em;
}
.section-title .kicker {
    margin-bottom: 10px;
    color: #63707b;
}
.section-title > a, .section-title > span {
    font-size: 12px;
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
}
.home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-image {
    display: block;
    overflow: hidden;
    background: #e9edf4;
}
.story-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    transition: transform .25s;
}
.story-image:hover img {
    transform: scale(1.035);
}
.story-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: #66717c;
    margin-block: 15px 10px;
}
.story-copy h3 {
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.story-copy > p {
    font-size: 13px;
    color: #596570;
    margin-top: 10px;
    overflow-wrap: anywhere;
}
.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.story-tags a {
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid var(--line);
}
.reading-note {
    display: grid;
    grid-template-columns: 1fr 1fr 70px;
    gap: 30px;
    align-items: center;
    border-block: 1px solid var(--line);
    padding-block: 30px;
}
.reading-note > span {
    font: italic 32px/1.1 Georgia, serif;
}
.reading-note > p {
    font-size: 13px;
    color: #596570;
}
.reading-note > a {
    font-size: 44px;
    color: var(--blue);
}
/* Статьи, списки, поиск и служебные страницы. */
.inner-page {
    padding-block: 30px 70px;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 38px;
    overflow-wrap: anywhere;
}
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 65px;
}
.main-column {
    min-width: 0;
}
.main-column h1 {
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 500;
    letter-spacing: -.04em;
    margin-block: 12px 25px;
}
.list-heading {
    margin-bottom: 28px;
}
.list-heading > p, .article-meta {
    font-size: 12px;
    color: #596570;
}
.large-search {
    margin-bottom: 35px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.article-hero {
    width: 100%;
    height: auto;
    max-height: 600px;
    margin-bottom: 35px;
}
.prose {
    font: 19px/1.8 Georgia, serif;
    overflow-wrap: anywhere;
}
.prose p, .prose ul, .prose ol, .prose blockquote {
    margin-block: 20px;
}
.prose h2, .prose h3 {
    margin-block: 35px 20px;
    font-family: Arial, sans-serif;
}
.prose a {
    color: var(--blue);
    text-decoration: underline;
}
.prose pre, .prose table {
    display: block;
    max-width: 100%;
    overflow: auto;
}
.prose iframe, .prose video {
    max-width: 100%;
}
.prose img {
    height: auto;
}
.related {
    margin-top: 50px;
}
.tag-sidebar {
    border-top: 3px solid var(--blue);
    padding-top: 20px;
    align-self: start;
}
.tag-sidebar h2 {
    font-size: 25px;
    font-weight: 500;
    margin-block: 15px 20px;
}
.tag-sidebar nav a {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding-block: 12px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
[aria-current="page"] {
    color: var(--blue);
    font-weight: 700;
}
.tag-sidebar > p {
    font-size: 12px;
    margin-top: 20px;
    color: #596570;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}
.pagination a, .pagination > span {
    min-width: 40px;
    padding: 8px;
    border: 1px solid var(--line);
    text-align: center;
}
.pagination [aria-current] {
    background: var(--blue);
    color: white;
}
.empty-state, .tag-seo {
    padding-block: 30px;
    font-size: 15px;
    color: #596570;
    overflow-wrap: anywhere;
}
.site-footer {
    background: #172737;
    color: #f0f4f7;
    padding-block: 45px 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 90px;
}
.footer-brand > a {
    display: flex;
    gap: 20px;
    font-size: 42px;
    letter-spacing: -.05em;
}
.footer-brand p {
    max-width: 420px;
    margin-block: 15px 30px;
    color: #c2ccd5;
    font-size: 13px;
}
.footer-brand small {
    font-size: 10px;
}
.footer-links {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
}
.site-footer a:hover {
    color: #b6caff;
}
.analytics-area {
    margin-top: 20px;
}
.cookie-banner {
    position: fixed;
    z-index: 20;
    bottom: 20px;
    right: 20px;
    width: min(460px, calc(100% - 40px));
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 8px 35px #17273720;
    padding: 22px;
    font-size: 12px;
}
.cookie-banner[hidden] {
    display: none;
}
.cookie-banner strong {
    font-size: 16px;
}
.cookie-banner p {
    margin-top: 8px;
}
.cookie-banner a {
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.cookie-actions button, .pill-link {
    padding: 10px 18px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: white;
}
.cookie-actions button + button {
    background: white;
    color: var(--blue);
}
.error-content {
    width: min(650px, calc(100% - 40px));
    margin: 10vh auto;
}
.error-code {
    display: block;
    font-size: 140px;
    color: var(--blue);
    line-height: 1.3;
}
.error-content h1 {
    font-size: 40px;
}
.error-content p {
    margin-block: 25px 35px;
}
/* Комментарии оформляются поверх готового компонента ядра. */
.comments {
    margin-block: 36px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.comment {
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}
.comment time {
    font-size: 11px;
}
.comment-form, .comment-form label {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #9ca8b4;
    background: white;
    color: var(--ink);
}
.comment-form textarea {
    resize: vertical;
}
.comment-form input[type="checkbox"] {
    width: auto;
}
.comment-form button {
    justify-self: start;
    padding: 12px 24px;
    border: 0;
    background: var(--blue);
    color: white;
}
.comment-form .comment-trap {
    display: none;
}
.comment-success {
    color: #176339;
}
.comment-error {
    color: #a12323;
}
.comment-pagination {
    margin-block: 20px;
}
@media (max-width: 1050px) {
    .container {
        width: calc(100% - 48px);
    }
    .site-header {
        flex-wrap: wrap;
        gap: 20px;
    }
    .main-nav {
        order: 3;
        width: 100%;
    }
    .content-layout {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 30px;
    }
    .opening {
        gap: 30px;
    }
    .popular-panel {
        padding: 20px;
    }
    .feature-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
        gap: 20px;
    }
}
@media (max-width: 700px) {
    .container {
        width: calc(100% - 36px);
    }
    .site-header {
        padding-block: 22px;
    }
    .site-brand {
        font-size: 30px;
    }
    .site-brand img {
        width: 42px;
        height: 42px;
    }
    .header-search {
        width: 100%;
    }
    .main-nav {
        gap: 20px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    .opening {
        grid-template-columns: 1fr;
        padding-block: 32px;
        gap: 20px;
    }
    .opening h1 {
        font-size: clamp(44px, 10vw, 70px);
    }
    .opening-note {
        padding-top: 0;
        padding-right: 45px;
        max-width: none;
        justify-self: start;
    }
    .orbit {
        top: 0;
        font-size: 35px;
    }
    .feature-layout, .content-layout {
        grid-template-columns: 1fr;
    }
    .cover {
        min-height: 300px;
    }
    .popular-panel {
        padding: 24px;
    }
    .home-grid, .story-grid {
        grid-template-columns: 1fr;
    }
    .story-copy h3 {
        font-size: 25px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .section-title {
        flex-wrap: wrap;
    }
    .reading-note {
        grid-template-columns: 1fr 35px;
        gap: 20px;
    }
    .reading-note > p {
        grid-row: 2;
    }
    .reading-note > a {
        grid-column: 2;
        grid-row: 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .tag-sidebar {
        margin-top: 15px;
    }
    .prose {
        font-size: 18px;
    }
    .cookie-banner {
        padding: 16px;
        bottom: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .story-image img {
        transition: none;
    }
}
