
:root {
    --bg: #101820;
    --panel: #17232e;
    --edge: #2c3a44;
    --text: #edf5f7;
    --muted: #a9bac5;
    --blue: #5fbbef;
    --paper: #e8eff1;
}

/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
}

/* The grid and glow stay fixed behind the scrolling page content. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(ellipse at 50% 38%, #20445b66, transparent 67%),
        linear-gradient(#8fc5e00b 1px, transparent 1px),
        linear-gradient(90deg, #8fc5e00b 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
}

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

button {
    font: inherit;
}

.container {
    max-width: 1220px;
    margin: auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* HEADER / NAVIGATION */

.site-header {
    position: relative;
    top: 0;
    z-index: 20;
    background: rgba(16, 24, 32, 0.93);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #283640;
    box-shadow: 0 8px 30px #020b141a;
}

.site-header.navigation-ready {
    position: sticky;
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.045em;
    font-size: 20px;
    line-height: 1.15;
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.27em;
    color: #8fabbc;
    margin-top: 6px;
}

.brand-hyphen {
    color: var(--blue);
}

.brand-mark {
    flex-shrink: 0;
    width: 250px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark span {
    font-size: 12px;
    margin-left: -7px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #b8cbd6;
}

.nav-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 7px;
    white-space: nowrap;
    transition: color .15s, background .15s;
}

.nav-links > a:hover {
    color: var(--text);
    background: #c3eaff0c;
}

.nav-links > a[aria-current] {
    color: var(--blue);
    background: #5fbbef12;
}

.nav-links > .nav-cta {
    margin-left: 12px;
    padding-inline: 18px;
    border: 1px solid #5fbbef;
    background: var(--blue);
    color: #082132;
}

.nav-links > .nav-cta:hover,
.nav-links > .nav-cta[aria-current] {
    color: #082132;
    background: #8bd2f7;
    border-color: #8bd2f7;
}

.nav-toggle {
    display: none;
}

.nav-toggle-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .15s, top .15s;
}

.nav-toggle-icon::before { top: 6px; }
.nav-toggle-icon::after { top: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 9px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 9px; transform: rotate(-45deg); }

/* HERO */

.home-page,
.content-page {
    --header-height: 80px;
}

.home-page .nav,
.content-page .nav {
    min-height: calc(var(--header-height) - 1px);
    gap: 16px;
}

.home-page .brand-mark,
.content-page .brand-mark {
    width: clamp(150px, 15vw, 180px);
    height: auto;
    aspect-ratio: 355 / 105;
}

.hero {
    min-height: calc(100svh - var(--header-height));
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    padding: clamp(24px, 4svh, 40px) 0 32px;
    border-bottom: 1px solid #2c3a44;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 1040px;
    text-align: center;
}

.hero-kicker {
    margin: 0 0 20px;
    color: #92afbe;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.7;
    text-wrap: balance;
}

.hero-logo {
    display: block;
    width: min(100%, clamp(340px, 44vw, 520px));
    height: auto;
}

.hero-title {
    max-width: 780px;
    margin: 22px 0 14px;
    font-size: clamp(26px, 3.1vw, 38px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.hero-description {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.65;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-actions .button {
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 4px;
}

.home-page #uslugi,
.home-page #wybrane-opracowania {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

.eyebrow,
.section-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--blue);
}

.eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-dot,
.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7de4c2;
    display: inline-block;
    box-shadow: 0 0 13px #7de4c266;
}

h1 {
    font-size: clamp(45px, 5.5vw, 77px);
    line-height: 1.07;
    letter-spacing: -0.055em;
    margin: 28px 0 26px;
}

h1 em,
.contact h2 em {
    color: var(--blue);
    font-style: normal;
}

.lead {
    max-width: 630px;
    color: #b3c4ce;
    font-size: 17px;
    line-height: 1.8;
}

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

