:root {
    --navy: #163b65;
    --blue: #086bb7;
    --blue-dark: #07518a;
    --sky: #e9f5ff;
    --orange: #e96f26;
    --orange-dark: #b9460c;
    --yellow: #ffd66b;
    --green: #197a52;
    --ink: #142d46;
    --muted: #2d3943;
    --surface: #ffffff;
    --surface-alt: #f4f8fc;
    --border: #d7e4ef;
    --shadow: 0 18px 50px rgba(20, 55, 88, 0.13);
    --radius-lg: 30px;
    --radius-md: 18px;
    --max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    display: flow-root;
    margin: 0 auto;
    max-width: 1250px;
    -webkit-box-shadow: 0px 0px 18px -3px rgba(0, 0, 0, 0.66);
    box-shadow: 0px 0px 18px -3px rgba(0, 0, 0, 0.66);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: #fbfdff;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #c04408;
    outline-offset: 3px;
}

[id] {
    scroll-margin-top: 7rem;
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
}

.site-header {
    position: sticky;
    top: 0.75rem;
    z-index: 30;
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0.75rem auto 0;
    padding: 0.65rem 0.75rem 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 228, 239, 0.9);
    border-radius: 17px;
    box-shadow: 0 10px 35px rgba(20, 55, 88, 0.11);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    line-height: 1.15;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--orange), var(--orange-dark));
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 7px 17px rgba(185, 70, 12, 0.25);
}

.brand>span:last-child {
    display: grid;
}

