@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@500;700&display=swap');

:root {
    --bg-color: #f3f8fe;
    --text-dark: #2b2d42;
    --accent-yellow: #ffca3a;
    --accent-red: #ff595e;
    --accent-blue: #1982c4;
    --accent-green: #8ac926;
    --glass-bg: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(#d7e3f5 2px, transparent 2px);
    background-size: 30px 30px; /* Милый паттерн в горошек */
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fredoka One', cursive; letter-spacing: 1px; }

/* Плавающая "стеклянная" навигация */
header {
    position: sticky; top: 20px; z-index: 1000;
    display: flex; justify-content: center; padding: 0 20px;
}

nav {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex; gap: 20px; align-items: center;
    border: 2px solid rgba(255,255,255,0.8);
}

.logo { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: var(--accent-red); margin-right: 20px; text-decoration: none;}

nav a.link {
    color: var(--text-dark); text-decoration: none; font-weight: 700; font-size: 1.1rem;
    padding: 10px 20px; border-radius: 30px; transition: all 0.3s ease;
}

nav a.link:hover { background: var(--accent-yellow); color: #fff; transform: translateY(-3px); }

/* Главный экран (Hero) */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.hero {
    position: relative; border-radius: 40px; overflow: hidden;
    height: 60vh; min-height: 400px;
    box-shadow: 0 20px 50px rgba(25, 130, 196, 0.2);
    margin-bottom: 60px;
}

.hero img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(43, 45, 66, 0.9) 0%, rgba(43, 45, 66, 0) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 50px; color: white;
}

.hero-overlay h1 { font-size: 4rem; text-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 10px; color: #fff;}
.hero-overlay p { font-size: 1.5rem; max-width: 600px; font-weight: 500; opacity: 0.9; }

/* Стильные Карточки (Левитирующие) */
.section-title { text-align: center; font-size: 3rem; color: var(--accent-blue); margin-bottom: 40px; }

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

.card {
    background: #fff; border-radius: 35px; padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    border: 4px solid transparent;
}

.card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: var(--accent-yellow);
}

.card-icon { font-size: 4rem; margin-bottom: 20px; display: inline-block; }
.card h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--text-dark); }
.card p { font-size: 1.2rem; line-height: 1.6; color: #666; }

/* Карточки с картинками для раздела "Страны" */
.image-card { padding: 0; }
.image-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 31px 31px 0 0; }
.image-card .content { padding: 30px; }

/* Подвал и Счетчик */
footer {
    margin-top: 80px; padding: 40px 20px; text-align: center;
    background: #fff; border-radius: 50px 50px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

.counter-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent-blue); color: #fff;
    padding: 15px 30px; border-radius: 50px; font-size: 1.5rem; font-family: 'Fredoka One', cursive;
    margin-top: 20px; box-shadow: 0 10px 20px rgba(25, 130, 196, 0.3);
}