:root {
    --bg: #111315;
    --panel: #1b1f23;
    --panel-light: #232930;
    --text: #f7f9fb;
    --muted: #a9b2bd;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #950000;
    --accent-strong: #c90b0b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(40, 184, 255, 0.12), transparent 34rem),
        linear-gradient(135deg, #000000 0%, #420000 46%, #101214 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

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

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

.site-header {
    position: fixed;
    /* zamiast sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 19, 21, 0.6);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    width: 150px;
    height: 70px;
    background: url("Images/250x150_white.png") center / contain no-repeat;
}

.brand-text {
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    display: block;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: rgba(40, 184, 255, 0.12);
    color: var(--text);
    transform: translateY(-2px);
    outline: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 32px;
}

.hero {
    display: grid;
    min-height: calc(100vh - 118px);
    align-items: center;
    padding: 72px 0;
}

.hero-content {
    max-width: 780px;
}

.eyebrow,
.section-label {
    color: var(--accent-strong);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin: 14px 0 22px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
}

p {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero p:not(.eyebrow) {
    max-width: 680px;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

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

.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #071015;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.04);
}

.content-section,
.contact-section {
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(27, 31, 35, 0.82);
    box-shadow: var(--shadow);
}

.content-section {
    padding: clamp(24px, 5vw, 54px);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 6vw, 72px);
    margin-top: 16px;
}

.section-heading {
    margin: 16px 0 26px;
}

.client-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.client-card {
    display: grid;
    min-height: 230px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    background: var(--panel-light);
    color: var(--text);
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    flex: 0 0 320px;
}

.client-card:hover {
    border-color: rgba(40, 184, 255, 0.55);
    background: #28303a;
    transform: translateY(-6px);
}

.client-card img {
    width: min(220px, 80%);
    height: 130px;
    object-fit: contain;
    margin-bottom: 18px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 5vw, 46px);
}

.contact-section h2 {
    margin-top: 12px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-list a:hover {
    border-color: rgba(44, 224, 168, 0.55);
    transform: translateX(4px);
}

.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 38px;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    .no-main-container {
        margin-top: 25px;
    }

    .nav {
        width: min(100% - 28px, 1180px);
        min-height: 74px;
    }

    .brand-logo {
        width: 62px;
        height: 38px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        display: none;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(17, 19, 21, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open,
    body.menu-open .nav-links {
        display: grid;
    }

    .nav-links a {
        border-radius: 8px;
        padding: 12px 14px;
    }

    .main {
        width: min(100% - 28px, 1180px);
        padding-top: 28px;
    }

    .hero {
        min-height: calc(100vh - 88px);
        padding: 44px 0;
    }

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

    .section-grid,
    .client-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .client-card {
        min-height: 210px;
    }

    .contact-list a {
        display: grid;
        gap: 2px;
    }
}

.hero-player {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-player {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* PLAYER BACKGROUND */
.media-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 6s ease;
}

.media-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* DARK OVERLAY */
.hero-player::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.65));
    z-index: 1;
}

/* CONTENT ON TOP */
.hero-overlay {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    min-height: calc(100vh - 118px);
    padding: 72px 0;
}

.no-main-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    align-items: center;
    padding-left: clamp(16px, 6vw, 120px);
    padding-right: 16px;
}

.no-main-container-content {
    max-width: 720px;
}

@view-transition {
    navigation: auto;
}

.spec-table td {
    padding: 14px 10px;
    vertical-align: top;
}

.spec-table {
    border-collapse: collapse;
    /* Sprawia, że padding działa poprawnie na komórkach */
    width: 100%;
    /* Opcjonalnie: tabela rozciągnie się na pełną szerokość */
}