:root {
    --bg: #090909;
    --panel: #141414;
    --panel-soft: #1d1d1d;
    --text: #f8f8f8;
    --muted: #ababab;
    --border: #2f2f2f;
    --primary: #ff6b35;
    --secondary: #ff9d52;
    --accent: #ffd4b6;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 107, 53, 0.22), transparent 32%),
        radial-gradient(circle at 92% 90%, rgba(255, 157, 82, 0.14), transparent 40%),
        linear-gradient(145deg, #080808, #111111 44%, #0d0d0d);
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.2rem 1.2rem 2rem;
}

.topbar {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(26, 26, 26, 0.95), rgba(16, 16, 16, 0.96));
    padding: 1.05rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
    position: relative;
    overflow: hidden;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 12%, rgba(255, 107, 53, 0.16), transparent 34%);
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #3c3c3c;
    background: #121212;
    object-fit: contain;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-size: clamp(1.45rem, 3.8vw, 2.2rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.01em;
}

.subtitle {
    color: var(--muted);
    margin-top: 0.22rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0.62rem 0.9rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.25);
}

.btn-ghost {
    color: #ececec;
    background: #171717;
    border-color: #3f3f3f;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-ghost:hover {
    border-color: rgba(255, 157, 82, 0.5);
}

.intro {
    margin-top: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(22, 22, 22, 0.97), rgba(14, 14, 14, 0.96));
    padding: 0.92rem;
    display: grid;
    gap: 0.55rem;
}

.intro p {
    margin: 0;
    color: #d7d7d7;
    line-height: 1.6;
}

.intro-chips {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: #111;
    color: #d9d9d9;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    padding: 0.26rem 0.52rem;
}

.filters {
    margin-top: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #141414;
    padding: 0.86rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
}

.filters input,
.filters select {
    border: 1px solid #333;
    background: #101010;
    color: var(--text);
    border-radius: 10px;
    padding: 0.72rem 0.75rem;
    font-family: inherit;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(22, 22, 22, 0.96), rgba(14, 14, 14, 0.96));
    padding: 0.92rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.92), rgba(255, 157, 82, 0.28));
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 157, 82, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.33);
}

.meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.badge {
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: #111;
    color: #d7d7d7;
    font-size: 0.75rem;
    padding: 0.22rem 0.52rem;
}

.card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    color: #f7f7f7;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.card .read-link {
    margin-top: 0.72rem;
    display: inline-flex;
    color: #ffc7a9;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.card .read-link:hover {
    color: #ffd8c3;
}

.empty {
    margin-top: 1rem;
    border: 1px dashed #414141;
    border-radius: 12px;
    padding: 0.9rem;
    color: #c2c2c2;
    display: none;
}

.article {
    margin-top: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(23, 23, 23, 0.97), rgba(16, 16, 16, 0.97));
    padding: 1.1rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.article .meta {
    margin-bottom: 0.7rem;
}

.article-content p {
    margin: 0 0 0.85rem;
    color: #e1e1e1;
    line-height: 1.7;
}

.footer {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #141414;
    padding: 0.88rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 46px;
        height: 46px;
    }
}
