/* ============================================================================
 * ECG sections — styling sekcji 3-10.
 * ========================================================================== */

:root {
    --ecg-accent: #3F5AF3;
    --ecg-accent-2: #1E5BFF;
    --ecg-bg-1: #02050A;
    --ecg-bg-2: #0A0E18;
    --ecg-card-bg: rgba(255, 255, 255, 0.03);
    --ecg-card-border: rgba(255, 255, 255, 0.06);
    --ecg-text-1: rgba(255, 255, 255, 0.95);
    --ecg-text-2: rgba(255, 255, 255, 0.65);
}

/* ============================================================================
 * GLOBAL — scroll-reveal (data-reveal + .is-revealed)
 * Atrybuty automatycznie dodawane przez ecg-sections.js po DOMContentLoaded.
 * ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================================
 * SEKCJA 6B — EMS framework convergent lines (LangChain-inspired)
 * 4 labelki na górze, krzywe SVG zlewają się do centralnego hubu "EMS®".
 * Hover labelki → highlight tej krzywej.
 * ========================================================================== */
.ecg-ems-converge {
    position: relative;
    padding: 130px 0;
    background: var(--ecg-bg-1, #02050A);
    overflow: hidden;
}

.ecg-converge-stage {
    position: relative;
    margin-top: 60px;
    height: 540px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ecg-converge-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ecg-converge-line {
    fill: none;
    stroke: rgba(63, 90, 243, 0.25);
    stroke-width: 1.5;
    transition: stroke 320ms ease, stroke-width 320ms ease, opacity 320ms ease, filter 320ms ease;
}

/* Convergence hub w środku */
.ecg-converge-hub {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 90, 243, 0.35) 0%, rgba(63, 90, 243, 0.08) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ecg-converge-hub-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--ecg-accent, #3F5AF3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 0 60px rgba(63, 90, 243, 0.5);
}

/* Labels na górze, każda nad swoją krzywą */
.ecg-converge-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    z-index: 3;
}
.ecg-converge-label {
    background: rgba(20, 22, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 22px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ecg-converge-label:hover,
.ecg-converge-label:focus-visible {
    background: rgba(63, 90, 243, 0.2);
    border-color: var(--ecg-accent, #3F5AF3);
    transform: translateY(-2px);
    outline: none;
}
.ecg-converge-label .letter {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--ecg-accent, #3F5AF3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
}

/* Hover na label → highlight powiązanej krzywej (przez data-target) */
.ecg-ems-converge:has(.ecg-converge-label[data-target="analiza"]:hover) .ecg-converge-line:not([data-line="analiza"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="system"]:hover) .ecg-converge-line:not([data-line="system"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="architektura"]:hover) .ecg-converge-line:not([data-line="architektura"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="procesy"]:hover) .ecg-converge-line:not([data-line="procesy"]) {
    opacity: 0.2;
}
.ecg-converge-label[data-target="analiza"]:hover ~ .ecg-converge-stage .ecg-converge-line[data-line="analiza"],
.ecg-ems-converge:has(.ecg-converge-label:hover) .ecg-converge-line[data-line="analiza"]:has(~ * .ecg-converge-label[data-target="analiza"]:hover) {
    /* fallback */
}
.ecg-converge-line.is-active {
    stroke: var(--ecg-accent, #3F5AF3);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(63, 90, 243, 0.6));
    opacity: 1;
}

/* Flow particles — niebieskie kropki lecące wzdłuż linii do hubu */
.ecg-flow-dot {
    fill: var(--ecg-accent, #3F5AF3);
    filter: drop-shadow(0 0 6px rgba(63, 90, 243, 0.8));
    transition: opacity 240ms ease;
}
/* Gdy któraś linia jest aktywna, dim kropki na innych liniach */
.ecg-ems-converge:has(.ecg-converge-label[data-target="analiza"]:hover) .ecg-flow-dot:not([data-flow="analiza"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="system"]:hover) .ecg-flow-dot:not([data-flow="system"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="architektura"]:hover) .ecg-flow-dot:not([data-flow="architektura"]),
.ecg-ems-converge:has(.ecg-converge-label[data-target="procesy"]:hover) .ecg-flow-dot:not([data-flow="procesy"]) {
    opacity: 0.15;
}

/* Cards opisowe pod stage */
.ecg-converge-cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ecg-converge-card {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background 200ms ease, border-color 200ms ease;
}
.ecg-converge-card:hover {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.4);
}
.ecg-converge-card h4 {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}
.ecg-converge-card .title {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.ecg-converge-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 991px) {
    .ecg-converge-stage { height: 380px; }
    .ecg-converge-hub { width: 160px; height: 160px; }
    .ecg-converge-hub-inner { width: 88px; height: 88px; font-size: 1.125rem; }
    .ecg-converge-labels { gap: 6px; padding: 0 8px; }
    .ecg-converge-label { padding: 10px 14px; font-size: 0.8125rem; }
    .ecg-converge-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ecg-converge-stage { height: 320px; }
    .ecg-converge-labels {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 24px;
    }
    .ecg-converge-cards { grid-template-columns: 1fr; }
}

/* ============================================================================
 * SEKCJA 1.5 — Running ticker (segmenty animowane)
 * Bazuje na RunOK .running-text + .carouselTicker (auto-init w main.js)
 * ========================================================================== */
.ecg-ticker-section {
    background: rgba(63, 90, 243, 0.05);
    border-top: 1px solid rgba(63, 90, 243, 0.15);
    border-bottom: 1px solid rgba(63, 90, 243, 0.15);
    padding: 24px 0;
    overflow: hidden;
}
.ecg-ticker-section .running-text {
    overflow: hidden;
}
.ecg-ticker-section .carouselTicker__list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ecg-ticker-section .carouselTicker__list li {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0 28px;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}
.ecg-ticker-section .carouselTicker__list li::after {
    content: "•";
    position: absolute;
    right: -3px;
    color: var(--ecg-accent, #3F5AF3);
    opacity: 0.6;
}

/* ============================================================================
 * SEKCJA 2.5 — Stat counters (odometer)
 * ========================================================================== */
.ecg-stats-section {
    background: linear-gradient(180deg,
        rgba(63, 90, 243, 0.04) 0%,
        rgba(63, 90, 243, 0) 100%);
    border-top: 1px solid rgba(63, 90, 243, 0.1);
    border-bottom: 1px solid rgba(63, 90, 243, 0.1);
}
.ecg-stat-item {
    text-align: center;
    padding: 20px;
}
.ecg-stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(63, 90, 243, 0.12);
    color: var(--ecg-accent, #3F5AF3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.ecg-stat-number {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.ecg-stat-number .odometer {
    color: var(--ecg-accent, #3F5AF3);
}
.ecg-stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

/* Odometer dark-mode override (RunOK light defaults) */
.odometer.odometer-auto-theme,
.odometer.odometer-theme-default {
    font-family: inherit !important;
    font-weight: 800 !important;
}
.odometer-inside, .odometer-digit, .odometer-value {
    color: var(--ecg-accent, #3F5AF3) !important;
}

/* ============================================================================
 * SEKCJA 6C — Scroll-driven sticky obszary ekspertyzy
 * Lewa kolumna sticky (lista), prawa kolumna scrolluje przez 8 paneli.
 * IntersectionObserver per panel -> setActive matching item w liście.
 * ========================================================================== */
.ecg-areas-section {
    background: var(--ecg-bg-1, #02050A);
    padding-top: 80px !important; /* mniejszy padding zeby sticky aktywowalo wczesniej */
    padding-bottom: 80px !important;
}
.ecg-areas-section .section-heading { margin-bottom: 40px !important; }

.ecg-areas-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.6fr;
    gap: 80px;
    align-items: start;
}

/* Lewa kolumna — sticky lista (top: 90px = przy headerze) */
.ecg-areas-list {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.ecg-areas-list::-webkit-scrollbar { width: 4px; }
.ecg-areas-list::-webkit-scrollbar-thumb { background: rgba(63, 90, 243, 0.3); border-radius: 2px; }
.ecg-area-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 280ms ease, border-color 280ms ease, color 280ms ease, transform 280ms ease;
}
.ecg-area-item span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color 280ms ease;
}
.ecg-area-item:hover,
.ecg-area-item:focus-visible {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.2);
    color: rgba(255, 255, 255, 0.85);
    outline: none;
}
.ecg-area-item:hover span,
.ecg-area-item:focus-visible span { color: rgba(255, 255, 255, 0.85); }

.ecg-area-item.is-active {
    background: rgba(63, 90, 243, 0.18);
    border-color: var(--ecg-accent, #3F5AF3);
    color: var(--ecg-accent, #3F5AF3);
    transform: translateX(6px);
}
.ecg-area-item.is-active span { color: #fff; font-weight: 600; }

/* Prawa kolumna — 8 paneli stack pionowo, scroll-driven */
.ecg-areas-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ecg-area-panel {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin-bottom: 24px;
    transition: opacity 480ms ease, border-color 480ms ease, background 480ms ease;
    opacity: 0.4;
}
.ecg-area-panel.is-active {
    opacity: 1;
    background: linear-gradient(180deg,
        rgba(63, 90, 243, 0.10) 0%,
        rgba(63, 90, 243, 0.03) 100%);
    border-color: rgba(63, 90, 243, 0.4);
}
.ecg-area-panel:last-child { margin-bottom: 0; }

.ecg-area-panel-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ecg-accent, #3F5AF3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
}
.ecg-area-panel-title {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 20px !important;
}
.ecg-area-panel-desc {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0 0 24px !important;
}
.ecg-area-panel-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ecg-area-panel-bullets li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.55;
    padding-left: 24px;
    position: relative;
}
.ecg-area-panel-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--ecg-accent, #3F5AF3);
    font-weight: 700;
}

@media (max-width: 991px) {
    .ecg-areas-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ecg-areas-list { position: static; gap: 8px; }
    .ecg-area-item.is-active { transform: none; }
    .ecg-area-panel { min-height: auto; padding: 40px 28px; }
}
@media (max-width: 575px) {
    .ecg-area-item span { display: none; }
    .ecg-area-panel { padding: 32px 22px; }
}

/* ============================================================================
 * SEKCJA 8 — Case studies CAROUSEL (testi-carousel-4 ze Swiperem)
 * ========================================================================== */
.ecg-cases-carousel { background: var(--ecg-bg-1, #02050A); }

.ecg-cases-swiper { padding: 20px 8px 60px; }
.ecg-cases-swiper .swiper-slide { height: auto; }

.ecg-case-card {
    height: 100%;
    padding: 36px 32px;
    background: var(--ecg-card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--ecg-card-border, rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
    display: flex;
    flex-direction: column;
}
.ecg-case-card:hover {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.4);
    transform: translateY(-4px);
}

.ecg-case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ecg-accent, #3F5AF3);
    background: rgba(63, 90, 243, 0.12);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    align-self: flex-start;
}
.ecg-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}
.ecg-case-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 28px;
    flex: 1;
}
.ecg-case-card .testi-author {
    padding-top: 24px;
    border-top: 1px solid var(--ecg-card-border, rgba(255, 255, 255, 0.06));
}
.ecg-case-card .testi-author .name {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.ecg-case-card .testi-author span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Swiper pagination dots */
.ecg-cases-swiper + .swiper-pagination,
.ecg-cases-carousel .swiper-pagination {
    position: relative;
    bottom: auto;
    padding-top: 20px;
    text-align: center;
}
.ecg-cases-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    transition: background 200ms ease, transform 200ms ease;
}
.ecg-cases-carousel .swiper-pagination-bullet-active {
    background: var(--ecg-accent, #3F5AF3);
    transform: scale(1.4);
}

/* ============================================================================
 * SEKCJA 11 — FAQ accordion
 * Bazuje na RunOK accordion (faq.html:245). Override dla dark mode.
 * ========================================================================== */
.ecg-faq-section { background: var(--ecg-bg-2, #0A0E18); }

.ecg-faq-content .accordion { border: none; }
.ecg-faq-content .accordion-item {
    background: var(--ecg-card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--ecg-card-border, rgba(255, 255, 255, 0.06));
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ecg-faq-content .accordion-button {
    background: transparent;
    color: #fff;
    padding: 24px 28px;
    font-size: 1.0625rem;
    font-weight: 600;
    box-shadow: none;
    border: none;
}
.ecg-faq-content .accordion-button:not(.collapsed) {
    background: rgba(63, 90, 243, 0.06);
    color: #fff;
}
.ecg-faq-content .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(63, 90, 243, 0.25);
    outline: none;
}
.ecg-faq-content .accordion-body {
    padding: 0 28px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.ecg-faq-content .accordion-body p { margin: 0; }

/* ============================================================================
 * SEKCJA 12 — Final CTA section przed footer
 * Bazuje na RunOK cta-section-5 (index-13:706). Custom dla ECG dark.
 * ========================================================================== */
.ecg-final-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    border-top: 1px solid rgba(63, 90, 243, 0.2);
    border-bottom: 1px solid rgba(63, 90, 243, 0.2);
}
.ecg-final-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(63, 90, 243, 0.18) 0%,
        rgba(30, 91, 255, 0.06) 50%,
        rgba(63, 90, 243, 0.18) 100%);
    pointer-events: none;
}
.ecg-final-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center,
        rgba(63, 90, 243, 0.25) 0%,
        rgba(63, 90, 243, 0) 60%);
    pointer-events: none;
}
.ecg-final-cta-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.ecg-final-cta-wrap .section-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
}
.ecg-final-cta-btn .rr-primary-btn {
    padding: 18px 36px;
    font-size: 1.0625rem;
    box-shadow: 0 12px 40px rgba(63, 90, 243, 0.4);
}

/* ============================================================================
 * SEKCJA 1B — Testimonials carousel (3 opinie ze zdjeciami/inicjałami)
 * ========================================================================== */
.ecg-testimonials-section { background: var(--ecg-bg-2, #0A0E18); }

.ecg-testimonials-swiper { padding: 20px 8px 60px; overflow: visible; }
.ecg-testimonials-swiper .swiper-slide { height: auto; }

.ecg-testimonial-card {
    height: 100%;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.ecg-testimonial-card:hover {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.4);
    transform: translateY(-4px);
}

.ecg-testimonial-quote {
    color: var(--ecg-accent, #3F5AF3);
    margin-bottom: 20px;
    opacity: 0.85;
}

.ecg-testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    line-height: 1.55;
    font-style: italic;
    margin: 0 0 32px;
    flex: 1;
}

.ecg-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ecg-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ecg-accent, #3F5AF3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(63, 90, 243, 0.35);
}

.ecg-testimonial-meta h4 {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.ecg-testimonial-meta span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
}

.ecg-testimonials-pagination {
    text-align: center;
    margin-top: 24px;
}
.ecg-testimonials-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    transition: background 200ms ease, transform 200ms ease;
}
.ecg-testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--ecg-accent, #3F5AF3);
    transform: scale(1.4);
}

/* ============================================================================
 * SEKCJA 10b — Team (5 konsultantów)
 * ========================================================================== */
.ecg-team-section { background: var(--ecg-bg-1, #02050A); }

.ecg-team-intro {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 24px auto 0;
}

.ecg-team-grid > [class*="col-"] {
    flex: 1 1 0;
    min-width: 200px;
}

.ecg-team-card {
    cursor: pointer;
    transition: transform 320ms ease;
}
.ecg-team-card:hover { transform: translateY(-6px); }

/* Photo: square 1:1, large, hover -> overlay z bio fade-in */
.ecg-team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(63, 90, 243, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    transition: border-color 320ms ease, box-shadow 320ms ease;
}
.ecg-team-card:hover .ecg-team-photo,
.ecg-team-card:focus-visible .ecg-team-photo {
    border-color: rgba(63, 90, 243, 0.7);
    box-shadow: 0 12px 40px rgba(63, 90, 243, 0.25);
}
.ecg-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
}
.ecg-team-card:hover .ecg-team-photo img,
.ecg-team-card:focus-visible .ecg-team-photo img {
    transform: scale(1.06);
    filter: brightness(0.55) saturate(0.9);
}

/* Overlay z bio — pojawia się na hover (slide up + fade) */
.ecg-team-overlay {
    position: absolute;
    inset: 0;
    padding: 24px 22px;
    background: linear-gradient(180deg,
        rgba(2, 5, 10, 0) 0%,
        rgba(2, 5, 10, 0.85) 60%,
        rgba(2, 5, 10, 0.96) 100%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
}
.ecg-team-card:hover .ecg-team-overlay,
.ecg-team-card:focus-visible .ecg-team-overlay {
    opacity: 1;
}
.ecg-team-overlay p {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
    transform: translateY(12px);
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}
.ecg-team-card:hover .ecg-team-overlay p,
.ecg-team-card:focus-visible .ecg-team-overlay p {
    transform: translateY(0);
}

.ecg-team-info { padding: 0 4px; }
.ecg-team-name {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.ecg-team-role {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

@media (max-width: 991px) {
    .ecg-team-grid .col-lg-3 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575px) {
    .ecg-team-grid .col-lg-3 { flex: 0 0 100%; max-width: 100%; }
    /* Mobile: pokaz overlay na touch — zawsze visible */
    .ecg-team-overlay {
        opacity: 1;
        background: linear-gradient(180deg,
            rgba(2, 5, 10, 0) 0%,
            rgba(2, 5, 10, 0.7) 60%,
            rgba(2, 5, 10, 0.92) 100%);
    }
    .ecg-team-overlay p { transform: none; }
}

/* ============================================================================
 * SEKCJA 1A — Logo strip 3 rzędy z infinite scroll w naprzemiennych kierunkach
 * ========================================================================== */
.ecg-logo-strip { overflow: hidden; }

.ecg-logo-strip .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;
}

.ecg-logo-row {
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
    -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-logo-row:last-child { margin-bottom: 0; }

.ecg-logo-track {
    display: flex;
    gap: 60px;
    width: max-content;
    align-items: center;
    animation: ecg-logo-scroll-left 60s linear infinite;
    will-change: transform;
}
.ecg-logo-row[data-direction="right"] .ecg-logo-track {
    animation-name: ecg-logo-scroll-right;
}

.ecg-logo-track img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    transition: opacity 200ms ease;
}
.ecg-logo-track img:hover { opacity: 1; }

@keyframes ecg-logo-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes ecg-logo-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* Pause on hover dla całego row (lepsze UX) */
.ecg-logo-row:hover .ecg-logo-track {
    animation-play-state: paused;
}

@media (max-width: 575px) {
    .ecg-logo-track { gap: 40px; }
    .ecg-logo-track img { height: 36px; max-width: 120px; }
}

/* ============================================================================
 * SEKCJA 5b — Alternatywna sekcja procesu: VERTICAL TIMELINE
 * (duplikat sekcji 5 z innym wzorem wizualnym — pionowa linia + nodes + cards)
 * ========================================================================== */
.ecg-process-timeline {
    position: relative;
    padding: 130px 0;
    background: var(--ecg-bg-2, #0A0E18);
}

.ecg-process-timeline .ecg-timeline-track {
    position: relative;
    max-width: 880px;
    margin: 60px auto 0;
    padding-left: 80px;
}

/* Pionowa linia z lewej */
.ecg-process-timeline .ecg-timeline-track::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 28px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(63, 90, 243, 0.5) 0%,
        rgba(63, 90, 243, 0.2) 100%);
}

.ecg-timeline-step {
    position: relative;
    padding: 0 0 56px 32px;
}
.ecg-timeline-step:last-child { padding-bottom: 0; }

/* Node (kółko z numerem) */
.ecg-timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: -80px;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(63, 90, 243, 0.15);
    border: 2px solid var(--ecg-accent, #3F5AF3);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(2, 5, 10, 1), 0 0 24px rgba(63, 90, 243, 0.3);
    z-index: 2;
}

.ecg-timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px 28px;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.ecg-timeline-card:hover {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.4);
    transform: translateX(6px);
}
.ecg-timeline-card .ecg-timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.ecg-timeline-card .ecg-timeline-goal {
    color: var(--ecg-accent, #3F5AF3);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
}
.ecg-timeline-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 8px;
}
.ecg-timeline-card p:last-child { margin: 0; }

@media (max-width: 575px) {
    .ecg-process-timeline .ecg-timeline-track {
        padding-left: 64px;
    }
    .ecg-timeline-step::before {
        left: -64px;
        width: 44px;
        height: 44px;
        font-size: 0.875rem;
    }
    .ecg-process-timeline .ecg-timeline-track::before {
        left: 22px;
    }
    .ecg-timeline-card { padding: 20px 22px; }
}

/* ============================================================================
 * SEKCJA 3 — Z kim pracujemy (5 segmentów)
 * ========================================================================== */
.ecg-segments-section .mb-60 { margin-bottom: 60px; }

.ecg-segments .col-lg { flex: 1 1 0; min-width: 200px; }

.ecg-segment-card {
    height: 100%;
    padding: 32px 24px;
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 16px;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.ecg-segment-card:hover {
    background: rgba(63, 90, 243, 0.05);
    border-color: rgba(63, 90, 243, 0.4);
    transform: translateY(-4px);
}

.ecg-segment-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(63, 90, 243, 0.15);
    color: var(--ecg-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.ecg-segment-title {
    font-size: 1.125rem; font-weight: 600;
    color: #fff; margin: 0 0 10px; line-height: 1.3;
}

.ecg-segment-card p {
    margin: 0; color: var(--ecg-text-2);
    font-size: 0.9375rem; line-height: 1.55;
}

.ecg-segment-criteria {
    margin-top: 80px;
    padding: 36px 40px;
    background: rgba(63, 90, 243, 0.06);
    border: 1px solid rgba(63, 90, 243, 0.18);
    border-radius: 16px;
}
.ecg-criteria-title { font-size: 1.125rem; color: #fff; margin: 0 0 20px; font-weight: 600; }
.ecg-criteria-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px;
}
.ecg-criteria-list li {
    color: var(--ecg-text-2); font-size: 0.9375rem;
    padding-left: 24px; position: relative;
}
.ecg-criteria-list li::before {
    content: "→"; position: absolute; left: 0;
    color: var(--ecg-accent); font-weight: 700;
}
.ecg-criteria-list strong { color: #fff; }

/* ============================================================================
 * SEKCJA 4 — Oferta (4 usługi z CTA)
 * ========================================================================== */
.ecg-services-section { background: var(--ecg-bg-2); }

.ecg-service-card {
    height: 100%;
    padding: 40px 28px;
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 16px;
    display: flex; flex-direction: column;
    transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
    position: relative;
}
.ecg-service-card:hover {
    background: rgba(63, 90, 243, 0.05);
    border-color: rgba(63, 90, 243, 0.45);
    transform: translateY(-6px);
}

.ecg-service-card-featured {
    background: linear-gradient(180deg, rgba(63, 90, 243, 0.12) 0%, rgba(63, 90, 243, 0.04) 100%);
    border-color: rgba(63, 90, 243, 0.3);
}

.ecg-service-num {
    font-size: 0.875rem; font-weight: 600;
    color: var(--ecg-accent);
    letter-spacing: 0.1em; margin-bottom: 12px;
}

.ecg-service-badge {
    position: absolute; top: 20px; right: 20px;
    background: var(--ecg-accent); color: #fff;
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.ecg-service-title {
    font-size: 1.375rem; font-weight: 700;
    color: #fff; margin: 0 0 12px; line-height: 1.25;
}

.ecg-service-tagline {
    color: var(--ecg-text-2); font-size: 0.9375rem;
    margin: 0 0 24px; line-height: 1.5;
}

.ecg-service-features {
    list-style: none; padding: 0; margin: 0 0 28px;
    flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.ecg-service-features li {
    color: var(--ecg-text-2); font-size: 0.875rem; line-height: 1.5;
    padding-left: 22px; position: relative;
}
.ecg-service-features li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--ecg-accent); font-weight: 700;
}
.ecg-service-features strong { color: #fff; }

.ecg-service-cta {
    color: var(--ecg-accent);
    font-weight: 600; font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: auto;
    transition: gap 200ms ease, color 200ms ease;
}
.ecg-service-cta:hover { color: #fff; gap: 14px; }

/* ============================================================================
 * SEKCJA 5 — Proces 6 kroków (3x2 grid)
 * ========================================================================== */
.ecg-process-section { position: relative; }

.ecg-process-intro {
    color: var(--ecg-text-2); font-size: 1.0625rem;
    max-width: 640px; margin: 24px auto 0;
}

.ecg-process-card {
    height: 100%;
    padding: 36px 28px;
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 16px;
    position: relative;
    transition: background 240ms ease, border-color 240ms ease;
}
.ecg-process-card:hover {
    background: rgba(63, 90, 243, 0.06);
    border-color: rgba(63, 90, 243, 0.4);
}

.ecg-process-num {
    font-size: 4rem; font-weight: 800;
    color: rgba(63, 90, 243, 0.18);
    line-height: 1; margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.ecg-process-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 14px; }

.ecg-process-goal {
    color: var(--ecg-text-2); font-size: 0.9375rem; line-height: 1.5;
    margin: 0 0 18px; padding-bottom: 18px;
    border-bottom: 1px solid var(--ecg-card-border);
}
.ecg-process-goal strong { color: var(--ecg-accent); }

.ecg-process-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ecg-process-bullets li {
    color: var(--ecg-text-2); font-size: 0.875rem; line-height: 1.5;
    padding-left: 20px; position: relative;
}
.ecg-process-bullets li::before { content: "•"; position: absolute; left: 4px; color: var(--ecg-accent); }

/* ============================================================================
 * SEKCJA 6 — EMS framework (4 filary, tabsy)
 * ========================================================================== */
.ecg-ems-section { background: var(--ecg-bg-1); }

.ecg-ems-intro {
    color: var(--ecg-text-2); max-width: 720px;
    margin: 24px auto 0; font-size: 1.0625rem;
}

.ecg-ems-tabs {
    margin-top: 60px;
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 20px;
    padding: 8px;
}

.ecg-ems-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border: none;
    margin-bottom: 8px;
}
.ecg-ems-nav .nav-link {
    padding: 24px 16px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ecg-text-2);
    text-align: left;
    transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
    display: flex; align-items: center; gap: 14px;
}
.ecg-ems-nav .nav-link:hover { background: rgba(63, 90, 243, 0.06); color: #fff; }
.ecg-ems-nav .nav-link.active {
    background: rgba(63, 90, 243, 0.15);
    border-color: rgba(63, 90, 243, 0.4);
    color: #fff;
}
.ecg-ems-letter {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(63, 90, 243, 0.18);
    color: var(--ecg-accent);
    font-size: 1.25rem; font-weight: 800;
    border-radius: 12px;
}
.ecg-ems-nav .nav-link.active .ecg-ems-letter { background: var(--ecg-accent); color: #fff; }
.ecg-ems-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; }

.ecg-ems-content { padding: 40px 32px; }
.ecg-ems-content h3 { font-size: 1.75rem; font-weight: 700; color: #fff; margin: 0 0 16px; }
.ecg-ems-lead {
    color: var(--ecg-text-2); font-size: 1.0625rem; line-height: 1.55; margin: 0 0 24px;
}
.ecg-ems-bullets {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px;
}
.ecg-ems-bullets li {
    color: var(--ecg-text-2); font-size: 0.9375rem; line-height: 1.5;
    padding-left: 22px; position: relative;
}
.ecg-ems-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--ecg-accent); font-weight: 700; }

/* ============================================================================
 * SEKCJA 7 — Efekt foundera (radial diagram)
 * ========================================================================== */
.ecg-radial-section { background: var(--ecg-bg-2); }

.ecg-effect-cols {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; margin-top: 32px;
}
.ecg-effect-col {
    padding: 24px 20px;
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 14px;
}
.ecg-effect-after {
    background: rgba(63, 90, 243, 0.07);
    border-color: rgba(63, 90, 243, 0.3);
}
.ecg-effect-label {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ecg-accent); margin: 0 0 14px;
}
.ecg-effect-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ecg-effect-col li { color: var(--ecg-text-2); font-size: 0.875rem; line-height: 1.5; }
.ecg-effect-col strong { color: #fff; }

.ecg-radial-wrap { width: 100%; max-width: 700px; margin: 0 auto; }
.ecg-radial { width: 100%; height: auto; display: block; }
.ecg-radial-lines line {
    stroke: rgba(63, 90, 243, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}
.ecg-radial-hub circle {
    fill: var(--ecg-accent);
    filter: drop-shadow(0 0 24px rgba(63, 90, 243, 0.5));
}
.ecg-hub-text { fill: #fff; font-size: 22px; font-weight: 800; letter-spacing: 0.05em; }
.ecg-radial-node circle {
    fill: rgba(20, 22, 30, 0.95);
    stroke: rgba(63, 90, 243, 0.45);
    stroke-width: 1.5;
    transition: fill 240ms ease, stroke 240ms ease, transform 240ms ease;
    transform-origin: center;
    transform-box: fill-box;
}
.ecg-radial-node:hover circle {
    fill: var(--ecg-accent);
    stroke: var(--ecg-accent);
    transform: scale(1.08);
}
.ecg-radial-node text {
    fill: rgba(255, 255, 255, 0.9);
    font-size: 11px; font-weight: 600;
    pointer-events: none; user-select: none;
}

/* ============================================================================
 * SEKCJA 8 — Case studies
 * ========================================================================== */
.ecg-cases-section .accordion-item {
    background: var(--ecg-card-bg);
    border: 1px solid var(--ecg-card-border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ecg-cases-section .accordion-button {
    background: transparent;
    color: #fff;
    padding: 28px 32px;
    box-shadow: none;
}
.ecg-cases-section .accordion-button:not(.collapsed) {
    background: rgba(63, 90, 243, 0.06);
    color: #fff;
}
.ecg-cases-section .project-content {
    display: flex; align-items: center; gap: 28px; width: 100%;
}
.ecg-cases-section .project-content .number {
    font-size: 2rem; font-weight: 800;
    color: var(--ecg-accent);
    line-height: 1; min-width: 60px;
    letter-spacing: -0.02em;
}
.ecg-cases-section .project-content .project-right { display: flex; flex-direction: column; gap: 6px; }
.ecg-cases-section .project-content .category {
    font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ecg-accent); font-weight: 600;
}
.ecg-cases-section .project-content .title {
    font-size: 1.125rem; font-weight: 600;
    color: #fff; line-height: 1.3;
}

.ecg-cases-section .accordion-body { padding: 0 32px 28px; }
.ecg-cases-section .hover-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px; align-items: center;
}
.ecg-cases-section .hover-content p {
    color: var(--ecg-text-2);
    font-size: 1rem; line-height: 1.6;
    margin: 0 0 20px;
}
.ecg-cases-section .project-thumb img { width: 100%; height: auto; border-radius: 12px; }

/* ============================================================================
 * SEKCJA 9 — Newsletter big block
 * ========================================================================== */
.ecg-newsletter {
    background: linear-gradient(135deg, rgba(63, 90, 243, 0.10) 0%, rgba(30, 91, 255, 0.04) 100%);
    border-top: 1px solid rgba(63, 90, 243, 0.2);
    border-bottom: 1px solid rgba(63, 90, 243, 0.2);
    text-align: center;
}
.ecg-newsletter .bg-text { color: rgba(63, 90, 243, 0.08); }
.ecg-newsletter-sub {
    color: var(--ecg-text-2); font-size: 1.0625rem;
    margin: 16px auto 40px; max-width: 540px;
}
.ecg-newsletter .newsletter-form {
    max-width: 600px; margin: 0 auto; position: relative;
}
.ecg-newsletter .newsletter-form .form-control {
    width: 100%;
    padding: 18px 200px 18px 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}
.ecg-newsletter .newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.ecg-newsletter .newsletter-form .icon {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    color: var(--ecg-accent);
}
.ecg-newsletter .newsletter-form .submit-btn {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
}
.ecg-newsletter .newsletter-form .submit-btn .rr-primary-btn {
    padding: 12px 22px; font-size: 0.9375rem;
}

/* ============================================================================
 * SEKCJA 10 — Kontakt
 * ========================================================================== */
.ecg-contact .contact-list { margin-top: 32px; }
.ecg-contact .list-item {
    display: flex; gap: 18px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.ecg-contact .list-item .icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    background: rgba(63, 90, 243, 0.15);
    color: var(--ecg-accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
}
.ecg-contact .list-item .title {
    font-size: 0.875rem; color: #fff;
    margin: 0 0 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
    font-weight: 600;
}
.ecg-contact .list-item .content span,
.ecg-contact .list-item .content a {
    color: var(--ecg-text-2); font-size: 0.9375rem;
    text-decoration: none;
}
.ecg-contact .list-item .content a:hover { color: var(--ecg-accent); }

.ecg-contact-form .form-control,
.ecg-contact-form .ecg-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    padding: 14px 18px;
    font-size: 0.9375rem;
    width: 100%;
    margin-bottom: 12px;
    transition: border-color 200ms ease, background 200ms ease;
}
.ecg-contact-form .form-control:focus,
.ecg-contact-form .ecg-select:focus {
    outline: none;
    border-color: rgba(63, 90, 243, 0.5);
    background: rgba(255, 255, 255, 0.06);
}
.ecg-contact-form .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.ecg-contact-form textarea { resize: vertical; min-height: 140px; }
.ecg-contact-form .submit-btn { margin-top: 12px; }

/* ============================================================================
 * Mobile (≤ 991px)
 * ========================================================================== */
@media (max-width: 991px) {
    .ecg-segments .col-lg { flex: 0 0 50%; }
    .ecg-criteria-list { grid-template-columns: 1fr; }
    .ecg-ems-nav { grid-template-columns: 1fr; }
    .ecg-ems-content { padding: 28px 20px; }
    .ecg-ems-bullets { grid-template-columns: 1fr; }
    .ecg-effect-cols { grid-template-columns: 1fr; }
    .ecg-cases-section .hover-content { grid-template-columns: 1fr; }
    .ecg-newsletter .newsletter-form .form-control {
        padding-right: 18px;
        margin-bottom: 12px;
    }
    .ecg-newsletter .newsletter-form .submit-btn {
        position: relative;
        top: auto; right: auto; transform: none;
        margin-top: 12px;
    }
}

@media (max-width: 575px) {
    .ecg-process-num { font-size: 3rem; }
    .ecg-segment-card { padding: 24px 20px; }
    .ecg-service-card { padding: 28px 22px; }
    .ecg-radial-node text { font-size: 14px; }
    .ecg-segment-criteria { padding: 24px; }
}
