body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.header {
    background: #111;
    color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #e50914;
}

.menu a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

.menu a:hover {
    color: #e50914;
}

/* LAYOUT */
.main-layout {
    display: flex;
    margin-top: 20px;
}

.content {
    width: 70%;
}

.sidebar {
    width: 30%;
    padding-left: 20px;
}

/* NEWS */
.news-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.news-item h2 {
    margin-top: 0;
}

.news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #e50914;
}

/* SIDEBAR */
.widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* TOP NEWS */
.top-news .news-item {
    display: block;
    font-size: 20px;
    background: #fff;
    padding: 30px;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* BUTTON */
#load-more {
    padding: 12px 20px;
    background: #e50914;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* SEARCH */
input[type="text"] {
    width: 100%;
    padding: 10px;
}

/* ADAPTIVE */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-layout {
        flex-direction: column;
    }

    .content, .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

body.dark {
    background: #121212;
    color: #eee;
}

body.dark .news-item,
body.dark .widget {
    background: #1e1e1e;
}

body.dark .header,
body.dark .footer {
    background: #000;
}


/* STICKY HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* TOP BAR */
.top-bar {
    background: #111;
    color: #fff;
    border-bottom: 1px solid #333;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00a86b; /* ближе к РБК */
}

/* NAV BAR */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

/* MENU */
.menu {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.menu a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    white-space: nowrap;
}

.menu a:hover {
    color: #00a86b;
}

/* ACTIVE LINK */
.menu a.active {
    border-bottom: 2px solid #00a86b;
}

/* SHRINK EFFECT */
.header.shrink .top-bar {
    padding: 5px 0;
}

.header.shrink .logo {
    font-size: 18px;
}

.menu-item {
    position: relative;
}

.menu-item ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.menu-item:hover ul {
    display: block;
}

.menu-item ul a {
    padding: 8px 10px;
    display: block;
}

.burger {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        background: #fff;
    }

    .menu.active {
        display: flex;
    }
}