@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/roboto-v30-latin/roboto-v30-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-v30-latin/roboto-v30-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/roboto-v30-latin/roboto-v30-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-v30-latin/roboto-v30-latin-700.woff2') format('woff2');
}

:root {
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    color: #fff;
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-sub {
    /*max-width: 600px;*/
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Content ──────────────────────────────────────── */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-btn:hover {
    border-color: #a5b4fc;
    color: #6366f1;
}

.filter-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #a5b4fc;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.13);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 20px;
    color: #6366f1;
}

.title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.description {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.card-cat {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
}

.meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    font-size: 11.5px;
    color: #b0b7c3;
    letter-spacing: .01em;
}

.meta i {
    font-size: 11px;
}

/* ── Tippy Tooltip ────────────────────────────────── */

.tippy-box[data-theme~='light-border'] {
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* ── Empty state ──────────────────────────────────── */

.empty {
    padding: 28px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--muted);
}
