/* ============================================================================
 * ECG-specific overrides nad RunOK template.
 * Drobne tweaki typografii, spacing i akcentów żeby template wygląda jak ECG,
 * a nie generic agencyjny landing.
 * ========================================================================== */

/* Fix horizontal scroll — RunOK #sidebar-area (offcanvas) wystaje poza viewport.
   UWAGA: overflow-x:hidden na html/body PSUJE position:sticky w childrach
   (tworzy implicit scrolling container). Zamiast tego uzywamy overflow-x:clip
   ktore robi to samo dla x-overflow ale NIE blokuje sticky positioning. */
html, body {
    overflow-x: clip;
    max-width: 100vw;
}

/* Force dark mode bezwarunkowo — niezależnie od data-theme attribute.
   RunOK ma JS który auto-przełącza motyw na podstawie localStorage / prefers-color-scheme,
   co potrafi zostawić stronę w light mode (białe BG sekcji bez własnego dark BG, np. newsletter, kontakt).
   Dlatego forsujemy ciemne tło na html + body bez selektora data-theme. */
html,
html body {
    background-color: #02050A !important;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================================
 * Brand identity — Engel Consulting Group
 * Paleta wg /Branding/: #163C90 Marian, #2764F3 Royal, #2F3136 Jet, #8A8B8E
 * Battleship, #E5E5E5 Platinum. Czcionka: Montserrat.
 * ========================================================================== */
:root {
    --ecg-blue-marian: #163C90;
    --ecg-blue-royal: #2764F3;
    --ecg-jet: #2F3136;
    --ecg-gray: #8A8B8E;
    --ecg-platinum: #E5E5E5;
}

body,
.header .primary-header-inner .header-menu-wrap ul li a {
    font-family: "Montserrat", "Hind Madurai", system-ui, -apple-system, sans-serif;
}

/* ECG logo (mark + wordmark) — finalna marka klienta */
.ecg-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    line-height: 1;
}
.ecg-logo:hover { color: #fff; }
.ecg-logo-mark-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 350ms ease;
}
.ecg-logo:hover .ecg-logo-mark-img {
    transform: rotate(-6deg) scale(1.04);
}
.ecg-logo-wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
}
.ecg-logo-line { display: block; line-height: 1.05; }
@media (max-width: 1199px) {
    .ecg-logo-wordmark { font-size: 10px; }
    .ecg-logo-mark-img { width: 42px; height: 42px; }
}
@media (max-width: 575px) {
    .ecg-logo-wordmark { display: none; }
}

/* Hide theme-toggle button — nie potrzebujemy switchera w iter 2.
   Klient może go włączyć później jeśli chce (decyzja produktowa). */
#theme-toogle { display: none !important; }

/* Sekcje bez własnego dark BG mogą domyślnie pokazywać białe tło z RunOK CSS.
   Wymuszam przezroczystość żeby body bg dominował. */
.newsletter-section,
.contact-section,
.ecg-newsletter,
.ecg-contact,
.sponsor-section-6,
.sponsor-section,
.about-section-2,
.ecg-pain-promise,
.ecg-segments-section,
.ecg-quote-section,
.ecg-cases-section,
.project-section {
    background-color: transparent !important;
}

/* Container-level white backgrounds + bordery wewnątrz sekcji (RunOK light styles) */
.ecg-contact .contact-content,
.ecg-contact .blog-contact-form,
.ecg-contact .blog-contact-form.form-2,
.ecg-contact .request-form {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* "bg-text" watermark (np. "NEWSLETTER" za nagłówkiem) — w dark mode subtle, nie pełny biały */
.section-heading .bg-text,
.ecg-newsletter .bg-text {
    color: rgba(255, 255, 255, 0.04) !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
}

/* Tytuły kontaktu (EMAIL / GODZINY / LOKALIZACJA) — wymuszamy biały bo RunOK nadpisuje na ciemny */
.ecg-contact .list-item .title { color: #fff !important; }
.ecg-contact .list-item .content span,
.ecg-contact .list-item .content a { color: rgba(255, 255, 255, 0.75) !important; }
.ecg-contact .list-item .content a:hover { color: var(--ecg-accent) !important; }
.ecg-contact .section-heading p { color: rgba(255, 255, 255, 0.7); }

/* Form fields w kontakcie — RunOK domyślnie jasne; wymuszam dark variant */
.ecg-contact-form .form-control,
.ecg-contact-form .ecg-select,
.ecg-contact-form .form-control:focus,
.ecg-contact-form textarea {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
.ecg-contact-form .form-control::placeholder,
.ecg-contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.4) !important; }

/* Newsletter form input override — analogicznie */
.ecg-newsletter .newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.ecg-newsletter .newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4) !important; }

