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

:root {
    --dark:  #0f0f1a;
    --navy:  #16213e;
    --gold:  #e7c55f;
    --light: #c8ccd8;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(15, 15, 26, 0.96);
    border-bottom: 1px solid #2a2a3e;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: background 0.18s, color 0.18s;
}

nav a:hover {
    background-color: var(--navy);
    color: var(--gold);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    padding: 72px 40px 56px;
    text-align: center;
    border-bottom: 1px solid #1e1e30;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--light);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── COUNTRIES GRID ─────────────────────────────────────────── */
.countries {
    flex: 1;
    padding: 56px 40px 72px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

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

/* ── COUNTRY CARD ────────────────────────────────────────────── */
.card {
    position: relative;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background-color: var(--navy);
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.card:hover .card-bg {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 22, 0.92) 0%,
        rgba(10, 10, 22, 0.45) 55%,
        rgba(10, 10, 22, 0.15) 100%
    );
    transition: background 0.3s;
}

.card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 22, 0.88) 0%,
        rgba(10, 10, 22, 0.35) 55%,
        rgba(10, 10, 22, 0.05) 100%
    );
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
}

.card-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.card-body .en-name {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
}

.card:hover .card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    padding: 20px 40px;
    border-top: 1px solid #1e1e30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #4a4a6a;
}

footer span {
    color: #4a4a6a;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    header {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 10px;
    }

    .hero {
        padding: 48px 20px 40px;
    }

    .countries {
        padding: 40px 20px 56px;
    }

    footer {
        padding: 18px 20px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
