* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0d12;
    --card: #13161d;
    --card-hover: #181c25;
    --text: #f5f7fa;
    --muted: #9ba3b0;
    --border: #252a34;
    --accent: #ff3b5c;
    --accent-hover: #ff5572;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 13, 18, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
}

.header-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    color: #dce0e6;
    font-size: 15px;
    transition: 0.2s;
}

.navigation a:hover {
    color: var(--accent);
}

.menu-button {
    display: none;

    background: none;
    border: 0;

    color: white;
    font-size: 25px;

    cursor: pointer;
}


/* HERO */

.hero {
    padding: 80px 0 70px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 59, 92, 0.16),
            transparent 35%
        );
}

.hero-content {
    max-width: 800px;
}

.category-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 70px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero p {
    max-width: 650px;

    color: var(--muted);

    font-size: 19px;
}


/* SECTIONS */

.content-section {
    padding: 65px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 30px;
}

.section-header a {
    color: var(--accent);

    font-weight: 600;
}


/* NEWS */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.news-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    transition:
        transform 0.25s,
        background 0.25s,
        border-color 0.25s;
}

.news-card:hover {
    transform: translateY(-5px);

    background: var(--card-hover);

    border-color: #363c49;
}

.news-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 65px;
}

.placeholder {
    background:
        linear-gradient(
            135deg,
            #1d222c,
            #101218
        );
}

.news-content {
    padding: 22px;
}

.news-category {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 700;
}

.news-content h3 {
    margin-bottom: 12px;

    font-size: 21px;

    line-height: 1.25;
}

.news-content p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 20px;
}

.news-meta {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 13px;
}

.news-meta a {
    color: var(--accent);

    font-weight: 700;
}


/* AD */

.ad-section {
    padding: 20px 0;
}

.ad-placeholder {
    min-height: 120px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px dashed #343a45;

    border-radius: 12px;

    color: #666d79;

    font-size: 12px;

    letter-spacing: 2px;
}


/* POPULAR */

.popular-list {
    display: flex;

    flex-direction: column;

    border-top: 1px solid var(--border);
}

.popular-item {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

    transition: 0.2s;
}

.popular-item:hover {
    color: var(--accent);
}

.number {
    color: #4b5260;

    font-size: 25px;

    font-weight: 800;
}

.popular-item strong {
    display: block;

    font-size: 18px;
}

.popular-item small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;
}


/* ARTICLE */

.article-page {
    padding: 60px 0;
}

.article-container {
    max-width: 800px;
}

.article-category {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.article-page h1 {
    font-size: clamp(30px, 5vw, 48px);

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.article-date {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 90px;

    background:
        linear-gradient(
            135deg,
            #1d222c,
            #101218
        );

    border-radius: 16px;

    margin-bottom: 35px;
}

.article-text p {
    margin-bottom: 20px;

    font-size: 17px;
}

.article-text h2 {
    margin: 35px 0 18px;

    font-size: 26px;
}


/* FOOTER */

.site-footer {
    margin-top: 70px;

    border-top: 1px solid var(--border);

    background: #080a0e;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;

    padding: 55px 0;
}

.footer-grid p {
    margin-top: 15px;

    max-width: 300px;

    color: var(--muted);
}

.footer-grid h3 {
    margin-bottom: 16px;

    font-size: 15px;
}

.footer-grid > div > a:not(.logo) {
    display: block;

    margin-bottom: 9px;

    color: var(--muted);

    font-size: 14px;
}

.footer-grid > div > a:not(.logo):hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid var(--border);

    color: #6f7682;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 800px) {

    .menu-button {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        padding: 20px;

        flex-direction: column;
        align-items: flex-start;

        background: #0b0d12;

        border-bottom: 1px solid var(--border);
    }

    .navigation.active {
        display: flex;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .section-header {
        align-items: flex-start;
        gap: 15px;
    }

}

@media (max-width: 500px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .news-image {
        height: 190px;
    }

    .article-image {
        height: 220px;
        font-size: 70px;
    }

}