@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&display=swap');

/* ============================================
   Глобальные стили
   ============================================ */

:root {
    --radius-xl: 0px;
    --radius-lg: 0px;
    --radius-md: 0px;
    --radius-sm: 0px;
    --page-max-width: 1160px;
    --font-primary: 'Newsreader',
    'Georgia',
    'Times New Roman',
    serif;
    --surface: #ffffff;
    --card: #ffffff;
    --ink: #1b1d22;
    --muted: #5b606d;
    --accent: #1a54d6;
}

* {
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background: var(--surface);
    color: var(--ink);
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

figure {
    margin: 0;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 900;
    font-family: var(--font-heading);
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    font-family: var(--font-heading);
}

.media-asset {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
}

.media-asset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Layout
   ============================================ */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 32px;
    max-width: var(--page-max-width);
    width: 100%;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header & Footer */
.wrap-footer {
    margin-top: auto;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid rgba(22, 26, 35, 0.08);
    box-shadow: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.brand-mark {
    color: var(--ink, inherit);
    font-size: 26px;
    font-weight: 720;
    line-height: 31px;
    word-wrap: break-word;
    margin: 0;
}

.brand-caption {
    margin: 0;
    color: var(--muted, #5b606d);
    font-size: 13px;
    font-weight: 400;
    line-height: 15px;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 8px 0;
    color: #475569;
}

.site-nav a:hover {
    color: #111827;
}

.site-nav a.active {
    font-weight: 600;
}

.search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(22, 26, 35, 0.16);
}

.search input {
    background: transparent;
    border: none;
    color: #0f172a;
    padding: 8px 12px;
    min-width: 220px;
}

.search input::placeholder {
    color: #94a3b8;
}

.search button {
    border: none;
    border-radius: 0;
    padding: 8px 0;
    background: none;
    color: #1a54d6;
    font-weight: 500;
    cursor: pointer;
}

/* Burger Menu */
.burger-menu {
    position: relative;
    z-index: 1000;
}

.burger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.burger-button:hover {
    color: #111827;
}

.burger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
}

.menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(22, 26, 35, 0.08);
}

.menu-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.menu-close:hover {
    color: #111827;
}

.menu-search {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(22, 26, 35, 0.08);
}

.menu-search form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(22, 26, 35, 0.16);
}

.menu-search input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    color: #0f172a;
}

.menu-search input::placeholder {
    color: #94a3b8;
}

.menu-search button {
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
    background: none;
    color: #1a54d6;
    font-weight: 500;
}

.menu-nav {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(22, 26, 35, 0.08);
}

.menu-nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #475569;
    font-size: 1rem;
}

.menu-nav a:hover,
.menu-nav a.active {
    color: #111827;
    font-weight: 600;
}

.menu-section {
    padding-bottom: 16px;
}

.menu-section-title {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-list li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #475569;
}

.menu-list li a:hover,
.menu-list li a.active {
    background: #f1f5f9;
    color: #111827;
}

/* Menu animations */
.menu-enter-active,
.menu-leave-active {
    transition: opacity 0.3s ease;
}

.menu-enter-from,
.menu-leave-to {
    opacity: 0;
}

.menu-enter-active .menu-content,
.menu-leave-active .menu-content {
    transition: transform 0.3s ease;
}

.menu-enter-from .menu-content,
.menu-leave-to .menu-content {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .menu-content {
        max-width: 100%;
    }
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #4338ca;
    font-weight: 500;
}

.site-footer {
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.footer-domain {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-copyright {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   Утилиты
   ============================================ */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    background: rgba(226, 232, 240, 0.8);
    color: #0f172a;
}

.pill-outline {
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: transparent;
    color: #4338ca;
}

.pill.small {
    font-size: 0.7rem;
    padding: 3px 10px;
}

.muted {
    color: #64748b;
    font-size: 0.85rem;
}

.see-all {
    color: #4338ca;
    font-size: 0.85rem;
}

.back-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 0.9rem;
    color: #4338ca;
    margin-bottom: 12px;
    text-decoration: none;
}

.meta {
    display: flex;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 16px;
}

.description {
    color: #475569;
    line-height: 1.6;
}

.excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.4;
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 12px 26px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.load-more {
    display: flex;
}

.load-more-btn {
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    min-width: 220px;
}

.btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex;
    justify-content: center;
}

