/* ==========================================================================
   IT-FORENSIC.PL — PITCH BLACK CYBER FORENSICS THEME (v2.0 FULL RESPONSIVE)
   mgr inż. Radosław Kwaśny - Biegły sądowy z zakresu informatyki
   Optymalizacja pod urządzenia: 320px (iPhone SE), 375px-430px (Smartfony),
   768px-1024px (Tablety iPad), 1280px-1920px+ (Laptopy i Monitory 4K)
   ========================================================================== */

:root {
    --bg-pitch: #000000;
    --bg-deep: #050507;
    --bg-panel: #0a0b0e;
    --bg-panel-hover: #0f1117;
    --border-dim: #181a20;
    --border-tech: #262932;
    
    --neon-green: #00ff88;
    --neon-green-dim: rgba(0, 255, 136, 0.12);
    --neon-cyan: #06b6d4;
    --neon-red: #ff3366;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Płynne odstępy dopasowujące się do ekranu */
    --section-py: clamp(3.25rem, 6vw, 5.75rem);
    --container-px: clamp(1rem, 4vw, 2rem);
    --header-h: 76px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    background-color: var(--bg-pitch);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-pitch);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

body.menu-locked {
    overflow: hidden;
}

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

/* Canvas w tle */
#hex-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

/* Siatka techniczna */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: clamp(32px, 4vw, 48px) clamp(32px, 4vw, 48px);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    position: relative;
    z-index: 2;
}

/* Typografia informatyczna */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.18;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cyber-badge {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.08);
    max-width: 100%;
}

.cyber-badge span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

/* ==========================================================================
   NAWIGACJA & RESPONSYWNE MENU MOBILNE
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dim);
    height: var(--header-h);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
    flex-shrink: 1;
}

.brand-monogram {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg-panel);
    border: 1px solid var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--neon-green);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.2);
    position: relative;
}

.brand-monogram::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 5px;
    height: 5px;
    background: var(--neon-green);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-role {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    color: var(--neon-cyan);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 1.8vw, 1.8rem);
    align-items: center;
}

nav a {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    padding: 0.4rem 0;
    display: inline-block;
}

nav a:hover,
nav a:focus {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.phone-btn {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--neon-green);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.phone-btn:hover {
    background: var(--neon-green);
    color: var(--bg-pitch);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    color: var(--neon-green);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--neon-green);
}

/* ==========================================================================
   SEKCJA HERO (RESPONSYWNY GRID)
   ========================================================================== */
.hero {
    padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--border-dim);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 3.85rem);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero h1 .accent-cyber {
    color: var(--neon-green);
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
    display: block;
    min-height: 1.2em; /* zapobiega skakaniu wysokości podczas efektu Scramble */
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 640px;
    border-left: 2px solid var(--neon-green);
    padding-left: 1rem;
}

.hero-sublead {
    font-size: clamp(0.9rem, 1.5vw, 0.98rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.btn-cyber {
    background: var(--neon-green);
    color: var(--bg-pitch);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1.65rem;
    min-height: 48px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid var(--neon-green);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-cyber:hover {
    background: transparent;
    color: var(--neon-green);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.35);
}

.btn-outline {
    background: var(--bg-panel);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    padding: 0.9rem 1.45rem;
    min-height: 48px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--border-tech);
    transition: all 0.25s ease;
}

.btn-outline:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border-dim);
}

.tag-pill {
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 1.2vw, 0.74rem);
    color: var(--text-secondary);
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: 0.3rem 0.7rem;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* Karta eksperta ze skanerem HUD */
.hud-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: clamp(0.9rem, 2vw, 1.25rem);
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.hud-card::before,
.hud-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--neon-green);
    border-style: solid;
    pointer-events: none;
}

.hud-card::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.hud-card::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.scanner-viewport {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    background: #030406;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-dim);
    margin-bottom: 1rem;
}

.scanner-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) contrast(1.15) brightness(0.9);
    transition: filter 0.4s ease;
}

.scanner-viewport:hover img {
    filter: grayscale(0%) contrast(1.05) brightness(1);
}

