:root {
    --bg: #f0ece4;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --ink: #0d1117;
    --muted: #4e5a68;
    --line: rgba(16, 20, 25, 0.12);
    --brand: #c41c2c;
    --brand-deep: #8b0f1a;
    --brand-vivid: #e8222f;
    --accent: #e07a44;
    --accent-soft: #f5d1b4;
    --dark: #0d1117;
    --dark-soft: #141c26;
    --dark-mid: #1b2536;
    --success: #0c7a4e;
    --danger: #9d1c1c;
    --shadow: 0 24px 64px rgba(10, 15, 25, 0.18);
    --shadow-red: 0 16px 48px rgba(196, 28, 44, 0.32);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: min(1180px, calc(100vw - 32px));
    --hero-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196,28,44,0.35) 0%, transparent 60%);
    --scroll-progress: 0;
    --pointer-x: 50%;
    --pointer-y: 45%;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(196, 28, 44, 0.08), transparent 30%),
        radial-gradient(circle at right 15%, rgba(224, 122, 68, 0.10), transparent 28%),
        linear-gradient(180deg, #f8f4ee 0%, var(--bg) 100%);
    line-height: 1.6;
    min-width: 320px;
}

html[lang="pl"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), rgba(224, 122, 68, 0.10), transparent 55%),
        radial-gradient(420px circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(196, 28, 44, 0.09), transparent 60%);
    transition: background-position 0.18s ease;
}

html[lang="pl"] body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 90;
    pointer-events: none;
    background: linear-gradient(90deg, var(--brand-vivid) 0%, var(--accent) 100%);
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress));
    box-shadow: 0 0 16px rgba(196, 28, 44, 0.45);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(178, 31, 45, 0.4);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(251, 248, 243, 0.78);
    border-bottom: 1px solid rgba(16, 20, 25, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

    .brand-logo {
        height: 58px;
        width: auto;
        display: block;
    }

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 55%, var(--accent) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span {
    font-size: 0.73rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    align-items: center;
    justify-content: center;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    content: "";
    display: block;
}

.nav-toggle-box {
    position: relative;
}

.nav-toggle-box::before {
    position: absolute;
    transform: translateY(-6px);
}

.nav-toggle-box::after {
    position: absolute;
    transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
    transform: rotate(-45deg);
}

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

.nav-list,
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-switch .flag {
    width: 22px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
}

.nav-item-offer {
    position: relative;
}

/* Bridge: fills the 14px gap between nav link and submenu panel so
   the mouse doesn't leave the hover zone when moving downward */
.nav-item-offer::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 20px;
}

.nav-item-offer > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-item-offer > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.22s ease;
    opacity: 0.75;
}

.offer-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    z-index: 80;
    list-style: none;
    margin: 0;
    padding: 14px;
    min-width: min(720px, 78vw);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(250, 243, 234, 0.93) 100%),
        radial-gradient(circle at top right, rgba(196, 28, 44, 0.14), transparent 38%);
    box-shadow: 0 28px 72px rgba(10, 15, 25, 0.24);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transform-origin: top left;
    /* 150ms close delay – prevents snap-close when crossing the gap */
    transition: opacity 0.24s ease 150ms, transform 0.24s ease 150ms, visibility 0.24s ease 150ms;
}

.offer-submenu::before {
    content: "Obszary oferty";
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    padding: 2px 4px 8px;
    border-bottom: 1px solid rgba(16, 20, 25, 0.1);
}

.offer-submenu li {
    min-width: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.offer-submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2a37;
    border: 1px solid rgba(178, 31, 45, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.offer-submenu a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(196, 28, 44, 0.12) 0%, rgba(224, 122, 68, 0.12) 100%);
    border-color: rgba(196, 28, 44, 0.38);
    color: var(--brand-deep);
    box-shadow: 0 10px 24px rgba(196, 28, 44, 0.22);
}

.nav-item-offer:hover .offer-submenu,
.nav-item-offer:focus-within .offer-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0ms; /* open immediately */
}