.btn.secondary {
    background: rgba(22, 26, 35, 0.08);
    color: var(--ink);
    border: 1px solid rgba(22, 26, 35, 0.12);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgb(255, 255, 255, 0.8);
}

/* Loader & Spinner */
.loader,
.empty {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #475569;
}

.loader-full {
    width: 100%;
    justify-content: center;
    padding: 48px 24px;
}

.loader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4338ca;
    animation: pulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.empty {
    justify-content: center;
}

.spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-top-color: #4338ca;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    padding: 48px;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.empty-state a {
    color: #4338ca;
}

/* ============================================
   Главная страница
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 32px;
    padding: 32px;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid rgba(22, 26, 35, 0.08);
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.hero-media {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(22, 26, 35, 0.05);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-feature .lead {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-bullets {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-bullet {
    display: flex;
    gap: 8px;
    color: #475569;
    align-items: center;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-heading h2 {
    margin: 4px 0 0;
}

.highlight-card {
    padding: 20px;
    background: #fff;
}

.highlight-card + .highlight-card {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.highlight-card h3 {
    margin: 12px 0 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-grid {
    gap: 0;
}

.category-card {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.category-header h1,
.category-header h2,
.category-header h3 {
    margin: 0;
}

.category-lead h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.category-lead p {
    margin: 0 0 12px;
    color: #475569;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-list li {
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.category-list-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Страница поиска
   ============================================ */

.search-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-header h1 {
    margin: 6px 0;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-item {
    border: 1px solid rgba(22, 26, 35, 0.12);
    border-radius: 0;
    background: #fff;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease;
    box-shadow: none;
}

.search-item:hover {
    border-color: rgba(22, 26, 35, 0.28);
    box-shadow: none;
}

.search-item a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
}

.item-main h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.item-main p {
    margin: 0;
    color: #475569;
}

.item-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    color: #64748b;
    font-size: 0.85rem;
    text-align: right;
}

/* ============================================
   Страница статьи
   ============================================ */

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.article-date {
    color: #64748b;
}

.article-separator {
    color: #94a3b8;
}

.article-category,
.article-tag {
    color: #4338ca;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.article-category:hover,
.article-tag:hover {
    opacity: 0.7;
}

.article-tag-separator {
    color: #94a3b8;
}

.article-header {
    margin-bottom: 24px;
}

.article-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
}

.article-cover {
    margin: 24px 0;
}

.article-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.article-body {
    margin: 24px 0;
}

.read-more {
    color: #4338ca;
    font-size: 0.85rem;
}

/* ============================================
   Content Layout
   ============================================ */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-layout__details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.content-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-layout__sticky {
    position: sticky;
    top: 24px;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-layout__sticky {
        position: static;
    }
}

/* ============================================
   Страница автора
   ============================================ */

.author-header {
    padding-bottom: 1.5rem;
}

.author-info {
    max-width: 100%;
}

.author-name {
    font-size: 23px;
    font-weight: 900;
    line-height: 29px;
    margin: 0 0 1rem 0;
}

.author-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.author-separator {
    color: #94a3b8;
}

.author-caption-text {
    font-size: 0.9rem;
}

.author-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   Страница категории
   ============================================ */

.category-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 32px;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid rgba(22, 26, 35, 0.08);
}

.hero-copy .lead {
    color: #475569;
    line-height: 1.5;
}

