@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px !important; }

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--primary); }

.nav ul { display: flex; gap: 25px; }
.nav a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.burger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.sidebar { position: sticky; top: 90px; height: fit-content; }
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.sidebar-title { font-family: var(--font-head); font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; }
.cat-list li { margin-bottom: 10px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-weight: 500; }
.cat-list a:hover { color: var(--primary); }
.cat-count { background: #e0e7ff; color: var(--primary); padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* Main Feed Header */
.feed-header {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px;
}
.feed-title h1 { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; margin-bottom: 10px; color: var(--text-main); }
.feed-subtitle { color: var(--text-muted); max-width: 600px; }

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 80px 1fr 180px;
    gap: 25px;
    align-items: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.15);
}

.vote-box {
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px 5px;
    border: 1px solid var(--border);
}
.rank-num { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--text-main); line-height: 1; }
.vote-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: 5px; }

.card-content h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 8px; color: var(--text-main); }
.card-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { font-size: 0.75rem; background: #ecfccb; color: #3f6212; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.badge.blue { background: #dbeafe; color: #1e40af; }

.bonus-text { font-size: 1rem; color: var(--text-main); font-weight: 500; }
.bonus-highlight { color: var(--primary); font-weight: 700; }

.card-action { text-align: center; }
.btn-primary {
    display: block; width: 100%;
    background: var(--accent); color: #fff;
    padding: 12px 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    transition: 0.2s;
}
.btn-primary:hover { background: #ea580c; transform: translateY(-1px); }
.score-circle { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.score-val { color: var(--primary); font-weight: 800; }

.review-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.review-card h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.review-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}

.review-card ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.review-card li {
    margin-bottom: 8px;
}

.footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-links a { font-weight: 600; color: var(--text-main); }
.footer-links a:hover { color: var(--primary); }

.disclaimer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.disclaimer h4 {
    font-family: var(--font-head);
    margin-bottom: 15px;
}


/* Tablet (до 1024px) */
@media (max-width: 1024px) {
    .main-layout {
        gap: 20px;
    }
}

@media (max-width: 850px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .sidebar {
        display: none;
    }

    .review-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .vote-box {
        display: none;
    }

    .card-badges {
        justify-content: center;
    }

    /* Мобильное меню */
    .header-inner .nav {
        display: none;
    }

    .header-inner .nav.active {
        display: block;
    }

    .burger {
        display: block;
    }

    .feed-title h1 {
        font-size: 1.8rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}