:root {
    --bg: #080a0d;
    --bg2: #0d1014;
    --card: #12171c;
    --card2: #171d23;
    --border: #27303a;
    --text: #f5f7f9;
    --muted: #9ca7b2;
    --accent: #e0a21a;
    --accent2: #ffc857;
    --danger: #ef5b5b;
    --max: 1200px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(224,162,26,.10),
            transparent 30%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.7;
}

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

img {
    max-width: 100%;
}

.container {
    width: min(
        calc(100% - 32px),
        var(--max)
    );
    margin-inline: auto;
}

/* TOP */

.topbar {
    background: #060709;
    border-bottom: 1px solid #1d2329;
    color: var(--muted);
    font-size: 13px;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact,
.top-social {
    display: flex;
    gap: 18px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,10,13,.94);
    backdrop-filter: blur(15px);
}

.nav-wrap {
    border-bottom: 1px solid var(--border);
}

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

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

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #111;
    font-size: 25px;
    font-weight: 1000;
    border-radius: 12px;
    transform: skew(-8deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: .06em;
}

.brand-text small {
    color: var(--accent2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    margin-top: 5px;
}

.brand-logo {
    max-width: 240px;
    max-height: 62px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 9px;
    color: #c3cad1;
    font-weight: 650;
}

.main-nav a:hover {
    background: var(--card2);
    color: white;
}

/* HERO */

.hero {
    padding: 65px 0 35px;
}

.hero-box {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92),
            rgba(0,0,0,.60),
            rgba(0,0,0,.20)
        ),
        radial-gradient(
            circle at 85% 50%,
            rgba(224,162,26,.25),
            transparent 35%
        ),
        #151a20;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 55px;
    max-width: 720px;
}

.hero-label {
    color: var(--accent2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 13px 0;
    font-size: clamp(
        38px,
        6vw,
        70px
    );
    line-height: 1.02;
    letter-spacing: -.04em;
}

.hero p {
    color: #b7c0c8;
    font-size: 18px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* BUTTON */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 17px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #111;
    font-weight: 900;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn-dark {
    background: #222a32;
    color: white;
}

.btn-danger {
    background: #4b1c1c;
    color: #ffb0b0;
}

/* SECTION */

.section {
    padding: 35px 0 80px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    line-height: 1.1;
}

.section-head h2 {
    font-size: 32px;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* CARDS */

.topic-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0,1fr));
    gap: 20px;
}

.topic-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: rgba(
        224,
        162,
        26,
        .55
    );
}

.topic-image {
    display: block;
    aspect-ratio: 16/9;
    background: #0d1014;
    overflow: hidden;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.topic-card:hover
.topic-image img {
    transform: scale(1.04);
}

.topic-card-body {
    padding: 21px;
}

.topic-date {
    color: var(--accent2);
    font-size: 12px;
    font-weight: 800;
}

.topic-card h3 {
    margin: 7px 0 10px;
    line-height: 1.3;
    font-size: 20px;
}

.topic-excerpt {
    color: var(--muted);
    font-size: 14px;
}

/* ARTICLE */

.article-wrap {
    padding: 55px 0 90px;
}

.article {
    width: min(
        100%,
        900px
    );
    margin: auto;
}

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

.article-title {
    font-size: clamp(
        38px,
        6vw,
        62px
    );
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 10px 0 15px;
}

.article-meta {
    color: var(--muted);
}

.article-content {
    font-size: 18px;
}

.article-content p {
    margin: 0 0 20px;
}

.article-content h2 {
    font-size: 32px;
    margin-top: 50px;
}

.article-content h3 {
    font-size: 25px;
    margin-top: 40px;
}

.article-content h4 {
    font-size: 21px;
    margin-top: 32px;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 13px;
    margin: 25px auto;
}

.article-content a {
    color: var(--accent2);
    text-decoration: underline;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--card);
    color: #c7ced5;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

.article-content th {
    background: var(--card2);
}

.article-content code {
    background: #050608;
    padding: 3px 6px;
    border-radius: 5px;
}

.article-content pre {
    overflow-x: auto;
    padding: 20px;
    background: #050608;
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* CATEGORY */

.category-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-pill {
    padding: 9px 14px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 999px;
    color: #cdd4da;
}

.category-pill:hover {
    border-color: var(--accent);
    color: white;
}

/* 404 */

.not-found {
    text-align: center;
    padding: 120px 20px;
}

.not-found strong {
    display: block;
    font-size: 100px;
    line-height: 1;
    color: var(--accent);
}

/* FOOTER */

.site-footer {
    margin-top: 60px;
    background: #050608;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-grid {
    padding: 50px 0;
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr;
    gap: 50px;
}

.footer-grid h4 {
    color: white;
    margin-top: 0;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
}

.footer-brand {
    color: white;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: .06em;
}

.footer-bottom {
    border-top: 1px solid #181d22;
    padding: 18px 0;
    font-size: 13px;
}

/* EMPTY */

.empty {
    border: 1px dashed var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    color: var(--muted);
}

/* RESPONSIVE */

@media(max-width:900px) {

    .topic-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:650px) {

    .container {
        width: min(
            calc(100% - 22px),
            var(--max)
        );
    }

    .topbar-inner {
        padding: 7px 0;
    }

    .top-contact {
        gap: 8px;
    }

    .top-social {
        display: none;
    }

    .nav-inner {
        min-height: 68px;
    }

    .brand-logo {
        max-width: 160px;
        max-height: 48px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text small {
        display: none;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        font-size: 12px;
        padding: 7px;
    }

    .main-nav a:nth-child(2) {
        display: none;
    }

    .hero {
        padding-top: 25px;
    }

    .hero-box {
        min-height: 390px;
        border-radius: 20px;
    }

    .hero-content {
        padding: 30px 23px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

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

    .article-content {
        font-size: 17px;
    }

}