:root {
    --bg: #070707;
    --bg-soft: #101010;
    --panel: rgba(10, 10, 10, 0.68);
    --panel-2: rgba(18, 18, 18, 0.88);
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.06);
    --text: #f5f0e9;
    --text-soft: #d4cdc3;
    --text-muted: #aba195;
    --accent: #c31616;
    --accent-strong: #e11d1d;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 24px;
    --container: 1240px;
    --nav-height: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #090909 0%, #060606 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

body.menu-open {
    overflow: hidden;
}

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

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

.container {
    width: min(100% - 36px, var(--container));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 110px 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.96));
    background-size: 64px 64px, 64px 64px, auto;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 42px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #ff2d2d;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 1.06rem;
}

/* NAVBAR */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(5, 5, 5, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.04);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.top-navbar.scrolled {
    background: rgba(5, 5, 5, 0.86);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(255,255,255,0.06);
}

.navbar-inner {
    min-height: var(--nav-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-self: start;
}

.brand::after {
    content: "";
    position: absolute;
    inset: -8px -10px;
    background: radial-gradient(circle, rgba(195, 22, 22, 0.14) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.brand-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 4px 6px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: 0.25s ease;
}

.nav-menu {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 999px;
    background: rgba(255,255,255,0.025);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
}

.nav-menu a {
    position: relative;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.04);
}

.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(195, 22, 22, 0.34);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.nav-cta-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d91f1f 0%, #a50f0f 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 24px rgba(195, 22, 22, 0.24);
}

.nav-cta-number {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #0b0b0b;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/tlo.png");
    background-size: cover;
    background-position: center 22%;
    transform: scale(1);
    filter: saturate(1.02) contrast(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 24%, rgba(0,0,0,0.42) 58%, rgba(0,0,0,0.72) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.22) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #070707 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 140px 0 90px;
}

.hero-copy {
    max-width: 920px;
    margin: 0 auto;
}

.hero-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    max-width: none;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(86, 23, 12, 0.58);
    color: #f4d5c9;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.24);
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #f5efe8;
    text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.hero-text {
    max-width: 760px;
    margin: 0 auto 32px;
    color: rgba(245, 239, 232, 0.88);
    font-size: 1.08rem;
    line-height: 1.7;
    text-shadow: 0 4px 18px rgba(0,0,0,0.38);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 16px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
    background: linear-gradient(180deg, #d91f1f 0%, #a50f0f 100%);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(195, 22, 22, 0.36);
}

.btn-primary:hover {
    box-shadow: 0 20px 46px rgba(195, 22, 22, 0.48);
}

.btn-secondary {
    background: rgba(20,20,20,0.38);
    border: 1px solid rgba(255,255,255,0.16);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.btn-secondary:hover {
    background: rgba(28,28,28,0.52);
    border-color: rgba(255,255,255,0.24);
}

/* INFO */
.info-section {
    position: relative;
    background:
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(180deg, #070707 0%, #090909 100%);
    background-size: 64px 64px, 64px 64px, auto;
}

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

.info-card {
    position: relative;
    padding: 34px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18,18,18,0.62), rgba(10,10,10,0.72));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 22px 54px rgba(0,0,0,0.34);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(195, 22, 22, 0.34);
    background: linear-gradient(180deg, rgba(24,24,24,0.68), rgba(12,12,12,0.78));
}

.info-card h3 {
    font-size: 1.46rem;
    line-height: 1.12;
    margin-bottom: 14px;
}

.info-card p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

/* PRICING */
.pricing-section {
    background-color: #050505;
}

.pricing-table-wrapper {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(10,10,10,0.96));
    box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 20px 22px;
}

.pricing-table th {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-table tbody tr {
    border-top: 1px solid rgba(255,255,255,0.07);
    transition: background 0.22s ease;
}

.pricing-table tbody tr:hover {
    background: rgba(195, 22, 22, 0.08);
}

.pricing-table td {
    color: var(--text-soft);
}

.pricing-table td:nth-child(2) {
    max-width: 420px;
    color: #cfcfcf;
    font-size: 0.95rem;
}

.pricing-table td:last-child {
    color: #ff3434;
    font-weight: 800;
}

/* CONTACT */
.contact-section {
    background-color: #050505;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.contact-card {
    padding: 30px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18,18,18,0.62), rgba(10,10,10,0.72));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 22px 54px rgba(0,0,0,0.34);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(4px);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(195, 22, 22, 0.34);
    background: linear-gradient(180deg, rgba(24,24,24,0.68), rgba(12,12,12,0.78));
}

.contact-card h3 {
    font-size: 1.34rem;
    margin-bottom: 14px;
}

.contact-card p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.contact-card a {
    color: #ffffff;
    font-weight: 800;
}

.map-container {
    margin-top: 40px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 54px rgba(0,0,0,0.34);
}

.contact-card a:hover {
    color: #ff3c3c;
}

/* FOOTER BAR */
.bottom-contact-bar {
    position: relative;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom-contact-bar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.bottom-contact-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
}

.bottom-contact-item {
    color: var(--text-soft);
    font-size: 1rem;
}

.bottom-contact-item strong {
    color: #ffffff;
    margin-right: 8px;
}

.bottom-contact-item a:hover {
    color: #ff3c3c;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* RESPONSIVE */
@media (max-width: 1100px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .bottom-contact-inner {
        grid-template-columns: 1fr;
        padding: 18px 0;
    }
}

@media (max-width: 860px) {
    .navbar-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(8, 8, 8, 0.98);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 24px 60px rgba(0,0,0,0.35);
        justify-self: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: 92vh;
        padding: 120px 0 72px;
        align-items: flex-end;
    }

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

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.8rem);
    }

    .hero-text {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .section {
        padding: 86px 0;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 100svh;
    }

    .hero-bg {
        background-image: url("../img/tlo-mobile.png");
        background-size: cover;
        background-position: center center;
    }

    .hero-content {
        min-height: 92vh;
        padding: 110px 0 56px;
    }

    .hero-copy {
        max-width: 100%;
        padding: 0 6px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 9px 16px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.8rem);
        line-height: 0.96;
        margin-bottom: 18px;
    }

    .hero-text {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 26px;
    }

    .section-heading h2 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 16px 14px;
        font-size: 0.95rem;
    }

    .info-card,
    .contact-card {
        padding: 24px 20px;
    }

    .bottom-contact-item {
        font-size: 0.95rem;
    }
}

/* ===== MOBILE HERO IMPROVEMENTS ===== */

@media (max-width: 640px) {

    /* hero wyższy żeby tło miało miejsce */
    .hero {
        min-height: 92vh;
        padding-top: 110px;
        padding-bottom: 80px;
    }

    /* tło lepiej kadrowane */
    .hero-bg {
        background-position: center 30%;
        background-size: cover;
    }

    /* nagłówek trochę bardziej elegancki */
    .hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.02;
        letter-spacing: -0.02em;
    }

    /* opis czytelniejszy */
    .hero-text {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 92%;
        margin: 0 auto 28px;
    }

    /* badge lekko powiększony */
    .hero-badge {
        font-size: 0.78rem;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    /* przycisk bardziej mobile-friendly */
    .hero-buttons .btn {
        height: 56px;
        font-size: 0.95rem;
        letter-spacing: 0.04em;
        border-radius: 14px;
    }

}