/* ==========================================
   АвтоТема — стили лендинга
   ========================================== */
/* ===== Шрифты (Inter, селф-хостинг) ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    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 {
    --bg: #0b0f14;
    --bg-soft: #11161d;
    --card: #161c24;
    --card-hover: #1b2330;
    --border: #232d3a;
    --text: #e8edf2;
    --muted: #9aa7b5;
    --accent: #e8433c;
    --accent-hover: #f2544d;
    --green: #2d9a6e;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

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

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.section { padding: 72px 0; }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 36px;
}

.section-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-sub {
    color: var(--muted);
    max-width: 640px;
    margin: -24px 0 28px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

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

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: clamp(8px, 1.2vw, 18px);
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fav-nav-btn {
    background: rgba(232, 67, 60, 0.12);
    border: 1px solid rgba(232, 67, 60, 0.3);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fav-nav-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 32px 0 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 20%, rgba(232, 67, 60, 0.15), transparent),
        radial-gradient(ellipse 50% 40% at 15% 70%, rgba(45, 154, 110, 0.12), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 820px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
    font-size: 0.92rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-actions .btn { padding: 10px 22px; font-size: 0.95rem; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hs-item { display: flex; flex-direction: column; }
.hs-item strong { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.hs-item span { font-size: 0.78rem; color: var(--muted); }

/* ===== Topics ===== */
.topics {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 14px;
}

.topics-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.topics .section-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0;
}

.topics .section-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topic-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    will-change: transform, box-shadow;
}

.topic-card:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--accent);
    background: rgba(232, 67, 60, 0.14);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 8px rgba(232, 67, 60, 0.2);
}

.topic-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.topic-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.topic-card:hover .topic-name {
    color: #ffffff;
}

/* ===== Articles ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 67, 60, 0.55);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 67, 60, 0.2);
}

.article-card.featured { grid-column: 1 / -1; }

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}

.card-media::after {
    display: none;
}

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

.article-card:hover .card-media img { transform: scale(1.07); }

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(11, 15, 20, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--accent);
    border: 1px solid rgba(232, 67, 60, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

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

.article-card.featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr;
}

.article-card.featured .card-media {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 240px;
}

.article-card.featured .card-body {
    grid-column: 2;
    grid-row: 1;
    padding: 26px 28px;
    justify-content: center;
}

.article-card.featured .card-tag {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    margin: 14px;
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    height: auto;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(232, 67, 60, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

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

.article-card.featured h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

.article-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.85;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(232, 67, 60, 0.12);
    color: var(--accent);
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.article-card:hover .card-arrow {
    transform: translateX(4px);
    background: var(--accent);
    color: #fff;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius);
}

.article-card h3, .article-card p, .article-card .card-meta, .article-card .card-tag { position: relative; z-index: 2; }

.article-card h3 a { color: var(--text); text-decoration: none; }

/* ===== Article page ===== */
.article-page { padding-top: 60px; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover { opacity: 0.8; }

.crumb-sep { color: var(--muted); opacity: 0.6; }

.crumb-current {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}

.article-full {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
}

.article-full h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.25;
    margin: 16px 0 14px;
}

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

.share-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }

.share-vk { background: #0077ff; }
.share-tg { background: #229ed9; }
.share-ok { background: #ee8208; }

.article-hero {
    margin: 22px 0 4px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

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

.article-hero figcaption {
    color: var(--muted);
    font-size: 13px;
    padding: 10px 14px;
    line-height: 1.5;
}

.article-hero figcaption .article-credit {
    color: #6b7580;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.article-body p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.article-sources {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.article-sources h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.article-sources p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-sources ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-sources li {
    padding-left: 18px;
    position: relative;
    font-size: 0.95rem;
}

.article-sources li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.article-sources a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-sources a:hover {
    border-color: var(--accent);
}

.related { margin-top: 48px; }

.related h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ===== History ===== */
.history { background: var(--bg-soft); border-top: 1px solid var(--border); }

.history-list { display: flex; flex-direction: column; gap: 18px; }

.history-item {
    display: flex;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.25s;
}

.history-item:hover { border-color: var(--accent); }

.history-year {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 76px;
}

.history-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.history-item p { color: var(--muted); font-size: 0.92rem; }

/* ===== Subscribe ===== */
.subscribe-box {
    background: linear-gradient(135deg, #1a2130, #141a24);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    max-width: 760px;
}

.subscribe-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.subscribe-box p { color: var(--muted); margin-bottom: 28px; }

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 48px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }

.footer-links h4, .footer-contacts h4, .footer-socials h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-contacts p { color: var(--muted); font-size: 0.9rem; }

.footer-socials .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-socials .social-link svg { width: 18px; height: 18px; }
.footer-socials .social-link:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--text); }

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* Share Copy Button */
.share-btn.share-copy {
    background: #2d3436;
    color: white;
    border: none;
    cursor: pointer;
}
.share-btn.share-copy.copied {
    background: #00b894;
}

.age-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--muted);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

/* ===== Legal pages ===== */
.legal-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text);
}

.legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text);
}

.legal-body p { color: var(--muted); margin-bottom: 12px; }

.legal-body ul {
    margin: 0 0 16px 20px;
    color: var(--muted);
}

.legal-body ul li { margin-bottom: 8px; }

.legal-body a { color: var(--accent); text-decoration: underline; }

/* ===== Scroll top ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent-hover); }

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed { opacity: 1; transform: none; }

/* ===== Interactive (тест, факт дня, голосование, авто дня) ===== */
.interactive { padding: 14px 0 20px; }

.interactive .section-title {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    margin-bottom: 10px;
}

.interactive-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
    align-items: start;
}

.quiz-widget,
.fact-widget,
.poll-widget,
.cod-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.quiz-widget {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    min-height: auto;
}

.quiz-head h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

.quiz-head p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 6px;
    max-width: 520px;
}

.quiz-progress {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}

.quiz-option {
    text-align: left;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateX(3px);
}

.quiz-option:disabled {
    opacity: 0.5;
    cursor: default;
}

.quiz-result {
    text-align: center;
    padding: 6px 0;
}

.quiz-result-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.quiz-result h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.quiz-result p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.quiz-result .btn {
    margin: 0 4px 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.interactive-side {
    display: grid;
    gap: 8px;
}

.fact-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fact-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
}

.fact-text {
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.45;
}

.fact-again {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.fact-again:hover { text-decoration: underline; }

.poll-widget .quiz-head h3 { margin-bottom: 6px; }

.poll-options { margin-bottom: 8px; }

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-row {
    display: grid;
    grid-template-columns: 1fr 110px 36px;
    align-items: center;
    gap: 6px;
}

.poll-label {
    font-size: 0.82rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poll-bar {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 3px;
    overflow: hidden;
}

.poll-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.poll-pct {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: right;
}

.poll-row.chosen .poll-label { color: var(--accent); font-weight: 700; }

.poll-note {
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--muted);
}

.cod-widget h3 {
    font-size: 0.88rem;
    font-weight: 800;
    margin: 6px 0 2px;
}

.cod-widget p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.cod-media {
    max-height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 6px;
}

.cod-media img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

/* ===== Tips (Авто лайфхаки) ===== */
#tips { padding: 10px 0; }

#tips .section-title {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    margin-bottom: 8px;
}

#tips .section-sub { margin: -6px 0 8px; font-size: 0.8rem; }

#tips .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    gap: 6px;
    justify-content: start;
}

#tips .article-card { border-radius: 8px; }

#tips .article-card .card-body { padding: 6px 8px 8px; }

#tips .article-card h3 { font-size: 0.82rem; margin-bottom: 3px; line-height: 1.3; }

#tips .article-card p { font-size: 0.72rem; }

#tips .card-tag { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.6rem; }

#tips .card-meta { margin-top: 5px; }

#tips .article-meta { font-size: 0.7rem; }

