:root {
    --ink: #080b14;        /* najgłębsze tło */
    --navy: #0f172a;       /* primary */
    --slate: #1e293b;      /* panele */
    --slate-2: #283548;
    --accent: #e11d48;     /* karmazyn (zachowany) */
    --accent-bright: #f43f5e;
    --accent-soft: rgba(225, 29, 72, 0.12);

    --text-dark: #334155;
    --text-mute: #64748b;
    --cloud: #cbd5e1;
    --mist: #94a3b8;
    --paper: #f8fafc;
    --white: #ffffff;
    --border: rgba(148, 163, 184, 0.16);

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow: 0 10px 30px -12px rgba(8, 11, 20, 0.18);
    --shadow-hover: 0 24px 50px -18px rgba(8, 11, 20, 0.30);
    --glow: 0 0 0 1px rgba(225,29,72,.25), 0 16px 40px -16px rgba(225,29,72,.45);
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
    --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 110px 0; }
.center { text-align: center; }
.accent { color: var(--accent); }
.bg-light { background: linear-gradient(180deg, var(--paper) 0%, #eef2f7 100%); }

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    z-index: 2000; transition: width .1s linear;
}

/* EYEBROW (sygnatura: mono adnotacje) */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-bright); margin-bottom: 22px;
}
.eyebrow.dark { color: var(--accent); }
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-bright); box-shadow: 0 0 0 4px var(--accent-soft);
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* LOGO */
.logo-container { display: flex; align-items: center; }
.mainLogo { height: 42px; width: auto; }
.text-logo {
    display: none; font-family: var(--font-head); font-weight: 700;
    font-size: 26px; letter-spacing: -0.03em; color: var(--navy);
}

/* HEADER */
header {
    width: 100%; height: 76px; padding: 0 max(24px, 5%);
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px -20px rgba(8,11,20,.4);
}

.mainMenu { display: flex; align-items: center; gap: 38px; }
.mainMenu a {
    font-family: var(--font-head); font-weight: 500; font-size: 15px;
    color: var(--navy); position: relative; display: inline-flex; align-items: baseline; gap: 6px;
}
.nav-idx { font-family: var(--font-mono); font-size: 10px; color: var(--mist); transition: var(--transition); }
.mainMenu a:not(.nav-cta)::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -6px; left: 0;
    background: var(--accent); transition: var(--transition);
}
.mainMenu a:not(.nav-cta):hover { color: var(--accent); }
.mainMenu a:not(.nav-cta):hover::after { width: 100%; }
.mainMenu a:hover .nav-idx { color: var(--accent); }
.nav-cta {
    background: var(--navy); color: var(--white) !important;
    padding: 10px 22px; border-radius: 100px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-2px); }

/* HERO */
.hero {
    min-height: 100vh; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); overflow: hidden;
}
.hero-code {
    position: absolute; inset: 0;
    background: url('img/bothImages/img.png') no-repeat center center/cover;
    opacity: 0.45; filter: grayscale(.2);
    mask-image: linear-gradient(105deg, transparent 14%, #000 80%);
    -webkit-mask-image: linear-gradient(105deg, transparent 14%, #000 80%);
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(880px 520px at 50% 46%, rgba(8,11,20,0.84), transparent 72%),
        radial-gradient(1200px 600px at 72% 0%, rgba(225,29,72,0.12), transparent 60%),
        linear-gradient(135deg, rgba(8,11,20,0.86) 0%, rgba(15,23,42,0.62) 55%, rgba(15,23,42,0.42) 100%);
}
.hero-glow {
    position: absolute; z-index: 1; top: 12%; left: 50%; transform: translateX(-50%);
    width: 680px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(225,29,72,0.28), transparent 65%);
    filter: blur(40px); pointer-events: none;
    animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-24px)} }
.hero-grid {
    position: absolute; inset: 0; z-index: 1; opacity: .5;
    background-image:
        linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    color: var(--white); max-width: 860px; padding: 90px 24px 24px;
}
.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700;
    color: var(--white); margin-bottom: 24px; letter-spacing: -0.035em;
}
.accent-gradient {
    background: linear-gradient(100deg, var(--accent-bright), var(--accent) 55%, #fb7185);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-family: var(--font-body); font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--cloud); max-width: 620px; margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 32px; border-radius: 100px; font-weight: 600;
    font-family: var(--font-head); font-size: 15px; cursor: pointer;
    transition: var(--transition); border: 1.5px solid transparent;
}
.btn-primary {
    background: var(--accent); color: var(--white);
    box-shadow: 0 12px 30px -10px rgba(225,29,72,.6);
}
.btn-primary .arrow { transition: transform .3s ease; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(225,29,72,.7); }
.btn-primary:hover .arrow { transform: translateX(5px); }
.btn-outline { background: rgba(255,255,255,0.04); color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }

/* SCROLL CUE */
.scroll-cue {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent-bright); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(14px);opacity:0} 100%{opacity:0} }

/* STATS BAND */
.stats-band { background: var(--navy); color: var(--white); padding: 54px 0; position: relative; }
.stats-band::before {
    content:''; position:absolute; top:0; left:0; width:100%; height:1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
    content:''; position:absolute; right:-28px; top:50%; transform:translateY(-50%);
    width:1px; height:46px; background: var(--border);
}
.stat-num {
    display: block; font-family: var(--font-head); font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem); color: var(--white); line-height: 1;
}
.stat-num.mono-inf { font-family: var(--font-mono); font-size: clamp(1.8rem,3.2vw,2.5rem); color: var(--accent-bright); }
.stat-label { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mist); letter-spacing: .02em; }

