:root {
    --navy: #12234d;
    --green: #2b8b79;
    --green-dark: #1f7465;
    --bg: #edf2f4;
    --text: #1f2732;
    --header: 108px;
    --max: 1280px;
}

/* =====================================================
   PODSTAWOWE USTAWIENIA
   ===================================================== */
* {
    box-sizing: border-box;
}

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

body {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* =====================================================
   NAGŁÓWEK
   ===================================================== */
header {
    height: var(--header);
    background: #ffffff;
    display: flex;
    align-items: center;
}

.header-inner {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* =====================================================
   LOGO
   ===================================================== */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

/* GŁÓWNE USTAWIENIE ROZMIARU LOGO */
.brand-logo {
    display: block;
    width: 250px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

/* =====================================================
   MENU
   ===================================================== */
nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 15px;
}

nav a {
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

/* =====================================================
   GŁÓWNA CZĘŚĆ STRONY
   ===================================================== */
main {
    min-height: calc(100vh - var(--header));
    display: flex;
    align-items: center;
}

/* =====================================================
   STRONA GŁÓWNA
   ===================================================== */
.hero {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.80fr 1.20fr;
    gap: 62px;
    align-items: center;
    padding: 54px 0 58px;
}

/* Mały tekst nad głównym tekstem */
.kicker {
    margin: 0 0 28px;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17314e;
    font-weight: 400;
}

/* Główny tekst strony */
.lead {
    margin: 0 0 24px;
    max-width: 500px;
    font-size: 24px;
    line-height: 1.35;
}

/* =====================================================
   ADOS / ADI-R / ASRS
   ===================================================== */
.tests {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.tests li {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    font-size: clamp(40px, 4.3vw, 44px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tests li + li {
    margin-top: 6px;
}

/* =====================================================
   TEKST POD TESTAMI
   ===================================================== */
.body-copy {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 16px;
}

.body-copy:last-child {
    margin-bottom: 0;
}

/* =====================================================
   ZDJĘCIE NA STRONIE GŁÓWNEJ
   ===================================================== */
.photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* =====================================================
   PROSTE PODSTRONY
   diagnoza / terapia / kontakt
   ===================================================== */
.simple-page {
    width: min(900px, calc(100% - 64px));
    margin: 0 auto;
    padding: 60px 0;
}

.simple-page h1 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--navy);
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1;
}

.simple-page p {
    max-width: 680px;
    font-size: 22px;
    line-height: 1.55;
}

/* =====================================================
   OBRAZEK NA PODSTRONIE DIAGNOZA
   ===================================================== */
.diagnoza-image {
    width: 450px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 30px 0;
}

/* =====================================================
   TABLET / MNIEJSZY EKRAN
   ===================================================== */
@media (max-width: 980px) {
    header {
        height: auto;
        padding: 16px 0;
    }

    .header-inner {
        width: min(100% - 32px, var(--max));
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    /* Logo na mniejszym ekranie */
    .brand-logo {
        width: 220px;
        max-height: 85px;
    }

    /* Menu */
    nav {
        width: 100%;
        overflow-x: auto;
        gap: 24px;
        padding-bottom: 2px;
    }

    main {
        min-height: 0;
    }

    /* Strona główna przechodzi do jednej kolumny */
    .hero {
        width: min(100% - 32px, var(--max));
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 42px 0;
    }

    .photo {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .simple-page {
        width: min(100% - 32px, 900px);
    }
}

/* =====================================================
   TELEFON
   ===================================================== */
@media (max-width: 560px) {
    .brand {
        max-width: 100%;
    }

    .brand-logo {
        width: 190px;
        max-width: 100%;
        height: auto;
    }

    nav {
        font-size: 14px;
        gap: 18px;
    }

    .lead {
        font-size: 17px;
    }

    .body-copy {
        font-size: 15px;
    }

    .photo {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .simple-page p {
        font-size: 18px;
    }
}