:root {
    --navy: #12395f;
    --blue: #086fbd;
    --blue-dark: #075792;
    --cyan: #25b8c7;
    --orange: #f08a36;
    --cream: #fff8ec;
    --surface: #ffffff;
    --surface-alt: #f2f7fb;
    --ink: #142c42;
    --muted: #2d3943;
    --border: #dce8f1;
    --shadow: 0 20px 50px rgba(16, 55, 89, 0.12);
    --radius-lg: 32px;
    --radius-md: 20px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

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", Inter, Arial, sans-serif;
    color: var(--ink);
    background: #fbfdff;
    line-height: 1.6;
}

a {
    color: inherit;
}

#start {
    border: 1px solid #dddada;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 1rem auto 0;
    padding: 0.7rem 0.8rem 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 232, 241, 0.88);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(16, 55, 89, 0.1);
    backdrop-filter: blur(18px);
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--blue), var(--cyan));
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 18px rgba(8, 111, 189, 0.25);
}

.brand__text {
    display: grid;
}

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

.brand__text small {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
}

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

.site-nav .nav-cta {
    margin-left: 0.4rem;
    padding-inline: 1rem;
    color: #fff;
    background: var(--navy);
}

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

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

.menu-button span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 2px;
}

.hero {
    width: min(calc(100% - 2rem), var(--max-width));
    min-height: 700px;
    margin: -5.3rem auto 0;
    padding: 10rem 4rem 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 22%, rgba(37, 184, 199, 0.2), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(240, 138, 54, 0.18), transparent 20%),
        linear-gradient(135deg, #eef8ff 0%, #fbfdff 55%, #fff8ec 100%);
    box-shadow: var(--shadow);
}

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

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.7rem, 3vw, 4.25rem);
    letter-spacing: -0.055em;
    line-height: 1.3;
}

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

.hero__lead {
    max-width: 650px;
    margin: 1.7rem 0 0;
    font-size: 1.18rem;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    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, background 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 25px rgba(8, 111, 189, 0.24);
}

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

.button--light {
    color: var(--navy);
    background: #fff;
}

.hero__facts {
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 2.5rem 0 0;
    list-style: none;
}

.hero__facts li {
    display: grid;
}

.hero__facts strong {
    font-size: 1.05rem;
    color: var(--navy);
}

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

.hero__visual {
    position: relative;
    min-height: 460px;
}