.brand strong {
    font-size: 0.94rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.main-nav a {
    padding: 0.55rem 0.65rem;
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 750;
}

.main-nav a:hover {
    color: var(--blue);
    background: var(--surface-alt);
}

.main-nav .nav-cta {
    margin-left: 0.35rem;
    padding-inline: 0.9rem;
    color: #fff;
    background: var(--navy);
}

.main-nav .nav-cta:hover {
    color: #fff;
    background: var(--blue-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    padding: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.menu-toggle i {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 2px;
}

.hero {
    border: 1px solid #bdbcbc;
    align-items: flex-start;
    width: min(calc(100% - 2rem), var(--max-width));
    min-height: 650px;
    margin: -5rem auto 0;
    padding: 10.5rem 4rem 4.5rem;
    display: grid;
    grid-template-columns: 1fr 0.58fr;
    gap: 4rem;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: radial-gradient(circle at 90% 15%, rgba(255, 214, 107, 0.6), transparent 27%), radial-gradient(circle at 10% 95%, rgba(8, 107, 183, 0.13), transparent 25%), linear-gradient(135deg, #eff8ff, #fffdf8);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2rem, 3.5vw, 4.3rem);
    line-height: 1.2;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--blue);
}

.hero__lead {
    max-width: 690px;
    margin: 1.6rem 0 0;
    color: var(--muted);
    font-size: 1.17rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.7rem 1.25rem;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 12px 24px rgba(8, 107, 183, 0.23);
}

.button--secondary {
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--border);
}

.hero__notice {
    align-self: end;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--navy);
    background: var(--yellow);
    font-size: 1.4rem;
    font-weight: 900;
}

.hero__notice p {
    margin: 0.35rem 0 0;
    color: #d9e7f2;
    font-size: 0.91rem;
}

.quick-info {
    width: min(calc(100% - 4rem), 1060px);
    margin: -2rem auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.quick-info article {
    padding: 1.3rem 1.5rem;
    display: grid;
    border-right: 1px solid var(--border);
}

.quick-info article:last-child {
    border: 0;
}

.quick-info strong {
    color: var(--orange-dark);
    font-size: 1.45rem;
}

.quick-info span {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.35;
}

.year {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.year__label {
    margin: 0;
    color: #cf0000;
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 4.3rem);
    line-height: 1.2;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.section {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 6.5rem 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 3rem;
}

.section-heading h2,
.after-results h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.section-heading>p:last-child {
    color: var(--muted);
    font-size: 1.04rem;
}

.section-heading--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
    gap: 5rem;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.steps li {
    padding: 1.7rem 0;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.step-number {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 900;
}

.steps h3 {
    margin: 0;
    font-size: 1.4rem;
}

.steps p {
    max-width: 850px;
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.section--tinted {
    width: 100%;
    padding-inline: max(1rem, calc((100% - var(--max-width)) / 2));
    background: var(--sky);
}

.timeline {
    position: relative;
    margin-left: 130px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 20px;
    width: 2px;
    background: #a6cce8;
}

.timeline article {
    position: relative;
    padding: 0 0 2.2rem 2.1rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
}

.timeline article::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 6px var(--sky);
}

.timeline article.timeline__key::before {
    background: var(--orange);
}

.timeline time {
    color: var(--blue-dark);
    font-weight: 900;
}

.timeline h3 {
    margin: 0;
}

.timeline p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.points-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.points-overview article {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
}

.points-overview article:first-child {
    color: #fff;
    background: var(--navy);
    border-color: transparent;
}

.points-overview article:first-child li {
    color: #d9e7f2;
}

.points-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: var(--navy);
    background: var(--yellow);
    font-weight: 900;
}

.points-overview h3 {
    font-size: 1.45rem;
}

.points-overview ul {
    padding-left: 1.2rem;
}

.points-overview li {
    margin: 0.4rem 0;
    color: var(--muted);
}

.calculator {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 0.75fr 1.4fr;
    gap: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    border: 1px solid var(--border);
}

.calculator__heading h3 {
    margin: 0;
    font-size: 2rem;
}

.calculator__heading p:last-child {
    color: var(--muted);
}

.calculator__form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.calculator fieldset {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    gap: 0.7rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.calculator legend {
    padding: 0 0.35rem;
    font-weight: 850;
}

.calculator label {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.calculator .input-with-unit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    white-space: nowrap;
}

.calculator input[type="number"] {
    width: 60px;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.calculator select {
    width: min(130px, 100%);
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
}

.calculator .checkbox {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-start;
    min-height: 32px;
    cursor: pointer;
}

.calculator input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.calculator__result {
    grid-column: 2;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    color: #fff;
    background: var(--blue);
    border-radius: 14px;
}

.calculator__result strong {
    font-size: 2rem;
}

.calculator__note {
    grid-column: 2;
    margin: -1.5rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.grade-table {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.grade-table h3 {
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    background: var(--surface-alt);
}

.grade-table div {
    padding: 0.75rem;
    display: grid;
    text-align: center;
    border-left: 1px solid var(--border);
}

.grade-table span {
    color: var(--muted);
    font-size: 0.78rem;
}

.section--dark {
    width: 100%;
    padding-inline: max(1rem, calc((100% - var(--max-width)) / 2));
    color: #fff;
    background: var(--navy);
}

.section--dark .eyebrow {
    color: #75d8ff;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.checklist-grid article {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
}

.checklist-grid h3 {
    margin-top: 0;
}

.checklist {
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.75rem;
    color: #d9e7f2;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 900;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cards article {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.cards article>span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 2rem;
    border-radius: 13px;
    color: var(--blue);
    background: var(--sky);
    font-size: 1.35rem;
    font-weight: 900;
}

.cards h3 {
    margin: 0;
}

.cards p {
    color: var(--muted);
}

.after-results {
    display: grid;
    grid-template-columns: 1fr 0.32fr;
    gap: 4rem;
    align-items: center;
}

.after-results ol {
    margin-top: 2rem;
    padding-left: 1.3rem;
}

.after-results li {
    margin: 0.85rem 0;
    padding-left: 0.5rem;
    color: var(--muted);
}

.after-results aside {
    padding: 2rem;
    color: #fff;
    background: linear-gradient(145deg, #b9460c, #862b05);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.after-results aside strong {
    font-size: 1.3rem;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    min-height: 48px;
    padding: 1.2rem 2.5rem 1.2rem 0;
    position: relative;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 800;
    list-style: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--blue);
    font-size: 1.5rem;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    max-width: 900px;
    margin: 0 0 1.3rem;
    color: var(--muted);
}

.sources {
    padding-top: 4.5rem;
}

.source-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.source-links a {
    padding: 1.25rem;
    display: grid;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.source-links a:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(20, 55, 88, 0.1);
}

.source-links span {
    color: var(--muted);
    font-size: 0.86rem;
}

.updated {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 1.6rem 0 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}

#licznik-odwiedzin {
    display: flex;
    justify-content: start;
    width: min(calc(100% - 2rem), var(--max-width));
    margin: auto;
    padding-bottom: 50px;
}

.lc-counter-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(22, 59, 101, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(8, 107, 183, 0.08));
    box-shadow: 0 12px 28px rgba(22, 59, 101, 0.08);
}

.lc-counter-item {
    display: grid;
    gap: 0.08rem;
    min-width: 7rem;
}

.lc-counter-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lc-counter-value {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.lc-counter-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(22, 59, 101, 0.14);
}

@media (max-width: 980px) {
    .site-header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        text-align: center;
    }

    .main-nav .nav-cta {
        margin: 0.3rem 0 0;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__notice {
        align-self: auto;
        max-width: 700px;
    }

    .quick-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-info article:nth-child(2) {
        border-right: 0;
    }

    .quick-info article:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .section-heading--split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    .calculator__result,
    .calculator__note {
        grid-column: 1;
    }

    .grade-table {
        grid-template-columns: 1fr;
    }

    .grade-table div {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .checklist-grid,
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .lc-counter-card {
        display: none;
        width: 100%;
        justify-content: space-between;
        gap: 0.8rem;
        border-radius: 22px;
    }

    .lc-counter-item {
        min-width: 0;
        flex: 1 1 0;
    }

    .site-header {
        width: calc(100% - 1rem);
        top: 0.35rem;
        margin-top: 0.35rem;
    }

    .brand strong {
        font-size: 0.82rem;
    }

    .brand small {
        font-size: 0.72rem;
    }

    .hero {
        width: calc(100% - 1rem);
        margin-top: -5rem;
        padding: 10rem 1.25rem 3.5rem;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .quick-info {
        width: calc(100% - 2rem);
    }

    .section {
        padding-block: 4.5rem;
    }

    .steps li {
        grid-template-columns: 55px 1fr;
    }

    .timeline {
        margin-left: 0;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .points-overview,
    .calculator__form,
    .checklist-grid,
    .cards,
    .source-links,
    .after-results {
        grid-template-columns: 1fr;
    }

    .after-results {
        gap: 2rem;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {

    .button,
    .nav-cta,
    .hero__notice,
    .calculator__result,
    .after-results aside {
        border: 2px solid ButtonText;
    }

    .timeline article::before,
    .notice-icon,
    .brand__mark {
        forced-color-adjust: none;
    }
}

.recruitment-wait-overlay[hidden] {
    display: none;
}

.recruitment-wait-overlay {
    position: fixed;
    inset: 0;
    z-index: 900000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(237, 247, 255, .7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.recruitment-wait-message {
    width: min(620px, 100%);
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    color: var(--text);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.recruitment-wait-message>span {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1;
}

.recruitment-wait-message h2 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.recruitment-wait-message p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}