.nav-item-offer:hover > a::after,
.nav-item-offer:focus-within > a::after {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-item-offer:hover .offer-submenu li,
.nav-item-offer:focus-within .offer-submenu li {
    opacity: 1;
    transform: translateY(0);
}

.nav-item-offer:hover .offer-submenu li:nth-child(2),
.nav-item-offer:focus-within .offer-submenu li:nth-child(2) {
    transition-delay: 30ms;
}

.nav-item-offer:hover .offer-submenu li:nth-child(3),
.nav-item-offer:focus-within .offer-submenu li:nth-child(3) {
    transition-delay: 60ms;
}

.nav-item-offer:hover .offer-submenu li:nth-child(4),
.nav-item-offer:focus-within .offer-submenu li:nth-child(4) {
    transition-delay: 90ms;
}

.nav-item-offer:hover .offer-submenu li:nth-child(5),
.nav-item-offer:focus-within .offer-submenu li:nth-child(5) {
    transition-delay: 120ms;
}

.nav-item-offer:hover .offer-submenu li:nth-child(6),
.nav-item-offer:focus-within .offer-submenu li:nth-child(6) {
    transition-delay: 150ms;
}

.nav-item-offer:hover .offer-submenu li:nth-child(7),
.nav-item-offer:focus-within .offer-submenu li:nth-child(7) {
    transition-delay: 180ms;
}

.nav-list a,
.lang-switch a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover,
.lang-switch a:hover,
.nav-list a.active,
.lang-switch a.active {
    background: rgba(178, 31, 45, 0.1);
    color: var(--brand);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-vivid) 0%, var(--brand-deep) 100%);
    box-shadow: 0 8px 24px rgba(196, 28, 44, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-hero {
    position: relative;
    padding: 72px 0 36px;
}

.hero-grid,
.split-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 24, 34, 0.88);
    color: #fff;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.1;
}

h1 {
    margin-top: 18px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 14ch;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    max-width: 16ch;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
    letter-spacing: -0.005em;
}

.lead,
.section-lead,
.supporting-copy,
.hero-note p,
.card p,
.timeline-item p,
.contact-panel p,
.legal-copy p,
.footer-meta,
.list-check,
.stat p,
.testimonial p,
.notice,
.form-status {
    color: var(--muted);
}

.lead {
    margin: 22px 0 0;
    font-size: 1.08rem;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button {
    background: linear-gradient(135deg, var(--brand-vivid) 0%, var(--brand) 50%, var(--brand-deep) 100%);
    background-size: 180% 180%;
    color: #fff;
    box-shadow: 0 14px 36px rgba(196, 28, 44, 0.40);
    animation: cta-shift 5s ease-in-out infinite;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(196, 28, 44, 0.55);
}

.button-secondary:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

@keyframes cta-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-panel,
.panel,
.card,
.contact-panel,
.testimonial,
.timeline-item,
.legal-copy,
.stat,
.badge-grid li,
.feature-list li {
    background: var(--surface);
    border: 1px solid rgba(16, 20, 25, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card,
.contact-panel,
.offer-thumb,
.hero-note,
.legal-copy,
.timeline-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.card::before,
.contact-panel::before,
.offer-thumb::before,
.hero-note::before,
.legal-copy::before,
.timeline-item::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(196, 28, 44, 0.16), transparent 46%);
    transition: opacity 0.25s ease;
}

.card:hover::before,
.contact-panel:hover::before,
.offer-thumb:hover::before,
.hero-note:hover::before,
.legal-copy:hover::before,
.timeline-item:hover::before {
    opacity: 1;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(178, 31, 45, 0.24), transparent 36%),
        linear-gradient(180deg, rgba(18, 24, 34, 0.04), transparent 60%);
    pointer-events: none;
}

.hero-note {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 20, 25, 0.08);
}

.hero-note + .hero-note {
    margin-top: 14px;
}

.hero-note strong,
.mini-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.section {
    padding: 36px 0;
}

.offer-overview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.offer-thumb {
    display: block;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 20, 25, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.offer-thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(178, 31, 45, 0.26);
}

.offer-thumb strong {
    display: block;
    margin-bottom: 6px;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
}

.offer-thumb p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
}

.content-with-visual {
    display: grid;
    gap: 18px;
    align-items: center;
}

.media-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(16, 20, 25, 0.08);
    box-shadow: var(--shadow);
    background: #0d1117;
}

.media-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.media-card figcaption {
    padding: 10px 14px;
    font-size: 0.86rem;
    color: rgba(240, 236, 228, 0.78);
    background: rgba(13, 17, 23, 0.96);
}

.quick-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.quick-points li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 20, 25, 0.08);
    color: var(--muted);
}

.quick-points li strong {
    display: block;
    color: var(--ink);
    margin-bottom: 3px;
}

.section-band .quick-points li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: rgba(240, 236, 228, 0.72);
}

