/*
 * Wspolny arkusz podstron projektow (/pl/projects/*, /en/projects/*).
 *
 * Powstal z blokow <style> powielonych w obu wersjach jezykowych strony o
 * przejazdach. Trzymanie tego w jednym pliku ma dwa powody: wersja polska i
 * angielska nie rozjezdzaja sie przy kazdej poprawce, a przegladarka pobiera
 * arkusz raz na cala witryne.
 *
 * Paleta jest ta sama co w style.css: zieleń morska #0f766e jako kolor akcji,
 * cyjan #0097b2 jako akcent marki. Wczesniej strona miala trzeci, przypadkowy
 * niebieski (#2563eb) w przyciskach - zostal usuniety, bo rozbijal spojnosc.
 */

:root {
    --project-ink: #202124;
    --project-muted: #5f6368;
    --project-line: #e5e7eb;
    --project-surface: #f9fafb;
    --project-accent: #0f766e;
    --project-accent-soft: #0097b2;
}

/* ---------------------------------------------------------------- Hero -- */

/*
 * Naglowek strony. Gradient laczy oba kolory marki, zamiast jasnego cyjanu,
 * ktory przy bialym tekscie mial za niski kontrast.
 */
.project-hero {
    padding: 72px 0 64px;
    background: linear-gradient(135deg, #0f766e 0%, #0097b2 100%);
    color: #fff;
    margin-bottom: 64px;
}

.project-hero .container {
    max-width: 880px;
}

.project-hero h1 {
    font-size: 44px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.project-hero-lead {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

/* Kropka statusu - drobny sygnal, ze projekt jest w toku. */
.project-status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7b7;
}

/* ------------------------------------------------------------ Nawigacja -- */

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--project-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.back-link:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------- Sekcje -- */

.project-section {
    margin-bottom: 72px;
}

/*
 * Nadtytul sekcji. Daje strukture bez mnozenia poziomow naglowkow -
 * czytelnik widzi podzial, a drzewo dokumentu zostaje plaskie (h1 > h2).
 */
.section-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--project-accent-soft);
    margin-bottom: 10px;
}

.project-section h2 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--project-ink);
    letter-spacing: -0.3px;
}

.overview-content {
    max-width: 760px;
    line-height: 1.8;
    color: var(--project-muted);
}

.overview-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

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

/* ------------------------------------------------------ Karty ustalen -- */

/*
 * Dwie kolumny, nie cztery. Przy czterech kartach w rzedzie kolumna ma ~270 px
 * i opis lamie sie na siedem linii po trzy slowa - siatka 2x2 daje dlugosc
 * wiersza, ktora da sie czytac.
 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 940px;
}

.feature-card {
    padding: 28px;
    background: var(--project-surface);
    border: 1px solid var(--project-line);
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/*
 * Numer zamiast emoji. Emoji renderuja sie inaczej w kazdym systemie i przy
 * tekscie analitycznym wygladaja obco; numeracja czyta sie jako lista ustalen
 * i korzysta z tego samego okraglego znacznika co karty na stronie glownej.
 */
.feature-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--project-ink);
    line-height: 1.4;
}

.feature-card p {
    color: var(--project-muted);
    line-height: 1.65;
    font-size: 15px;
    margin: 0;
}

/* ------------------------------------------------------ Pobranie raportu -- */

.report-download-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--project-surface);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--project-line);
    max-width: 940px;
}

.report-download-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--project-accent);
}

.report-download-body {
    flex: 1 1 auto;
    min-width: 0;
}

.report-download-section h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--project-ink);
}

.report-download-section p {
    color: var(--project-muted);
    margin-bottom: 20px;
    line-height: 1.65;
    font-size: 15px;
}

/* Format i waga pliku - zeby klikniecie nie bylo niespodzianka. */
.report-meta {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #80868b;
}

/* ------------------------------------------------------------ Przyciski -- */

/*
 * Przyciski przejmuja kolor z style.css (.btn-primary = #0f766e). Tutaj
 * zostaja tylko wymiary i ustawienie ikony wzgledem tekstu.
 */
.project-section .btn-primary,
.project-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.project-section .btn-primary svg,
.project-section .btn-secondary svg {
    flex: 0 0 auto;
}

/* ------------------------------------------------------------- Kontakt -- */

.project-contact {
    background: var(--project-surface);
    border: 1px solid var(--project-line);
    border-left: 4px solid var(--project-accent);
    border-radius: 12px;
    padding: 32px;
    max-width: 940px;
}

.project-contact h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--project-ink);
}

.project-contact p {
    color: var(--project-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* --------------------------------------------------------------- Mobile -- */

@media (max-width: 768px) {
    .project-hero {
        padding: 48px 0 44px;
        margin-bottom: 48px;
    }

    .project-hero h1 {
        font-size: 30px;
    }

    .project-hero-lead {
        font-size: 16px;
    }

    .project-section {
        margin-bottom: 56px;
    }

    .project-section h2 {
        font-size: 24px;
    }

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

    .feature-card {
        padding: 24px;
    }

    /* Ikona nad trescia zamiast obok - w kolumnie 320 px nie ma na nia miejsca. */
    .report-download-section {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .project-contact {
        padding: 24px;
    }

    .project-section .btn-primary,
    .project-section .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .feature-card,
    .feature-card:hover {
        transition: none;
        transform: none;
    }
}