/* BUTTONS */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 23px;
    padding: 16px 21px;
    font-size: 13px;
    font-weight: 750;
    transition: transform 0.15s, background 0.15s;
}

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

.primary {
    background: var(--blue);
    color: #082132;
}

.primary:hover {
    background: #8bd2f7;
}

.secondary {
    border: 1px solid #5e7584;
    color: #e7f0f4;
}

/* PORTFOLIO */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-filters[hidden],
.portfolio-card[hidden] {
    display: none;
}

.portfolio-filters button,
.portfolio-control {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #38505e;
    border-radius: 6px;
    background: #172731;
    color: #c8dce6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.portfolio-filters button:hover,
.portfolio-control:not(:disabled):hover {
    border-color: var(--blue);
    color: var(--text);
}

.portfolio-filters button[aria-pressed="true"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #082132;
}

.portfolio-status {
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

.portfolio-grid,
.portfolio-teasers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #344653;
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-preview,
.portfolio-teaser-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #0b131b;
    border-bottom: 1px solid #344653;
    flex-shrink: 0;
}

.portfolio-preview img,
.portfolio-teaser-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-preview:focus-visible {
    outline-offset: -4px;
}

.portfolio-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    border: 1px solid #72bde866;
    border-radius: 4px;
    color: #e0f4ff;
    background: #0b1c2aec;
    font-size: 10px;
    pointer-events: none;
}

.portfolio-preview:hover .portfolio-zoom {
    background: #24516b;
}

