/* CONTROL PROCESS — Kolory, szerokość i odstępy można zmieniać w zmiennych poniżej. */

:root {
    --navy: #002542;
    --ink: #06244a;
    --blue: #0087ed;
    --sky: #80c6ee;
    --muted: #44536d;
    --light: #f5f7f9;
    --line: #e4e9ef;
    --content: 1200px;
    --section-space: clamp(28px, 4vw, 56px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-size: clamp(12px, 1.42vw, 17px);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

img,
svg {
    display: block;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
}

a:hover {
    color: var(--blue);
}

.container {
    width: 91.6%;
    max-width: var(--content);
    margin-inline: auto;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arrow {
    width: 20px;
    height: 20px;
}

.photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20;
    background: #fff;
    padding: 12px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* NAGŁÓWEK I NAWIGACJA */

.site-header {
    background: #00315b;
    color: #fff;
}

.header-inner {
    height: clamp(50px, 6.5vw, 78px);
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
}

.brand {
    width: clamp(102px, 13.3vw, 158px);
    flex-shrink: 0;
    aspect-ratio: 102/27;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 38px);
    flex: 1;
    font-size: clamp(10px, 1.28vw, 15px);
}

.desktop-nav a {
    white-space: nowrap;
}

.desktop-nav span {
    font-size: 12px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
}

.header-tools .icon {
    height: 18px;
    width: 18px;
}

.mobile-menu {
    display: none;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: clamp(9px, 1.1vw, 12px);
    color: var(--muted);
}

.breadcrumbs-light {
    color: #e3edf5;
    padding-top: 8px;
}

.breadcrumbs span[aria-current] {
    font-weight: 400;
}

/* BANER GŁÓWNY */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 59%;
    z-index: -2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #002542 0%, #002542 33%, rgba(0, 37, 66, .88) 44%, rgba(0, 37, 66, .2) 66%, transparent 100%);
}

.hero-copy {
    padding-top: clamp(29px, 4vw, 51px);
    padding-bottom: clamp(27px, 3.5vw, 42px);
    max-width: 65%;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .23em;
    font-size: clamp(9px, 1.1vw, 13px);
    font-weight: 700;
    color: #6291c9;
    margin-bottom: 8px;
    line-height: 1.5;
}

.hero .eyebrow {
    color: #e4eff8;
    letter-spacing: .2em;
    white-space: nowrap;
}

h1 {
    font-size: clamp(27px, 3.65vw, 46px);
    line-height: 1.03;
    text-transform: uppercase;
    letter-spacing: -.025em;
    font-weight: 700;
}

h1 span {
    color: var(--sky);
    font-weight: 400;
}

.hero-description {
    max-width: 70%;
    margin-top: clamp(19px, 2.6vw, 32px);
    line-height: 1.43;
    font-size: clamp(11px, 1.39vw, 17px);
    color: #fff;
}

.actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 17px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--blue);
    color: #fff;
    min-height: 32px;
    padding: 9px 16px;
    border: 1px solid var(--blue);
    font-weight: 700;
    font-size: clamp(10px, 1.13vw, 14px);
    line-height: 1.2;
    transition: background .18s;
}

.button:hover {
    background: #006cc7;
    border-color: #006cc7;
    color: #fff;
}

.button-outline {
    background: transparent;
    border-color: #7f99b0;
    font-weight: 400;
}

.button-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.button .arrow {
    width: 17px;
    height: 17px;
}

/* LICZBY I STANDARDY */

.facts {
    background: var(--light);
}

.facts-grid {
    display: grid;
    grid-template-columns: .85fr 1.2fr 1.05fr .95fr;
    padding-block: clamp(22px, 3vw, 36px);
}

.fact {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding-inline: 16px;
    border-left: 1px solid var(--line);
}

.fact:first-child {
    border: 0;
    padding-left: 0;
    justify-content: flex-start;
}

.fact:last-child {
    padding-right: 0;
}

.fact .icon {
    width: clamp(28px, 3.8vw, 45px);
    height: clamp(28px, 3.8vw, 45px);
}

.fact strong {
    display: block;
    font-size: clamp(13px, 1.65vw, 21px);
    line-height: 1.15;
    margin: 3px 0 5px;
    letter-spacing: -.04em;
}

.fact span {
    font-size: clamp(10px, 1.23vw, 14px);
    color: var(--muted);
    white-space: nowrap;
}

/* SEKCJE I NAGŁÓWKI */