.section-band .quick-points li strong {
    color: #f0ece4;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.badge-grid,
.card-grid,
.feature-list,
.timeline,
.stat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.badge-grid,
.stat-grid,
.card-grid,
.feature-list {
    display: grid;
    gap: 16px;
}

.badge-grid li,
.feature-list li,
.card,
.stat,
.timeline-item {
    padding: 20px;
}

.badge-grid li span,
.feature-list li span {
    display: block;
    font-weight: 700;
}

.list-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.list-check::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.section-band {
    padding: 56px 0;
    background: linear-gradient(160deg, #0d1117 0%, #141c26 50%, #1b1025 100%);
    color: #f0ece4;
    position: relative;
    overflow: hidden;
}

.section-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgba(196,28,44,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 90% 80%, rgba(224,122,68,0.10) 0%, transparent 50%);
    pointer-events: none;
}

.section-band .section-lead,
.section-band .supporting-copy,
.section-band .card p,
.section-band .stat p,
.section-band .testimonial p,
.section-band .footer-meta,
.section-band .notice {
    color: rgba(240, 236, 228, 0.68);
}

.section-band .card,
.section-band .stat,
.section-band .testimonial,
.section-band .timeline-item,
.section-band .contact-panel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.section-band .feature-list li,
.section-band .badge-grid li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
    color: rgba(240, 236, 228, 0.72);
}

.section-band .feature-list li span,
.section-band .badge-grid li span {
    color: #f0ece4;
}

.section-band .mini-label {
    color: var(--accent);
}

.section-band h2,
.section-band h3 {
    color: #f0ece4;
}

.split-grid {
    align-items: start;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 72px;
}

.timeline-index {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-weight: 800;
}

.stat-grid .stat strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.testimonial cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 700;
}

.contact-grid {
    align-items: start;
}

.contact-panel {
    padding: 22px;
}

.contact-lines {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-line strong,
.contact-line span {
    display: block;
}

.contact-line strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label,
.checkbox-row label {
    font-weight: 700;
}

.field-group input,
.field-group textarea {
    width: 100%;
    border: 1px solid rgba(16, 20, 25, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
}

.field-group textarea {
    min-height: 160px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checkbox-row input {
    margin-top: 0.35rem;
}

.form-status {
    min-height: 1.5rem;
    margin: 0;
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: var(--danger);
}

.site-footer {
    padding: 40px 0 28px;
}

.footer-grid {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(17, 22, 29, 0.96);
    color: #f8f3ed;
}

.footer-links,
.footer-legal,
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-links a,
.footer-legal a,
.inline-links a {
    color: rgba(248, 243, 237, 0.84);
}

.footer-links a:hover,
.footer-legal a:hover,
.inline-links a:hover {
    color: #ffffff;
}

.footer-meta {
    margin: 0;
}

.legal-hero {
    padding-bottom: 20px;
}

.legal-copy {
    padding: 28px;
}

.legal-copy h2 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.legal-copy h3 {
    margin-top: 22px;
}

.legal-copy p,
.legal-copy li {
    max-width: 74ch;
}

.notice {
    font-size: 0.95rem;
}

@media (min-width: 720px) {
    .hero-grid,
    .contact-grid,
    .footer-grid,
    .split-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .content-with-visual {
        grid-template-columns: 1.1fr 0.9fr;
    }

}

@media (min-width: 1024px) {
    .page-hero {
        padding-top: 96px;
        padding-bottom: 46px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    }

    .split-grid.layout-thirds {
        grid-template-columns: 0.8fr 1.2fr;
    }

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

@media (max-width: 899px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        padding: 18px;
        border: 1px solid rgba(16, 20, 25, 0.08);
        border-radius: 24px;
        box-shadow: var(--shadow);
        background: rgba(255, 255, 255, 0.96);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list,
    .lang-switch {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-logo {
        height: 52px;
    }

    .nav-item-offer {
        display: grid;
        gap: 8px;
    }

    .offer-submenu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        background: transparent;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .offer-submenu::before {
        padding: 2px 2px 6px;
    }

    .offer-submenu li {
        opacity: 1;
        transform: none;
    }

    .offer-submenu a {
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
    }

    .nav-list a,
    .lang-switch a,
    .nav-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 719px) {
    .page-hero {
        padding-top: 56px;
    }

    .offer-submenu {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .contact-panel,
    .legal-copy,
    .footer-grid {
        padding: 18px;
    }

    .timeline-item {
        padding-left: 20px;
        padding-top: 72px;
    }

    .timeline-index {
        left: 20px;
        top: 20px;
    }
}

/* ═══════════════════════════════════════
   DARK HERO – dramatyczny ciemny header
   ═══════════════════════════════════════ */
.hero-dark {
    position: relative;
    padding: 80px 0 56px;
    background: linear-gradient(160deg, #0d1117 0%, #151d29 55%, #1a0d14 100%);
    color: #f0ece4;
    overflow: hidden;
}

.hero-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--hero-glow),
        radial-gradient(ellipse 45% 50% at 95% 60%, rgba(224,122,68,0.12) 0%, transparent 55%);
    pointer-events: none;
    transform: translate(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px));
    transition: transform 0.25s ease-out;
}

.hero-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,28,44,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,28,44,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-dark .eyebrow {
    background: rgba(196,28,44,0.18);
    border: 1px solid rgba(196,28,44,0.40);
    color: #f9bbc0;
}

.hero-dark .eyebrow::before {
    background: var(--brand-vivid);
    box-shadow: 0 0 8px rgba(232,34,47,0.80);
}

.hero-dark h1 {
    color: #ffffff;
    text-shadow: 0 2px 32px rgba(196,28,44,0.18);
}

.hero-dark .lead {
    color: rgba(240,236,228,0.78);
}

.hero-dark .hero-panel {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
}

.hero-dark .hero-note {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
}

.hero-dark .hero-note strong,
.hero-dark .mini-label {
    color: var(--accent);
}

.hero-dark .hero-note p {
    color: rgba(240,236,228,0.72);
}

.hero-dark .button-secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.20);
    color: #fff;
}

.hero-dark .button-secondary:hover {
    background: rgba(255,255,255,0.14);
}

/* ═══════════════════════════════════════
   SERVICE ICON CARDS
   ═══════════════════════════════════════ */
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(196,28,44,0.12) 0%, rgba(224,122,68,0.12) 100%);
    border: 1px solid rgba(196,28,44,0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--brand-vivid);
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card:hover .service-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(196,28,44,0.22);
}

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 72px rgba(10,15,25,0.18);
}