.portfolio-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.portfolio-kind {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portfolio-card h3,
.portfolio-teaser h3 {
    margin: 12px 0;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.portfolio-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.portfolio-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #344653;
    color: #bddff0;
    font-size: 12px;
}

.portfolio-service:hover,
.portfolio-original:hover {
    color: var(--blue);
}

.portfolio-teaser {
    display: block;
    min-width: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #38505e;
}

.portfolio-teaser-image {
    border: 1px solid #344653;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.portfolio-teaser:hover h3,
.portfolio-teaser h3 span {
    color: var(--blue);
}

body.portfolio-viewer-open {
    overflow: hidden;
}

.portfolio-dialog {
    width: min(1180px, calc(100% - 32px));
    height: min(900px, calc(100svh - 32px));
    max-width: none;
    max-height: calc(100svh - 32px);
    padding: 0;
    border: 1px solid #466477;
    border-radius: 10px;
    background: #14232e;
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.portfolio-dialog[open] {
    display: flex;
    flex-direction: column;
}

.portfolio-dialog::backdrop {
    background: #020911df;
    backdrop-filter: blur(6px);
}

.portfolio-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #344653;
}

.portfolio-dialog-header h2 {
    min-width: 0;
    margin: 0;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.3;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.portfolio-control {
    min-width: 44px;
}

.portfolio-control:disabled {
    opacity: .4;
    cursor: default;
}

.portfolio-close {
    flex-shrink: 0;
    padding: 10px;
    font-size: 18px;
}

.portfolio-stage {
    flex: 1 0 180px;
    min-height: 180px;
    padding: 12px;
    background: #060e16;
}

.portfolio-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-dialog-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid #344653;
}

.portfolio-dialog-caption {
    margin: 0 0 14px;
    color: #b3cbd8;
    font-size: 13px;
    line-height: 1.6;
}

.portfolio-dialog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-paging {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-position {
    min-width: 42px;
    text-align: center;
    font: 12px monospace;
}

.portfolio-original {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #c3e7f9;
    font-size: 12px;
}

@media (max-width: 950px) {
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .portfolio-grid,
    .portfolio-teasers { grid-template-columns: 1fr; }
    .portfolio-dialog-header,
    .portfolio-dialog-footer { padding: 12px; }
    .portfolio-card-body { padding: 20px; }
}

@media (max-height: 500px) {
    .portfolio-dialog-header,
    .portfolio-dialog-footer { padding: 8px 12px; }
}

/* Selected project images and videos on service pages. */
.section.service-portfolio {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(36px, 5vw, 64px);
}

.service-portfolio .section-head {
    gap: 24px;
    margin-bottom: 24px;
}

.service-portfolio .section-head h2 {
    font-size: clamp(28px, 3.2vw, 40px);
}

.service-portfolio .portfolio-card-body {
    padding: 20px;
}

.service-portfolio .portfolio-card h3 {
    margin-top: 0;
    font-size: 18px;
}

.service-portfolio .portfolio-card p {
    margin-bottom: 0;
}

.service-portfolio + .service-details {
    padding-top: clamp(32px, 5vw, 64px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #344653;
    border-radius: 8px;
    background: var(--panel);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b131b;
    border-bottom: 1px solid #344653;
}

.video-preview,
.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-preview {
    position: relative;
}

.video-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview:focus-visible {
    outline-offset: -4px;
}

.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(transparent 35%, #020b1466);
    pointer-events: none;
}

.video-play-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding-left: 4px;
    border: 1px solid #b3e4ff;
    border-radius: 50%;
    background: #102b3bef;
    color: #edf5f7;
    font-size: 24px;
}

.video-preview:hover .video-play-icon {
    background: #24516b;
}

.video-card-body {
    padding: 22px;
}

.video-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.video-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #bddff0;
    font-size: 13px;
}

.video-link:hover {
    color: var(--blue);
}

@media (max-width: 640px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* INTRO BAND */

.intro-band {
    background: #1d313e;
    border-top: 1px solid #385364;
    border-bottom: 1px solid #385364;
}

.band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.band-inner p {
    margin: 0;
    color: #d6edf5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.band-inner div {
    display: flex;
    gap: 25px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #91acbc;
}

/* SECTIONS */

.section {
    padding-top: clamp(20px, 8vw, 112px);
    padding-bottom: clamp(20px, 8vw, 112px);
    scroll-margin-top: 5px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 40px;
}

.section h2,
.contact h2 {
    font-size: clamp(35px, 4.1vw, 55px);
    line-height: 1.13;
    letter-spacing: -0.045em;
    margin: 17px 0 0;
}

.section h2 span {
    color: var(--blue);
}

.section-head > p {
    max-width: 350px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0;
}

#wybrane-opracowania {
    padding-top: 28px;
    padding-bottom: clamp(40px, 6vw, 80px);
}

#wybrane-opracowania .section-head {
    gap: 32px;
    margin-bottom: 24px;
}

#wybrane-opracowania h2 {
    margin-top: 12px;
    font-size: clamp(28px, 3vw, 36px);
}

/* SERVICES */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card.service-group {
    min-width: 0;
    padding: clamp(22px, 3vw, 36px);
}

.service-group .service-symbol {
    height: 64px;
    font-size: 34px;
}

.service-card.service-group h3 {
    font-size: clamp(22px, 2.1vw, 27px);
    line-height: 1.25;
}

.service-card.service-group p {
    max-width: 48ch;
    font-size: 14px;
}

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

.service-options a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 12px 0;
    color: #cce5f0;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid var(--edge);
}

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

.service-options span {
    flex-shrink: 0;
    color: var(--blue);
}