.section {
    padding-top: var(--section-space);
}

h2 {
    font-size: clamp(23px, 2.9vw, 36px);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 700;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(35px, 7vw, 90px);
    align-items: end;
    margin-bottom: 20px;
}

.section-heading > p {
    color: var(--muted);
    font-size: clamp(10px, 1.27vw, 15px);
    line-height: 1.45;
    padding-bottom: 1px;
}

/* KARTY KOMPETENCJI */

.competency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-inline: -6px;
}

.competency-card {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    min-width: 0;
}

.competency-card > .photo {
    height: auto;
    aspect-ratio: 2.08;
    opacity: .95;
}

.card-copy {
    display: flex;
    gap: 12px;
    padding: 0 15px 15px;
    position: relative;
    margin-top: -3px;
    background: var(--navy);
}

.card-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 37px;
    top: -37px;
    background: linear-gradient(transparent, var(--navy));
    pointer-events: none;
}

.card-copy .icon {
    height: 26px;
    width: 26px;
    position: relative;
    margin-top: 1px;
}

.card-copy h3 {
    font-size: clamp(12px, 1.46vw, 18px);
    line-height: 1.2;
    margin: 4px 0 8px;
    letter-spacing: -.025em;
    position: relative;
}

.card-copy p {
    font-size: clamp(9px, 1.1vw, 13px);
    line-height: 1.4;
    color: #e4edf4;
}

/* SEKCJA O FIRMIE I LISTA ATUTÓW */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 100px);
}

.company p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 10px;
}

.company .button {
    margin-top: 12px;
}

.reasons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reasons li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.reasons li:first-child {
    padding-top: 0;
}

.reasons li:last-child {
    border: 0;
}

.reasons .icon {
    width: 26px;
    height: 26px;
}

.reasons p {
    margin: 0 !important;
    font-size: clamp(10px, 1.2vw, 14px);
    line-height: 1.4;
}

/* WYBRANE REALIZACJE */

.projects-heading {
    margin-bottom: 12px;
}

.projects .eyebrow {
    margin-bottom: 6px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.project-card {
    border: 1px solid var(--line);
    background: linear-gradient(#fff, #fafbfc);
    min-width: 0;
}

.project-card .photo {
    height: auto;
    aspect-ratio: 1.94;
}

.project-copy {
    padding: 11px 12px;
}

.project-copy h3 {
    font-size: clamp(10px, 1.25vw, 15px);
    line-height: 1.2;
    letter-spacing: -.025em;
    min-height: 2.4em;
}

.project-copy p {
    color: var(--muted);
    text-transform: uppercase;
    font-size: clamp(8px, .95vw, 11px);
    font-weight: 700;
    margin-top: 13px;
    line-height: 1.35;
}

/* JAKOŚĆ I BEZPIECZEŃSTWO */

.quality {
    margin-top: 24px;
    background: var(--light);
    padding-bottom: var(--section-space);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: clamp(25px, 4vw, 50px);
}

.quality-intro > p:last-child {
    margin-top: 12px;
    color: var(--muted);
}

.quality-intro h2 {
    font-size: clamp(21px, 2.55vw, 32px);
}

.quality-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.quality-items .icon {
    width: 29px;
    height: 29px;
    margin: 0 0 13px 10px;
}

.quality-items h3 {
    font-size: clamp(9px, 1.05vw, 13px);
    line-height: 1.25;
    min-height: 2.5em;
    margin-bottom: 11px;
    letter-spacing: -.02em;
}

.quality-items p {
    font-size: clamp(8px, .95vw, 11px);
    line-height: 1.32;
    color: var(--muted);
}

/* SEKCJA KONTAKTOWA */

.contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding-block: clamp(30px, 4vw, 50px);
    margin-top: 0px !important;
}

.contact-photo {
    position: absolute;
    inset: 0 0 0 auto;
    width: 57%;
    z-index: -2;
}

.contact::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, var(--navy) 36%, rgba(0, 37, 66, .75) 54%, transparent 90%);
}

.contact-copy {
    max-width: 53%;
}

.contact h2 {
    font-size: clamp(22px, 2.65vw, 34px);
    letter-spacing: -.025em;
}

.contact p {
    margin-top: 12px;
    line-height: 1.5;
}

.contact .button {
    margin-top: 17px;
}

/* STOPKA */

.site-footer {
    background: var(--light);
    padding-block: 22px 40px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    font-size: clamp(9px, 1.05vw, 12px);
    color: var(--muted);
    white-space: nowrap;
}