.laser-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 12px 2px var(--neon-green);
    animation: scan 4s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes scan {
    0%, 100% { top: 4%; opacity: 0.85; }
    50% { top: 94%; opacity: 1; }
}

.hud-overlay-top,
.hud-overlay-bottom {
    position: absolute;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.2vw, 0.68rem);
    padding: 0.35rem 0.6rem;
    z-index: 4;
}

.hud-overlay-top {
    top: 8px;
    color: var(--neon-green);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.hud-overlay-bottom {
    bottom: 8px;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid var(--border-tech);
    color: var(--text-primary);
}

.expert-meta h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: 0.2rem;
}

.expert-meta p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.hash-terminal {
    background: var(--bg-pitch);
    border: 1px solid var(--border-dim);
    padding: 0.55rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
}

.hash-terminal span {
    color: var(--neon-green);
}

/* ==========================================================================
   SEKCJE OGÓLNE & KARTY USŁUG
   ========================================================================== */
section {
    padding: var(--section-py) 0;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.section-header {
    max-width: 740px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header h2 {
    font-size: clamp(1.55rem, 3.2vw, 2.7rem);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
}

/* Siatka kart bezpieczna dla wąskich ekranów (min 260px lub 100%) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.spotlight-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: clamp(1.35rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 136, 0.09), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.spotlight-card:hover {
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-3px);
}

.spotlight-card:hover::before {
    opacity: 1;
}

.service-top {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spotlight-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.28rem);
    margin-bottom: 0.7rem;
}

.spotlight-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.2rem 0.55rem;
}

/* ==========================================================================
   TERMINAL WERYFIKACJI SHA-256 (RESPONSYWNY)
   ========================================================================== */
.forensic-console {
    margin-top: clamp(2.25rem, 4vw, 3.5rem);
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    width: 100%;
    overflow: hidden;
}

.console-bar {
    background: #050608;
    border-bottom: 1px solid var(--border-tech);
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.console-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.console-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-tech);
}

.console-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-body {
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}

.hex-dump-box {
    background: var(--bg-pitch);
    border: 1px solid var(--border-dim);
    padding: 0.9rem;
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.3vw, 0.74rem);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
}

.hex-dump-box .hex-offset { color: var(--text-muted); }
.hex-dump-box .hex-bytes { color: var(--neon-green); }
.hex-dump-box .hex-tampered { color: var(--neon-red); font-weight: 700; text-decoration: underline; }
.hex-dump-box .hex-ascii { color: var(--neon-cyan); }

.hash-status-panel {
    min-width: 0;
}

.hash-status-panel h4 {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    margin-bottom: 0.5rem;
    color: var(--neon-green);
}

.hash-readout {
    background: var(--bg-pitch);
    border: 1px solid var(--border-tech);
    padding: 0.7rem;
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.2vw, 0.72rem);
    word-break: break-all;
    margin: 0.75rem 0;
}

.status-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(0.64rem, 1.2vw, 0.72rem);
    padding: 0.3rem 0.65rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.status-valid {
    background: rgba(0, 255, 136, 0.12);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.status-invalid {
    background: rgba(255, 51, 102, 0.15);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.console-btns {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-mini {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    padding: 0.6rem 0.9rem;
    min-height: 40px;
    background: var(--bg-pitch);
    color: var(--text-primary);
    border: 1px solid var(--border-tech);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-mini:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* ==========================================================================
   METODA, STANDARDY, DLA KOGO, FAQ, KONTAKT
   ========================================================================== */
.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.step-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: clamp(1.35rem, 2.5vw, 1.75rem);
    position: relative;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
    display: block;
}

.step-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.6rem;
}

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

/* Standardy + Galeria */
.standards-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.standard-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    border-left: 3px solid var(--neon-green);
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.1rem, 2.2vw, 1.5rem);
}

.standard-item h4 {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
}

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

.lab-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.lab-img-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/11;
}

.lab-img-box.wide {
    grid-column: span 2;
    aspect-ratio: 21/10;
}

