/* ==========================================================================
   home.css — komponenty strony glownej sendyk.pl
   Wymaga wczesniejszego zaladowania system.css (tokeny, navbar, stopka, przyciski).
   ========================================================================== */

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.page-home #hero {
    position: relative;
    background: var(--navy);
    padding: 92px 0 88px;
    overflow: hidden;
}

/* siatka techniczna zamiast wzoru z podwójnych kwadratów */
.page-home #hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-home #hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 15% 0%, rgba(31, 92, 135, .30) 0%, transparent 62%);
    pointer-events: none;
}

.page-home #hero > .container { position: relative; z-index: 1; }

.page-home .hero-text h1 {
    font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.028em;
    color: #FFFFFF;
    margin: 0 0 14px;
}

.page-home .hero-role {
    font-family: var(--mono);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-on-dark);
    margin: 0 0 26px;
}

.page-home .hero-role { font-size: .875rem; }

.page-home .hero-role::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-on-dark);
    margin-top: 20px;
}

.page-home .hero-lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .84);
    max-width: 600px;   /* pomiar: 73 znaki w wierszu */
    margin: 0;
}

.page-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.page-home .hero-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    font-family: var(--mono);
    font-size: .8125rem;
    letter-spacing: .06em;
    color: var(--on-navy);
}

/* portret — kwadrat zamiast koła */
.page-home .hero-portrait {
    display: flex;
    justify-content: flex-end;
}

.page-home .hero-portrait img {
    width: 100%;
    max-width: 264px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

/* --------------------------------------------------------------------------
   7. Sekcja 01 — Mój styl pracy
   -------------------------------------------------------------------------- */
.page-home .wsp-intro {
    max-width: 520px;   /* pomiar: 73 znaki w wierszu */
    border-left: 2px solid var(--accent);
    padding-left: 26px;
    margin-bottom: 60px;
}


.page-home .wsp-intro p + p { margin-top: 14px; }

.page-home .wsp-intro p:not(.lead) {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
}

.page-home .group {
    margin-bottom: 60px;
}

.page-home .group-title {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    position: relative;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    margin-bottom: 40px;
}

.page-home .group-title::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
}

.page-home .group--limit .group-title::before { background: var(--line-strong); }

/* 22 pozycje: lista z linią marginesową zamiast kart z cieniem */
.page-home .trait-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    row-gap: 30px;
    align-items: start;
}

.page-home .trait {
    border-left: 2px solid var(--accent);
    padding: 2px 0 2px 22px;
}

.page-home .group--limit .trait { border-left-color: var(--line-strong); }

.page-home .trait h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 10px;
}

.page-home .trait p {
    font-size: .9375rem;
    line-height: 1.68;
    color: var(--muted);
    max-width: 62ch;
}

/* dwa panele zamykające sekcję — obok siebie */
.page-home .wsp-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* panel „Ważna uwaga" — zamiast żółtego alertu */
.page-home .wsp-note {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted);
    padding: 30px 34px;
}

.page-home .wsp-note h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
}

.page-home .wsp-note p {
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--ink-2);
}

/* panel „Idealne środowisko" */
.page-home .wsp-ideal {
    background: var(--navy);
    border-left: 3px solid var(--accent-on-dark);
    padding: 32px 36px;
}

.page-home .wsp-ideal h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 14px;
}

.page-home .wsp-ideal p {
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--on-navy);
}

/* --------------------------------------------------------------------------
   8. Sekcja 02 — Doświadczenie i edukacja
   -------------------------------------------------------------------------- */
.page-home .col-label {
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-on-dark);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hair-dark);
    margin: 0 0 36px;
}

.page-home .timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 26px;
    border-left: 1px solid var(--hair-dark);
}

.page-home .tl-item {
    position: relative;
    padding-bottom: 38px;
}

.page-home .timeline > .tl-item:last-child { padding-bottom: 0; }

.page-home .tl-item::before {
    content: "";
    position: absolute;
    left: -29.5px;
    top: 8px;
    width: 7px;
    height: 7px;
    background: var(--accent-on-dark);
}

.page-home .tl-date {
    font-family: var(--mono);
    font-size: .8125rem;
    letter-spacing: .04em;
    color: var(--accent-on-dark);
    margin-bottom: 8px;
}

