:root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --snow: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.snowflakes {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: var(--snow);
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.2rem;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
}

.flag-icon {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
    vertical-align: middle;
}

.country-heading .flag-icon {
    width: 36px;
    height: 24px;
    border-radius: 3px;
}

h3 .flag-icon {
    width: 22px;
    height: 15px;
    margin-right: 0.3rem;
}

.hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.85));
}

.hero-content, .hero h1, .hero p, .hero .btn { position: relative; z-index: 1; }

.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #0f172a;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

section {
    padding: 2.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-align: left;
}

h3 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--accent); text-align: left; }
h4 { margin: 1.5rem 0 0.5rem; color: #fff; }
p { margin-bottom: 1.2rem; color: var(--text-muted); text-align: left; }

.banner {
    text-align: center;
    margin: 1.5rem 0;
}

.banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
    margin: 1rem 0;
}

.card:hover { transform: translateY(-5px); }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.highlight {
    background: rgba(56, 189, 248, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.2rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

ul { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
li { margin-bottom: 0.5rem; }

.meta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; font-size: 0.9rem; }
.badge {
    background: rgba(56,189,248,0.15);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
}

.badge.status-ok {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.badge.status-check {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
}

.country-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#map {
    height: 550px;
    width: 100%;
    border-radius: 16px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 12px;
}

.leaflet-popup-tip { background: #1e293b; }

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.leaflet-popup-content h4 {
    margin: 0 0 0.4rem 0;
    color: #38bdf8;
    font-size: 1.1rem;
}

.leaflet-popup-content p { margin: 0; color: #94a3b8; }

.back-link { margin-top: 3rem; text-align: center; }
.back-link a { color: var(--accent); text-decoration: none; }

footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 0.75rem 4%;
        gap: 0.5rem;
    }
    .logo { font-size: 1.3rem; }
    .menu-toggle { display: block; margin-left: auto; }
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        padding: 0.75rem 0;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    nav.open { display: flex; }
    nav a {
        margin: 0;
        padding: 0.65rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }
    nav a:hover { background: rgba(56, 189, 248, 0.1); }
    .hero { padding-top: 7rem; min-height: 55vh; }
    h2 { font-size: 2rem; }
}