.services-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.content-page main [id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.service-card {
    min-height: 300px;
    border: 1px solid #344653;
    background: #17232d;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s, border-color 0.2s;
}

.service-card:hover {
    background: #1b3040;
    border-color: #5e9cbb;
}

.service-no {
    font: 12px monospace;
    color: #7f9cac;
}

.service-symbol {
    font-size: 42px;
    color: var(--blue);
    height: 90px;
    display: flex;
    align-items: center;
}

.service-symbol svg {
    width: 34px;
    height: 34px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 19px;
    margin: 0 0 9px;
    letter-spacing: -0.025em;
}

.service-card p {
    color: #abbdc8;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 25px;
}

.tag-line {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #83bfdc;
    letter-spacing: 0.09em;
    border-top: 1px solid #334652;
    padding-top: 16px;
}

.tag-line span {
    font-size: 16px;
}

/* CONTRAST SECTION / PROCESS */

.contrast {
    background: #e9f0f3;
    color: #101f29;
}

.contrast .section-kicker {
    color: #155f88;
}

.contrast h2 span {
    color: #278bbd;
}

.contrast .service-copy,
.contrast .service-list {
    color: #526672;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 23px;
    margin-top: 52px;
}

.steps > div {
    border-top: 2px solid #91aebf;
    padding-top: 20px;
}

.steps > div > span {
    font: 14px monospace;
    color: #236481;
}

.steps h3 {
    font-size: 19px;
    margin: 40px 0 13px;
}

.steps p {
    color: #526672;
    font-size: 14px;
    line-height: 1.7;
}

/* APPLICATIONS */

.applications {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 45px;
}

.applications article {
    padding: 35px;
    border: 1px solid #38505e;
    min-height: 225px;
    background: linear-gradient(145deg, #203746, #14232e);
}

.applications article > span {
    color: #6bbde9;
    font: 12px monospace;
}

.applications h3 {
    margin: 42px 0 7px;
    font-size: 20px;
}

.applications p {
    margin: 0;
    color: #a8c1cf;
    font-size: 14px;
}

.disclaimer {
    font-size: 12px;
    color: #899faa;
    margin-top: 28px;
    max-width: 770px;
}

/* CONTACT */

.contact {
    background: #1a394d;
    padding: clamp(60px, 8vw, 112px) 0;
    scroll-margin-top: 85px;
}

.contact-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
}

.contact h2 {
    font-size: clamp(45px, 5.8vw, 74px);
}

.contact p {
    max-width: 570px;
    color: #b6d0dc;
    font-size: 16px;
    line-height: 1.75;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.contact-actions small {
    max-width: 280px;
    color: #a8c0cc;
}

/* Contact details on the home page. */

.contact-main .contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 6vw, 80px);
}

.contact-main h2 {
    font-size: clamp(32px, 4.5vw, 58px);
}

.contact-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
    color: #d6e7ef;
    font-size: 15px;
    font-style: normal;
    line-height: 1.7;
}

.contact-label {
    display: block;
    color: #9bcce4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-address a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #a4ddfa;
    font-size: 13px;
}

.contact-details {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.contact-email,
.contact-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid #5c8aa4;
    border-radius: 8px;
    background: #132c3c;
}

.contact-email:hover,
.contact-phone:hover {
    border-color: var(--blue);
    background: #17364a;
}

.contact-email strong {
    max-width: 100%;
    color: #edf7fc;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.contact-hint {
    color: #afcbdc;
    font-size: 12px;
}

.contact-hint > span {
    margin-left: 8px;
    color: var(--blue);
}

.contact-phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-phone strong {
    color: #edf7fc;
    font-size: clamp(17px, 1.7vw, 23px);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 950px) {
    .contact-main .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .contact-phones { grid-template-columns: 1fr; }
}

/* FOOTER */

footer {
    background: #0b131a;
    padding: 35px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #8aa1af;
    font-size: 11px;
}

.footer-inner strong {
    display: block;
    color: #f0f5f8;
    font-size: 15px;
    margin-bottom: 3px;
}

.footer-inner a {
    color: #8fd3f3;
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #c3eeff;
    outline-offset: 3px;
}

.contrast a:focus-visible,
.contrast button:focus-visible {
    outline-color: #155f88;
}

/* TABLET */