/* Nice-select dropdown (RunOK plugin auto-applies na select.form-control) — dark mode */
.ecg-contact-form .nice-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    height: 50px !important;
    line-height: 48px !important;
    padding: 0 38px 0 18px !important;
    border-radius: 10px !important;
    font-size: 0.9375rem !important;
    margin-bottom: 12px;
}
.ecg-contact-form .nice-select::after {
    border-color: rgba(255, 255, 255, 0.55) !important;
    right: 18px !important;
}
.ecg-contact-form .nice-select.open {
    border-color: rgba(63, 90, 243, 0.5) !important;
}
.ecg-contact-form .nice-select .list {
    background-color: #0A0E18 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    width: 100% !important;
    margin-top: 6px !important;
    padding: 6px 0 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
}
.ecg-contact-form .nice-select .option {
    color: rgba(255, 255, 255, 0.78) !important;
    background-color: transparent !important;
    padding: 10px 18px !important;
    line-height: 1.4 !important;
    min-height: auto !important;
}
.ecg-contact-form .nice-select .option:hover,
.ecg-contact-form .nice-select .option.focus,
.ecg-contact-form .nice-select .option.selected.focus,
.ecg-contact-form .nice-select .option.selected {
    background-color: rgba(63, 90, 243, 0.18) !important;
    color: #fff !important;
}
.ecg-contact-form .nice-select .current { color: rgba(255, 255, 255, 0.85) !important; }

