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

:root {
    --navy:        #0a1628;
    --navy-2:      #0f2040;
    --navy-3:      #1a3555;
    --accent:      #2563eb;
    --accent-h:    #1d4ed8;
    --accent-lt:   #60a5fa;
    --white:       #ffffff;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-400:    #94a3b8;
    --gray-600:    #475569;
    --gray-900:    #0f172a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 24px rgba(10,22,40,0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--gray-900); }

.nav-phone {
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: color 0.2s;
}

.nav-phone:hover { color: var(--accent); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
}

/* Mobile nav controls */
.nav-cta-mobile { display: none; }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--gray-900);
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.icon-x { display: none; }
nav.menu-open .icon-ham { display: none; }
nav.menu-open .icon-x { display: block; }

/* Mobile dropdown */
.nav-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.15);
}

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

.nav-dropdown ul { list-style: none; }

.nav-dropdown ul li a {
    display: block;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown ul li:last-child a { border-bottom: none; }
.nav-dropdown ul li a:hover { color: var(--accent); background: rgba(255,255,255,0.75); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(37,99,235,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 75%, rgba(37,99,235,0.10) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 36px 36px;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.hero-content {
    max-width: 700px;
    padding: 96px 0 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    padding: 20px 32px;
    margin-bottom: 40px;
    box-shadow: 0 12px 56px rgba(0,0,0,0.4);
    width: fit-content;
}

.hero-logo-card img {
    height: 220px;
    width: auto;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(96,165,250,0.25);
    color: var(--accent-lt);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-lt);
    flex-shrink: 0;
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.hero-h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-h1 em {
    font-style: normal;
    color: var(--accent-lt);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin-bottom: 48px;
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--navy);
    padding: 15px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255,255,255,0.22);
    color: var(--white);
    padding: 15px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.07);
}

/* ── TRUST STRIP ── */
.trust {
    background: var(--navy-2);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.trust-row {
    display: flex;
    justify-content: center;
}

.trust-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.trust-item:last-child { border-right: none; }

.trust-num {
    font-size: 38px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1.5px;
    line-height: 1;
}

.trust-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

/* ── SECTIONS BASE ── */
section { padding: 100px 0; }

.sec-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.sec-label--dim { color: rgba(255,255,255,0.4); }

.sec-title {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.12;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.sec-title--white { color: var(--white); }

.sec-sub {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 520px;
    line-height: 1.75;
}

.sec-sub--white { color: rgba(255,255,255,0.55); }

.sec-head { margin-bottom: 64px; }

/* ── PROCESS ── */
#uslugi { background: var(--white); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.process-step {
    padding: 40px 32px;
    border-right: 1.5px solid var(--gray-200);
    transition: background 0.2s;
}

.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--gray-50); }

.step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(37,99,235,0.09);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ── WHY US ── */
#dlaczego { background: var(--gray-50); }

.why-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 44px;
}

.why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.why-text p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.why-card {
    background: var(--navy);
    border-radius: 20px;
    overflow: hidden;
}

.why-stat {
    padding: 32px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.why-stat:last-child { border-bottom: none; }

.why-stat-num {
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
}

.why-stat-lbl {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* ── GALLERY / CAROUSEL ── */
#realizacje {
    background: var(--navy);
    padding: 100px 0;
}

.carousel {
    position: relative;
    margin-top: 56px;
    user-select: none;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 24px));
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.4);
}

/* ── REVIEWS ── */
#opinie { background: var(--gray-50); }

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.google-badge:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 12px rgba(66,133,244,0.15);
}

.google-badge .g-logo {
    font-size: 18px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4285F4, #EA4335, #FBBC04, #34A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.google-badge .g-stars {
    color: #FBBC04;
    font-size: 15px;
    letter-spacing: 1px;
}

.google-badge .g-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.google-badge .g-count {
    font-size: 13px;
    color: var(--gray-600);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.review-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.review-card:hover {
    box-shadow: 0 8px 32px rgba(10,22,40,0.09);
    transform: translateY(-2px);
}

.review-stars {
    color: #FBBC04;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.review-date {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 1px;
}

/* ── CONTACT ── */
#kontakt { background: var(--white); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.contact-details {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.c-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.c-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.c-text a, .c-text span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.c-text a:hover { color: var(--accent); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-field input,
.form-field textarea {
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.btn-send {
    align-self: flex-start;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 15px 32px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-send:hover {
    background: var(--navy-3);
    transform: translateY(-1px);
}

/* ── MAP ── */
.contact-map {
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
}

.contact-map iframe { display: block; }

/* ── FOOTER ── */
footer {
    background: var(--navy);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo img {
    height: 38px;
    filter: invert(1) brightness(0.75);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ── O FIRMIE ── */
#o-firmie { background: var(--white); }

.firm-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.firm-highlight {
    display: inline-flex;
    flex-direction: column;
    margin-top: 36px;
    padding: 24px 32px;
    background: var(--navy);
    border-radius: 16px;
}

.firm-highlight-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
}

.firm-highlight-lbl {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
    max-width: 160px;
    line-height: 1.5;
}

.firm-services-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 28px;
}

.firm-services-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.firm-service-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.firm-service-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}

.firm-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37,99,235,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.firm-service-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.firm-service-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.firm-service-text p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ── MARKI ── */
#marki { background: var(--gray-50); }

.brands-marquee {
    margin-top: 56px;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: brands-scroll 30s linear infinite;
}

.brands-marquee:hover .brands-track { animation-play-state: paused; }

@keyframes brands-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-logo {
    flex: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--gray-400);
    transition: color 0.2s;
    white-space: nowrap;
}

.brand-logo:hover { color: var(--gray-900); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .why-layout { grid-template-columns: 1fr; }
    .why-card { display: none; }
    .firm-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .nav-logo { display: none; }
    .nav-links { display: none; }
    .nav-right { display: none; }
    .nav-cta-mobile { display: inline-flex; }
    .nav-hamburger { display: flex; }

    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step:nth-child(2) { border-right: none; }
    .process-step:nth-child(1),
    .process-step:nth-child(2) { border-bottom: 1.5px solid var(--gray-200); }

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

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

@media (max-width: 600px) {
    section { padding: 72px 0; }

    .trust-row { flex-wrap: wrap; }
    .trust-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .trust-item:nth-child(2n) { border-right: none; }

    .process-grid { grid-template-columns: 1fr; }
    .process-step { border-right: none !important; border-bottom: 1.5px solid var(--gray-200) !important; }
    .process-step:last-child { border-bottom: none !important; }

    .carousel-slide { height: 320px; }

    .brands-track { gap: 48px; }
    .brand-logo { font-size: 22px; }

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

    .form-row-2 { grid-template-columns: 1fr; }
    .nav-phone { display: none; }

    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .hero h1 { letter-spacing: -2px; }
}