.site-footer .breadcrumbs {
    font-size: clamp(8px, 1.05vw, 12px);
}

/* DUŻE EKRANY — od 1100 px */

@media (min-width: 1100px) {

    .competency-grid {
        gap: 12px;
    }

    .card-copy {
        gap: 17px;
        padding: 0 22px 24px;
    }

    .card-copy .icon {
        width: 35px;
        height: 35px;
    }

    .project-grid {
        gap: 10px;
    }

    .project-copy {
        padding: 16px 18px;
    }

    .reasons li {
        padding: 16px 0;
    }

    .reasons .icon {
        width: 34px;
        height: 34px;
    }

    .quality-items .icon {
        width: 40px;
        height: 40px;
    }

    .button {
        min-height: 44px;
        padding: 12px 22px;
    }

    .facts-grid {
        padding-block: 34px;
    }

}

/* ŚREDNIE EKRANY — od 721 do 900 px */

@media (max-width: 900px) and (min-width: 721px) {

    .header-inner {
        gap: 35px;
    }

    .desktop-nav {
        gap: 25px;
    }

    .desktop-nav a:nth-child(4) {
        display: none;
    }

    .header-tools {
        gap: 18px;
    }

    .hero-copy {
        max-width: 52%;
    }

    .hero-description {
        max-width: 97%;
    }

    .actions {
        gap: 10px;
    }

    .button {
        padding-inline: 14px;
    }

    .fact {
        gap: 14px;
        padding-inline: 13px;
    }

    .card-copy {
        gap: 10px;
        padding-inline: 13px;
    }

    .card-copy .icon {
        width: 24px;
        height: 24px;
    }

}

/* TELEFONY I TABLETY — do 720 px */