.lab-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(45%) contrast(1.15) brightness(0.85);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.lab-img-box:hover img {
    transform: scale(1.04);
    filter: grayscale(0%) contrast(1.05) brightness(1);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1.1rem 0.75rem 0.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.1vw, 0.7rem);
    color: var(--neon-green);
}

/* Dla kogo */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.audience-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: clamp(1.4rem, 3vw, 2.1rem);
}

.audience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--neon-green);
}

.audience-card ul {
    list-style: none;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.audience-card li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.audience-card li::before {
    content: ">";
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* FAQ */
.faq-wrapper {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    transition: border-color 0.2s ease;
}

.faq-item.active {
    border-color: var(--neon-green);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: clamp(1rem, 2vw, 1.3rem) clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.35;
}

.faq-icon {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 clamp(1.1rem, 2.5vw, 1.5rem);
}

.faq-answer-inner {
    padding: 0.95rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    border-top: 1px solid var(--border-dim);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}

.contact-info-box,
.contact-form {
    background: var(--bg-panel);
    border: 1px solid var(--border-tech);
    padding: clamp(1.35rem, 3vw, 2.25rem);
    width: 100%;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.contact-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--neon-green);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-family: var(--font-mono);
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-word;
}

.contact-value:hover {
    color: var(--neon-green);
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-pitch);
    border: 1px solid var(--border-tech);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px zapobiega auto-zoomowi na iOS Safari */
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

textarea.form-control {
    min-height: 125px;
    resize: vertical;
}

.form-note {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    background: var(--bg-pitch);
    border-top: 1px solid var(--border-dim);
    padding: 2.25rem 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   MEDIA QUERIES — PEŁNA RESPONSYWNOŚĆ (OD 1200px DO 320px)
   ========================================================================== */

/* Laptopy i mniejsze desktopy (<= 1100px) */
@media (max-width: 1100px) {
    nav ul {
        gap: 1rem;
    }
    nav a {
        font-size: 0.75rem;
    }
    .phone-btn span {
        display: none;
    }
}

/* Tablety (iPad / <= 992px) */
@media (max-width: 992px) {
    .hero-grid,
    .standards-layout,
    .contact-grid,
    .console-body {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 2.5rem;
    }

    .hud-card {
        max-width: 480px;
        margin: 0 auto;
    }

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

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

    /* Nawigacja przechodzi w tryb mobilny już na tabletach, aby uniknąć ścisku */
    nav ul {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem var(--container-px) 2rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--neon-green);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
        z-index: 999;
    }

    nav ul.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        border-bottom: 1px solid var(--border-dim);
    }

    nav ul a {
        display: block;
        padding: 0.95rem 0.5rem;
        font-size: 0.92rem;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

/* Smartfony w orientacji poziomej i duże telefony (<= 768px) */
@media (max-width: 768px) {
    .method-steps,
    .audience-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cyber,
    .btn-outline {
        width: 100%;
    }

    .lab-gallery {
        grid-template-columns: 1fr;
    }

    .lab-img-box.wide {
        grid-column: span 1;
        aspect-ratio: 16/10;
    }

    .console-btns {
        flex-direction: column;
    }

    .btn-mini {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Małe smartfony (<= 480px, np. iPhone SE / 360px / 320px) */
@media (max-width: 480px) {
    :root {
        --header-h: 68px;
    }

    .brand-monogram {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    /* Na bardzo małych ekranach skracamy przycisk telefonu w pasku górnym do ikony TEL */
    .phone-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.74rem;
    }

    .phone-btn .phone-number-text {
        display: none;
    }

    .phone-btn span {
        display: inline !important;
    }

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

    .cyber-badge {
        font-size: 0.62rem;
        padding: 0.3rem 0.55rem;
    }

    .hud-overlay-top,
    .hud-overlay-bottom {
        font-size: 0.58rem;
        padding: 0.25rem 0.45rem;
    }

    .console-bar .console-mode {
        display: none;
    }
}

/* Dostępność: wyłączenie nadmiernych animacji, jeśli użytkownik ma włączone prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
