//* =========================================
   1. ЗАГАЛЬНІ НАЛАШТУВАННЯ (ДЛЯ ВСІХ СТОРІНОК)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Montserrat:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Навігація (Меню) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9); /* Темний фон, щоб текст не просвічувався */
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span { color: #ff0000; }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 25px; }

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: #ff0000; }

/* =========================================
   2. ГОЛОВНА СТОРІНКА (INDEX.HTML)
   ========================================= */
.home-body {
    height: 100vh;
    overflow: hidden; /* На головній немає скролу */
}

.main-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 10vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.btn-primary {
    background: #ff0000;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: 0.3s;
}

.btn-primary:hover { background: #fff; color: #000; }

/* =========================================
   3. СТОРІНКА ЛЕГЕНД (LEGENDS.HTML)
   ========================================= */
.sub-page {
    overflow-y: auto; /* Тут скрол дозволено */
}

.content-wrapper {
    padding-top: 120px; /* Відступ, щоб текст не ховався під меню */
    padding-bottom: 50px;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ff0000;
    text-transform: uppercase;
}

.legend-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Щоб на мобілках ставали один під одного */
}

.legend-item {
    background: #fff; /* Читабельний фон */
    color: #1a1a1a;
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legend-image {
    height: 300px;
    width: 100%;
}

.legend-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.legend-text {
    padding: 25px;
}

.legend-text h2 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.legend-tag {
    color: #ff0000;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.legend-text p {
    font-size: 0.95rem;
    line-height: 1.6;
}