.page-home .tl-role {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.page-home .tl-org {
    font-size: .9375rem;
    color: var(--on-navy);
}

.page-home .tl-points {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.page-home .tl-points li {
    position: relative;
    padding-left: 20px;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--on-navy);
    margin-bottom: 8px;
    max-width: 58ch;
}

.page-home .tl-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 10px;
    height: 1px;
    background: var(--accent-on-dark);
}

.page-home .cert-panel {
    border: 1px solid var(--hair-dark);
    border-left: 2px solid var(--accent-on-dark);
    padding: 26px 28px;
    margin-top: 8px;
}

.page-home .cert-panel .tl-role { margin-bottom: 0; }
.page-home .cert-panel .tl-points { margin-top: 14px; }

/* --------------------------------------------------------------------------
   9. Sekcja 03 — Wybrane projekty
   -------------------------------------------------------------------------- */
.page-home .proj-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.page-home .proj {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 32px 34px;
    display: flex;
    flex-direction: column;
    transition: border-color .14s ease;
}

.page-home .proj:hover { border-color: var(--line-strong); }

.page-home .proj-cat {
    font-family: var(--mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.page-home .proj h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-home .proj-desc {
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 52ch;
    margin-bottom: 24px;
    flex: 1 1 auto;
}

.page-home .proj-all { margin-top: 32px; }

/* --------------------------------------------------------------------------
   10. Sekcja 04 — Kompetencje (arkusz specyfikacji)
   -------------------------------------------------------------------------- */
.page-home .spec {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.page-home .spec-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1.55fr);
    column-gap: 32px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.page-home .spec-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.page-home .spec-level {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 3px;
}

.page-home .spec-meter {
    display: flex;
    gap: 3px;
    margin-top: 8px;
}

.page-home .spec-meter i {
    display: block;
    width: 18px;
    height: 4px;
    background: var(--line);
}

.page-home .spec-level[data-level="3"] .spec-meter i { background: var(--accent); }
.page-home .spec-level[data-level="2"] .spec-meter i:nth-child(-n+2) { background: var(--accent); }
.page-home .spec-level[data-level="1"] .spec-meter i:nth-child(1) { background: var(--accent); }

.page-home .spec-desc {
    grid-column: 3;
    grid-row: 1;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 56ch;
}


/* --------------------------------------------------------------------------
   Zakresy responsywne — strona glowna
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .page-home .trait-list { column-gap: 44px; }
    .page-home .spec-row { grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1.35fr); }
}

@media (max-width: 991.98px) {
    .page-home #hero { padding: 64px 0 72px; }

    .page-home .hero-portrait {
        justify-content: flex-start;
        margin-bottom: 36px;
    }
    .page-home .hero-portrait img { max-width: 210px; }

    .page-home .trait-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 30px;
    }

    .page-home .proj-grid { grid-template-columns: minmax(0, 1fr); }

    .page-home .wsp-panels { grid-template-columns: minmax(0, 1fr); }

    .page-home .spec-row {
        grid-template-columns: minmax(0, 1fr) 160px;
        row-gap: 10px;
    }
    .page-home .spec-desc {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 68ch;
    }
}

@media (max-width: 767.98px) {
    .page-home #hero { padding: 48px 0 60px; }
    .page-home .hero-portrait img { max-width: 168px; }
    .page-home .hero-lead { font-size: 1rem; }

    .page-home .hero-actions { gap: 10px; }
    .page-home .hero-actions .btn-a,
    .page-home .hero-actions .btn-b { width: 100%; justify-content: center; }

    .page-home .wsp-intro {
        padding-left: 20px;
        margin-bottom: 52px;
    }

    .page-home .group { margin-bottom: 52px; }
    .page-home .group-title { font-size: 1.1875rem; margin-bottom: 30px; }

    .page-home .trait { padding-left: 18px; }

    .page-home .wsp-panels { grid-template-columns: minmax(0, 1fr); gap: 20px; }

    .page-home .wsp-note,
    .page-home .wsp-ideal { padding: 24px 22px; }

    .page-home .timeline { padding-left: 22px; }
    .page-home .tl-item::before { left: -25.5px; }

    .page-home .proj { padding: 26px 24px; }

    .page-home .spec-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
        padding: 20px 0;
    }
    .page-home .spec-level { grid-column: 1; grid-row: 2; }
    .page-home .spec-desc { grid-column: 1; grid-row: 3; }
    .page-home .spec-meter { margin-top: 6px; }
}

