/* ================================================================
   STRONA INTERNETOWA - PS WPR 2023-2027
   Kolorystyka zgodna z Księgą Wizualizacji:
   - Niebieski PS WPR: #004393 (RGB 0,67,147)
   - Zielony PS WPR:   #00E21A (RGB 226,0,26) - użyty jako akcent
   - Niebieski UE:     #000099
   - Żółty UE:         #FFCC00
   - Typografia:        Tahoma (sekcja 4.10 Księgi)
   ================================================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a {
    color: #004393;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- CONTAINER --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   PASEK LOGOTYPÓW (góra strony)
   Wg Księgi: logo PS WPR po lewej, symbol UE po prawej
   ================================================================ */
.logo-bar {
    background: #fff;
    border-bottom: 3px solid #004393;
    padding: 12px 0;
}

.logo-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-bar__left {
    flex-shrink: 0;
}

.logo-ps-wpr {
    height: 70px;
    width: auto;
}

.logo-bar__right {
    flex-shrink: 0;
}

.logo-eu-znak {
    height: 55px;
    width: auto;
}

/* ================================================================
   NAWIGACJA
   ================================================================ */
.header {
    background: #004393;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav__list li a {
    display: block;
    padding: 14px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.nav__list li a:hover,
.nav__list li a:focus {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    background: linear-gradient(135deg, #004393 0%, #002a5c 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.hero__title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================================================
   SEKCJE
   ================================================================ */
.section {
    padding: 60px 0;
}

.section--alt {
    background: #f5f7fa;
}

.section__title {
    font-size: 1.6rem;
    color: #004393;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #004393;
    display: inline-block;
}

.section__content p {
    margin-bottom: 16px;
}

.section__content h3 {
    color: #004393;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.section__content ul {
    margin: 0 0 16px 24px;
}

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

/* --- Two column layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* --- Action list --- */
.action-list {
    list-style: none;
    margin-left: 0 !important;
}

.action-list li {
    padding: 14px 16px 14px 50px;
    background: #fff;
    border-left: 4px solid #004393;
    margin-bottom: 12px;
    position: relative;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.action-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 14px;
    color: #004393;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Members grid --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.member-card {
    background: #f5f7fa;
    border: 1px solid #e0e5ec;
    border-top: 4px solid #004393;
    padding: 24px;
    border-radius: 0 0 6px 6px;
}

.member-card__name {
    color: #004393;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.member-card__role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.member-card__desc {
    font-size: 0.95rem;
}

/* --- Finance box --- */
.finance-box {
    background: #fff;
    border: 2px solid #004393;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    max-width: 600px;
}

.finance-box__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.finance-box__item + .finance-box__item {
    border-top: 1px solid #e0e5ec;
}

.finance-box__item--highlight {
    background: #004393;
    color: #fff;
}

.finance-box__label {
    font-weight: bold;
}

.finance-box__value {
    font-size: 1.3rem;
    font-weight: bold;
}

.finance-note {
    font-style: italic;
    color: #555;
}

/* --- News list --- */
.news-list {
    display: grid;
    gap: 24px;
}

.news-item {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    border-left: 4px solid #004393;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.news-item__date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.news-item__title {
    font-size: 1.15rem;
    color: #004393;
    margin-bottom: 8px;
}

.news-item__excerpt {
    color: #555;
}

/* --- Gallery --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.gallery__placeholder {
    width: 100%;
    height: 220px;
    background: #dde3eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8899aa;
    font-size: 0.95rem;
}

/* --- Contact form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004393;
    box-shadow: 0 0 0 2px rgba(0,67,147,0.15);
}

.btn {
    display: inline-block;
    background: #004393;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.btn:hover {
    background: #002a5c;
}

/* ================================================================
   STOPKA
   ================================================================ */
.footer__logos {
    background: #fff;
    border-top: 3px solid #004393;
    padding: 16px 0;
}

.footer__bottom {
    background: #004393;
    color: #fff;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

.footer__bottom p {
    margin-bottom: 6px;
}

.footer__bottom p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
        margin-left: auto;
    }

    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #004393;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .nav__list--open {
        display: flex;
    }

    .nav__list li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .logo-bar__inner {
        justify-content: center;
        text-align: center;
    }

    .logo-bar__eu {
        flex-direction: row;
    }

    .logo-bar__eu-text {
        text-align: center;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.3rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .finance-box__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .logo-ps-wpr {
        height: 50px;
    }

    .logo-eu-flag {
        height: 40px;
    }

    .logo-bar__eu-text {
        font-size: 12px;
    }

    .hero__title {
        font-size: 1.3rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }
}