.orbit {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(8, 111, 189, 0.17);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit--one {
    width: 390px;
    height: 390px;
}

.orbit--two {
    width: 280px;
    height: 280px;
    border-style: dashed;
}

.career-card {
    position: absolute;
    display: grid;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #fff;
    box-shadow: var(--shadow);
}

.career-card--main {
    inset: 50% auto auto 50%;
    width: 220px;
    aspect-ratio: 1;
    padding: 1.6rem;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.career-card--main::after {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px dashed rgba(8, 111, 189, 0.35);
    border-radius: 50%;
}

.career-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 1.8rem;
}

.career-card--main strong {
    font-size: 1.25rem;
}

.career-card--main small {
    color: var(--muted);
}

.career-card--small {
    padding: 1rem 1.25rem;
    border-radius: 16px;
}

.career-card--small span {
    font-size: 0.78rem;
    color: var(--muted);
}

.career-card--talent {
    top: 7%;
    left: 5%;
    transform: rotate(-5deg);
}

.career-card--plan {
    top: 20%;
    right: 0;
    transform: rotate(5deg);
}

.career-card--future {
    bottom: 5%;
    left: 13%;
    transform: rotate(3deg);
}

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

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

.section-heading h2,
.pathway h2,
.teachers-panel h2,
.contact-card h2 {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading>p:last-child,
.pathway__copy>p:last-child,
.teachers-panel__intro>p:last-child {
    color: var(--muted);
    font-size: 1.06rem;
}

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

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

.audience-grid article {
    min-height: 260px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.audience-grid article:nth-child(2) {
    background: var(--navy);
    color: #fff;
}

.audience-grid article:nth-child(2) p {
    color: #d7e7f3;
}

.audience-grid .number {
    margin-bottom: auto;
    color: var(--blue);
    font-weight: 900;
}

.audience-grid h3 {
    margin: 0;
    font-size: 1.35rem;
}

.audience-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.section--services {
    padding-top: 7.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 1rem;
}

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

.service-card--featured {
    color: #fff;
    background: linear-gradient(145deg, var(--blue), var(--navy));
    border-color: transparent;
    box-shadow: var(--shadow);
}

.service-card__tag {
    display: inline-block;
    margin-bottom: 2.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: var(--navy);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 2.5rem;
    border-radius: 14px;
    color: var(--blue);
    background: var(--surface-alt);
    font-size: 1.6rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

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

.service-card--featured p {
    color: #dcebf5;
}

.service-card ul {
    padding-left: 1.2rem;
}

.pathway {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 6rem;
    align-items: start;
}

.pathway__copy {
    position: sticky;
    top: 8rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: var(--border);
}

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

.timeline article:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
    box-shadow: 0 0 0 8px #fbfdff;
}

.timeline small {
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline h3 {
    margin: 0.25rem 0 0;
    font-size: 1.45rem;
}

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

.section--teachers {
    width: 100%;
    padding: 6.5rem max(1rem, calc((100% - var(--max-width)) / 2));
    background: var(--cream);
}

.teachers-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.teachers-list {
    border-top: 1px solid rgba(18, 57, 95, 0.17);
}

.teachers-list article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(18, 57, 95, 0.17);
}

.teachers-list article>span {
    color: var(--orange);
    font-weight: 900;
}

.teachers-list h3 {
    margin: 0;
    font-size: 1.2rem;
}

.teachers-list p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.contact-section {
    padding-block: 6.5rem;
}

.contact-card {
    padding: clamp(2rem, 5vw, 4.5rem);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    color: #fff;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy), #075a8d);
    box-shadow: var(--shadow);
}

.contact-card .eyebrow {
    color: #7de4ed;
}

.contact-card p {
    max-width: 680px;
    color: #d8e7f2;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.text-link {
    color: #fff;
    font-weight: 600;
    text-underline-offset: 4px;
}

.contact-card address {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    font-style: normal;
}

.contact-card address span {
    color: #d8e7f2;
}

.site-footer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.86rem;
    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(18, 57, 95, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(8, 111, 189, 0.08));
    box-shadow: 0 12px 28px rgba(18, 57, 95, 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(18, 57, 95, 0.14);
}

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

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

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

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

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

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

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 10rem 2rem 4rem;
    }

    .hero__visual {
        min-height: 400px;
    }

    .audience-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid article {
        min-height: 220px;
    }

    .section-heading--split,
    .pathway,
    .teachers-panel,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pathway__copy {
        position: static;
    }

    .contact-card address {
        padding: 2rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 600px) {
    .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);
        margin-top: 0.5rem;
    }

    .brand__text strong {
        max-width: 190px;
        font-size: 0.82rem;
    }

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

    .hero__lead {
        font-size: 1rem;
    }

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

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

    .hero__facts strong {
        font-size: 0.9rem;
    }

    .hero__facts span {
        font-size: 0.68rem;
    }

    .hero__visual {
        min-height: 330px;
        transform: scale(0.86);
        margin-inline: -1rem;
    }

    .orbit--one {
        width: 330px;
        height: 330px;
    }

    .orbit--two {
        width: 230px;
        height: 230px;
    }

    .career-card--main {
        width: 185px;
    }

    .section {
        padding-block: 4.5rem;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .contact-card {
        border-radius: var(--radius-md);
    }

    .contact-actions,
    .contact-actions .button {
        width: 100%;
    }

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

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

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