/* ═══════════════════════════════════════
   CYBER SECTION – wyróżniona sekcja
   ═══════════════════════════════════════ */
.section-cyber {
    padding: 56px 0;
    background: linear-gradient(135deg, #0a0d14 0%, #12081a 60%, #0d1117 100%);
    color: #f0ece4;
    position: relative;
    overflow: hidden;
}

.section-cyber::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(196,28,44,0.16) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 100% 30%, rgba(100,30,160,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.cyber-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.cyber-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(196,28,44,0.50);
    background: rgba(196,28,44,0.12);
    color: #f9bbc0;
    margin: 4px 4px 4px 0;
}

.cyber-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 18px;
}

.cyber-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,28,44,0.25) 0%, rgba(196,28,44,0.05) 70%);
    border: 2px solid rgba(196,28,44,0.30);
    margin: 0 auto 24px;
    position: relative;
}

.cyber-shield svg {
    width: 56px;
    height: 56px;
    color: var(--brand-vivid);
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cyber-shield::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(196,28,44,0.15);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.cyber-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cyber-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(240,236,228,0.82);
    font-size: 0.95rem;
}

.cyber-list li::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-top: 0.45rem;
    background: var(--brand-vivid);
    box-shadow: 0 0 8px rgba(232,34,47,0.60);
}

.section-cyber h2 {
    color: #ffffff;
}

.section-cyber .mini-label {
    color: #f9bbc0;
}

/* ═══════════════════════════════════════
   TECH STRIP – pasek technologii
   ═══════════════════════════════════════ */
.tech-strip {
    padding: 28px 0;
    background: rgba(13,17,23,0.05);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.tech-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: center;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(16,20,25,0.10);
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tech-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-vivid);
    opacity: 0.7;
}

/* ═══════════════════════════════════════
   IMPROVED STATS
   ═══════════════════════════════════════ */
.stat-dark {
    background: linear-gradient(135deg, rgba(196,28,44,0.08) 0%, rgba(224,122,68,0.06) 100%);
    border: 1px solid rgba(196,28,44,0.14);
}