/* Section headings — wymuszamy white na nagłówkach sekcji (RunOK light styles override) */
section h2.section-title,
section .section-heading h2 { color: #fff !important; }
section .section-heading p { color: rgba(255, 255, 255, 0.65); }

/* Process section — tytuły kroków na ciemnym tle, RunOK je przyciemnia */
.ecg-process-card .ecg-process-title { color: #fff !important; }

/* Sticky obszary 6c — wymuszamy bialy na tytule prawej kolumny (RunOK ma h3 ciemny) */
.ecg-areas-detail-title,
.ecg-areas-detail h3 { color: #fff !important; }
.ecg-areas-detail-desc,
.ecg-areas-detail p { color: rgba(255, 255, 255, 0.75) !important; }

/* Case carousel cards titles */
.ecg-case-card .ecg-case-title,
.ecg-case-card h4 { color: #fff !important; }
.ecg-case-card p { color: rgba(255, 255, 255, 0.7) !important; }

/* Stats labels */
.ecg-stat-number { color: #fff !important; }
.ecg-stat-label { color: rgba(255, 255, 255, 0.65) !important; }

/* FAQ accordion */
.ecg-faq-content .accordion-button { color: #fff !important; }
.ecg-faq-content .accordion-body p { color: rgba(255, 255, 255, 0.7) !important; }

/* Cytat foundera — RunOK ma blockquote { display: grid; background: ...; padding: ... }
   co rozklada <p> i <footer> obok siebie + dodaje pudelko. Wymuszam czysty layout. */
.ecg-quote {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
}
.ecg-quote p,
.ecg-quote footer {
    display: block !important;
    text-align: center !important;
    width: 100%;
    max-width: none;
    background: transparent !important;
}

/* Hero — typografia bardziej zbalansowana, żeby SVG miało miejsce */
.ecg-hero-title {
    font-size: clamp(2rem, 4vw, 3.75rem) !important;
    color: #fff !important;
}
.ecg-hero-sub { color: rgba(255, 255, 255, 0.7) !important; }
.ecg-hero-row { min-height: auto !important; align-items: center; }
.ecg-hero-svg-wrap { min-height: 600px; }

/* Light-mode overrides w ecg-hero-svg.css aplikuja sie gdy data-theme=light,
   ktory RunOK JS wlacza domyslnie. Wymuszamy biale na hero niezaleznie. */
[data-theme="light"] .ecg-hero-title,
[data-theme="dark"] .ecg-hero-title { color: #fff !important; }
[data-theme="light"] .ecg-hero-sub,
[data-theme="dark"] .ecg-hero-sub { color: rgba(255, 255, 255, 0.7) !important; }
[data-theme="light"] .ecg-quote,
[data-theme="dark"] .ecg-quote { color: #fff !important; }
[data-theme="light"] .ecg-pain-item p,
[data-theme="dark"] .ecg-pain-item p { color: rgba(255, 255, 255, 0.85) !important; }
[data-theme="light"] .ecg-promise-item .title,
[data-theme="dark"] .ecg-promise-item .title { color: #fff !important; }
[data-theme="light"] .ecg-promise-item .content p,
[data-theme="dark"] .ecg-promise-item .content p { color: rgba(255, 255, 255, 0.65) !important; }

/* Radial section background — pewność że ciemne */
.ecg-radial-section { background-color: var(--ecg-bg-2, #0A0E18); }
.ecg-services-section { background-color: var(--ecg-bg-2, #0A0E18); }
.ecg-process-section { background-color: var(--ecg-bg-1, #02050A); }

/* Pricing/services sekcje z templatu — nadpisz potencjalny white BG container */
.ecg-services-section .ecg-service-card {
    background-color: rgba(255, 255, 255, 0.03);
}
.ecg-services-section .ecg-service-card-featured {
    background: linear-gradient(180deg, rgba(63, 90, 243, 0.12) 0%, rgba(63, 90, 243, 0.04) 100%);
}

/* Disable RunOK's gsap scroll-smoother — używamy natywnego scrolla.
   Bez tego override #smooth-wrapper jest position:fixed z overflow:hidden i ucina
   wszystkie sekcje pod hero. */
#smooth-wrapper {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
}
#smooth-content {
    transform: none !important;
    height: auto !important;
}

/* Polskie znaki diakrytyczne lepiej w Inter / system stack niż w domyślnym templatowym font-family.
   RunOK używa noto_sans gdzieś — zostawiam, ale dodaję fallback. */
body {
    font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sponsor section header — w templacie h4, my chcemy bardziej subtle */
.sponsor-section-6 .sponsor-header .title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0 0 48px;
}

.sponsor-section-6 .sponsor-card img {
    max-height: 56px;
    opacity: 0.7;
    transition: opacity 200ms ease;
    filter: brightness(0) invert(1); /* białe logo na ciemnym tle */
}
.sponsor-section-6 .sponsor-card:hover img { opacity: 1; }

/* Bring back proper RunOK accent color (niebieski jak w designie klienta) */
:root {
    --ecg-accent: #3F5AF3;
}

.section-heading .sub-heading {
    color: var(--ecg-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0; /* runok ma padding 0 50px ktore powodowalo offset eyebrow od lewej (klient feedback 2026-05-13) */
}
.section-heading .section-title {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 12px 0 0;
}

/* Primary button override — RunOK ma .rr-primary-btn z gradientem, my chcemy solid niebieski */
.rr-primary-btn {
    background: var(--ecg-accent);
    border: none;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 200ms ease, transform 200ms ease;
}
.rr-primary-btn:hover {
    background: #2d46d4;
    color: #fff;
    transform: translateY(-1px);
}

/* Header — pełen dark (loom#4+5 [73a113d7 P2]: klient prosił spójny ciemny pasek nawigacji)
   Wcześniej: rgba(2, 5, 10, 0.7) + backdrop-filter — przy braku content pod headerem wyglądało jasno. */
.header.sticky-active.sticky,
.header.inner-header.sticky-active,
.ecg-header {
    background: #02050A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================================
 * Header desktop — menu, dropdowny dark, CTA po prawej
 * ========================================================================== */
.ecg-header .primary-header-inner {
    padding: 12px 60px;
}
@media (max-width: 1199px) {
    .ecg-header .primary-header-inner { padding: 12px 30px; }
}
@media (max-width: 992px) {
    .ecg-header .primary-header-inner { padding: 14px 20px; }
}

.ecg-header .header-right-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}
@media (max-width: 1199px) {
    .ecg-header .header-right-wrap { gap: 16px; }
}

/* Top-level linki — Montserrat, lekko mniej liter-spacing niż RunOK */
.ecg-header .header-menu-wrap ul li a {
    font-family: "Montserrat", system-ui, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    padding: 28px 0 !important;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
}
.ecg-header .header-menu-wrap ul li a:hover {
    color: #fff !important;
}
.ecg-header .header-menu-wrap ul li a i {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 250ms ease;
    opacity: 0.7;
}
.ecg-header .header-menu-wrap ul li:hover > a i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdowny — dark variant (RunOK domyślnie biały bg) */
.ecg-header .header-menu-wrap ul li ul.ecg-submenu {
    background: rgba(15, 18, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 8px;
    width: 280px;
    top: 80px !important;
    overflow: hidden;
}
.ecg-header .header-menu-wrap ul li ul.ecg-submenu li {
    margin: 0;
    display: block;
    border-bottom: none !important;
    border-radius: 8px;
}
.ecg-header .header-menu-wrap ul li ul.ecg-submenu li a {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 12px 16px !important;
    border-radius: 8px;
    line-height: 1.4 !important;
}
.ecg-header .header-menu-wrap ul li ul.ecg-submenu li a:before { display: none !important; }
.ecg-header .header-menu-wrap ul li ul.ecg-submenu li:hover {
    background: rgba(39, 100, 243, 0.14);
}
.ecg-header .header-menu-wrap ul li ul.ecg-submenu li:hover a {
    color: #fff !important;
    background: transparent !important;
}

/* CTA "Umów bezpłatną konsultację" w headerze */
.ecg-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px !important;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: var(--ecg-blue-royal, #2764F3) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 0 rgba(39, 100, 243, 0.0);
    transition: background 250ms ease, transform 250ms ease, box-shadow 350ms ease;
    white-space: nowrap;
}
.ecg-header-cta:hover {
    background: #1d4fd6 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(39, 100, 243, 0.25);
    color: #fff !important;
}
@media (max-width: 992px) {
    .ecg-header-cta { display: none !important; }
}

/* Side menu (mobile drawer) — RunOK ma sidebar-area na bg-1 (białe w light).
   Wymuszamy ciemny panel + spójny dystans + scrollbar. */
.sidebar-area {
    background-color: rgba(2, 5, 10, 0.97) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.sidebar-area .side-menu-content { width: 100%; }
.sidebar-area .side-menu-logo { margin-bottom: 32px; }
.sidebar-area .side-menu-about {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-area .side-menu-about p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}
.sidebar-area .side-menu-about h3,
.sidebar-area .side-menu-header h3 {
    color: #fff;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

/* meanmenu klonuje .mobile-menu-items do .side-menu-wrap .mean-nav.
   Override defaultowych styli (jasne tło, capitalize) — dark theme + brand. */
.sidebar-area .mean-bar { background: transparent; padding: 0; min-height: 0; }
.sidebar-area .mean-bar .meanmenu-reveal { display: none !important; }
.sidebar-area .mean-bar .mean-nav.mean-nav > ul {
    background: transparent;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    width: 100%;
    position: relative;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li:last-child { border-bottom: none; }
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li > a {
    display: block;
    font-family: "Montserrat", system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    padding: 16px 56px 16px 0 !important;
    line-height: 1.3 !important;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li > a i { display: none; }
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li ul {
    padding: 0 0 8px 4px !important;
    margin-top: 0 !important;
    list-style: none;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li ul li {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li ul li a {
    display: block;
    font-family: "Montserrat", system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    text-transform: none !important;
    padding: 10px 0 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul li a:hover,
.sidebar-area .mean-bar .mean-nav.mean-nav > ul li a:focus {
    color: var(--ecg-blue-royal, #2764F3) !important;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li > a.mean-expand {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    top: 12px !important;
    right: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    transition: background 200ms ease, transform 200ms ease;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li > a.mean-expand:hover {
    background: var(--ecg-blue-royal, #2764F3) !important;
    border-color: var(--ecg-blue-royal, #2764F3) !important;
    color: #fff !important;
}
.sidebar-area .mean-bar .mean-nav.mean-nav > ul > li > a.mean-expand.mean-clicked {
    background: var(--ecg-blue-royal, #2764F3) !important;
    border-color: var(--ecg-blue-royal, #2764F3) !important;
}

/* Footer — drobny tweak żeby linki w copyright były jaśniejsze */
.footer-section .copyright-area p a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    margin: 0 4px;
}
.footer-section .copyright-area p a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Newsletter form w footerze — match dark mode */
.footer-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.footer-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-form .submit { background: var(--ecg-accent); }

/* ============================================================================
 * Loom feedback Dawid 2026-05-13 — home page polish (Batch A)
 * ============================================================================ */

/* #1 Header — przyklejony do gory od razu, bez 55px offsetu (RunOK ma top:55 do scroll
   i top:0 w sticky.fixed). Klient: "menu od razu na samej gorze". Globalnie na home+podstrony. */
.ecg-header,
.header.inner-header {
    top: 0 !important;
}

/* #2 Hero CTA — wyrownaj ikony do lewej-gory, normalizuj paddingi przyciskow
   (klient: "ikony do lewej i do gory tak jak pozostale, paddingi z kazdej strony jakies dziwne"). */
.ecg-hero-btn {
    align-items: flex-start !important;
    padding: 14px 16px;
}
.ecg-hero-btn > span {
    align-items: flex-start;
}
.ecg-hero-btn > span > i {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* #6 Logo-board — 2 rzedy slotow. Klient: "co najmniej dwa rzedy, troche szybciej". */
.ecg-logo-board--two-rows {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
}
.ecg-logo-board--two-rows .ecg-logo-board__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 991px) {
    .ecg-logo-board--two-rows .ecg-logo-board__row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
@media (max-width: 575px) {
    .ecg-logo-board--two-rows .ecg-logo-board__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* #10 Newsletter popup eyebrow — z osobnej kafelki "icon + label" robimy poziomy pill,
   bardziej elegancki (klient: "popraw to, mega nie podoba mi sie, dziwnie wyglada"). */
.ecg-newsletter-card__eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(63, 90, 243, 0.12);
    border: 1px solid rgba(63, 90, 243, 0.32);
    border-radius: 999px;
    box-shadow: 0 8px 24px -12px rgba(63, 90, 243, 0.4);
}
.ecg-newsletter-card__eyebrow > i {
    font-size: 14px;
    color: var(--ecg-accent, #3F5AF3);
}

/* ============================================================================
 * Loom feedback Dawid 2026-05-13 — Batch B (cztery formaty, kontakt, footer)
 * ============================================================================ */

/* #3 Cztery formaty wspolpracy — lewa kolumna (4 taby) ma pelnic wysokosc kolumny prawej (panel).
   Klient: "puste tlo na dole pod tabami, wyrownaj". Stretch + flex:1 per tab. */
@media (min-width: 992px) {
    .ecg-services-tabs {
        align-items: stretch !important;
    }
    .ecg-services-tabs__nav {
        height: 100%;
    }
    .ecg-services-tabs__nav li {
        flex: 1 1 0;
        display: flex;
    }
    .ecg-services-tab {
        flex: 1 1 auto;
    }
}

/* #8 Kontakt — alignment lewa kolumna (Email/Godziny/Lokalizacja musza byc na rowni z tytulem,
   mniejsze odstepy miedzy paragrafem a danymi, ciutke wieksze ikony i gapy). */
.ecg-contact.pt-130 { padding-top: 90px !important; } /* klient: "sekcja z formularzem nadal trzeba przewyzszyc to wyzej" */
.ecg-contact .section-heading { margin-bottom: 24px !important; } /* bylo 60px z runok */
.ecg-contact .section-heading p {
    margin-bottom: 16px;
}
/* WAZNE: ecg-iter3.css ma .ecg-contact .contact-content .contact-list { margin-top: auto }
   co przykleja contact-list do DOLU kolumny (zeby wyrownac sie z dolem formularza).
   Klient (loom 2026-05-13): "sekcja z formularzem nadal przyklejona do dolu, przyklej do
   paragrafa wyzej". Resetujemy margin-top auto + height:100% na .contact-content. */
.ecg-contact .contact-content { height: auto !important; }
.ecg-contact .contact-content .contact-list {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ecg-contact .contact-list .list-item {
    padding: 14px 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 18px;
}
.ecg-contact .contact-list .list-item .icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 18px;
    flex-shrink: 0;
}
.ecg-contact .contact-list .list-item .content .title {
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ecg-contact .contact-list .list-item .content span,
.ecg-contact .contact-list .list-item .content a {
    font-size: 15px;
}

/* Form: zmniejsz odstepy miedzy fieldami */
.ecg-contact-form .form-group {
    margin-bottom: 14px;
}
.ecg-contact-form .form-item {
    margin-bottom: 0;
}

/* Checkboxy RODO + newsletter — custom dark-mode look */
.ecg-contact-form-consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 20px;
}
.ecg-form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}
.ecg-form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ecg-form-check__box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    transition: background 200ms ease, border-color 200ms ease;
    position: relative;
}
.ecg-form-check__box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ecg-form-check input[type="checkbox"]:checked + .ecg-form-check__box {
    background: var(--ecg-accent, #3F5AF3);
    border-color: var(--ecg-accent, #3F5AF3);
}
.ecg-form-check input[type="checkbox"]:checked + .ecg-form-check__box::after {
    transform: rotate(45deg) scale(1);
}
.ecg-form-check input[type="checkbox"]:focus-visible + .ecg-form-check__box {
    outline: 2px solid var(--ecg-accent, #3F5AF3);
    outline-offset: 2px;
}
.ecg-form-check__text a {
    color: var(--ecg-accent, #3F5AF3);
    text-decoration: underline;
}
.ecg-form-check__req {
    color: var(--ecg-accent, #3F5AF3);
    font-weight: 600;
}
.ecg-form-check:hover .ecg-form-check__box {
    border-color: rgba(63, 90, 243, 0.6);
}

/* ============================================================================
 * Batch C — Panel dowodzenia (rescale) + Testimonials (2-row marquee)
 * ============================================================================ */

/* #4 Panel dowodzenia — wieksze kola, wieksze fonty, lapka cursor sugerujaca klikalnosc. */
.ecg-radial-section .ecg-radial-wrap {
    max-width: 920px !important;
}
.ecg-radial-section .ecg-hub-text {
    font-size: 26px !important;
}
.ecg-radial-section .ecg-radial-node text {
    font-size: 14px !important;
}
.ecg-radial-section .ecg-radial-node {
    cursor: pointer; /* sygnal klikalnosci ("lapka") jako sugestia hovera */
}
.ecg-radial-section .ecg-radial-hub circle {
    r: 80; /* wiekszy hub (bylo 65) */
}
.ecg-radial-section .ecg-radial-node circle {
    r: 70; /* wieksze satellites (bylo 55) */
}
.ecg-radial-section .ecg-radial-node:hover circle {
    filter: drop-shadow(0 0 18px rgba(63, 90, 243, 0.55));
}

/* #5 Testimonials — 2-row marquee z przeciwnymi kierunkami; mniejsze karty. */
.ecg-testimonials-marquee {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    padding: 30px 0;
    margin: 0 0 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ecg-testimonials-marquee__row {
    overflow: hidden;
    width: 100%;
}
.ecg-testimonials-marquee__track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    animation-duration: 70s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.ecg-testimonials-marquee__row--ltr .ecg-testimonials-marquee__track {
    animation-name: ecg-marquee-left;
}
.ecg-testimonials-marquee__row--rtl .ecg-testimonials-marquee__track {
    animation-name: ecg-marquee-right;
}
.ecg-testimonials-marquee__row.is-paused .ecg-testimonials-marquee__track {
    animation-play-state: paused;
}
@keyframes ecg-marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes ecg-marquee-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ecg-testimonials-marquee__track { animation: none; }
}

/* Kompaktowe karty testimoniali — duzo mniejsze niz bylo. */
.ecg-testimonials-marquee .ecg-testimonial-card {
    flex: 0 0 380px;
    min-height: auto !important;
    padding: 28px 28px !important;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: background 240ms ease, border-color 240ms ease;
}
.ecg-testimonials-marquee .ecg-testimonial-card:hover {
    /* WAZNE: bez translateY — w starym CSS bylo translateY(-4px) ktore obcinalo karty
       w overflow:hidden parent. Marquee ma juz constant ruch, hover lift zbedny. */
    transform: none !important;
    background: rgba(63, 90, 243, 0.08);
    border-color: rgba(63, 90, 243, 0.35);
}
.ecg-testimonials-marquee .ecg-testimonial-quote {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 22px;
    margin-bottom: 14px;
}
.ecg-testimonials-marquee .ecg-testimonial-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    font-style: italic;
    margin: 0 0 20px !important;
    font-weight: 400 !important;
    flex: 1;
}
.ecg-testimonials-marquee .ecg-testimonial-author {
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 12px !important;
}
.ecg-testimonials-marquee .ecg-testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
}
.ecg-testimonials-marquee .ecg-testimonial-meta h4 {
    font-size: 0.875rem !important;
    margin: 0 0 2px !important;
}
.ecg-testimonials-marquee .ecg-testimonial-meta span {
    font-size: 0.75rem !important;
}
@media (max-width: 575px) {
    .ecg-testimonials-marquee .ecg-testimonial-card { flex: 0 0 300px; padding: 22px 22px !important; }
}

/* Metric variant — duza liczba zamiast cudzyslowu, bez avatara. Karty metric vs quote
   sa wyraznie rozne wizualnie (klient: "podmien zeby nie byly takie same"). */
.ecg-testimonial-card--metric .ecg-testimonial-metric {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.ecg-testimonial-card--metric .ecg-testimonial-metric span {
    display: inline-block;
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}
.ecg-testimonial-card--metric .ecg-testimonial-text {
    font-style: normal !important;
    color: rgba(255, 255, 255, 0.78) !important;
}
.ecg-testimonial-card--metric .ecg-testimonial-author {
    /* brak avatara, sama meta */
}
.ecg-testimonial-card--metric .ecg-testimonial-meta h4 {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* #9 Footer — ciemniejsze tlo, 4 kolumny bez wrap, brand z logo+form po prawej (loom 2026-05-13). */
.ecg-footer {
    background: #06080F !important;
    padding-top: 80px;
    padding-bottom: 40px;
}
.ecg-footer .widget-title {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}
.ecg-footer .footer-list,
.ecg-footer .address-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ecg-footer .footer-list li a,
.ecg-footer .address-list li,
.ecg-footer .address-list li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.55;
    transition: color 200ms ease;
}
.ecg-footer .footer-list li a:hover,
.ecg-footer .address-list li a:hover {
    color: #fff;
}
.ecg-footer .ecg-footer-hours {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ecg-footer .ecg-footer-hours span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

/* Brand col (po prawej) */
.ecg-footer .ecg-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ecg-footer-logo-link {
    display: inline-block;
    line-height: 0;
}
.ecg-footer .ecg-footer-logo-img {
    width: 88px !important;
    height: 88px !important;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: block;
}
.ecg-footer .ecg-footer-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.55;
}
.ecg-footer .ecg-footer-form__label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ecg-footer .ecg-footer-form .rr-subscribe-form {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    overflow: hidden;
}
.ecg-footer .ecg-footer-form .rr-subscribe-form input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
}
.ecg-footer .ecg-footer-form .rr-subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.ecg-footer .ecg-footer-form .rr-subscribe-form .submit {
    background: var(--ecg-accent, #3F5AF3);
    color: #fff;
    border: 0;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease;
}
.ecg-footer .ecg-footer-form .rr-subscribe-form .submit:hover {
    background: #2c45d6;
}
.ecg-footer .ecg-footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ecg-footer .ecg-footer-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.ecg-footer .ecg-footer-social li a:hover {
    background: var(--ecg-accent, #3F5AF3);
    color: #fff;
    transform: translateY(-2px);
}
.ecg-footer .copyright-area {
    margin-top: 60px;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ecg-footer .copyright-area p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    margin: 0;
}
.ecg-footer .copyright-area a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 200ms ease;
}
.ecg-footer .copyright-area a:hover {
    color: var(--ecg-accent, #3F5AF3);
}