@media (max-width: 720px) {

    body {
        font-size: 15px;
    }

    .container {
        width: 89%;
    }

    .header-inner {
        height: 68px;
        gap: 20px;
    }

    .brand {
        width: 132px;
    }

    .desktop-nav,
    .header-tools {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
        font-size: 14px;
    }

    .mobile-menu summary {
        cursor: pointer;
        list-style: none;
        padding: 12px 0 12px 12px;
        display: flex;
        gap: 14px;
        align-items: center;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu summary span {
        font-size: 22px;
    }

    .mobile-menu nav {
        position: absolute;
        z-index: 10;
        top: 68px;
        left: 0;
        right: 0;
        padding: 14px 5.5% 22px;
        background: #00315b;
        box-shadow: 0 10px 20px #001b3430;
        display: grid;
        gap: 0;
    }

    .mobile-menu nav a {
        padding: 12px 0;
        border-top: 1px solid #ffffff20;
    }

    .breadcrumbs {
        font-size: 10px;
        gap: 7px;
    }

    .breadcrumbs-light {
        padding-top: 13px;
    }

    .hero-photo {
        width: 100%;
        opacity: .5;
        inset: 0;
        view-transition-name: none;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(0, 37, 66, .98), rgba(0, 37, 66, .75) 60%, rgba(0, 37, 66, .4));
    }

    .hero-copy {
        max-width: 100%;
        padding-top: 38px;
        padding-bottom: 36px;
    }

    .hero .eyebrow {
        font-size: 9px;
        letter-spacing: .15em;
        white-space: normal;
    }

    h1 {
        font-size: clamp(29px, 6.6vw, 45px);
    }

    .hero-description {
        font-size: 14px;
        max-width: 490px;
        margin-top: 25px;
        line-height: 1.55;
    }

    .actions {
        margin-top: 24px;
        gap: 10px;
    }

    .button {
        font-size: 12px;
        min-height: 42px;
        padding: 11px 15px;
    }

    .facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        padding-block: 25px;
    }

    .fact,
    .fact:first-child,
    .fact:last-child {
        padding: 0;
        justify-content: flex-start;
        gap: 13px;
        border: 0;
    }

    .fact:nth-child(even) {
        border-left: 1px solid var(--line);
        padding-left: 17px;
    }

    .fact .icon {
        width: 32px;
        height: 32px;
    }

    .fact strong {
        font-size: 15px;
    }

    .fact span {
        font-size: 10px;
        white-space: normal;
    }

    .section {
        padding-top: 36px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 27px;
    }

    .eyebrow {
        font-size: 10px;
        margin-bottom: 9px;
    }

    .section-heading > p {
        font-size: 14px;
        line-height: 1.55;
    }

    .competency-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        gap: 12px;
    }

    .competency-card > .photo {
        aspect-ratio: 1.65;
    }

    .card-copy {
        padding: 0 13px 18px;
        gap: 8px;
    }

    .card-copy .icon {
        width: 22px;
        height: 22px;
    }

    .card-copy h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .card-copy p {
        font-size: 11px;
        line-height: 1.5;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .company p:not(.eyebrow) {
        font-size: 14px;
        line-height: 1.55;
        margin-top: 15px;
    }

    .company .button {
        margin-top: 18px;
    }

    .reasons li {
        gap: 17px;
        padding: 13px 0;
    }

    .reasons p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .reasons .icon {
        height: 28px;
        width: 28px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .projects-heading {
        margin-bottom: 20px;
    }

    .project-copy {
        padding: 14px;
    }

    .project-copy h3 {
        font-size: 14px;
    }

    .project-copy p {
        font-size: 9px;
        margin-top: 15px;
    }

    .quality {
        margin-top: 36px;
        padding-bottom: 36px;
    }

    .quality-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quality-intro h2 {
        font-size: 26px;
    }

    .quality-intro > p:last-child {
        font-size: 14px;
        line-height: 1.55;
    }

    .quality-items {
        gap: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .quality-items .icon {
        width: 34px;
        height: 34px;
        margin: 0 0 12px;
    }

    .quality-items h3 {
        font-size: 14px;
        min-height: 0;
        margin-bottom: 9px;
    }

    .quality-items p {
        font-size: 12px;
        line-height: 1.5;
    }

    .contact {
        padding-block: 36px;
    }

    .contact-photo {
        width: 100%;
        opacity: .6;
    }

    .contact::before {
        background: linear-gradient(90deg, var(--navy), rgba(0, 37, 66, .8) 70%, rgba(0, 37, 66, .45));
    }

    .contact-copy {
        max-width: 100%;
    }

    .contact h2 {
        font-size: 27px;
    }

    .contact p {
        font-size: 14px;
        line-height: 1.55;
        max-width: 450px;
    }

    .contact .button {
        margin-top: 23px;
    }

    .footer-inner {
        display: block;
    }

    .site-footer .breadcrumbs {
        font-size: 10px;
    }

    .site-footer p {
        font-size: 11px;
        margin-top: 22px;
    }

    .site-footer {
        padding-block: 23px;
    }

}



/* card copy */

@media (min-width: 1100px) {
  .card-copy {
    min-height: auto;}
  }

@media (max-width: 1496px) {
  .card-copy {min-height: 147px;}
}

@media (max-width: 1229px) {
  .card-copy {min-height: 165px;}
}

@media (max-width: 1199px) {
  .card-copy {min-height: 203px;}
}

@media (max-width: 467px) {
  .card-copy {min-height: 213px;}
}

@media (max-width: 462px) {
  .card-copy {min-height: 247px;}
}

/* MAŁE TELEFONY — do 430 px */

@media (max-width: 430px) {

    .competency-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .competency-card > .photo {
        aspect-ratio: 2.2;
    }

    .card-copy {
        padding: 0 18px 22px;
        gap: 14px;
    }

    .card-copy .icon {
        width: 28px;
        height: 28px;
    }

    .card-copy h3 {
        font-size: 17px;
        margin-top: 3px;
    }

    .card-copy p {
        font-size: 13px;
        line-height: 1.5;
    }

    .project-copy {
        padding: 11px;
    }

    .project-copy h3 {
        font-size: 12px;
    }

    .project-copy p {
        font-size: 8px;
    }

    .fact strong {
        font-size: 13px;
    }

    .facts-grid {
        gap: 24px 10px;
    }

    .fact:nth-child(even) {
        padding-left: 12px;
    }

    .fact {
        gap: 10px;
    }

    .fact .icon {
        width: 27px;
        height: 27px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 285px;
    }

    .actions .button {
        justify-content: space-between;
    }

    .hero-description {
        font-size: 13px;
    }

}

/* OGRANICZENIE ANIMACJI — preferencje użytkownika */

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

    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }

}

/* STYLE WYDRUKU */

@media print {

    .site-header,
    .actions,
    .button,
    .site-footer,
    .mobile-menu {
        display: none;
    }

    .hero,
    .contact,
    .competency-card {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        break-inside: avoid;
    }

    .hero-copy {
        max-width: 70%;
    }

    .container {
        width: 95%;
    }

}
