:root {
    --bg-black: #000000;
    --text-white: #f5f5f7;
    --text-gray: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; background: var(--bg-black); }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* BACKGROUND ECOSYSTEM */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; background: var(--bg-black);
}

.mesh-ball {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
    animation: drift 25s infinite alternate ease-in-out;
}
.ball-1 { width: 50vw; height: 50vw; background: #004494; top: -10%; right: -10%; }
.ball-2 { width: 40vw; height: 40vw; background: #002b5c; bottom: -10%; left: -5%; animation-delay: -7s; }
.ball-3 { width: 30vw; height: 30vw; background: #1a1a1a; top: 40%; left: 30%; animation-delay: -12s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 30px) scale(1.1); }
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.04; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 18px 0; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -1px; text-decoration: none; color: white; }
.logo span { color: var(--accent-blue); }
.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 13px; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--text-white); }
.btn-cta { background: var(--text-white); color: var(--bg-black) !important; padding: 8px 18px; border-radius: 20px; font-weight: 600; transition: 0.3s; }
.btn-cta:hover { transform: scale(1.05); }

/* HAMBURGER */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* INTERACTIVE HERO */
.hero-interactive {
    height: 150vh; position: relative; z-index: 5;
}
.sticky-hero-wrap {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
}
.hero-content { text-align: center; z-index: 2; max-width: 900px; padding: 0 20px; }
.badge {
    display: inline-block; padding: 6px 14px; background: rgba(0, 113, 227, 0.1);
    color: var(--accent-blue); border-radius: 100px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 40px;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 40px;
}
.hero-title span {
    background: linear-gradient(180deg, #fff 40%, #888 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-manifesto { display: flex; flex-direction: column; gap: 20px; }
.manifesto-lead { font-size: 24px; font-weight: 500; color: var(--text-white); line-height: 1.4; max-width: 750px; margin: 0 auto; letter-spacing: -0.01em; }
.manifesto-sub { font-size: 18px; color: var(--text-gray); font-weight: 400; }
.hero-glow { position: absolute; width: 40vw; height: 40vw; background: var(--accent-blue); filter: blur(150px); border-radius: 50%; opacity: 0.15; z-index: 1; }

/* PAGE HEADER */
.page-header { padding: 180px 0 100px; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.01em; margin-bottom: 24px; line-height: 1.1; }
.lead-text { font-size: 24px; color: var(--text-gray); max-width: 800px; margin: 0 auto; line-height: 1.4; }

/* FORMS COMMON */
.premium-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center; 
    max-width: 600px; /* Constrain width */
    margin: 40px auto 0;
    width: 100%;
}

.premium-form-full {
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center;
    width: 100%;
}

.premium-form input, .premium-form textarea, 
.premium-form-full input, .premium-form-full textarea, .premium-form-full select {
    width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    padding: 18px; border-radius: 16px; color: white; font-family: inherit; font-size: 16px; outline: none; transition: 0.3s;
}

.premium-form input:focus, .premium-form textarea:focus, 
.premium-form-full input:focus, .premium-form-full textarea:focus, .premium-form-full select:focus { 
    border-color: var(--accent-blue); background: rgba(255, 255, 255, 0.08); 
}

.premium-form-full select option { background-color: #111; color: white; }
.premium-form-full select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 45px; }

/* STATS DATA SECTION */
.stats-data-section { padding: 100px 0; }
.stats-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.stat-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 60px; border-radius: 40px; text-align: center; }
.stat-big { display: block; font-size: 64px; font-weight: 900; color: var(--accent-blue); margin-bottom: 20px; letter-spacing: -2px; }
.stat-card p { font-size: 18px; color: var(--text-gray); max-width: 400px; margin: 0 auto; }

