/* ============================================================
   NORYX — główny arkusz stylów
   ============================================================ */

/* 1. Reset i zmienne */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #05080f;
    --bg-2: #080c16;
    --surface: #0d1220;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text-1: #edf1f7;
    --text-2: #a3adc2;
    --text-3: #6d7892;
    --accent: #33e3c6;
    --accent-2: #4c8dff;
    --accent-soft: rgba(51, 227, 198, 0.1);
    --accent-grad: linear-gradient(135deg, #33e3c6 0%, #4c8dff 100%);
    --danger: #ff6b7a;
    --radius: 16px;
    --radius-sm: 12px;
    --font-head: "Plus Jakarta Sans", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
    --header-h: 74px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
    background: var(--bg);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: var(--text-1);
}

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

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

ul, ol {
    list-style: none;
}

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

::selection {
    background: var(--accent);
    color: #031218;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon {
    flex-shrink: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: var(--accent);
    color: #031218;
    font-weight: 600;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    left: 0;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* 2. Typografia sekcji */
.section {
    padding-block: 104px;
    position: relative;
}

.section-alt {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}

.kicker {
    display: none;
}

.section-head {
    max-width: 680px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
    font-size: 1.15rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--text-2);
    margin-top: 16px;
}

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 3. Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-grad);
    color: #03131c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(51, 227, 198, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line-strong);
    color: var(--text-1);
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* 4. Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(5, 8, 15, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(5, 8, 15, 0.88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: 0.14em;
    color: var(--text-1);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-size: 0.93rem;
    color: var(--text-2);
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-1);
    background: var(--accent-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-1);
    cursor: pointer;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.nav-cta-mobile {
    display: none;
}

/* 5. Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 140px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 25%, transparent 75%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 540px;
    height: 540px;
    background: rgba(51, 227, 198, 0.14);
    top: -180px;
    right: -120px;
    animation: drift 16s ease-in-out infinite alternate;
}

.hero-glow-2 {
    width: 480px;
    height: 480px;
    background: rgba(76, 141, 255, 0.13);
    bottom: -200px;
    left: -140px;
    animation: drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-46px, 34px); }
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin: 0 0 22px;
    max-width: 840px;
}

.hero .lead {
    max-width: 640px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.hero-scope {
    margin-top: 72px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
}

.hero-scope span {
    font-size: 0.9rem;
    color: var(--text-3);
    letter-spacing: 0.01em;
}

.hero-scope span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-strong);
    margin: 0 16px 3px;
}

/* 6. Karty i siatki */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(51, 227, 198, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 22px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.94rem;
    color: var(--text-2);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.03);
    margin-top: 20px;
}

.badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.badge-green {
    border-color: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.badge-green .badge-dot {
    background: #22c55e;
}

.note {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-3);
}

.note .icon {
    color: var(--accent);
}

/* Karty systemów (katalog /systemy) */
.system-card {
    display: flex;
    flex-direction: column;
}

.system-features {
    margin-top: 16px;
    display: grid;
    gap: 9px;
}

.system-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text-2);
}

.system-features .icon {
    color: var(--accent);
}

.system-card-footer {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.system-card-footer .badge {
    margin-top: 0;
}

/* 7. Sekcja o marce (split) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.split-visual {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    overflow: hidden;
}

.split-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
    pointer-events: none;
}

.split-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(51, 227, 198, 0.16);
    filter: blur(80px);
    top: -80px;
    right: -60px;
}

.stack {
    position: relative;
    display: grid;
    gap: 14px;
}

.stack-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.stack-card:nth-child(2) {
    margin-left: 28px;
}

.stack-card:nth-child(3) {
    margin-left: 56px;
}

.stack-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.stack-body {
    display: grid;
    gap: 3px;
}

.stack-body strong {
    font-family: var(--font-head);
    font-size: 0.98rem;
    color: var(--text-1);
}

.stack-body span {
    font-size: 0.86rem;
    color: var(--text-3);
}

.check-list {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
    color: var(--text-1);
}

.check-list .icon {
    color: var(--accent);
    margin-top: 3px;
}

/* 8. Dlaczego Noryx */
.why-item {
    text-align: left;
}

.why-item .card-icon {
    margin-bottom: 20px;
}

/* 9. Dla kogo */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 16px;
}

