/* =========================================================
   MEDIASTAL - RETAIL DIGITAL SIGNAGE
   Conversion-Focused Design System - FIXED
========================================================= */

/* =========================================================
   CSS VARIABLES & DESIGN TOKENS
========================================================= */
:root {
    /* Colors - Premium Retail Palette */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0f1a;
    --color-bg-tertiary: #111a2e;
    --color-bg-card: rgba(17, 26, 46, 0.6);
    
    /* Accent Colors */
    --color-cyan: #00d4ff;
    --color-cyan-bright: #00f5ff;
    --color-cyan-dim: #0099bb;
    --color-emerald: #00d68f;
    --color-emerald-bright: #00ff9f;
    --color-emerald-dim: #00a86b;
    
    /* Phygital Colors */
    --color-violet: #8b5cf6;
    --color-pink: #ec4899;
    --color-blue: #3b82f6;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.75);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 214, 143, 0.05) 100%);
    
    /* Shadows */
    --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
    --shadow-glow-emerald: 0 0 40px rgba(0, 214, 143, 0.3);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(50px, 8vw, 100px);
    --container-max: 1100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: #000000;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    display: none;
}

/* Blokowanie scrolla przy otwartym menu */
html.menu-open,
body.menu-open {
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000000;
    min-height: 100vh;
}

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* =========================================================
   NAVBAR
========================================================= */
.top-nav {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top));
    left: 20px;
    width: calc(100% - 40px);
    z-index: 3000;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 12px 25px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: bold;
}

.logo-text {
    color: var(--color-text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-links li a:hover {
    color: #00f5ff;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 4000;
    -webkit-tap-highlight-color: transparent;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
}

.burger span:nth-child(1) { transform: translateY(-7px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(7px); }

.burger.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px 60px;
    background: linear-gradient(160deg,
        #000000 0%, #000000 5%, #05050f 15%, #0a0a1a 25%,
        #0f0f2a 35%, #1a1040 45%, #251560 55%, #1a1050 65%,
        #0a1535 75%, #052030 85%, #003040 95%, #004050 100%
    );
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--gradient-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 70% 20%, rgba(100, 50, 180, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 50% 50%, rgba(80, 40, 150, 0.08) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(100, 60, 180, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 60, 180, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 60%, transparent 100%);
    opacity: 0.7;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 25%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, rgba(100, 50, 180, 0.2) 20%, 
        rgba(140, 80, 220, 0.35) 50%, rgba(100, 50, 180, 0.2) 80%, transparent 100%
    );
    transform: rotate(-4deg);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, rgba(0, 212, 255, 0.15) 30%, 
        rgba(0, 212, 255, 0.3) 50%, rgba(0, 212, 255, 0.15) 70%, transparent 100%
    );
    transform: rotate(3deg);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 25s ease-in-out infinite;
}

.hero-orb-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
    top: 5%;
    right: 5%;
}

.hero-orb-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(100, 50, 200, 0.5) 0%, transparent 70%);
    bottom: 15%;
    left: 0%;
    animation-delay: -8s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(150, 80, 255, 0.4) 0%, transparent 70%);
    top: 45%;
    left: 50%;
    animation-delay: -16s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.08); }
    50% { transform: translate(-30px, 40px) scale(0.92); }
    75% { transform: translate(-40px, -20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    min-height: 420px;
    margin: 0 auto;
}

.hero-bracket {
    position: absolute;
    width: 100px;
    height: 100px;
}

.bracket-line {
    position: absolute;
    background: var(--gradient-primary);
}

.bracket-h { height: 2px; width: 50px; }
.bracket-v { width: 2px; height: 50px; }

.hero-bracket-tl { top: 0; left: 0; }
.hero-bracket-tl .bracket-h { top: 0; left: 0; }
.hero-bracket-tl .bracket-v { top: 0; left: 0; }
.hero-bracket-tl .bracket-stat { top: 15px; left: 15px; }

.hero-bracket-tr { top: 0; right: 0; }
.hero-bracket-tr .bracket-h { top: 0; right: 0; }
.hero-bracket-tr .bracket-v { top: 0; right: 0; }
.hero-bracket-tr .bracket-stat { top: 15px; right: 15px; text-align: right; }

.hero-bracket-bl { bottom: 0; left: 0; }
.hero-bracket-bl .bracket-h { bottom: 0; left: 0; }
.hero-bracket-bl .bracket-v { bottom: 0; left: 0; }
.hero-bracket-bl .bracket-stat { bottom: 15px; left: 15px; }

.hero-bracket-br { bottom: 0; right: 0; }
.hero-bracket-br .bracket-h { bottom: 0; right: 0; }
.hero-bracket-br .bracket-v { bottom: 0; right: 0; }
.hero-bracket-br .bracket-stat { bottom: 15px; right: 15px; text-align: right; }

.bracket-stat {
    position: absolute;
    white-space: nowrap;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.7em;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.hero-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 20px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2em, 6vw, 3.5em);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.title-line { display: block; }

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95em, 1.8vw, 1.1em);
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero-hook {
    display: none;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto 25px;
    text-align: center;
}

