html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.page-content {
    min-height: 100%;
}

/* Sticky Header */
.header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 70px;
    box-sizing: border-box;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: #38bdf8;
}

/* Sekcja HERO na PEŁNY EKRAN */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    height: calc(100vh - 70px); /* 100% wysokości okna minus wysokość nagłówka */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 19px;
    color: #94a3b8;
    max-width: 850px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Karty wskaźników w sekcji Hero */
.hero-metrics {
    display: flex;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
}

.metric-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0284c7;
    padding: 20px 15px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.metric-card strong {
    display: block;
    color: #38bdf8;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.metric-card span {
    color: #cbd5e1;
    font-size: 13px;
}

.btn-primary {
    display: inline-block;
    background-color: #0284c7;
    color: #ffffff;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0369a1;
}

.container {
    padding: 0 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Pełnoekranowa izolacja poszczególnych sekcji */
.section-block {
    min-height: calc(100vh - 70px);
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 40px;
}

h2 {
    color: #0f172a;
    font-size: 26px;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
    scroll-margin-top: 90px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
}

table,
th,
td {
    border: 1px solid #e2e8f0;
}

th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 14px;
    font-size: 14px;
}

td {
    padding: 14px;
    vertical-align: top;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.benefit-card {
    background-color: #f8fafc;
    border-top: 3px solid #0284c7;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.benefit-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #0f172a;
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 14px;
    color: #475569;
}

.contact-box {
    background-color: #f1f5f9;
    border-left: 4px solid #0284c7;
    padding: 35px;
    margin-top: 20px;
    border-radius: 4px;
}

.contact-box p {
    margin: 10px 0;
    font-size: 15px;
}

.footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* Hamburger button — ukryty na desktopie */
.nav-toggle {
    display: none;
}

/* Nav — domyślnie poziome (desktop) */
.nav {
    display: flex;
}

@media (max-width: 1024px) {
    .header {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 14px;
    }

    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-metrics {
        gap: 14px;
    }

    .section-block {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        z-index: 3000;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Przycinamy SVG logo do wolnej przestrzeni */
    .header > a {
        overflow: hidden;
        max-width: calc(100% - 56px);
    }

    .header svg {
        width: 100%;
        max-width: 280px;
        height: auto;
        display: block;
    }

    /* Hamburger button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        flex-shrink: 0;
    }

    .nav-toggle__bar {
        display: block;
        width: 24px;
        height: 2px;
        background: #f8fafc;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    /* Animacja X gdy menu otwarte */
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .page-content {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Dropdown menu */
    .nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #0f172a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        z-index: 2999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.nav--open {
        max-height: 400px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 14px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    /* Treść poniżej nagłówka — stały offset 70px jak na desktopie */
    .hero {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .metric-card {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 16px;
    }

    .section-block {
        padding-top: 36px;
        padding-bottom: 36px;
        scroll-margin-top: 86px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .benefit-card,
    .contact-box {
        padding: 20px;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 18px;
    }

    th,
    td {
        min-width: 220px;
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header svg {
        max-width: 230px;
    }

    .hero {
        padding: 32px 12px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .container {
        padding: 0 12px;
    }

    .footer {
        padding: 16px 12px;
    }
}

