/* ===== CENTREX-PIPT PAGE STYLES ===== */

/* ===== CENTREX SUBNAV ===== */
.centrex-subnav {
    position: sticky;
    top: 72px;
    z-index: 900;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.centrex-subnav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.centrex-subnav-inner::-webkit-scrollbar { display: none; }

.centrex-subnav-brand {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 1rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
}

/* Brand: mała ciemna pigułka jak btn-member */
.centrex-subnav-brand .cx-dot {
    display: none; /* zastąpiony pseudoelementem na span */
}

.centrex-subnav-brand span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--dark);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.centrex-subnav-brand span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-400);
    flex-shrink: 0;
}

/* Linki – pill style identyczny z głównym nav */
.centrex-subnav a {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.centrex-subnav a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.centrex-subnav a.active {
    color: var(--blue-600);
    background: var(--blue-50);
    font-weight: 700;
}

/* ===== SECTION PADDING (Centrex) ===== */
.section { padding: 5rem 0; }

/* ===== CENTREX HERO BADGE ===== */
.centrex-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(204, 40, 40, 0.15);
    border: 1px solid rgba(204, 40, 40, 0.25);
    color: var(--blue-400);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.centrex-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-400);
}

/* ===== OVERVIEW SECTION ===== */
.overview-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.overview-text p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.overview-highlight {
    background: var(--white);
    border-left: 4px solid var(--blue-600);
    border-radius: 0 16px 16px 0;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
}

.overview-highlight p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.65;
    margin: 0 !important;
    font-style: italic;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.overview-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.overview-stat:hover {
    border-color: var(--blue-400);
    box-shadow: 0 12px 32px rgba(204,40,40,0.06);
    transform: translateY(-3px);
}

.overview-stat-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -1px;
}

.overview-stat-val span {
    color: var(--blue-600);
}

.overview-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* ===== SERVICES GRID ===== */
.cx-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.cx-service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cx-service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.cx-service-card:hover::before { transform: scaleX(1); }

.cx-service-card:hover {
    border-color: transparent;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.cx-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.cx-service-card:hover .cx-service-icon { background: var(--blue-600); }

.cx-service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue-600);
    fill: none;
    stroke-width: 2;
    transition: var(--transition);
}

.cx-service-card:hover .cx-service-icon svg { stroke: var(--white); }

.cx-service-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.cx-service-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.cx-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-600);
    transition: var(--transition);
}

.cx-service-link svg {
    width: 14px;
    height: 14px;
    stroke: var(--blue-600);
    fill: none;
    stroke-width: 2.5;
    transition: var(--transition);
}

.cx-service-link:hover { gap: 0.6rem; }

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--blue-400);
    box-shadow: 0 16px 40px rgba(204,40,40,0.08);
    transform: translateY(-4px);
}

/* Zdjęcie */
.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    display: block;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

/* Inicjały – fallback gdy brak zdjęcia */
.team-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}

/* Treść karty */
.team-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.team-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.1rem;
}

.team-card .team-role {
    font-size: 0.72rem;
    color: var(--blue-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: auto;
}

.team-contact a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--gray-400);
    transition: var(--transition);
    word-break: break-all;
}

.team-contact a:hover { color: var(--blue-600); }

.team-contact svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--gray-400);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.process-step:hover .process-num {
    border-color: var(--blue-600);
    color: var(--blue-600);
    background: var(--blue-50);
}

.process-step h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

/* ===== AUDIT CATEGORIES ===== */
.audit-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.audit-cat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.audit-cat:hover {
    border-color: var(--blue-400);
    box-shadow: 0 12px 32px rgba(204,40,40,0.06);
}

.audit-cat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.audit-cat h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.audit-cat ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audit-cat ul li {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.55;
    padding-left: 1rem;
    position: relative;
}

.audit-cat ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-600);
}

/* ===== BROCHURES LIST ===== */
.brochures-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.brochure-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}

.brochure-item:hover {
    border-color: var(--blue-400);
    box-shadow: 0 8px 24px rgba(204,40,40,0.06);
    transform: translateX(4px);
}

.brochure-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brochure-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--blue-600);
    fill: none;
    stroke-width: 2;
}

.brochure-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.15rem;
}

.brochure-info span {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ===== CONTACT CARDS (Centrex) ===== */
.cx-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.cx-contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.cx-contact-card:hover {
    border-color: var(--blue-400);
    box-shadow: 0 12px 32px rgba(204,40,40,0.06);
}

.cx-contact-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.cx-contact-card .cx-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.cx-contact-detail {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}

.cx-contact-detail svg {
    width: 16px;
    height: 16px;
    stroke: var(--blue-600);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.cx-contact-detail a { transition: var(--transition); }
.cx-contact-detail a:hover { color: var(--blue-600); }

.cx-info-box {
    background: var(--gray-50);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

.cx-info-box h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

/* ===== UFI BADGE ===== */
.ufi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.ufi-badge .ufi-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ufi-badge .ufi-desc {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .overview-layout { grid-template-columns: 1fr; gap: 3rem; }
    .cx-services-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .process-steps::before { display: none; }
    .audit-categories { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cx-services-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .overview-stats { grid-template-columns: 1fr 1fr; }
    .brochures-list { grid-template-columns: 1fr; }
    .cx-contact-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
}
