
:root {
    --bg: #0b1020;
    --bg-soft: #111932;
    --card: #151f3d;
    --line: #26335c;
    --text: #e8ecf8;
    --muted: #9aa7c7;
    --accent: #22d3ee;
    --accent-2: #a78bfa;
    --accent-3: #34d399;
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(167, 139, 250, .14), transparent 60%),
        radial-gradient(700px 420px at 0% 0%, rgba(34, 211, 238, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    font: 16px/1.65 "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }


.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 16, 32, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .u {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: var(--muted);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .95rem;
    transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: rgba(34, 211, 238, .1); }


main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 56px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p { color: var(--muted); margin-bottom: 24px; max-width: 46ch; }

.hero-art { filter: drop-shadow(0 8px 40px rgba(34, 211, 238, .25)); }

.badge {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, .35);
    background: rgba(34, 211, 238, .08);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.page-head { max-width: 62ch; margin-bottom: 40px; color: var(--muted); }
.page-head h1 {
    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.section { margin-bottom: 56px; }

.lead { color: var(--muted); max-width: 68ch; }


.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); }

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }

.card .era-years { color: var(--accent-3); font-size: .85rem; letter-spacing: .08em; }

.card p { color: var(--muted); font-size: .93rem; margin-top: 10px; }

.card .card-art {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(167, 139, 250, .08));
}
.card .card-art img { height: 100%; width: auto; }


.timeline { position: relative; padding-left: 34px; }

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--accent-2));
    opacity: .5;
}

.tl-item { position: relative; margin-bottom: 26px; }

.tl-item::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(34, 211, 238, .8);
}

.tl-item .year {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.tl-item p { color: var(--muted); max-width: 68ch; }


.article-art {
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--card);
}

.article p { color: var(--muted); margin-bottom: 16px; max-width: 70ch; }
.article strong { color: var(--text); }

.facts {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.facts li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--muted);
}
.facts li strong { color: var(--accent); }


.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #06101f;
    transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .9; transform: translateY(-2px); text-decoration: none; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    margin-left: 10px;
}
.btn-ghost:hover { border-color: var(--accent); }

.pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}


.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 20px 40px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}
.site-footer .dot { color: var(--accent); }


@media (max-width: 780px) {
    .hero { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
    .nav-links { margin-left: 0; width: 100%; }
}
