/* ===== ЗАГАЛЬНІ НАЛАШТУВАННЯ ===== */
@font-face {
    font-family: 'ShellyAllegroC';
    src: url('fonts/ShellyAllegroC.ttf') format('truetype');
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}

/* ===== HEADER ===== */
header {
    background-color: rgba(139, 69, 19, 0.9);
    text-align: center;
    padding: 25px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

header h1 {
    font-family: 'ShellyAllegroC', cursive;
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* ===== НАВІГАЦІЯ ===== */
nav {
    background: linear-gradient(to bottom, rgba(210,180,140,0.9), rgba(180,150,110,0.9));
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-family: 'ShellyAllegroC', cursive;
    font-weight: 700;
    font-size: 20px;
    transition: all .3s;
}

nav a:hover, nav a.active {
    background-color: rgba(139, 69, 19, 0.8);
    color: #fff;
}

/* Підменю */
nav ul li { position: relative; }
nav ul li ul {
    display: none;
    position: absolute;
    background: rgba(224,192,151,0.98);
    min-width: 250px;
    top: 100%;
    left: 0;
    flex-direction: column;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

nav ul li:hover > ul { display: flex; }
nav ul li ul a { color: #333; font-size: 18px; border-bottom: 1px solid rgba(0,0,0,0.1); }

/* ===== КОНТЕНТ ===== */
main { flex: 1; padding: 40px 20px; }

.page-overlay {
    background: rgba(0,0,0,0.4);
    min-height: 100%;
    padding: 20px;
    border-radius: 15px;
}

.section {
    max-width: 1000px;
    margin: 0 auto 30px;
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 12px;
    line-height: 1.7;
}

.section h2 {
    font-family: 'ShellyAllegroC', cursive;
    color: #f5e3a1;
    font-size: 2.5em;
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(139, 69, 19, 0.9);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ===== МОБІЛЬНА ВЕРСІЯ ===== */
.burger {
    display: none;
    cursor: pointer;
    padding: 15px;
    background: #8b4513;
    text-align: center;
    font-size: 22px;
}

@media (max-width: 768px) {
    .burger { display: block; }
    nav ul { display: none; flex-direction: column; }
    nav ul.show { display: flex; }
    nav ul li ul { position: static; min-width: 100%; background: rgba(255,255,255,0.1); }
    header h1 { font-size: 2em; }
}