/* =========================================================
   BEDSTRAW – STYLE GŁÓWNE + AUTO DARK/LIGHT MODE
   ========================================================= */

/* === ZMIENNE KOLORÓW (LIGHT MODE – DOMYŚLNY) === */
:root {
    --bg: #FAF7F0;
    --alt: #C9D3D8;
    --text: #2F2F2F;
    --text-muted: #555;
    --border: #ddd;
    --image-bg: #f5f5f5;
    --link: #000;
}

/* === AUTO DARK MODE === */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --alt: #1e1e1e;
        --text: #e6e6e6;
        --text-muted: #aaa;
        --border: #333;
        --image-bg: #1a1a1a;
        --link: #e6e6e6;
    }
}

/* === RESET === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    background: var(--alt);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

/* =========================================================
   NAV
   ========================================================= */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--link);
    font-size: 14px;
}

/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--link);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: var(--bg);
    padding: 60px 0 50px;
}

.hero-inner {
    text-align: center;
}

.hero-logo {
    max-width: 100%;
    max-height: 420px;
    height: auto;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    color: var(--text);
}

p, li {
    color: var(--text);
}

/* =========================================================
   IMAGE BLOCKS
   ========================================================= */

.image-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
    align-items: start;
}

.image-block img {
    width: 100%;
    height: auto;
    object-fit: contain;           /* NIC NIE UCINA */
    border-radius: 8px;
    background: var(--image-bg);
    display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: var(--alt);
    text-align: center;
    padding: 16px 0;
    color: var(--text-muted);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border: 1px solid var(--border);
    }

    .main-nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .image-block {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   POPRAWNE PRZEWIJANIE POD STICKY HEADER
   ========================================================= */

:target {
    scroll-margin-top: 120px;
}
