:root {
    --bg: #071625;
    --bg-deep: #04111d;
    --panel: rgba(11, 31, 52, 0.9);
    --panel-soft: rgba(13, 38, 63, 0.72);
    --line: rgba(146, 187, 228, 0.18);
    --line-strong: rgba(146, 187, 228, 0.32);
    --text: #f4f7fb;
    --muted: #a8bed5;
    --blue: #74c5ff;
    --cyan: #58e0db;
    --shadow: 0 28px 80px rgba(2, 10, 21, 0.35);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(88, 224, 219, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(116, 197, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #061525 0%, #071a2c 45%, #050f1b 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 82%);
    pointer-events: none;
    z-index: -1;
}

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

img,
video {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(6, 20, 34, 0.76);
    border-bottom: 1px solid rgba(146, 187, 228, 0.12);
}

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

.brand-lockup {
    display: flex;
    align-items: center;
}

.brand-logo-image {
    display: block;
    width: min(220px, 28vw);
    max-height: 72px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    padding: 6px 10px;
    box-shadow: 0 14px 32px rgba(3, 11, 21, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(116, 197, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.lang-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-button:hover {
    color: var(--text);
}

.lang-button.is-active {
    background: linear-gradient(135deg, #70bfff 0%, #4fe0d9 100%);
    color: #052238;
    box-shadow: 0 12px 24px rgba(82, 196, 244, 0.2);
}

.nav-link {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border-color: rgba(116, 197, 255, 0.58);
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(116, 197, 255, 0.26);
    background: linear-gradient(180deg, rgba(116, 197, 255, 0.18), rgba(88, 224, 219, 0.12));
    color: var(--text);
    font-weight: 700;
}

.mobile-button {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.mobile-menu {
    display: none;
    padding-bottom: 18px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(8, 24, 41, 0.95);
    border: 1px solid var(--line);
}

.mobile-lang-switch {
    display: none;
    justify-self: start;
    margin-bottom: 6px;
}

.menu-link {
    color: var(--muted);
    font-weight: 700;
}

.menu-link.active,
.menu-link:hover {
    color: var(--text);
}

main {
    padding: 28px 0 56px;
}

.hero-home,
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(146, 187, 228, 0.18);
    background: linear-gradient(180deg, rgba(8, 24, 40, 0.94), rgba(8, 24, 40, 0.78));
    box-shadow: var(--shadow);
}

.hero-home::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(116, 197, 255, 0.14), transparent 26%),
        radial-gradient(circle at 84% 24%, rgba(88, 224, 219, 0.1), transparent 28%);
    pointer-events: none;
}

.hero-home-inner,
.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
    padding: 34px;
}

.page-hero-inner {
    align-items: center;
}

.hero-copy,
.page-copy {
    max-width: 38rem;
}

.eyebrow,
.section-kicker {
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
    color: var(--blue);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.chip-row,
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(146, 187, 228, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    box-shadow: 0 0 16px rgba(88, 224, 219, 0.75);
}

.hero-title,
.page-title {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.page-title {
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}

.lead,
.section-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 68ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border-radius: 18px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, #70bfff 0%, #4fe0d9 100%);
    color: #052238;
    box-shadow: 0 16px 36px rgba(82, 196, 244, 0.22);
}

.button-secondary {
    border: 1px solid rgba(146, 187, 228, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.hero-meta {
    display: grid;
    gap: 16px;
    align-content: start;
}

.visual-card,
.card,
.media-card,
.contact-card,
.cta-banner {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.visual-card,
.media-card,
.card,
.contact-card {
    padding: 22px;
}

.visual-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.visual-label strong {
    color: var(--text);
    font-size: 1rem;
}

.image-shell,
.video-shell {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(146, 187, 228, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.image-shell picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.image-shell img {
    width: 100%;
    height: auto;
}

.video-shell video {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
}

.video-shell iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    border: 0;
}

.video-link-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(146, 187, 228, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.video-link-card img {
    display: block;
    width: 100%;
    height: auto;
}

.video-link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 18, 31, 0.08), rgba(5, 18, 31, 0.46));
    pointer-events: none;
}

.video-link-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(6, 21, 37, 0.88);
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(2, 10, 21, 0.3);
}

.video-link-badge::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--blue);
}

.grid-2,
.grid-3,
.grid-4,
.metrics-grid,
.timeline-grid,
.page-link-grid {
    display: grid;
    gap: 18px;
}

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

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

.grid-4,
.page-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card h3,
.metric-card strong,
.page-link-card strong {
    margin: 0 0 10px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.card p,
.metric-card p,
.page-link-card p,
.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.74;
}

.metric-card,
.page-link-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(12, 32, 53, 0.92);
}

.metric-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(146, 187, 228, 0.15);
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-section {
    padding-top: 34px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.card-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    line-height: 1.72;
}

.card-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.timeline-step {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(12, 32, 53, 0.92);
}

.timeline-step span {
    display: block;
    margin-bottom: 10px;
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
    color: var(--blue);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
}

.timeline-step h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.timeline-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.page-link-card {
    display: grid;
    gap: 10px;
}

.page-link-card::after {
    content: "Otwórz";
    color: var(--blue);
    font-weight: 800;
    justify-self: end;
    align-self: end;
    margin-top: 10px;
}

.note-box {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(146, 187, 228, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #d8e8f6;
    line-height: 1.74;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    margin-top: 34px;
    background: linear-gradient(135deg, rgba(15, 40, 67, 0.98), rgba(9, 25, 42, 0.95));
}

.cta-banner h3,
.contact-card h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.contact-card {
    display: grid;
    gap: 18px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer {
    padding: 0 0 42px;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(146, 187, 228, 0.12);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: block;
    width: min(200px, 34vw);
    max-height: 68px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    padding: 8px 12px;
    box-shadow: 0 14px 28px rgba(3, 11, 21, 0.24);
}

.muted-link:hover {
    color: var(--text);
}

@media (max-width: 1120px) {
    .hero-home-inner,
    .page-hero-inner,
    .grid-4,
    .page-link-grid,
    .grid-3,
    .metrics-grid,
    .timeline-grid,
    .cta-banner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-home-inner,
    .page-hero-inner {
        grid-template-columns: 1fr;
    }
}

.page-link-card[data-card-cta]::after {
    content: attr(data-card-cta);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .lang-switch-desktop {
        display: none;
    }

    .mobile-button {
        display: inline-grid;
        place-items: center;
    }

    .mobile-lang-switch {
        display: inline-flex;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .metrics-grid,
    .timeline-grid,
    .page-link-grid,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .hero-home-inner,
    .page-hero-inner {
        padding: 24px;
    }

    .brand-logo-image {
        width: min(190px, 42vw);
        max-height: 64px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1240px);
    }

    .brand-logo-image {
        width: min(160px, 48vw);
        max-height: 56px;
        padding: 5px 8px;
    }

    .footer-logo {
        width: min(170px, 56vw);
        max-height: 56px;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .cta-row,
    .contact-actions {
        display: grid;
    }

    .hero-title,
    .page-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
