/* ============================================================
   Pe2Shock News — Стили
   ============================================================ */

:root {
    --bg: #0a0e17;
    --bg-2: #111827;
    --bg-3: #1a2233;
    --card: #151b2b;
    --border: #232d42;
    --text: #e6ebf5;
    --text-dim: #8b96ad;
    --accent: #ff3d5a;
    --accent-2: #ffb800;
    --blue: #3b82f6;
    --green: #10b981;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 14px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --bg-3: #eef2f9;
    --card: #ffffff;
    --border: #e1e7f0;
    --text: #0f1729;
    --text-dim: #64748b;
    --shadow: 0 10px 40px rgba(15, 23, 41, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   ПРОГРЕСС ЧТЕНИЯ
   ============================================================ */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================================
   ХЕДЕР
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 10px var(--accent-2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.logo-accent {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dim);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--bg-3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 18px;
}

.icon-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-3);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.burger span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   ПОИСК
   ============================================================ */

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none;
    padding: 100px 24px;
    overflow-y: auto;
}

.search-overlay.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    position: relative;
}

#searchInput {
    flex: 1;
    padding: 20px 24px;
    font-size: 18px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
}

#searchInput:focus {
    border-color: var(--accent);
}

.search-close {
    width: 60px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.search-close:hover {
    background: #e02e4a;
}

.search-results {
    max-width: 700px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.search-result-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.search-result-item h4 {
    margin-bottom: 4px;
    font-size: 16px;
}

.search-result-item span {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */

.ticker {
    display: flex;
    align-items: center;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 44px;
}

.ticker-label {
    background: var(--accent);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    font-size: 14px;
}

.ticker-content span {
    padding: 0 30px;
    color: var(--text-dim);
}

.ticker-content span::before {
    content: '●';
    color: var(--accent);
    margin-right: 12px;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    min-height: 480px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-card:hover .hero-img {
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 23, 0.5) 40%, rgba(10, 14, 23, 0.95) 100%);
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.category-tag.small {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #fff;
}

.hero-excerpt {
    color: #c8d2e6;
    font-size: 15px;
    margin-bottom: 18px;
    max-width: 90%;
}

.meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #a5b0c4;
}

.meta.small {
    font-size: 12px;
    gap: 10px;
}

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

.side-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.side-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.side-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-card:hover img {
    transform: scale(1.06);
}

.side-content {
    padding: 18px;
    flex: 1;
}

.side-content h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

/* ============================================================
   ФИЛЬТРЫ
   ============================================================ */

.filters {
    display: flex;
    gap: 10px;
    margin: 40px 0 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================================
   СЕТКА НОВОСТЕЙ
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.5s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

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

.card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color var(--transition);
}

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

.card p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .meta {
    font-size: 12px;
    color: var(--text-dim);
    justify-content: space-between;
}

/* ============================================================
   ПОПУЛЯРНОЕ
   ============================================================ */

.popular {
    margin: 40px 0;
}

.popular-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.popular-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.popular-sub {
    font-size: 14px;
    color: var(--text-dim);
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    cursor: pointer;
    transition: all var(--transition);
}

.popular-item:hover {
    border-color: var(--accent);
    transform: translateX(6px);
}

.popular-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.popular-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-3);
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.popular-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
}

.popular-meta span:first-child {
    color: var(--accent-2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
}

/* ============================================================
   ПОДПИСКА
   ============================================================ */

.subscribe {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    border-radius: var(--radius);
    padding: 2px;
    margin-bottom: 60px;
}

.subscribe-inner {
    background: var(--card);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
}

.subscribe h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.subscribe p {
    color: var(--text-dim);
    margin-bottom: 26px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.subscribe-form input:focus {
    border-color: var(--accent);
}

.subscribe-form button {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: #e02e4a;
    transform: translateY(-2px);
}

.subscribe-msg {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

/* ============================================================
   ФУТЕР
   ============================================================ */

.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text);
}

.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color var(--transition);
    width: fit-content;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-desc {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 10px;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

/* ============================================================
   МОДАЛКА
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: none;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal.open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.modal-body img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.modal-inner {
    padding: 40px;
}

.modal-inner h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
}

.modal-inner .meta {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 18px;
}

/* ============================================================
   СТРАНИЦА ОТДЕЛЬНОЙ НОВОСТИ
   ============================================================ */

.article-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 24px;
}

.article-loading {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-dim);
}

.article-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

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

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

.article-back {
    display: inline-block;
    color: var(--text-dim);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.article-back:hover {
    color: var(--accent);
}

.article-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-dim);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 30px 0;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
}

.article-source {
    margin-top: 30px;
    padding: 16px;
    background: var(--card);
    border-left: 3px solid var(--accent-2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.article-source a {
    color: var(--accent);
    text-decoration: none;
}

.article-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-actions .btn-primary,
.article-actions .btn-ghost {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}

.article-actions .btn-primary {
    background: var(--accent);
    color: white;
}

.article-actions .btn-primary:hover {
    background: #e02e4a;
    transform: translateY(-2px);
}

.article-actions .btn-ghost {
    background: var(--bg-3);
    color: var(--text);
    border: 1px solid var(--border);
}

.article-actions .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.article-404 {
    text-align: center;
    padding: 80px 20px;
}

.article-404 h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.article-404 p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.article-404 .btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

/* ============================================================
   КНОПКА ВВЕРХ
   ============================================================ */

.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 90;
    box-shadow: 0 10px 30px rgba(255, 61, 90, 0.4);
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    transform: translateY(-4px);
    background: #e02e4a;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-card {
        min-height: 400px;
    }
    .hero-title {
        font-size: 26px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        justify-content: flex-start;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .burger {
        display: flex;
    }
    .nav-link {
        padding: 14px 16px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-content {
        padding: 24px;
    }
    .hero-excerpt {
        font-size: 14px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .subscribe-inner {
        padding: 32px 20px;
    }
    .subscribe h2 {
        font-size: 22px;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .modal-inner {
        padding: 24px;
    }
    .modal-inner h1 {
        font-size: 22px;
    }
    .modal-body img {
        height: 220px;
    }
    .ticker-label {
        padding: 0 14px;
        font-size: 11px;
    }
    .popular-header h2 { font-size: 20px; }
    .popular-item { padding: 10px 14px; gap: 10px; }
    .popular-rank { width: 28px; height: 28px; font-size: 13px; }
    .popular-img { width: 48px; height: 48px; }
    .popular-info h4 { font-size: 14px; }

    /* Статья на мобилке */
    .article-title { font-size: 26px; }
    .article-body { font-size: 16px; }
    .article-page { padding: 0 16px; margin: 20px auto; }
}