.audience-item {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.audience-item:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 227, 198, 0.4);
}

.audience-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.audience-item p {
    font-size: 0.88rem;
    color: var(--text-3);
}

/* 10. Realizacje — placeholdery */
.placeholder-card {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.012);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 260px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.placeholder-card:hover {
    border-color: rgba(51, 227, 198, 0.5);
    background: rgba(51, 227, 198, 0.03);
}

.placeholder-card .ph-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.placeholder-card h3 {
    font-size: 1rem;
}

.placeholder-card p {
    font-size: 0.88rem;
    color: var(--text-3);
}

/* 11. CTA */
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    padding: 84px 48px;
    text-align: center;
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 90% at 50% -20%, rgba(51, 227, 198, 0.16), transparent 60%),
                radial-gradient(ellipse 50% 80% at 80% 110%, rgba(76, 141, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    position: relative;
    max-width: 620px;
    margin-inline: auto;
}

.cta-box p {
    position: relative;
    max-width: 520px;
    margin: 18px auto 36px;
}

.cta-box .btn {
    position: relative;
}

/* 12. Podstrony — hero */.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--line);
}

.page-hero .hero-grid-bg {
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
}

.page-hero .lead {
    max-width: 640px;
}

/* 13. Kroki (Jak pracujemy / powstawanie systemów) */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

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

.step {
    position: relative;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

.step-num {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-grad);
}

.step .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-2);
}

/* 14. Proza (polityka prywatności, cookies) */
.prose {
    max-width: 760px;
}

.prose h2 {
    font-size: 1.4rem;
    margin: 44px 0 14px;
}

.prose h3 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
}

.prose p {
    margin-bottom: 14px;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
    display: grid;
    gap: 6px;
}

.prose .updated {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 30px;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin-inline: auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(51, 227, 198, 0.35);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-1);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-3);
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(90deg);
    color: var(--accent);
    border-color: rgba(51, 227, 198, 0.4);
}

.faq-answer {
    padding: 0 22px 20px;
    max-width: 92%;
    font-size: 0.93rem;
    color: var(--text-2);
}

/* 15. Formularz kontaktowy */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}

.contact-aside .check-list {
    margin-top: 26px;
}

.form-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-1);
}

.form-field .req {
    color: var(--accent);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 8, 15, 0.55);
    color: var(--text-1);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-3);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(51, 227, 198, 0.15);
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: var(--danger);
}

.field-error {
    font-size: 0.82rem;
    color: var(--danger);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.87rem;
    color: var(--text-2);
    cursor: pointer;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.consent-row a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    display: none;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 0.93rem;
    margin-bottom: 24px;
    border: 1px solid;
}

.form-message.show {
    display: block;
}

.form-message.success {
    border-color: rgba(51, 227, 198, 0.45);
    background: rgba(51, 227, 198, 0.08);
    color: #b7f5e8;
}

.form-message.error {
    border-color: rgba(255, 107, 122, 0.45);
    background: rgba(255, 107, 122, 0.08);
    color: #ffc4cb;
}

.form-message .tech-note {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.75;
}

.form-footnote {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-3);
}

.form-footnote a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 16. Stopka */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand p {
    margin-top: 18px;
    max-width: 340px;
    font-size: 0.92rem;
    color: var(--text-3);
}

.footer-title {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-1);
    margin-bottom: 18px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 0.92rem;
    color: var(--text-3);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-3);
    margin-bottom: 14px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem !important;
    color: var(--accent) !important;
}

