@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,700&display=swap');

/* 1. Сброс стилей и база */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Это критично для ровных сеток */
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #fff;
    background-color: #03011a; /* Глубокий темный фон под дизайн на скрине */
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Оболочка и Контейнер */
.wrapper {
    background: linear-gradient(90deg, rgba(10, 11, 13, 1) 8%, rgba(5, 3, 41, 1) 78%);
    width: 100%;
    min-height: 100vh;
}

.container {
    width: min(100% - 2rem, 1300px);
    margin: 0 auto;
    padding: 0 1rem;
}

/* 3. ШАПКА И МЕНЮ (Тот самый дизайн со скрина) */
header {
    padding: 2rem 0;
    display: flex;
    flex-wrap: nowrap; /* Чтобы шапка не разваливалась */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

header .logo {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    white-space: nowrap;
    font-weight: 700;
}

header nav ul {
    display: flex;
    flex-wrap: nowrap; /* ГАРАНТИЯ, что меню будет в одну линию */
    gap: clamp(1rem, 2vw, 2.5rem); /* Расстояние между кнопками */
    list-style: none;
    align-items: center;
}

header nav ul li {
    white-space: nowrap; /* Запрет переноса слов типа "Interesting Facts" */
}

header nav ul li a {
    color: beige;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

/* Эффекты меню (Синее свечение) */
header nav ul li a:hover, 
header nav ul li.active a {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
    border-bottom: 2px solid #3498db;
}

/* --- ЦЕНТРОВКА И СТИЛЬ ГЛАВНОЙ СТРАНИЦЫ --- */

.hero {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; 
    align-items: center !important;     
    text-align: center !important;      
    min-height: 75vh; /* Чуть увеличил, чтобы текст был ровно по центру */
    padding: 20px 0;
}

.hero--info {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* УБИРАЕМ РАМКИ ТОЛЬКО НА ГЛАВНОЙ (внутри .hero) */
.hero .content-card, 
.hero .info-item,
.hero .build {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    transform: none !important; /* Убираем "подпрыгивание" на главной */
}

/* ОТСТУПЫ МЕЖДУ ТЕКСТОМ НА ГЛАВНОЙ */
.hero--info h1 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
    margin-bottom: 35px !important; /* Отступ под главным заголовком */
}

.hero--info h2 {
    margin-bottom: 20px !important; /* Отступ под флагами */
}

.hero .content-card h2 {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

.hero .info-grid {
    margin-top: 40px !important; /* Отступ перед блоками Language/Culture */
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important; /* Расстояние между пунктами Language и Culture */
}

.hero .info-item h3 {
    margin-bottom: 12px !important;
    color: #3498db;
    font-size: 1.5rem !important;
}

/* Эффект ховера на главной делаем минимальным, только для текста */
.hero .info-item:hover {
    background: none !important;
}

/* --- ФУТЕР --- */
.footer {
    padding: 2rem 0;
    text-align: center;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: auto; /* Прижимает футер к низу */
}

/* --- АДАПТИВ --- */
@media (max-width: 850px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
}