.hook-accent {
    color: var(--color-cyan);
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.95em;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

.btn-arrow { width: 18px; height: 18px; }
.btn-large { padding: 18px 35px; font-size: 1em; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

.scroll-text {
    font-size: 0.7em;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* =========================================================
   MOBILE HERO
========================================================= */
@media (max-width: 700px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-content {
        min-height: 450px;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ukryj statystyki w kątownikach na mobile - czysty design */
    .bracket-stat { display: none; }
    
    /* Kątowniki jako czysty element designu - celownik */
    .hero-bracket { 
        width: 40px; 
        height: 40px; 
    }
    .bracket-h { width: 20px; height: 2px; }
    .bracket-v { height: 20px; width: 2px; }
    
    /* Główny content - wycentrowany z przestrzenią */
    .hero-main { 
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 40px 25px;
        max-width: 320px;
        text-align: center;
    }
    
    .hero-eyebrow { 
        font-size: 0.7em; 
        margin-bottom: 15px; 
        letter-spacing: 2px; 
    }
    
    .hero-title { 
        font-size: 2.4em; 
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .hero-subtitle { display: none; }
    
    .hero-hook { 
        display: block; 
        font-size: 1em; 
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .hero-cta-group { 
        margin-top: 0;
        display: flex;
        justify-content: center; 
    }
    
    .btn-primary { 
        padding: 16px 28px; 
        font-size: 0.95em;
        border-radius: 12px;
    }
    
    .scroll-indicator { bottom: 25px; }
    .scroll-mouse { width: 20px; height: 32px; }
    .scroll-text { font-size: 0.65em; letter-spacing: 1px; }
    
    .hero-orb-1 { width: 250px; height: 250px; top: -50px; right: -80px; opacity: 0.6; }
    .hero-orb-2 { width: 200px; height: 200px; bottom: 5%; left: -60px; opacity: 0.5; }
    .hero-orb-3 { width: 120px; height: 120px; opacity: 0.4; }
}

@media (max-width: 400px) {
    .hero { padding: 90px 15px 50px; }
    .hero-content { min-height: 400px; }
    .hero-main { max-width: 280px; padding: 30px 20px; }
    .hero-title { font-size: 2.1em; }
    .hero-eyebrow { font-size: 0.65em; }
    .hero-hook { font-size: 0.95em; margin-bottom: 25px; }
    .hero-bracket { width: 35px; height: 35px; }
    .bracket-h { width: 18px; }
    .bracket-v { height: 18px; }
    .btn-primary { padding: 14px 24px; font-size: 0.9em; }
}

/* =========================================================
   MAIN CONTENT
========================================================= */
main {
    position: relative;
    overflow-x: clip;
    background: linear-gradient(180deg,
        #004050 0%, 
        #002535 5%, 
        #0a1025 12%,
        #0f0a20 20%,
        #12081a 30%,
        #0d0612 45%,
        #08040d 60%,
        #040308 75%,
        #020204 88%,
        #000000 100%
    );
}

/* Subtelne phygital glows w tle main - ograniczone do viewport */
main::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 300px;
    height: 500px;
    background: radial-gradient(circle at right, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

main::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 0;
    width: 300px;
    height: 450px;
    background: radial-gradient(circle at left, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* =========================================================
   SECTIONS BASE
========================================================= */
.section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.section-results::after { content: ""; position: absolute; bottom: 0; right: 0; width: 30%; height: 2px; background: var(--gradient-primary); }
.section-problem::after { content: ""; position: absolute; bottom: 0; left: 0; width: 25%; height: 2px; background: var(--gradient-primary); }
.section-benefits::after { content: ""; position: absolute; bottom: 0; right: 0; width: 35%; height: 2px; background: var(--gradient-primary); }
.section-tech::after { content: ""; position: absolute; bottom: 0; left: 0; width: 20%; height: 2px; background: var(--gradient-primary); }
.section-process::after { content: ""; position: absolute; bottom: 0; right: 0; width: 28%; height: 2px; background: var(--gradient-primary); }
.section-guarantees::after { content: ""; position: absolute; bottom: 0; left: 0; width: 22%; height: 2px; background: var(--gradient-primary); }

.section-header { text-align: center; margin-bottom: 45px; }

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 12px;
}

.section-tag-accent { color: var(--color-emerald); }
.section-tag-light { color: rgba(255, 255, 255, 0.6); }

.section-title {
    font-size: clamp(1.5em, 3.5vw, 2.2em);
    font-weight: 600;
    color: var(--color-text-primary);
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================================
   RESULTS SECTION - PHYGITAL GLOW
========================================================= */
.section-results {
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(100, 50, 180, 0.06) 0%, transparent 60%);
}

.section-results::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at right top, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.result-card {
    padding: 30px 20px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
}

.result-icon { width: 40px; height: 40px; margin: 0 auto 15px; }
.result-icon svg { width: 100%; height: 100%; stroke: var(--color-cyan); }

.result-number {
    display: inline;
    font-family: var(--font-display);
    font-size: 2.5em;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-suffix {
    display: inline;
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-cyan);
}

.result-label { margin-top: 12px; font-size: 0.9em; font-weight: 500; color: var(--color-text-primary); }
.result-detail { margin-top: 6px; font-size: 0.75em; color: var(--color-text-muted); }
.result-source { 
    display: inline-block;
    margin-top: 8px; 
    font-size: 0.7em; 
    color: var(--color-cyan); 
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.result-source:hover { opacity: 1; text-decoration: underline; }

/* =========================================================
   PROBLEM/SOLUTION SECTION - PHYGITAL VIBES
========================================================= */
.section-problem::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 250px;
    height: 350px;
    background: radial-gradient(circle at left, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.problem-content, .solution-content { padding: 35px; border-radius: 20px; }
.problem-content { background: rgba(255, 100, 100, 0.03); border: 1px solid rgba(255, 100, 100, 0.08); }
.solution-content { background: var(--gradient-card); border: 1px solid rgba(0, 214, 143, 0.12); }

.problem-text, .solution-text { font-size: 0.95em; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 25px; }
.problem-text strong, .solution-text strong { color: var(--color-text-primary); }

.problem-list, .solution-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.problem-list li, .solution-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9em; color: var(--color-text-secondary); }
.problem-x { color: #ff6b6b; font-weight: 600; flex-shrink: 0; }
.solution-check { color: var(--color-emerald); font-weight: 600; flex-shrink: 0; }

/* =========================================================
   BENEFITS SECTION - CYAN + PINK GLOW
========================================================= */
.section-benefits::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 250px;
    height: 300px;
    background: radial-gradient(circle at left, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.section-benefits .container::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 0;
    width: 280px;
    height: 350px;
    background: radial-gradient(circle at right, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.benefit-card {
    padding: 28px 24px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.benefit-card:hover { transform: translateY(-4px); }

.benefit-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    align-items: center;
}

.benefit-visual { background: rgba(0, 214, 143, 0.05); border-radius: 12px; padding: 25px; }

.benefit-chart { display: flex; align-items: flex-end; justify-content: center; gap: 30px; height: 120px; }

.chart-bar {
    width: 50px;
    height: var(--height);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.chart-bar span { font-size: 0.7em; color: var(--color-text-muted); }
.chart-bar-accent { background: var(--gradient-primary); }
.chart-bar-accent span { color: #000; font-weight: 600; }

.benefit-icon { width: 40px; height: 40px; margin-bottom: 15px; }
.benefit-icon svg { width: 100%; height: 100%; stroke: var(--color-emerald); }
.benefit-card h3 { font-size: 1.05em; font-weight: 600; margin-bottom: 10px; color: var(--color-text-primary); }
.benefit-card p { font-size: 0.85em; color: var(--color-text-secondary); line-height: 1.6; }

/* =========================================================
   TECHNOLOGY SECTION — PROFESSIONAL PHYGITAL
========================================================= */
.section-tech::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 60% at 80% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 60% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Dodatkowy glow po lewej stronie sekcji tech */
.section-tech .container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 200px;
    height: 300px;
    background: radial-gradient(circle at left, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.tech-content { position: relative; overflow: visible; }

.tech-content::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -15px;
    width: 280px;
    height: 120px;
    background: linear-gradient(135deg,
        rgba(139,92,246,0.4) 0%,
        rgba(59,130,246,0.35) 50%,
        rgba(0,212,255,0.3) 100%
    );
    filter: blur(35px);
    border-radius: 80px;
    transform: rotate(-8deg);
    z-index: -1;
    opacity: 0.8;
}

.tech-text { font-size: 0.95em; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 30px; }

.tech-features { display: flex; flex-direction: column; gap: 18px; }

.tech-feature {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease;
}

.tech-feature:hover { transform: translateX(5px); }
.tech-feature-icon { font-size: 1.5em; flex-shrink: 0; }
.tech-feature-content h4 { font-size: 0.95em; font-weight: 600; margin-bottom: 4px; color: var(--color-text-primary); }
.tech-feature-content p { font-size: 0.8em; color: var(--color-text-muted); line-height: 1.5; }

.tech-visual {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Profesjonalny mesh gradient pod ekranem */
.tech-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(ellipse 40% 35% at 30% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 35% 30% at 70% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 30% 25% at 50% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.tech-screen {
    background: var(--color-bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-screen-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.tech-dot:first-child { background: #ff5f57; }
.tech-dot:nth-child(2) { background: #febc2e; }
.tech-dot:nth-child(3) { background: #28c840; }

.tech-screen-content { padding: 18px; }
.tech-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tech-widget {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.tech-widget-chart { grid-column: span 2; }

.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 80px; }

.mini-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #00d4ff 0%, #3b82f6 50%, #8b5cf6 100%);
    border-radius: 5px 5px 0 0;
}

.tech-widget-status { display: flex; align-items: center; gap: 8px; font-size: 0.75em; color: var(--color-text-secondary); height: 100%; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-online { background: var(--color-emerald); animation: statusGlow 1.8s ease-in-out infinite; }

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 6px var(--color-emerald), 0 0 12px var(--color-emerald); transform: scale(1); }
    50% { box-shadow: 0 0 10px var(--color-emerald), 0 0 20px var(--color-emerald); transform: scale(1.15); }
}

.tech-widget-map { position: relative; height: 100%; min-height: 45px; background: rgba(0, 212, 255, 0.04); border-radius: 6px; }

.map-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    animation: mapPulse 2s ease-in-out infinite;
}

.map-dot:nth-child(2) { animation-delay: 0.5s; }
.map-dot:nth-child(3) { animation-delay: 1s; }

@keyframes mapPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.tech-partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-logos { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.partner-badge {
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* =========================================================
   PROCESS SECTION - ENHANCED PHYGITAL GLOWS
========================================================= */
.section-process::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 350px;
    height: 450px;
    background: 
        radial-gradient(circle at right, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    filter: blur(80px);
    pointer-events: none;
}

.section-process .container::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 220px;
    height: 300px;
    background: radial-gradient(circle at left, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* Dodatkowy cyan glow w środku */
.section-process .container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.process-timeline { position: relative; max-width: 800px; margin: 0 auto; }

.process-line {
    position: absolute;
    left: 25px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
    opacity: 0.25;
}

.process-step { display: flex; gap: 30px; margin-bottom: 40px; }
.process-step:last-child { margin-bottom: 0; }

.step-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    z-index: 1;
}

.step-number { font-family: var(--font-display); font-size: 1.2em; font-weight: 700; color: var(--color-cyan); }
.step-content { flex: 1; padding: 8px 0; }
.step-time { display: inline-block; font-size: 0.7em; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--color-emerald); margin-bottom: 8px; }
.step-content h3 { font-size: 1.15em; font-weight: 600; margin-bottom: 10px; color: var(--color-text-primary); }
.step-content p { font-size: 0.9em; color: var(--color-text-secondary); line-height: 1.6; }

/* =========================================================
   GUARANTEES SECTION - ENHANCED PHYGITAL
========================================================= */
.section-guarantees::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    height: 350px;
    background: 
        radial-gradient(ellipse 45% 45% at 25% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 75% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    filter: blur(60px);
    pointer-events: none;
}

/* Dodatkowe róg glows - bez ujemnych pozycji */
.section-guarantees .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.section-guarantees .container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.guarantees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.guarantee-card {
    padding: 30px 25px;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 214, 143, 0.12);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.guarantee-card:hover { transform: translateY(-5px); }

.guarantee-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 214, 143, 0.12);
    border-radius: 25px;
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-emerald);
    margin-bottom: 15px;
}

.guarantee-card h3 { font-size: 1.05em; font-weight: 600; margin-bottom: 10px; color: var(--color-text-primary); }
.guarantee-card p { font-size: 0.85em; color: var(--color-text-secondary); line-height: 1.6; }

/* =========================================================
   CTA SECTION - STRONG PHYGITAL
========================================================= */
.section-cta {
    padding-bottom: 130px;
    margin-bottom: 0;
}

/* Czarny gradient na dole CTA - płynne przejście do footera */
.section-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, #000000 100%);
    pointer-events: none;
    z-index: 0;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 45% at 85% 75%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 30% 25% at 70% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: 45px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 50%, rgba(0, 214, 143, 0.06) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-title { font-size: clamp(1.5em, 3vw, 2em); font-weight: 600; margin-bottom: 12px; color: var(--color-text-primary); }
.cta-text { font-size: 0.95em; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 25px; }
.cta-benefits { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.cta-benefit { font-size: 0.85em; color: var(--color-emerald); }
.cta-actions { margin-bottom: 15px; }
.cta-response { font-size: 0.8em; color: var(--color-text-muted); }

.cta-visual { position: relative; padding: 30px; }

.cta-bracket { position: absolute; width: 60px; height: 60px; border: 2px solid var(--color-cyan); opacity: 0.25; }
.cta-bracket-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.cta-bracket-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.cta-stat-stack { display: flex; flex-direction: column; gap: 15px; }
.cta-stat { text-align: center; padding: 15px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; position: relative; }
.cta-stat-number { display: block; font-family: var(--font-display); font-size: 1.8em; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-stat-label { font-size: 0.8em; color: var(--color-text-muted); }

/* Biało-czerwony gradient dla "100% polska technologia" */
.cta-stat-polska {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(180, 60, 60, 0.08) 100%) border-box;
}

.cta-stat-polska::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        transparent 40%,
        rgba(180, 60, 60, 0.04) 100%
    );
    border-radius: 12px;
    pointer-events: none;
}

.cta-stat-polska::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(180, 60, 60, 0.06) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
}

.contact-info { display: flex; justify-content: center; gap: 50px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.contact-method { text-align: center; }
.contact-label { display: block; font-size: 0.75em; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
.contact-value { font-family: var(--font-display); font-size: 1.05em; font-weight: 500; color: var(--color-cyan); }

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: #000000;
    padding: 50px 20px 35px;
    margin-top: 0;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
    overflow: hidden;
}

/* Napis z wartościami zamiast linii - buduje zaufanie */
.footer::before {
    content: 'Szacunek · Zrozumienie · Zaufanie';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.6) 0%,
        rgba(0, 212, 255, 0.8) 50%, 
        rgba(139, 92, 246, 0.6) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Subtelny glow pod napisem */
.footer::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    filter: blur(15px);
    pointer-events: none;
}

.footer-inner { max-width: var(--container-max); margin: 0 auto; position: relative; padding-top: 30px; }

/* Subtelne glows w rogach - ograniczone do footera */
.footer-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at left top, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    filter: blur(45px);
    pointer-events: none;
}

.footer-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at right top, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    filter: blur(45px);
    pointer-events: none;
}

.footer-main { display: flex; justify-content: space-between; margin-bottom: 50px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-tagline { font-size: 0.85em; color: var(--color-text-muted); }
.footer-nav { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.75em; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 15px; }
.footer-col a { display: block; font-size: 0.85em; color: var(--color-text-secondary); margin-bottom: 10px; }
.footer-bottom { padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }
.footer-copy { font-size: 0.8em; color: var(--color-text-muted); margin-bottom: 5px; }
.footer-legal { font-size: 0.7em; color: rgba(255, 255, 255, 0.25); }

/* =========================================================
   ANIMATIONS
========================================================= */
.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   MENU OVERLAY
========================================================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 10, 20, 0.85) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active { opacity: 1; visibility: visible; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefit-card-large { grid-column: span 2; }
}

@media (max-width: 900px) {
    .burger { display: flex; position: relative; }

    .nav-links {
        position: fixed;
        top: calc(80px + env(safe-area-inset-top));
        left: 20px;
        width: calc(100% - 40px);
        background: rgba(10, 15, 30, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.1);
        padding: 25px 0;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 3500;
    }

    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links li a { font-size: 1.05em; display: block; padding: 12px 30px; color: var(--color-text-secondary); }
    .nav-links li a:hover { color: var(--color-cyan); }
    
    .problem-grid, .tech-layout { grid-template-columns: 1fr; gap: 30px; }
    .cta-box { grid-template-columns: 1fr; text-align: center; padding: 35px 25px; }
    .cta-benefits { justify-content: center; }
    .cta-visual { order: -1; padding: 20px; }
    .footer-main { flex-direction: column; gap: 30px; }
    .footer-nav { gap: 30px; }
    
    .tech-content::before { width: 200px; height: 100px; top: 20px; left: -5px; filter: blur(30px); opacity: 0.7; }
}

@media (max-width: 700px) {
    :root { --section-padding: 45px; }
    .top-nav { top: calc(15px + env(safe-area-inset-top)); left: 15px; width: calc(100% - 30px); padding: 10px 18px; }
    .results-grid, .benefits-grid, .guarantees-grid { grid-template-columns: 1fr; }
    .benefit-card-large { grid-column: span 1; grid-template-columns: 1fr; }
    .problem-content, .solution-content { padding: 25px 20px; }
    .process-step { flex-direction: column; gap: 15px; }
    .process-line { display: none; }
    .contact-info { flex-direction: column; gap: 20px; }
    .footer-nav { flex-direction: column; gap: 25px; }
    .nav-links { top: calc(70px + env(safe-area-inset-top)); left: 15px; width: calc(100% - 30px); }
    .section-title { font-size: 1.4em; }
    .result-number { font-size: 2.2em; }
    .tech-layout { grid-template-columns: 1fr; gap: 35px; }
    
    /* Footer napis responsywny */
    .footer::before {
        font-size: 0.55em;
        letter-spacing: 2px;
        top: 15px;
    }
    .footer { padding-top: 45px; }
    .footer-inner { padding-top: 20px; }
}

/* =========================================================
   COOKIE BANNER - NA GÓRZE NA MOBILE (iOS FIX)
========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 8000;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    animation: cookieSlideUp 0.4s ease-out;
}

.cookie-banner::before,
.cookie-banner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-cyan);
    pointer-events: none;
}

.cookie-banner::before { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 20px; }
.cookie-banner::after { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 20px; }

.cookie-banner.hiding { animation: cookieSlideDown 0.3s ease-in forwards; }

@keyframes cookieSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cookieSlideDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(30px); } }

.cookie-content { display: flex; align-items: center; gap: 15px; padding: 18px 20px; }
.cookie-icon { font-size: 2em; flex-shrink: 0; }
.cookie-text { flex: 1; }
.cookie-title { font-family: var(--font-display); font-size: 0.95em; font-weight: 600; color: var(--color-text-primary); margin-bottom: 4px; }
.cookie-desc { font-size: 0.8em; color: var(--color-text-muted); line-height: 1.5; }

.cookie-highlight {
    color: var(--color-cyan);
    font-weight: 600;
    animation: highlightGlow 2s ease-in-out 0.8s;
}

@keyframes highlightGlow {
    0% { text-shadow: none; color: var(--color-cyan); }
    40% { text-shadow: 0 0 12px rgba(0, 212, 255, 0.5), 0 0 24px rgba(0, 212, 255, 0.25); color: #fff; }
    100% { text-shadow: none; color: var(--color-cyan); }
}

/* X button - UKRYTY na start, pojawia się po 3s przez JS */
.cookie-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.cookie-close.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cookie-close:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--color-cyan); }
.cookie-close svg { width: 18px; height: 18px; stroke: var(--color-text-secondary); transition: stroke 0.2s ease; }
.cookie-close:hover svg { stroke: var(--color-cyan); }

/* MOBILE: Banner na dole - akceptujemy iOS toolbar */
@media (max-width: 700px) {
    .cookie-banner { 
        bottom: 15px;
        left: 15px; 
        right: 15px; 
        border-radius: 16px;
    }
    
    .cookie-banner::before, .cookie-banner::after { width: 22px; height: 22px; }
    .cookie-banner::before { border-top-left-radius: 16px; }
    .cookie-banner::after { border-bottom-right-radius: 16px; }
    .cookie-content { padding: 15px; gap: 12px; }
    .cookie-icon { font-size: 1.6em; }
    .cookie-title { font-size: 0.85em; }
    .cookie-desc { font-size: 0.72em; }
    .cookie-close { width: 32px; height: 32px; }
}

/* =========================================================
   iOS SAFE AREA - TYLKO GÓRNA! (usunięto dolną)
========================================================= */
@supports (padding: env(safe-area-inset-top)) {
    html::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top);
        background: #000000;
        z-index: 9999;
        pointer-events: none;
    }
    /* USUNIĘTO html::after - to powodowało czarny pas na dole Safari! */
}

/* =========================================================
   LOGIN/ADMIN/MODAL
========================================================= */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-panel { width: 100%; max-width: 400px; padding: 35px 40px; background: rgba(255,255,255,0.05); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 30px; border: 1px solid rgba(255,255,255,0.15); border-left: 3px solid var(--color-cyan); box-shadow: 0 0 25px rgba(0,212,255,0.2); }
.login-title { margin: 0; font-size: 2.5em; letter-spacing: 2px; text-align: center; }
.login-subtitle { text-align: center; margin-bottom: 30px; font-size: 1em; color: rgba(255,255,255,0.7); }
.login-panel label { display: block; margin-bottom: 20px; }
.login-panel span { display: block; margin-bottom: 5px; font-size: 0.85em; color: rgba(255,255,255,0.7); }
.login-panel input { width: 100%; padding: 12px 15px; font-size: 1em; color: #fff; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.2); border-radius: 15px; outline: none; }
.login-panel input:focus { border-color: var(--color-cyan); }
.login-panel button { width: 100%; margin-top: 10px; padding: 14px; font-size: 1em; font-weight: 600; color: #000; background: var(--gradient-primary); border: none; border-radius: 25px; cursor: pointer; }
.login-error { margin-bottom: 20px; padding: 12px 15px; text-align: center; font-size: 0.9em; color: #ffbfbf; background: rgba(120, 20, 30, 0.3); border-radius: 15px; border: 1px solid rgba(255, 120, 120, 0.3); }

.admin-wrapper { padding: 120px 20px 60px; display: flex; flex-direction: column; gap: 50px; }
.admin-wrapper .admin-panel { width: 100%; max-width: 1100px; margin: 0 auto; padding: 40px; background: rgba(255,255,255,0.05); backdrop-filter: blur(25px); border-radius: 35px; border: 1px solid rgba(255,255,255,0.15); border-left: 3px solid var(--color-cyan); }
.admin-wrapper .admin-header { text-align: center; margin-bottom: 30px; }
.admin-wrapper .admin-title { margin: 0; font-size: 2.5em; }
.admin-wrapper .admin-subtitle { margin-top: 8px; font-size: 1em; color: rgba(255,255,255,0.6); }
.admin-wrapper .section-title { margin-bottom: 20px; font-size: 1.4em; color: var(--color-cyan); }
.admin-wrapper .grid-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.admin-wrapper .status { padding: 5px 12px; border-radius: 15px; font-size: 0.8em; }
.admin-wrapper .status.active { background: rgba(0,214,143,0.2); color: #00d68f; }
.admin-wrapper .status.pending { background: rgba(255,200,0,0.2); color: #ffd75e; }
.admin-wrapper table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.admin-wrapper th, .admin-wrapper td { padding: 12px 14px; font-size: 0.9em; }
.admin-wrapper th { text-align: left; color: var(--color-cyan); }
.admin-wrapper tbody tr { background: rgba(255,255,255,0.02); }
.admin-wrapper tbody tr:hover { background: rgba(0,212,255,0.05); }
.admin-wrapper .admin-form input, .admin-wrapper .admin-form select { width: 100%; padding: 12px 15px; margin-bottom: 15px; background: rgba(0,0,0,0.3); border-radius: 15px; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.9em; }
.admin-wrapper .admin-form button { padding: 10px 18px; border: none; border-radius: 18px; background: rgba(0,212,255,0.35); color: #fff; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
    .admin-wrapper .grid-2 { grid-template-columns: 1fr; }
    .admin-wrapper .admin-panel { padding: 25px 20px; }
}

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-window { background: #0c1020; padding: 25px; border-radius: 15px; width: 420px; max-width: 90%; color: #fff; position: relative; }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.modal-row { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #1b2238; }
.modal-row span { color: #9aa4c6; font-size: 0.8em; }