/* SECTION HEADERS */
.section-head { max-width: 640px; margin: 0 auto 60px; }
.section-head.center { display: flex; flex-direction: column; align-items: center; }
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 16px; }
.section-desc { color: var(--text-mute); font-size: 1.05rem; }
.section-desc.light { color: var(--cloud); }
.white { color: var(--white); }

/* O NAS */
.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.lead { font-size: 1.08rem; color: var(--text-dark); }
.feature-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; color: var(--text-dark); }
.check {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
    background: var(--accent-soft); color: var(--accent);
}
.about-img-wrapper {
    position: relative; width: 100%; aspect-ratio: 5/4;
    border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--slate));
    box-shadow: var(--shadow-hover); border: 1px solid var(--border);
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrapper .corner {
    position: absolute; width: 18px; height: 18px; z-index: 2; border: 2px solid var(--accent-bright);
}
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* SERVICES GRID */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
    position: relative; background: var(--white); padding: 38px 30px 32px;
    border-radius: 18px; border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: var(--transition); overflow: hidden;
}
.service-card::before {
    content:''; position:absolute; inset:0; border-radius:18px; padding:1px;
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { opacity: 1; }
.card-idx {
    position: absolute; top: 24px; right: 26px;
    font-family: var(--font-mono); font-size: 12px; color: var(--mist); letter-spacing: .1em;
}
.icon-box {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
    border-radius: 14px; background: var(--accent-soft); color: var(--accent);
    transition: var(--transition);
}
.icon-box svg { width: 28px; height: 28px; }
.service-card:hover .icon-box { background: var(--accent); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.service-card p { font-size: 0.96rem; color: var(--text-mute); }

/* SOFTWARE SECTION (dark) */
.software-section { background: var(--navy); position: relative; overflow: hidden; }
.software-glow {
    position: absolute; top: -10%; right: -5%; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(225,29,72,0.22), transparent 65%);
    filter: blur(50px); pointer-events: none;
}
.software-section .container { position: relative; z-index: 1; }
.dark-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none; backdrop-filter: blur(6px);
}
.dark-card h3 { color: var(--white); }
.dark-card p { color: var(--cloud); }
.dark-card .card-idx { color: var(--accent-bright); }
.dark-card .icon-box { background: rgba(225,29,72,0.16); }
.dark-card:hover { transform: translateY(-8px); border-color: rgba(225,29,72,0.4); }

/* KONTAKT */
.contact-section { background: var(--ink); color: var(--white); }
.grid-2-contact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--slate); border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow-hover); border: 1px solid var(--border);
}
.contact-info { padding: 60px 56px; }
.contact-lead { color: var(--cloud); margin-bottom: 12px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; margin-top: 28px; }
.contact-ic {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-bright);
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-item h4 { color: var(--white); margin-bottom: 4px; font-size: 1.02rem; }
.contact-item p { color: var(--cloud); font-size: 0.98rem; }
.contact-item a:hover { color: var(--accent-bright); }
.map-container { min-height: 440px; width: 100%; }
.map-container iframe { filter: grayscale(0.3) contrast(1.05); }

/* FOOTER */
footer { background: #05070e; color: var(--mist); padding: 56px 0 26px; }
.footer-grid {
    display: flex; justify-content: space-between; align-items: center; gap: 30px;
    flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(148,163,184,0.12);
}
.footer-logo { display: inline-block; color: var(--white); font-size: 24px; }
.footer-logo-img { height: 34px; width: auto; }
.footer-brand p { margin-top: 8px; font-size: 0.92rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--cloud); }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}
.mono-tag { font-family: var(--font-mono); color: var(--text-mute); }

/* BURGER */
.activeBurgerMenuButton {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 19px; cursor: pointer; z-index: 10001;
    background: none; border: none; padding: 0;
}
.activeBurgerMenuButton span { width: 100%; height: 2.5px; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.burgerMenu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(8,11,20,0.97); backdrop-filter: blur(12px);
    z-index: 9000; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 28px;
    transition: right 0.45s cubic-bezier(.65,0,.35,1);
}
.burgerMenu.open { right: 0; }
.burgerMenu a {
    font-family: var(--font-head); font-size: 26px; font-weight: 600; color: var(--white);
    display: flex; align-items: baseline; gap: 10px;
}
.burgerMenu a:hover { color: var(--accent-bright); }
.burgerMenu .nav-idx { font-size: 13px; color: var(--accent); }
.activeBurgerMenuButton.open span { background: var(--white); }
.activeBurgerMenuButton.open .stick1 { transform: rotate(45deg) translate(5px, 6px); }
.activeBurgerMenuButton.open .stick2 { opacity: 0; }
.activeBurgerMenuButton.open .stick3 { transform: rotate(-45deg) translate(5px, -6px); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 44px; }
    .image-content { order: -1; }
}
@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    .mainMenu { display: none; }
    .activeBurgerMenuButton { display: flex; }
    .grid-2-contact { grid-template-columns: 1fr; }
    .contact-info { padding: 44px 28px; }
    .map-container { min-height: 320px; order: 2; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .stat::after { display: none !important; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-content { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

section[id] { scroll-margin-top: 76px; }

/* Zachowaj typografię danych adresowych po zastosowaniu znacznika semantycznego. */
address { font: inherit; }