#tips .card-arrow { width: 22px; height: 22px; font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .section { padding: 52px 0; }
    .topics, .interactive, #tips { padding: 18px 0; }
    #tips { padding: 10px 0; }

    .nav-list {
        position: fixed;
        top: 62px;
        right: 0;
        flex-direction: column;
        background: var(--bg-soft, #0e1520);
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 12px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 240px;
        box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .nav-list.active { transform: translateX(0); }

    .burger { display: flex; }

    .hero { padding: 24px 0 16px; }
    .hero-stats { gap: 18px; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }

    .article-card.featured { display: flex; flex-direction: column; }
    .article-card.featured .card-media { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .article-card.featured .card-body { grid-column: auto; grid-row: auto; padding: 18px 20px 20px; }

    .history-item { flex-direction: column; gap: 10px; }
    .history-year { font-size: 1.2rem; min-width: 0; }

    .interactive-grid { grid-template-columns: 1fr; }
    .quiz-widget { min-height: 0; }
    .poll-row { grid-template-columns: 1fr 90px 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* Fuel Calculator Widget */
.calc-widget { padding: 20px; }
.calc-widget h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.input-group input { width: 100%; padding: 8px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 1rem; }
.input-group input:focus { outline: none; border-color: var(--accent); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
.result-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.result-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.result-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.result-card p strong { color: var(--text); }
.result-card .bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.result-card .bar span { height: 100%; background: var(--accent); display: block; transition: width 0.5s ease; }
.result-card.gas { --accent: #e8433c; }
.result-card.hybrid { --accent: #fbbf24; }
.result-card.electric { --accent: #3b82f6; }

/* Поиск и фильтры по рубрикам */
.search-filter-box {
    margin: 0.85rem 0 1.5rem;
    background: var(--card, #131b26);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--muted, #94a3b8);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.55rem 2.4rem 0.55rem 2.4rem;
    background: var(--bg-soft, rgba(11, 15, 20, 0.6));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--text, #f8fafc);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--muted, #94a3b8);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.1rem 0.4rem;
    border-radius: 50%;
}

.search-clear-btn:hover {
    color: #f8fafc;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted, #94a3b8);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    will-change: transform, box-shadow;
}

.filter-btn:hover {
    background: rgba(232, 67, 60, 0.15);
    color: #ffffff;
    border-color: rgba(232, 67, 60, 0.45);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 8px rgba(232, 67, 60, 0.2);
}

.filter-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.filter-btn.active {
    background: linear-gradient(135deg, #e8433c 0%, #ff574d 100%);
    color: #ffffff;
    border-color: #ff7870;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 67, 60, 0.45);
}

.filter-btn.active:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 18px rgba(232, 67, 60, 0.55);
}

.search-meta-info {
    font-size: 0.9rem;
    color: var(--muted, #94a3b8);
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.no-results-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(22, 31, 40, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.no-results-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.no-results-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Калькулятор расходов (Бензин vs Гибрид vs Электро) */
.calc-widget-container {
    background: var(--bg-card, #161f28);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-range-val {
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 700;
}

.calc-range-input {
    width: 100%;
    accent-color: #0284c7;
    cursor: pointer;
    height: 8px;
}

.calc-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .calc-select-row {
        grid-template-columns: 1fr;
    }
}

.calc-select-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted, #94a3b8);
    margin-bottom: 0.35rem;
}

.calc-num-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-soft, rgba(11, 15, 20, 0.6));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    border-radius: 8px;
    color: var(--text, #f8fafc);
    font-size: 0.95rem;
}

.calc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.calc-card {
    background: rgba(11, 15, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.calc-card-badge {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.calc-card-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #38bdf8;
    margin: 0.2rem 0;
}

.calc-card-sub {
    font-size: 0.8rem;
    color: var(--muted, #94a3b8);
    margin-bottom: 0.5rem;
}

.calc-card-total {
    font-size: 0.88rem;
    color: var(--muted, #94a3b8);
}

.calc-card-total strong {
    color: #f8fafc;
}

.calc-savings-pill {
    margin-top: 0.75rem;
    align-self: start;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.calc-savings-pill.best {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* ===== Favorites & Bookmarks ===== */
.fav-nav-btn {
    background: rgba(232, 67, 60, 0.12);
    border: 1px solid rgba(232, 67, 60, 0.3);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fav-nav-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.fav-count {
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 10px;
}

.fav-nav-btn:hover .fav-count {
    background: #fff;
    color: var(--accent);
}

.bookmark-btn {
    background: rgba(11, 15, 20, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 4;
}

.bookmark-btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.bookmark-btn:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    transform: scale(1.1);
}

.bookmark-btn.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #0b0f14;
}

.bookmark-btn.active svg {
    fill: #0b0f14;
}

.card-bookmark-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.bookmark-tool-btn {
    width: auto;
    height: auto;
    border-radius: 8px;
    padding: 6px 12px;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.bookmark-tool-btn.active {
    background: #fbbf24;
    color: #0b0f14;
}

/* ===== Favorites Modal ===== */
.favorites-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.favorites-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.fav-modal-dialog {
    background: var(--card, #131b26);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from { transform: scale(0.95) translateY(10px); }
    to { transform: scale(1) translateY(0); }
}

.fav-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.fav-modal-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
}

.fav-modal-close {
    background: none;
    border: none;
    color: var(--muted, #94a3b8);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.fav-modal-close:hover { color: #fff; }

.fav-modal-body {
    padding: 16px 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fav-empty-state {
    text-align: center;
    padding: 30px 10px;
    color: var(--muted, #94a3b8);
}

.fav-empty-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
}

.fav-empty-state h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.fav-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft, #0e1520);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.fav-item-card:hover {
    border-color: rgba(232, 67, 60, 0.4);
}

.fav-item-media {
    width: 68px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.fav-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.fav-item-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.fav-item-title {
    display: block;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-item-title:hover {
    color: var(--accent);
}

.fav-item-meta {
    font-size: 0.74rem;
    color: var(--muted, #94a3b8);
}

.fav-item-remove {
    background: none;
    border: none;
    color: var(--muted, #94a3b8);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.fav-item-remove:hover { color: #f87171; }

.fav-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

/* ===== Reader Toolbar (Аудио & Шрифт) ===== */
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-soft, #0e1520);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 10px 16px;
    margin: 18px 0;
}

.audio-reader-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-play-btn:hover {
    background: #ff574d;
    transform: translateY(-1px);
}

.audio-play-btn.playing {
    background: #eab308;
    color: #0b0f14;
}

.audio-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted, #94a3b8);
}

.audio-stop-btn {
    background: none;
    border: none;
    color: #f87171;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
}

.reader-tools-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: 3px 6px;
}

.font-label {
    font-size: 0.75rem;
    color: var(--muted, #94a3b8);
    margin-right: 4px;
}

.font-btn {
    background: none;
    border: none;
    color: var(--muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.font-btn:hover { color: #fff; }

.font-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Font scale classes */
body.font-small .article-body p { font-size: 0.92rem; line-height: 1.6; }
body.font-normal .article-body p { font-size: 1.02rem; line-height: 1.7; }
body.font-large .article-body p { font-size: 1.2rem; line-height: 1.8; }

/* ===== Next / Prev Navigation ===== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 16px;
}

.art-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-soft, #0e1520);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.art-nav-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--card, #131b26);
}

.art-nav-next { text-align: right; }

.art-nav-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.art-nav-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr;
    }
    .art-nav-next { text-align: left; }
    .reader-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .reader-tools-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== ЛАЙКИ И РЕАКЦИИ ===== */
.card-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.card-like-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: scale(1.06);
}

.card-like-btn.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ff6b6b;
}

.card-like-btn.liked .like-heart {
    animation: heartPop 0.35s ease-out;
}

/* Блок реакций в конце статьи */
.article-reactions {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(21, 27, 35, 0.9) 0%, rgba(13, 18, 24, 0.9) 100%);
    border: 1px solid #262e3a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reactions-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
}

.reactions-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reaction-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.reaction-like-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.reaction-like-btn.liked {
    background: linear-gradient(135deg, #e61a27 0%, #ff4d5a 100%);
    border-color: #ff6b76;
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 26, 39, 0.4);
}

.reaction-like-btn.liked .reaction-icon {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.reaction-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-bookmark-btn:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
    transform: translateY(-2px);
}

.reaction-bookmark-btn.active {
    background: rgba(234, 179, 8, 0.2);
    border-color: #eab308;
    color: #facc15;
}

/* Всплывающая частица +1 ❤️ */
.like-particle {
    position: absolute;
    pointer-events: none;
    font-size: 1rem;
    font-weight: 800;
    color: #ff4d5a;
    z-index: 10000;
    transform: translate(-50%, 0);
    animation: floatUpFade 0.85s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes floatUpFade {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -24px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -45px) scale(1);
    }
}

@media (max-width: 640px) {
    .article-reactions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.25rem;
    }
    .reactions-actions {
        justify-content: center;
    }
}