.footer-link:hover {
    color: var(--text-1) !important;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-block: 26px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-3);
}

/* 17. Strona 404 */
.not-found {
    text-align: center;
    padding: 140px 0 160px;
}

.not-found .code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.not-found p {
    margin: 20px auto 36px;
    max-width: 440px;
}

/* 18. Animacje pojawiania */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 19. Responsywność */
@media (max-width: 1024px) {
    .grid-4,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

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

    .header-actions .btn-primary {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 8, 15, 0.98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        padding: 28px 24px 40px;
        display: none;
        overflow-y: auto;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        padding: 15px 18px;
        font-size: 1.05rem;
    }

    .nav-cta-mobile {
        display: flex;
        margin-top: 22px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 620px) {
    .section {
        padding-block: 72px;
    }

    .hero {
        padding: 72px 0 96px;
    }

    .hero-scope {
        margin-top: 56px;
    }

    .stack-card:nth-child(2),
    .stack-card:nth-child(3) {
        margin-left: 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .steps,
    .steps-5 {
        grid-template-columns: 1fr;
    }

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

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

    .form-box {
        padding: 26px 20px;
    }

    .cta-box {
        padding: 60px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .page-hero {
        padding: 64px 0 60px;
    }

    .section-head {
        margin-bottom: 40px;
    }
}

/* 20. Dostępność — ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

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

/* ===========================
   MOBILE OPTIMIZATION
   =========================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .hero {
        padding: 90px 0 100px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-glow-1 {
        width: 400px;
        height: 400px;
    }

    .hero-glow-2 {
        width: 350px;
        height: 350px;
    }

    .system-card {
        padding: 22px;
    }

    .faq-item summary {
        font-size: 1rem;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .hero {
        padding: 80px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero-scope {
        margin-top: 48px;
        gap: 8px 24px;
    }

    .hero-scope span {
        font-size: 0.82rem;
    }

    .hero-scope span + span::before {
        margin: 0 10px 3px;
    }

    .section {
        padding-block: 80px;
    }

    .section-head h2 {
        font-size: 1.8rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        padding: 24px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .steps {
        gap: 20px;
    }

    .step {
        padding: 24px;
    }

    .audience-grid {
        gap: 16px;
    }

    .audience-item {
        padding: 24px;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.15rem;
    }

    .prose p, .prose li {
        font-size: 0.95rem;
    }

    .system-card {
        padding: 20px;
    }

    .system-card h3 {
        font-size: 1.05rem;
    }

    .faq-item summary {
        font-size: 0.95rem;
        padding: 18px 20px;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 18px;
    }
}

/* Mobile */
@media (max-width: 620px) {
    html {
        font-size: 15px;
    }

    .container {
        padding-inline: 18px;
    }

    .section {
        padding-block: 56px;
    }

    .section-alt {
        padding-block: 56px;
    }

    /* Hero */
    .hero {
        padding: 72px 0 64px;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
        max-width: 100%;
    }

    .hero .lead {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .hero-actions {
        margin-top: 28px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-scope {
        margin-top: 36px;
        gap: 6px 16px;
    }

    .hero-scope span {
        font-size: 0.78rem;
    }

    .hero-scope span + span::before {
        margin: 0 8px 3px;
    }

    .hero-glow-1 {
        width: 280px;
        height: 280px;
        top: -100px;
        right: -80px;
    }

    .hero-glow-2 {
        width: 250px;
        height: 250px;
        bottom: -120px;
        left: -80px;
    }

    /* Page hero (subpages) */
    .page-hero {
        padding: 56px 0 48px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .page-hero .lead {
        font-size: 0.9rem;
    }

    /* Section heads */
    .section-head {
        margin-bottom: 32px;
    }

    .section-head h2 {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .section-head .lead {
        font-size: 0.88rem;
        margin-top: 8px;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .grid-3 > * {
        grid-column: 1;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 14px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Steps */
    .steps,
    .steps-5 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step {
        padding: 20px;
        text-align: left;
    }

    .step .card-icon {
        margin-bottom: 12px;
    }

    .step h3 {
        font-size: 1rem;
    }

    .step p {
        font-size: 0.85rem;
    }

    /* Audience */
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .audience-item {
        padding: 18px;
    }

    .audience-item h3 {
        font-size: 1rem;
    }

    .audience-item p {
        font-size: 0.85rem;
    }

    /* Split */
    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Stack cards */
    .stack {
        gap: 10px;
    }

    .stack-card {
        padding: 16px;
    }

    .stack-body strong {
        font-size: 0.9rem;
    }

    .stack-body span {
        font-size: 0.8rem;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-aside h2 {
        font-size: 1.3rem;
    }

    .contact-aside p {
        font-size: 0.88rem;
    }

    .form-box {
        padding: 20px 16px;
    }

    .form-grid {
        gap: 14px;
    }

    .form-field label {
        font-size: 0.82rem;
    }

    .form-field input,
    .form-field textarea {
        font-size: 0.9rem;
        padding: 11px 14px;
    }

    .form-field textarea {
        min-height: 120px;
    }

    .btn-lg {
        padding: 13px 24px;
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-list {
        gap: 8px;
    }

    .faq-item summary {
        font-size: 0.9rem;
        padding: 16px;
        gap: 12px;
    }

    .faq-item summary .faq-toggle {
        width: 28px;
        height: 28px;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 0 16px 16px;
    }

    /* CTA box */
    .cta-box {
        padding: 48px 20px;
    }

    .cta-box h2 {
        font-size: 1.4rem;
    }

    /* Notes */
    .note {
        font-size: 0.82rem;
        padding: 14px;
        gap: 8px;
    }

    /* Prose (articles) */
    .prose {
        padding-inline: 0;
    }

    .prose h2 {
        font-size: 1.3rem;
        margin-top: 32px;
        margin-bottom: 12px;
    }

    .prose h3 {
        font-size: 1.05rem;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    .prose p {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .prose ul, .prose ol {
        padding-left: 20px;
        margin-bottom: 16px;
    }

    .prose li {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 6px;
    }

    .prose strong {
        color: var(--text-1);
    }

    /* System cards */
    .system-card {
        padding: 18px;
    }

    .system-card h3 {
        font-size: 1rem;
    }

    .system-card p {
        font-size: 0.82rem;
    }

    .system-card-footer {
        margin-top: 14px;
    }

    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Check list */
    .check-list {
        gap: 10px;
    }

    .check-list li {
        font-size: 0.88rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-title {
        font-size: 0.78rem;
    }

    .footer-col ul {
        gap: 6px;
    }

    .footer-col a {
        font-size: 0.82rem;
    }

    .footer-text {
        font-size: 0.82rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid var(--line);
    }

    /* Buttons */
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    /* Login / forms (modules) */
    .form-card {
        padding: 24px 18px;
    }

    /* Cookie banner */
    .cookie-banner {
        padding: 14px 0;
    }

    .cookie-banner-inner {
        padding: 0 16px;
    }

    .cookie-banner-text p {
        font-size: 0.82rem;
    }

    .cookie-banner-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Hide heavy glows on mobile */
    .hero-glow-1,
    .hero-glow-2 {
        opacity: 0.5;
    }
}

/* Small phones */
@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    .hero-scope {
        gap: 4px 12px;
    }

    .hero-scope span {
        font-size: 0.72rem;
    }

    .section-head h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 16px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

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

    .btn:hover {
        transform: none;
    }

    .faq-item summary:hover {
        color: inherit;
    }
}

/* Safe area (iPhone notch) */
@supports (padding: env(safe-area-inset-bottom)) {
    .cookie-banner {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.5;
}

.cookie-banner-text p + p {
    margin-top: 4px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cookie-banner-actions {
        justify-content: flex-start;
    }
}