/* EXPERTISE DETAILS */
.expertise-details { padding: 100px 0; }
.pillar-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 100px; align-items: center; margin-bottom: 150px; }
.pillar-row.reverse { grid-template-columns: 0.8fr 1.2fr; }
.pillar-row.reverse .pillar-text { order: 2; }
.pillar-row.reverse .pillar-visual { order: 1; }
.pillar-num { display: block; font-size: 14px; font-weight: 800; color: var(--accent-blue); letter-spacing: 2px; margin-bottom: 20px; }
.pillar-text h2 { font-size: 48px; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }
.pillar-text p { font-size: 20px; color: var(--text-gray); margin-bottom: 32px; }
.glass-box { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 60px; border-radius: 40px; position: relative; text-align: center; overflow: hidden; }
.glass-box.highlight { border-color: rgba(0, 113, 227, 0.3); background: rgba(0, 113, 227, 0.05); }
.visual-accent { width: 100px; height: 100px; background: var(--accent-blue); filter: blur(60px); position: absolute; top: -50px; right: -50px; opacity: 0.4; }
.glass-box p { font-size: 18px; font-weight: 600; color: white; position: relative; z-index: 2; }

/* IDENTITY VALUES */
.identity-values { padding: 80px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-item h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.value-item p { color: var(--text-gray); font-size: 17px; }

/* CONTEXT SECTION */
.context-section { padding: 120px 0; background: rgba(255,255,255,0.02); }
.context-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.context-text h2 { font-size: 48px; margin-bottom: 24px; }
.context-text p { font-size: 19px; color: var(--text-gray); margin-bottom: 24px; }
.context-visual { display: flex; justify-content: center; }
.stat-highlight { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 60px; border-radius: 50%; width: 300px; height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.stat-highlight .num { font-size: 56px; font-weight: 900; color: var(--accent-blue); display: block; }
.stat-highlight .lab { font-size: 12px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; }

/* TEAM PHILOSOPHY */
.team-philosophy { padding: 120px 0; }
.philosophy-box { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 80px; border-radius: 48px; text-align: center; }
.philosophy-box h2 { font-size: 48px; margin-bottom: 24px; }
.philosophy-box p { font-size: 20px; color: var(--text-gray); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* CONTACT FULL PAGE */
.contact-full { padding: 80px 0 150px; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 48px; padding: 80px; }
.info-item { margin-bottom: 40px; }
.info-label { display: block; font-size: 12px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 700; }
.info-value { font-size: 24px; font-weight: 700; color: white; }
.info-value a { color: inherit; text-decoration: none; }
.info-note { font-size: 14px; color: var(--text-gray); margin-top: 8px; }

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.input-group { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--text-gray); text-align: left; }

/* SERVICES GRID & CARDS */
.services-section, .about-section, .contact-section { position: relative; padding: 120px 0; z-index: 10; background: transparent; }
.section-header { text-align: center; margin-bottom: 80px; }
.sub-title { color: var(--accent-blue); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.section-header h2 { font-size: 52px; font-weight: 800; letter-spacing: -1px; }

.services-grid { 
    display: flex; /* Switch to flex for equal heights */
    gap: 25px; 
    flex-wrap: wrap;
}

.glass-card { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    padding: 60px 45px; border-radius: 32px; transition: var(--transition); 
    position: relative; overflow: hidden; 
    flex: 1; /* All cards same width/height */
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.glass-card:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); transform: translateY(-8px); }
.accent-line { position: absolute; top: 0; left: 45px; right: 45px; height: 2px; background: var(--accent-blue); opacity: 0.6; }
.glass-card h3 { font-size: 26px; margin-bottom: 18px; font-weight: 700; }
.glass-card p { color: var(--text-gray); font-size: 17px; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; /* Push link to bottom */ }
.card-link { color: var(--accent-blue); text-decoration: none; font-weight: 600; font-size: 16px; margin-top: auto; }

/* ABOUT SECTION WRAPPER */
.about-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: 52px; margin-bottom: 30px; letter-spacing: -1px; }
.about-text p { font-size: 20px; color: var(--text-gray); margin-bottom: 40px; }

/* CONTACT CARD (Main page) */
.contact-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 48px; padding: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; width: 100%; }
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 34px;
}
.contact-details p {
    margin: 0;
}
.contact-details a,
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 113, 227, 0.35);
    border-radius: 18px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--text-white) !important;
    text-decoration: none !important;
    -webkit-text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 34px rgba(0, 113, 227, 0.08);
    transition: all 0.3s ease;
}
.contact-link::before {
    content: "";
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    opacity: 0.9;
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}
.contact-link-email::before {
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5H20V17.5H4V6.5Z' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.5 7L12 12.5L19.5 7' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5H20V17.5H4V6.5Z' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.5 7L12 12.5L19.5 7' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.contact-link-phone::before {
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.2 4.5L9.4 8.8L7.9 10.2C8.8 12.2 10.6 14 12.8 15.1L14.2 13.6L18.5 15.8L17.7 19.2C17.6 19.7 17.1 20 16.6 20C9.7 19.8 4.2 14.3 4 7.4C4 6.9 4.3 6.4 4.8 6.3L7.2 4.5Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.2 4.5L9.4 8.8L7.9 10.2C8.8 12.2 10.6 14 12.8 15.1L14.2 13.6L18.5 15.8L17.7 19.2C17.6 19.7 17.1 20 16.6 20C9.7 19.8 4.2 14.3 4 7.4C4 6.9 4.3 6.4 4.8 6.3L7.2 4.5Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.contact-details a:hover,
.contact-details a:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
    color: var(--text-white) !important;
    border-color: rgba(0, 113, 227, 0.75);
    background: rgba(0, 113, 227, 0.18);
    box-shadow: 0 16px 44px rgba(0, 113, 227, 0.18);
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* BUTTONS */
.btn-secondary { display: inline-block; padding: 14px 32px; border: 1px solid var(--glass-border); border-radius: 30px; color: white; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: var(--glass-bg); border-color: white; }
.btn-submit { background: var(--text-white); color: var(--bg-black); border: none; padding: 16px 48px; border-radius: 100px; font-weight: 600; font-size: 17px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: fit-content; text-decoration: none; display: inline-block; text-align: center; }

/* FOOTER */
.footer { padding: 100px 0; border-top: 1px solid var(--glass-border); }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; }
.footer-wrap p { color: var(--text-gray); font-size: 14px; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .services-grid, .about-wrapper, .contact-card, .stats-data-grid, .pillar-row, .pillar-row.reverse, .values-grid, .context-wrapper, .contact-grid, .input-row { grid-template-columns: 1fr; gap: 40px; }
    .hero-title, .page-header h1 { font-size: 42px; }
    .page-header h1 { letter-spacing: 0; }
    .contact-card, .stat-card, .glass-box, .philosophy-box, .contact-grid { padding: 40px; }
    .pillar-text { order: 1 !important; }
    .pillar-visual { order: 2 !important; }
    .stat-highlight { width: 250px; height: 250px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    
    /* Mobile Menu */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 18px; color: white; }
    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Typography */
    .hero-title, .page-header h1 { font-size: 32px; }
    .page-header h1 { letter-spacing: 0.015em; }
    .manifesto-lead { font-size: 18px; }
    .section-header h2, .about-text h2, .pillar-text h2, .context-text h2, .philosophy-box h2 { font-size: 28px; }
    .stat-big { font-size: 40px; }
    .info-value { font-size: 18px; }
    
    /* Layout */
    .hero-interactive { height: 120vh; }
    .sticky-hero-wrap { height: 100vh; }
    .hero-content { padding: 0 10px; }
    .badge { margin-bottom: 20px; }
    .glass-card, .stat-card, .glass-box, .philosophy-box, .contact-grid { padding: 30px 20px; border-radius: 24px; }
    .stat-highlight { width: 200px; height: 200px; }
    .stat-highlight .num { font-size: 40px; }
    
    .footer-wrap { flex-direction: column; gap: 20px; text-align: center; }
}

/* ===== CTA BANNER (używane na ekspertyza.html i szkolenia-aml.html) ===== */
.cta-banner { padding: 60px 0 140px; }
.cta-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-glass h2 { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.cta-glass p { font-size: 20px; color: var(--text-gray); max-width: 640px; margin: 0 auto 40px; line-height: 1.5; }
@media (max-width: 600px) {
    .cta-glass { padding: 40px 24px; border-radius: 24px; }
    .cta-glass h2 { font-size: 28px; }
    .cta-glass p { font-size: 17px; }
}

/* ===== LOGO W STOPCE ===== */
.footer-brand { display: inline-block; line-height: 0; }
.footer-logo { height: 64px; width: auto; display: block; }
@media (max-width: 600px) {
    .footer-logo { height: 52px; }
}
