* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
}

/* =========================
   TOP NAV
========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    display: inline-block;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;

    /* lepszy spacing w menu */
    gap: 18px;
}

.nav-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;

    /* przyjemniejsze przejścia */
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
    background: #eef2ff;
}

.nav-link.active {
    background: #e0e7ff;
}

/* PREMIUM CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* oddech od reszty menu */
    margin-left: 6px;

    padding: 11px 18px;
    border-radius: 14px;

    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-decoration: none;

    color: #fff;

    /* premium look */
    background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.25),
        0 6px 14px rgba(109, 40, 217, 0.18);

    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(37, 99, 235, 0.28),
        0 10px 22px rgba(109, 40, 217, 0.20);
    filter: saturate(1.05);
}

.nav-cta:active {
    transform: translateY(0);
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.22),
        0 6px 14px rgba(109, 40, 217, 0.16);
}

/* lepszy focus (accessibility) */
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-dd > summary:focus-visible,
.nav-dd-menu a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* Dropdown (details/summary) */
.nav-dd {
    position: relative;
}

.nav-dd>summary {
    list-style: none;
    cursor: pointer;
}

.nav-dd>summary::-webkit-details-marker {
    display: none;
}

.nav-dd-menu {
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 10px;
    display: grid;
    gap: 4px;
}

.nav-dd-menu a {
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    padding: 10px 10px;
    border-radius: 10px;
    transition: background 0.18s ease;
}

.nav-dd-menu a:hover {
    background: #f3f4f6;
}

/* Mobile menu */
.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    margin: 3px 0;
}

@media (max-width: 900px) {
    .nav-burger {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        padding: 10px 0 4px;
    }

    .nav-wrap {
        flex-wrap: wrap;
    }

    .nav-toggle:checked~.nav {
        display: flex;
    }

    .nav-dd-menu {
        position: static;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 6px;
    }

    /* CTA w mobile: pełna szerokość i bardziej “app-like” */
    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 12px 16px;
        border-radius: 14px;
    }
}

/* =========================
   TYPOGRAFIA
========================= */

h1 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.small {
    font-size: 0.9rem;
}

.muted {
    color: #6b7280;
}

.page-head {
    padding-top: 1.2rem;
}

.page-head p {
    max-width: 780px;
}

.list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.list li {
    margin: 6px 0;
}

/* =========================
   HERO + CTA
========================= */

.hero {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.hero h1 {
    font-size: 2.6rem;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.hero p {
    max-width: 760px;
    font-size: 1.05rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1.2rem;
}

.cta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.cta .title {
    font-weight: 800;
}

.cta .desc {
    color: #6b7280;
    margin-top: 6px;
}

/* =========================
   GRID & CARDS
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.meta {
    color: #6b7280;
    font-size: 0.9rem;
}

/* =========================
   CHIPS & BADGES
========================= */

.chips {
    margin-top: 1rem;
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.75rem;
    margin: 3px;
}

.badges {
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    margin: 3px;
}

/* =========================
   FORMY
========================= */

.form {
    max-width: 640px;
    margin-top: 1rem;
}

.label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.input,
.select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    font: inherit;
}

.btn {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 0;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.92;
}

.hp {
    display: none;
}

/* =========================
   FILTRY
========================= */

.filters {
    margin: 1rem 0 1.5rem;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0;
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.95rem;
    color: #374151;
}

/* =========================
   BREADCRUMBS
========================= */

.breadcrumbs {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs span {
    margin: 0 6px;
}

.hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    padding-bottom: 3rem;
}

/* =========================
   NOTE + KPI
========================= */

.note {
    border-left: 4px solid #2563eb;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .kpi {
        grid-template-columns: 1fr;
    }
}

.kpi .card {
    padding: 14px;
}

.kpi .num {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.kpi .lbl {
    color: #6b7280;
    font-weight: 600;
}

/* =========================
   TIMELINE (PROGRESS + WEEKS)
========================= */

.timeline {
    margin-top: 1rem;
}

.tl-head {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tl-progress {
    font-weight: 700;
    color: #111827;
}

.tl-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.tl-bar>span {
    display: block;
    height: 100%;
    width: 0%;
    background: #2563eb;
}

.tl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 900px) {
    .tl-grid {
        grid-template-columns: 1fr;
    }
}

.tl-week {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.tl-week h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

/* =========================
   TIMELINE ROWS (ŁADNE CHECKBOXY)
========================= */

.tl-row {
    display: grid;
    grid-template-columns: 22px 46px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin: 8px 0;
}

.tl-row:hover {
    background: #f3f4f6;
}

.tl-check {
    margin: 2px 0 0;
    width: 18px;
    height: 18px;
}

.tl-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0 10px;
    width: fit-content;
}

.tl-text {
    display: grid;
    gap: 4px;
}

.tl-title {
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.tl-desc {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.35;
}

/* stan zaznaczony (nowoczesne przeglądarki) */
.tl-row:has(.tl-check:checked) {
    border-color: #bfdbfe;
    background: #eff6ff;
}

@media (max-width: 900px) {
    .tl-row {
        grid-template-columns: 22px 42px 1fr;
    }
}

/* =========================
ANKIETA START W CYBER
========================= */

.poll-btn {
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.poll-btn:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
}

.poll-row {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.poll-name {
    font-weight: 600;
}

.poll-bar {
    background: #eee;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.poll-bar span {
    display: block;
    height: 100%;
    background: var(--brand);
    width: 0%;
}

.poll-percent {
    text-align: right;
    font-weight: 600;
}