/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #0d0d11;
    --surface:  #17171f;
    --surface2: #1f1f2b;
    --border:   rgba(255,255,255,.07);
    --accent:   #6c63ff;
    --accent2:  #ff6584;
    --text:     #e4e4f0;
    --muted:    #7a7a9a;
    --radius:   14px;
    --font:     'Inter', system-ui, -apple-system, sans-serif;
    --header-h: 60px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: rgba(13,13,17,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    padding: 6px 14px;
    border-radius: 999px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: #fff;
    background: var(--surface2);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Map Section ────────────────────────────────────────────────────────── */
#map-section { position: relative; }

#map {
    width: 100%;
    height: calc(100vh - var(--header-h));
    min-height: 400px;
}

.map-info-bar {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 5px;
    background: rgba(255,255,255,.9);
    border-radius: 5px;
    color: #333;
}

.currency-bar { font-weight: 600; }

/* ── Section Title ──────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 24px;
}

/* ── Hero Block ─────────────────────────────────────────────────────────── */
.hero-block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.hero-block__main .card__image-wrap { height: 300px; }

.hero-block__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-block__side .card__image-wrap { height: 120px; }

/* ── Grid ───────────────────────────────────────────────────────────────── */
.grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(108,99,255,.35);
    box-shadow: 0 20px 50px rgba(108,99,255,.12);
}

.card__image-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.card__image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.card:hover .card__image-wrap img { transform: scale(1.05); }

.card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--muted);
}

.tag {
    background: rgba(108,99,255,.18);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.01em;
}

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

.card__excerpt {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.pagination__btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: .9rem;
    transition: background .2s, border-color .2s;
}

.pagination__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.pagination__info { color: var(--muted); font-size: .9rem; }

/* ── Page title ─────────────────────────────────────────────────────────── */
.page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    padding: 40px 0 24px;
}

/* ── Article ────────────────────────────────────────────────────────────── */
.article { padding: 32px 0 64px; }

.article__container { max-width: 800px; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.article__title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.article__source a { color: var(--muted); text-decoration: underline dotted; }

.article__hero {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 36px;
}
.article__hero img { width: 100%; max-height: 500px; object-fit: cover; }

.article__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #c8c8dc;
}

.article__content p  { margin-bottom: 1.2em; }
.article__content h2 { font-size: 1.5rem; font-weight: 700; margin: 2em 0 .6em; color: var(--text); }
.article__content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .5em; color: var(--text); }
.article__content img { border-radius: 10px; margin: 1.5em 0; }
.article__content a  { color: var(--accent); text-underline-offset: 3px; }
.article__content strong { color: var(--text); }
.article__content ul { padding-left: 1.5em; margin-bottom: 1.2em; }
.article__content li { margin-bottom: .4em; }

/* Article Nav */
.article__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.article__nav-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s, background .2s;
}

.article__nav-btn:hover { border-color: var(--accent); background: var(--surface2); }
.article__nav-btn--next { text-align: right; }

.nav-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.nav-title  { font-size: .92rem; font-weight: 600; line-height: 1.4; }

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
}
.back-link:hover { color: var(--accent); }

/* ── Share Buttons ──────────────────────────────────────────────────────── */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.share-buttons a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: opacity .2s, transform .2s;
}

.share-buttons a:hover { opacity: .85; transform: translateY(-2px); }
.share-tg { background: #229ED9; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-tw { background: #000;    color: #fff; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

/* ── Empty ──────────────────────────────────────────────────────────────── */
.empty { color: var(--muted); padding: 48px 0; text-align: center; font-size: 1.1rem; }

/* ── Legend divider (map) ───────────────────────────────────────────────── */
.legend-divider {
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 8px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-block { grid-template-columns: 1fr; }
    .grid--3    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .burger { display: flex; }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 4px;
        z-index: 199;
    }
    .nav.open { display: flex; }
    .nav__link { padding: 12px 16px; border-radius: 10px; }

    .grid--3         { grid-template-columns: 1fr; }
    .article__title  { font-size: 1.5rem; }
    .article__nav    { grid-template-columns: 1fr; }
    .article__nav-btn--next { text-align: left; }
    .page-title      { font-size: 1.5rem; }
    .hero-block__side .card__image-wrap { height: 160px; }
}

/* ── Map Card ───────────────────────────────────────────────────────────── */
.map-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    text-decoration: none;
    height: 220px;
}

.map-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.map-card:hover img { transform: scale(1.03); }

.map-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    color: #fff;
}

.map-card__overlay h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 8px 0 6px;
    letter-spacing: -.02em;
}

.map-card__overlay p {
    font-size: .88rem;
    opacity: .75;
}

/* ── News Hero ──────────────────────────────────────────────────────────── */
.news-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: start;
}

.news-hero__image {
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 280px;
}

.news-hero__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.news-hero__main:hover .news-hero__image img { transform: scale(1.04); }

.news-hero__main {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.news-hero__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-hero__title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
}

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

.news-hero__excerpt {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── News Side Items ────────────────────────────────────────────────────── */
.news-hero__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-side-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.news-side-item:hover {
    border-color: rgba(108,99,255,.35);
    transform: translateY(-2px);
}

.news-side-item__image {
    overflow: hidden;
    height: 90px;
}

.news-side-item__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.news-side-item:hover .news-side-item__image img { transform: scale(1.05); }

.news-side-item__body {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-side-item__title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .news-hero { grid-template-columns: 1fr; }
    .map-card  { height: 160px; }
}

@media (max-width: 600px) {
    .map-card__overlay h2 { font-size: 1.1rem; }
    .news-side-item { grid-template-columns: 90px 1fr; }
    .news-side-item__image { height: 75px; }
}
