/* --- RESET & BASIC CSS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1a365d;   /* Темно-синій (надійний, авто-стиль) */
    --accent-color: #d97706;    /* Теплий акцентний (акценти, кнопки) */
    --text-color: #2d3748;      /* Основний колір тексту (легко читається) */
    --bg-light: #f7fafc;        /* Світлий фон для карт/блоків */
    --border-color: #e2e8f0;    /* Колір ліній та кордонів */
    --white: #ffffff;
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CONTAINER --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- ADSTERRA PLACEHOLDERS --- */
.ad-placeholder {
    background-color: var(--bg-light);
    border: 1px dashed #cbd5e0;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    margin: 25px 0;
}

.ad-banner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: auto;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--white);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.5;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* --- RESPONSIVE / MOBILE-FIRST OVERRIDES --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        display: flex;
    }
}
