.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #FFDB00;
}

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.country-card {
    display: block;
    background: white;
    border-radius: 4px;
    padding: 28px 20px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid transparent;
    cursor: pointer;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-bottom-color: #FFDB00;
}

.flag {
    font-size: 2.8em;
    margin-bottom: 14px;
    display: block;
}

.country-name {
    font-size: 1.05em;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

footer {
    margin-top: 60px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.7em;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }

    .country-card {
        padding: 20px 14px 16px;
    }

    .flag {
        font-size: 2.2em;
    }
}
