/* ══════════════════════════════
   FONTS
══════════════════════════════ */
@font-face {
    font-family: 'Ronzino';
    src: url('fonts/Ronzino-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('fonts/Ronzino-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('fonts/Ronzino-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ronzino';
    src: url('fonts/Ronzino-Oblique.woff2') format('woff2');
    font-weight: 400;
    font-style: oblique;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #1a1a1a;
    --red: #E31E24;
    --gray-bg: #F9F9F9;
    --gray-mid: #EFEFEF;
    --gray-bar: #2b2b2b;
    --white: #ffffff;
    --text-muted: #777;
    --border: #e8e8e8;
}

body {
    font-family: 'Ronzino', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-bg);
    color: var(--black);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ══════════════════════════════
   MAIN
══════════════════════════════ */
main {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 32px 72px;
    flex: 1;
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.section-heading h1 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
}

.section-heading .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ══════════════════════════════
   COUNTRY GRID
══════════════════════════════ */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ── Tile ── */
.tile {
    background: var(--white);
    padding: 29px 14px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.tile:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
}

.tile img {
    width: 97px;
    height: 65px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #f0f0f0;
}

.tile .country-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
}

.tile .country-url {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
    background: var(--black);
    color: #aaa;
    text-align: center;
    padding: 20px 24px;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
    main {
        padding: 28px 12px 48px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

@media (max-width: 560px) {
    header {
        padding: 14px 16px !important;
    }

    header svg {
        width: 140px;
        height: auto;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .tile img {
        width: 64px;
        height: 42px;
    }
}