.hero-cover {
    width: 100%;
    overflow: hidden;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-copy .btn {
    margin-top: 16px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.article-card {
    border: 1px solid rgba(22, 26, 35, 0.12);
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease,
    border-color 0.2s ease;
}

.article-card:hover {
    border-color: rgba(22, 26, 35, 0.28);
}

.article-card a,
.article-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-hero .hero-link {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    gap: 32px;
}

.hero-feature .feature-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.highlight-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.category-lead-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-body h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* ============================================
   Страница ошибки
   ============================================ */

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.error .panel {
    padding: 48px;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: #0f172a;
}

.error .badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.error .heading h1 {
    margin: 6px 0;
    font-size: clamp(3rem, 15vw, 6rem);
    color: #0f172a;
}

.error .lead {
    color: #475569;
    font-size: 1.1rem;
}

.error .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.error .card {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
}

.error .card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.6;
}

.error .actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.error .btn {
    border-radius: 999px;
    padding: 12px 26px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    background: #2563eb;
    color: #ffffff;
}

.error .btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.error .btn:hover {
    opacity: 0.85;
}

.error .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
}

.error .glow-1 {
    width: 320px;
    height: 320px;
    background: rgba(37, 99, 235, 0.15);
    top: 0;
    left: 10%;
}

.error .glow-2 {
    width: 280px;
    height: 280px;
    background: rgba(59, 130, 246, 0.12);
    bottom: 10%;
    right: 5%;
}

/* ============================================
   Блоки контента
   ============================================ */

.blocks-stack {
    display: flex;
    flex-direction: column;
}

.rich-text-block {
    padding: 0;
    line-height: 1.7;
    color: #0f172a;
}

.article-author {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(22, 26, 35, 0.08);
    font-size: 0.9rem;
    color: #64748b;
}

.article-author-label {
    font-weight: 600;
    margin-right: 8px;
}

.article-author-name {
    color: #0f172a;
}

.rich-text-block h1,
.rich-text-block h2,
.rich-text-block h3 {
    margin: 16px 0 8px;
}