.stat-dark strong {
    background: linear-gradient(135deg, var(--brand-vivid), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════
   FOOTER – ciemny, profesjonalny
   ═══════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, #0d1117 0%, #0a0e17 100%);
    color: rgba(240,236,228,0.80);
    padding: 52px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer .brand-copy strong {
    color: #fff;
}

.site-footer .brand-copy span {
    color: rgba(240,236,228,0.50);
}

.site-footer .footer-meta {
    color: rgba(240,236,228,0.50);
    margin-top: 14px;
    font-size: 0.9rem;
    max-width: 42ch;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.footer-links a {
    color: rgba(240,236,228,0.68);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-vivid);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 18px;
}

.footer-legal a {
    color: rgba(240,236,228,0.40);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: rgba(240,236,228,0.70);
}

.site-footer .brand-mark {
    background: linear-gradient(135deg, var(--brand-vivid) 0%, var(--brand-deep) 55%, var(--accent) 100%);
}

/* ═══════════════════════════════════════
   RESPONSIVE FOR NEW SECTIONS
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
    .cyber-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-dark {
        padding: 100px 0 68px;
    }
}

@media (min-width: 1024px) {
    .cyber-grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .hero-dark {
        padding: 110px 0 72px;
    }
}

/* ═══════════════════════════════════════
   SCROLLBAR & SELECTION
   ═══════════════════════════════════════ */
::selection {
    background: rgba(196,28,44,0.18);
    color: var(--ink);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(196,28,44,0.35);
    border-radius: 999px;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--delay, 0) * 85ms);
}

[data-reveal].reveal-left {
    transform: translateX(-28px);
}

[data-reveal].reveal-right {
    transform: translateX(28px);
}

[data-reveal].reveal-pop {
    transform: translateY(20px) scale(0.94);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Sequential 1-second stagger for process steps */
.step-item[data-reveal] {
    transition-delay: calc(var(--delay, 0) * 1s);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button {
        animation: none;
    }
}

html[lang="pl"] .legal-copy {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 244, 237, 0.96) 100%);
}

html[lang="pl"] .legal-copy h2,
html[lang="pl"] .legal-copy h3 {
    max-width: 32ch;
}

html[lang="pl"] .legal-copy h3 {
    margin-top: 12px;
    font-size: 1.02rem;
    color: var(--ink);
}

html[lang="pl"] .legal-copy h3 + p,
html[lang="pl"] .legal-copy h2 + p {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(16, 20, 25, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(10, 15, 25, 0.08);
}

html[lang="pl"] .legal-copy p + h3,
html[lang="pl"] .legal-copy p + h2 {
    margin-top: 10px;
}

/* ═══════════════════════════════════════
   HORIZONTAL STEP TIMELINE
   ═══════════════════════════════════════ */
.timeline-steps {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 4px 16px rgba(196,28,44,0.38);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover .step-badge {
    transform: scale(1.10) rotate(-3deg);
    box-shadow: 0 6px 22px rgba(196,28,44,0.55);
}

.step-content h3 {
    font-size: 1rem;
    margin: 6px 0 4px;
    color: #f0ece4;
}

.step-content p {
    font-size: 0.87rem;
    margin: 0;
    color: rgba(240,236,228,0.62);
    line-height: 1.55;
}

@media (min-width: 720px) {
    .timeline-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        position: relative;
        margin-top: 44px;
    }

    /* Gray track */
    .timeline-steps::before {
        content: "";
        position: absolute;
        top: 24px;
        left: 9%;
        right: 9%;
        height: 2px;
        background: rgba(255,255,255,0.10);
        z-index: 0;
    }

    /* Animated color fill */
    .timeline-steps::after {
        content: "";
        position: absolute;
        top: 24px;
        left: 9%;
        right: 9%;
        height: 2px;
        background: linear-gradient(90deg, var(--brand), var(--accent));
        transform-origin: left center;
        transform: scaleX(0);
        transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
        z-index: 0;
    }

    .timeline-steps.line-active::after {
        transform: scaleX(1);
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
        gap: 0;
    }

    .step-badge {
        margin-bottom: 20px;
    }

    .step-content {
        width: 100%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 14px;
        padding: 16px 14px;
        transition: background 0.25s ease, border-color 0.25s ease;
    }

    .step-item:hover .step-content {
        background: rgba(255,255,255,0.09);
        border-color: rgba(255,255,255,0.16);
    }
}

/* ═══════════════════════════════════════
   COUNTER ANIMATION
   ═══════════════════════════════════════ */
[data-counter-wrap] strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    transition: none;
}