@media (max-width: 950px) {
    .home-page,
    .content-page {
        --header-height: 72px;
    }

    .nav {
        min-height: 72px;
    }

    .nav:not(.nav-ready) {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 14px;
    }

    .nav:not(.nav-ready) .nav-links {
        width: 100%;
        flex-basis: 100%;
        flex-wrap: wrap;
    }

    .nav.nav-ready .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        background: #182b38;
        border: 1px solid #3c5667;
        color: #d9edf5;
        padding: 10px 12px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    .nav-toggle:hover,
    .nav-toggle[aria-expanded="true"] {
        border-color: #79b6d6;
        background: #203d50;
    }

    .nav.nav-ready .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 30px;
        width: min(360px, calc(100% - 40px));
        background: #13212dfc;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: 1px solid #38505e;
        border-radius: 12px;
        box-shadow: 0 20px 50px #020b1480;
        max-height: calc(100svh - var(--header-height, 72px) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links > a {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .nav-links > .nav-cta {
        margin: 4px 0 0;
        justify-content: space-between;
    }

    .nav.nav-ready .nav-links.open {
        display: flex;
    }

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

    .applications {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .band-inner {
        flex-direction: column;
        align-items: start;
    }

    .section-head {
        gap: 30px;
    }
}

/* MOBILE */

@media (max-width: 640px) {
    .nav.nav-ready .nav-links {
        right: 20px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero-kicker {
        margin-bottom: 16px;
        font-size: 9px;
        letter-spacing: .14em;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 360px);
        gap: 10px;
        margin-top: 20px;
    }

    .hero-actions .button {
        min-width: 0;
        gap: 8px;
        padding: 12px;
        font-size: 12px;
    }

    #wybrane-opracowania .section-head > p {
        display: none;
    }

    .lead {
        font-size: 15px;
    }

    .section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .section-head,
    .contact-inner {
        display: block;
    }

    .section-head > p {
        margin-top: 20px;
    }

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

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
    }

    .steps h3 {
        margin-top: 18px;
    }

    .contact-actions {
        margin-top: 30px;
    }

    .contact h2 {
        font-size: clamp(36px, 8vw, 50px);
    }

    .footer-inner {
        align-items: start;
        flex-direction: column;
    }

    .band-inner div {
        flex-wrap: wrap;
        gap: 12px;
    }

}


/* Podstrony usług i odnośniki kart */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--blue);
    color: #082132;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.service-card { position: relative; }
.service-link::after { content: ""; position: absolute; inset: 0; }
.service-card:focus-within { border-color: var(--blue); }
.breadcrumbs { padding-top: 30px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 12px; color: var(--blue); }
.breadcrumbs a:hover, .related-services a:hover { text-decoration: underline; }
.service-hero { padding-top: 65px; padding-bottom: 65px; border-bottom: 1px solid var(--edge); }
.service-hero h1 { max-width: 1000px; overflow-wrap: anywhere; }
.service-hero .lead { max-width: 780px; }
.service-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.service-details > * { min-width: 0; }
.service-copy { max-width: 780px; color: var(--muted); font-size: 17px; line-height: 1.8; margin-top: 26px; }
.service-details h3 { margin-top: 32px; }
.service-deliverables { background: var(--panel); border: 1px solid var(--edge); padding: 30px; }
.service-deliverables h2 { font-size: clamp(28px, 3vw, 38px); }
.service-list { padding-left: 22px; color: var(--muted); line-height: 1.8; }
.service-list li + li { margin-top: 12px; }
#wycena { scroll-margin-top: 90px; }
#wycena .service-list { max-width: 640px; color: #b6d0dc; }
.related-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 32px 0 0; list-style: none; }
.related-services a { display: flex; justify-content: space-between; gap: 15px; padding: 20px; border: 1px solid var(--edge); height: 100%; }
@media (max-width: 950px) {
    .service-details { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 640px) {
    .service-hero { padding-top: 40px; padding-bottom: 45px; }
    .service-hero h1 { font-size: clamp(34px, 9vw, 46px); }
    .service-deliverables { padding: 22px; }
    .related-services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .service-card { transition: none; }
    .button:hover { transform: none; }
    .nav-links > a,
    .nav-toggle-icon::before,
    .nav-toggle-icon::after { transition: none; }
}