.rich-text-block code {
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.placeholder-block {
    padding: 32px;
    color: #475569;
    text-align: center;
}

/* ============================================
   Sidebar Top News Widget
   ============================================ */

.sidebar-topnews {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(22, 26, 35, 0.1);
}

.sidebar-topnews__title {
    border-bottom: 2px solid var(--accent);
    font: 800 17px/20px var(--font-primary);
    padding-bottom: 16px;
    color: var(--ink);
}

.sidebar-topnews__topics {
    border-bottom: 1px solid rgba(22, 26, 35, 0.1);
    padding-bottom: 12px;
}

.sidebar-topnews__topics:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-topnews .btn {
    display: block;
    margin: 16px auto 0;
    max-width: max-content;
}

/* ============================================
   Card Mini Component
   ============================================ */

.card-mini {
    border-bottom: 1px solid rgba(22, 26, 35, 0.1);
    display: -webkit-box;
    display: flex;
    padding: 10px 0;
    text-decoration: none;
}

.card-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-mini__image-wrap {
    -webkit-box-ordinal-group: 2;
    border-radius: var(--radius-sm);
    height: 40px;
    margin: 4px 0 -4px 10px;
    min-width: 40px;
    order: 1;
    overflow: hidden;
    width: 40px;
}

.card-mini__image {
    height: auto;
    line-height: 0;
    width: 40px;
}

.card-mini__text {
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.card-mini__title {
    color: var(--ink);
    display: inline;
    font: 400 14px/1.25 var(--font-primary);
    -webkit-transition: color 0.2s ease-out;
    transition: color 0.2s ease-out;
    margin: 0;
}

.card-mini__title:after {
    content: ' ';
}

.card-mini:visited .card-mini__title {
    color: var(--muted);
}

@supports (-moz-appearance: none) {
    .card-mini:visited .card-mini__title {
        color: var(--ink);
    }
}

.card-mini:hover .card-mini__title {
    color: var(--accent);
}

.card-mini__info {
    -webkit-box-align: center;
    align-items: center;
    color: var(--muted);
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    font: 400 10px/1.35 var(--font-primary);
    margin-top: 3px;
}

.card-mini__info-item {
    margin-right: 5px;
}

.card-mini__icon {
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    width: 14px;
}

.card-mini__icon:last-child {
    margin-right: 0;
}

.card-mini__icon._play {
    fill: var(--accent);
}

.card-mini__icon._external {
    color: #94a3b8;
    height: 15px;
}

.card-mini__icon._exclusive {
    height: 16px;
    margin-bottom: -1px;
    margin-top: -1px;
    width: 16px;
}

.card-mini__icon._partner {
    height: 14px;
    max-width: 80px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.card-mini__ad-title {
    -webkit-box-ordinal-group: 0;
    background-color: #e2e8f0;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font: 400 10px/1.35 var(--font-primary);
    order: -1;
    padding: 1px 5px;
}

/* ============================================
   Минималистичная тема — основные правки
   ============================================ */

.page {
    gap: 28px;
}

.brand-mark {
    letter-spacing: 0.14em;
}

.site-header,
.site-footer,
.hero,
.category-card,
.search-item,
.article-card,
.category-hero,
.article-header,
.empty-state,
.blocks-stack,
.highlight-stack,
.error .panel,
.error .card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(22, 26, 35, 0.1);
    background: var(--card);
    box-shadow: none;
}

.hero,
.article-header,
.category-hero {
    background: #ffffff;
}

.article-header {
    border: none;
}

.search,
.search button,
.btn,
.pill,
.pill-outline,
.error .btn {
    border-radius: var(--radius-md);
}

.search {
    padding: 4px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(22, 26, 35, 0.16);
}

.search input {
    min-width: 220px;
    font-size: 1rem;
}

.search button {
    padding: 6px 0;
    background: transparent;
    letter-spacing: 0.02em;
}

.btn {
    text-transform: none;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    border: 1px solid rgba(22, 26, 35, 0.18);
    background: transparent;
    color: var(--ink);
}

.btn.primary {
    background: #1a54d6;
    color: #ffffff;
    border-color: #1a54d6;
}

.btn.ghost {
    border: 1px solid rgba(22, 26, 35, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.pill {
    color: var(--muted);
    border-radius: var(--radius-sm);
}

.pill-outline {
    border: 1px solid rgba(22, 26, 35, 0.16);
    color: var(--ink);
}

.footer-links a,
.see-all,
.back-link,
.read-more {
    color: var(--accent);
}

/* ============================================
   Медиа-запросы
   ============================================ */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .hero,
    .category-card,
    .search-item,
    .article-card,
    .category-hero,
    .article-header,
    .empty-state,
    .blocks-stack,
    .highlight-stack,
    .error .panel,
    .error .card {
        border: 0;
    }

    .article-grid .article-card {
        border: 1px solid rgba(22, 26, 35, 0.08);
    }

    .page {
        padding: 16px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .error .panel {
        padding: 32px;
    }

    .error .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .search-item a {
        flex-direction: column;
    }

    .item-meta {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

/* ============================================
   Tags Select
   ============================================ */
.tags-select {
    display: none;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-link.active .pill {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .tags-select {
        display: block;
    }

    .tags-list {
        display: none;
    }
}

.tags-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid rgba(22, 26, 35, 0.16);
    border-radius: var(--radius-md);
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231b1d22' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: border-color 0.2s ease;
}

.tags-select:hover {
    border-color: rgba(22, 26, 35, 0.24);
}

.tags-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 84, 214, 0.1);
}

.tags-select option {
    background: var(--surface);
    color: var(--ink);
    padding: 0.5rem;
}

@media (max-width: 600px) {
    .site-nav {
        flex-wrap: wrap;
    }

    .site-header {
        padding: 20px 16px;
        gap: 12px;
    }

    .brand-mark {
        font-size: 20px;
        line-height: 24px;
    }

    .burger-menu {
        flex-shrink: 0;
    }

    .hero,
    .category-card,
    .category-hero,
    .error .panel {
        padding: 0;
    }

    .category-hero .hero-link {
        flex-direction: column-reverse;
    }

    .home-grid {
        gap: 16px;
    }

    .error {
        padding: 0;
    }

    .error .panel {
        padding: 24px 16px;
        gap: 20px;
        border-radius: 0;
    }

    .error .card {
        padding: 16px;
        border-radius: 0;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .error .actions {
        flex-direction: column;
        gap: 12px;
    }

    .error .btn {
        width: 100%;
    }

    .highlight-stack {
        border: 1px solid rgba(22, 26, 35, 0.16);
    }

    .side-heading {
        display: none;
    }
}
