/*
Theme Name: BrandX
Author: Franek Zalewski
Version: 1.0
*/


@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/* Globalny reset box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
}

body {
    background-color: #f4f4f4;
    padding: 0;
    overflow-x: hidden;
}

main {
    padding: 20px;
}

/* ========================================= */
/* Animacja pojawiania się przy scrollu      */
/* ========================================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; 
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: white; 
    width: 100%;
    border-radius: 0;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

header .left-corner {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

header img {
    width: 300px;
    height: auto;
    max-width: 100%;
}

/* menu */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent; 
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: black;
}

/* video */
.hero-banner {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    margin-top: 20px;
    border-radius: 20px;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text-container {
    position: relative;
    z-index: 2;
    width: 90%;
    text-align: center;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    position: absolute;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* onas */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px 40px;
    margin-top: 20px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: block;
}

/* slider */
.black-slider-section {
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
    background-color: #111; 
    background-image: linear-gradient(-45deg, #111, #2a2a2a, #111, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.slider-window {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: 100%;
}

.slide {
    min-width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide-content h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* Style dla list wypunktowanych wewnątrz slidera (np. do pliku kompetencje.php) */
.slide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.slide-list li {
    color: #e0e0e0;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: #555;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 10px;
}

.arrow:hover {
    color: white;
    transform: translateY(-50%) scale(1.2);
}

.prev-slide { left: -60px; }
.next-slide { right: -60px; }

/* 3kolumny */
.pillars-section {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
    padding: 20px 0;
}

.pillar-container {
    flex: 1;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.pillar-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pillar-image img:hover {
    transform: scale(1.05);
}

.pillar-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000;
    padding: 0 10px;
}

.pillar-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    padding: 0 10px 10px 10px;
}

.pillar-1 { margin-top: 0; }
.pillar-2 { margin-top: 60px; }
.pillar-3 { margin-top: 120px; }

/* Przycisk używany w CTA i formularzu */
.btn-primary {
    display: inline-block;
    background-color: #941100;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(148, 17, 0, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2; 
}

.btn-primary:hover {
    background-color: #7a0e00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(122, 14, 0, 0.4);
    color: white;
}

/* ========================================= */
/* ZMODYFIKOWANA SEKCJA CTA (Dark Mode + Odstępy) */
/* ========================================= */

.cta-section {
    background-color: #111; 
    background-image: linear-gradient(-45deg, #111, #2a2a2a, #111, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite; 
    
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 40px 20px; 
    
    margin-top: 80px; 
    margin-bottom: 0;
    
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; 
}

.cta-content {
    position: relative;
    z-index: 2; 
}

.cta-content h2 {
    font-size: 2.8rem; 
    color: white;    
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.2rem;
    color: #ccc;      
    margin-bottom: 35px;
}

/* ========================================= */
/* Formularz Kontaktowy                      */
/* ========================================= */

.contact-page-section {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px; 
    margin-top: 20px;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.contact-header-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-image-container {
    flex: 1;
    aspect-ratio: 1 / 1; 
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: block;
}

.contact-text-container {
    flex: 1;
}

.contact-text-container h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: left;
}

.contact-text-container p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.contact-details a {
    color: #941100;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #7a0e00;
    text-decoration: underline;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.form-row {
    display: flex;
    gap: 20px; 
}

.custom-form input, 
.custom-form textarea {
    flex: 1; 
    width: 100%;
    background-color: #f0f0f0; 
    border: 1px solid transparent;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.custom-form input:focus, 
.custom-form textarea:focus {
    outline: none;
    border-color: #ccc;
    background-color: #e9e9e9;
}

.custom-form textarea {
    resize: vertical;
}

.form-submit {
    display: flex;
    justify-content: flex-end; 
    margin-top: 10px;
}

/* ========================================= */
/* stopka                                    */
/* ========================================= */
footer {
    text-align: center;
    padding: 30px 20px; 
    background-color: #111; 
    background-image: linear-gradient(-45deg, #111, #2a2a2a, #111, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;

    color: #ccc; 
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    position: relative;
    overflow: hidden;
    margin: 0 20px 20px 20px; 
}

footer p { 
    margin: 0; 
    position: relative; 
    z-index: 2; 
}

/* ========================================= */
/* Sekcja Usługi i Standardy - Intro         */
/* ========================================= */

.services-intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-image-container {
    flex: 1;
    aspect-ratio: 16 / 9; 
}

.services-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.services-text-container {
    flex: 1.2;
}

.services-text-container p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.services-text-container p:last-child {
    margin-bottom: 0;
}

.sei-section {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: 20px; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.sei-banner {
    background-color: #941100;
    background-image: linear-gradient(-45deg, #7a0e00, #941100, #c91d00, #941100, #7a0e00);
    background-size: 400% 400%; 
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: gradientShift 15s ease infinite; 
}

.sei-banner h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.sei-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.sei-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.sei-column {
    flex: 1;
}

.sei-column h3 {
    color: #941100;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
}

.sei-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sei-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background-color: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sei-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: white;
}

.sei-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555; 
    padding: 10px;
}

.sei-icon svg {
    width: 100%;
    height: 100%;
}

.sei-list span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* ========================================= */
/* TABELA - ZAKRES USŁUG                     */
/* ========================================= */

.scope-table-container {
    width: 100%;
    overflow-x: auto; 
    margin-top: 30px;
    padding-bottom: 10px; 
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    min-width: 900px; 
    background-color: white;
}

.scope-column {
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.scope-column:last-child {
    border-right: none;
}

.scope-header {
    background-color: #fcfcfc;
    color: #941100;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 20px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.scope-list {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
    flex-grow: 1;
}

.scope-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

.scope-list li:last-child {
    margin-bottom: 0;
}

.scope-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: -1px;
    color: #555;
    font-size: 0.65rem;
}

/* ========================================= */
/* PROCES STRATEGICZNY - DIAGRAM KOŁOWY      */
/* ========================================= */

.process-diagram {
    position: relative;
    max-width: 800px;
    height: 600px;
    margin: 80px auto 40px auto; 
}

.process-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border: 2px solid #ddd;
    border-radius: 50%;
    z-index: 1;
}

.process-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-center img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.process-node {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -30px 0 0 -30px; 
    z-index: 3;
}

.process-icon {
    width: 100%;
    height: 100%;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-icon:hover {
    transform: scale(1.1);
    border-color: #941100;
}

.process-icon svg {
    width: 26px;
    height: 26px;
    color: #555; 
}

.process-text {
    position: absolute;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.text-up { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 15px; text-align: center; width: 160px; }
.text-down { top: 100%; left: 50%; transform: translateX(-50%); margin-top: 15px; text-align: center; width: 180px; }
.text-right { top: 50%; left: 100%; transform: translateY(-50%); margin-left: 20px; text-align: left; width: 200px; }
.text-left { top: 50%; right: 100%; transform: translateY(-50%); margin-right: 20px; text-align: right; width: 200px; }

/* ========================================= */
/* PROCES STRATEGICZNY - SZCZEGÓŁY           */
/* ========================================= */

.process-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-detail-item h4 {
    color: #941100;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.process-detail-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.process-summary {
    margin-top: 50px;
    background-color: #fafafa;
    border-left: 5px solid #941100;
    padding: 20px 40px; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.process-summary h4 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.process-summary p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

/* ========================================= */
/* SEKCJA STANDARDY - LISTA Z OPISEM         */
/* ========================================= */

.standards-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.standards-row {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #eaeaea;
}

.standards-row:last-child {
    border-bottom: none;
}

.standards-title {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #555; 
    margin: 0;
}

.standards-text {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.standards-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* ========================================= */
/* MODEL OPERACYJNY 5C - DIAGRAM             */
/* ========================================= */

.model-5c-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 0 60px 0;
}

.model-5c-diagram {
    position: relative;
    width: 600px; 
    height: 450px;
    background-color: transparent;
    border: none;
}

.center-node-5c {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; 
    height: 90px;
    background-color: white;
    border: 2px solid #941100;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.center-node-5c span {
    font-size: 2.2rem;
    font-weight: 800;
    color: #941100;
}

.node-5c {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
}

.icon-5c-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-5c {
    width: 55px; 
    height: 55px;
    border: 2px solid #555;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.icon-5c:hover {
    transform: scale(1.1);
    border-color: #941100;
}

.icon-5c svg {
    width: 24px;
    height: 24px;
    color: #555;
}

/* PANCERNE POZYCJONOWANIE ETYKIET DLA DESKTOPU */
.label-5c {
    position: absolute !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    z-index: 1;
}

.label-top { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 12px !important; }
.label-right { left: 100%; top: 50%; transform: translateY(-50%); margin-left: 15px !important; text-align: left; }
.label-left { right: 100%; top: 50%; transform: translateY(-50%); margin-right: 15px !important; text-align: right; }

/* PODWÓJNE STRZAŁKI - WSPÓLNE STYLE */
.arrow-5c {
    position: absolute;
    width: 2px;
    background-color: #aaa;
    z-index: 3;
}

.arrow-5c::before,
.arrow-5c::after {
    content: '';
    position: absolute;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.arrow-5c::before {
    top: 0;
    border-bottom: 8px solid #aaa;
}

.arrow-5c::after {
    bottom: 0;
    border-top: 8px solid #aaa;
}

/* PANCERNE STRZAŁKI DLA DESKTOPU (wymuszające idealną geometrię i środek) */
@media (min-width: 1000px) {
    .model-5c-diagram .arrow-5c {
        left: 50% !important;
        top: 50% !important;
        margin: 0 !important;
        transform-origin: center bottom !important;
    }
    
    /* Precyzyjne pozycjonowanie kolejnych strzałek zignorowaniem styli z HTML */
    .model-5c-diagram .arrow-5c:nth-child(3) { height: 65px !important; transform: translate(-50%, -100%) rotate(0deg) translateY(-55px) !important; }
    .model-5c-diagram .arrow-5c:nth-child(5) { height: 70px !important; transform: translate(-50%, -100%) rotate(73deg) translateY(-55px) !important; }
    .model-5c-diagram .arrow-5c:nth-child(7) { height: 70px !important; transform: translate(-50%, -100%) rotate(142deg) translateY(-55px) !important; }
    .model-5c-diagram .arrow-5c:nth-child(9) { height: 70px !important; transform: translate(-50%, -100%) rotate(218deg) translateY(-55px) !important; }
    .model-5c-diagram .arrow-5c:nth-child(11){ height: 70px !important; transform: translate(-50%, -100%) rotate(287deg) translateY(-55px) !important; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================= */
/* RESPO                                     */
/* ========================================= */

.menu-icon {
    display: none;
    width: 30px;
    height: 30px;
    background-image: url('source/svg/menu.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

/* Desktop */
@media (min-width: 1000px) {
    header { flex-direction: row; }
    nav ul { gap: 20px; }
}

/* Tablet & Mobile Menu */
@media (max-width: 999px) {
    header { padding: 10px 20px; }
    header img { width: 220px; } 
    .menu-icon { display: block; } 
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 0; 
        z-index: 999;
        border-top: 1px solid #f0f0f0;
    }

    nav.active ul { display: flex; animation: slideDown 0.3s ease; }
    nav ul li { margin: 10px 0; width: 100%; text-align: center; }
    nav ul li a { 
        background-color: transparent; 
        color: black; 
        width: 80%; 
        border-bottom: 1px solid #f9f9f9;
        border-radius: 0;
    }
    
    .menu-icon.active { 
        background-image: url('source/svg/close.svg'); 
        background-size: 20px; 
        background-position: center;
    }

    .hero-text { font-size: 1.8rem; }
    .about-section { flex-direction: column; padding: 40px 20px; }
    .about-content, .about-image-container { width: 100%; text-align: center; }
    .about-content p { text-align: left; }
    .about-image-container { margin-top: 30px; }
    .prev-slide { left: -40px; }
    .next-slide { right: -40px; }
    .pillar-1, .pillar-2, .pillar-3 { margin-top: 0; }
    
    .cta-content h2 { font-size: 2.2rem; }
    .cta-section { margin-top: 60px; padding: 40px 20px; } 
    
    .contact-page-section { padding: 30px; } 
    .contact-header-layout { flex-direction: column; text-align: center; }
    .contact-image-container { width: 100%; max-width: 450px; margin: 0 auto; }
    .contact-text-container h2, .contact-text-container p { text-align: center; }
    
    .services-intro-section { flex-direction: column; padding: 30px; }
    .services-image-container { width: 100%; max-width: 500px; }
    .services-text-container p { font-size: 1.2rem; }
    .sei-section { padding: 30px; }
    .sei-grid { flex-direction: column; gap: 40px; }
    
    .scope-grid { min-width: 800px; } 

    .process-diagram {
        height: auto;
        margin: 40px auto 10px auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .process-lines { display: none; }

    .process-center {
        position: relative;
        top: 0; left: 0; transform: none;
        margin-bottom: 30px;
    }

    .process-node {
        position: relative;
        left: 0 !important; top: 0 !important; transform: none !important;
        margin: 0;
        width: 100%;
        max-width: 350px;
        display: flex;
        align-items: center;
        height: auto;
        gap: 20px;
        background: #fafafa;
        border: 1px solid #eee;
        padding: 15px 20px;
        border-radius: 12px;
    }

    .process-icon {
        width: 50px; height: 50px; flex-shrink: 0;
        border-color: #ddd;
    }

    .process-text {
        position: relative;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        transform: none !important;
        margin: 0 !important;
        width: auto !important;
        text-align: left !important;
    }
    
    .process-details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .standards-row {
        flex-direction: column;
        gap: 15px;
        padding: 30px 0;
    }

    .standards-title {
        font-size: 1.4rem;
        text-align: center;
    }

    /* Na tablecie model 5C zamieniamy na listę pionową */
    .model-5c-container {
        padding: 20px 0;
    }

    .model-5c-diagram {
        width: 100%;
        height: auto;
        border: none;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .arrow-5c { display: none !important; }

    .center-node-5c {
        position: relative;
        top: 0; left: 0; transform: none;
        margin-bottom: 20px;
    }

    .node-5c {
        position: relative !important;
        top: 0 !important; left: 0 !important; transform: none !important;
        width: 100%;
        max-width: 320px; 
        margin: 0 auto;
    }

    /* PANCERNE pozycjonowanie na mobile: zawsze układ poziomy (ikona z lewej, tekst z prawej) */
    .icon-5c-wrapper {
        position: relative !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important; /* Sztywny układ w jednym kierunku */
        justify-content: flex-start !important; 
        align-items: center !important;
        background: white;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 15px 20px !important; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .icon-5c {
        position: relative !important;
        order: 1 !important; /* Siłowo przepycha ikonę na pierwszą pozycję po lewej */
        margin: 0 !important;
    }

    .label-5c {
        position: static !important; /* Kasujemy pozycjonowanie z widoku Desktop */
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        order: 2 !important; /* Zawsze za ikoną */
        margin: 0 0 0 20px !important;
        flex-grow: 1;
        text-align: left !important; /* Zawsze dosunięte do lewej strony */
        font-size: 1.1rem; 
    }
}

/* Mobile */
@media (max-width: 599px) {
    header { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 20px; }
    header img { width: 180px; }
    main { padding: 10px; }
    .hero-banner { height: 40vh; }
    .hero-text { font-size: 1.4rem; }
    .about-section { padding: 30px 15px; }
    .about-content h2 { font-size: 1.5rem; text-align: center; }
    .about-content p { font-size: 0.95rem; text-align: left; }
    .slide-content h3 { font-size: 1.8rem; }
    .slide-content p { font-size: 0.9rem; }
    .prev-slide { left: -10px; z-index: 20; color: rgba(255,255,255,0.5); }
    .next-slide { right: -10px; z-index: 20; color: rgba(255,255,255,0.5); }
    .slide { padding: 0 20px; }
    .pillars-section { flex-direction: column; align-items: center; gap: 30px; padding: 20px 0; width: 100%; }
    .pillar-container { width: 100%; margin-top: 0 !important; margin-left: 0; margin-right: 0; }
    
    .cta-section { padding: 30px 15px; margin-top: 50px; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-content p { font-size: 1rem; margin-bottom: 25px; }
    .btn-primary { padding: 12px 30px; font-size: 1rem; width: 100%; text-align: center;}
    
    .contact-page-section { padding: 20px 15px; }
    .contact-text-container h2 { font-size: 1.8rem; }
    .contact-text-container p { font-size: 0.95rem; }
    .form-row { flex-direction: column; gap: 20px; }
    .form-submit { justify-content: center; }
    
    footer { font-size: 12px; margin: 10px 10px 20px 10px; padding: 25px 15px; }
    
    .services-intro-section { padding: 20px 15px; }
    .services-text-container p { font-size: 1.05rem; }
    .sei-section { padding: 20px 15px; }
    .sei-banner { padding: 15px; }
    .sei-banner h2 { font-size: 1.4rem; text-align: center; }
    .sei-description p { font-size: 0.95rem; }
    .sei-list li { padding: 10px 15px; }
    
    .scope-table-container {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
        padding: 0 15px 15px 15px;
    }
    
    .process-summary {
        padding: 15px 15px; 
        margin-top: 30px;
    }

    .standards-row {
        padding: 20px 0;
    }

    .model-5c-container {
        padding: 20px 0 10px 0;
    }

    .node-5c {
        max-width: 280px;
    }
    
    .slide-list li {
        font-size: 0.95rem;
        padding: 6px 15px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* ========================================= */
/* SEKCJA BRANŻE                             */
/* ========================================= */

.industry-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.industry-image {
    flex: 1;
    max-width: 250px;
    aspect-ratio: 1 / 1;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.industry-text {
    flex: 3;
    display: flex;
    align-items: center;
}

.industry-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* Responsywność dla sekcji Branże */
@media (max-width: 999px) {
    .industry-content {
        flex-direction: column;
        align-items: center;
    }
    
    .industry-image {
        max-width: 100%;
        width: 100%;
        max-width: 500px;
        aspect-ratio: 16 / 9; /* Na mniejszych ekranach lepszy będzie poziomy prostokąt */
    }
}

@media (max-width: 599px) {
    .industry-content {
        gap: 20px;
    }
    
    .industry-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* ========================================= */
/* PASEK Z KLIENTAMI - INFINITE SCROLL       */
/* ========================================= */

.clients-marquee-section {
    background-color: #111; 
    background-image: linear-gradient(-45deg, #111, #2a2a2a, #111, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite; 
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-top: 20px; 
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    /* Usunięto animację z rodzica - to stabilizuje działanie na Safari i szerokich ekranach */
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 50px;
    padding-right: 50px; /* Separator dopasowany do gapu */
    /* Płynna animacja na elementach podrzędnych */
    animation: scrollMarquee 40s linear infinite; 
}

.marquee-content img {
    height: 90px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    /* Blokada interakcji */
    pointer-events: none; 
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Przesunięcie idealnie o długość jednego własnego bloku */
        transform: translateX(-100%);
    }
}

/* Responsywność paska na urządzenia mobilne */
@media (max-width: 599px) {
    .clients-marquee-section {
        padding: 30px 0;
    }
    .marquee-content {
        gap: 30px;
        padding-right: 30px;
    }
    .marquee-content img {
        height: 60px;
    }
}



/* ========================================= */
/* MAPA GOOGLE - STRONA KONTAKTOWA           */
/* ========================================= */

.map-section {
    /* Zmniejszony padding, aby mapa ładniej wypełniała panel */
    padding: 20px; 
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    /* Delikatny cień wewnętrzny/zewnętrzny dla samej mapy */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsywność dla mapy */
@media (max-width: 599px) {
    .map-container {
        height: 300px;
    }
}


/* ========================================= */
/* PULSUJĄCY PRZYCISK W SEKCJI CTA           */
/* ========================================= */

.btn-pulse {
    /* Animacja działa cały czas, bez przerw na hover */
    animation: subtlePulse 2s infinite ease-in-out;
}

/* Używamy niezależnej właściwości 'scale' zamiast 'transform', 
   aby nie blokować podnoszenia przycisku z klasy .btn-primary:hover */
@keyframes subtlePulse {
    0% {
        scale: 1;
    }
    50% {
        scale: 1.06; /* Delikatne powiększenie */
    }
    100% {
        scale: 1;
    }
}

/* ========================================= */
/* DIAGRAM KOMPETENCJI (SVG)                 */
/* ========================================= */

.competence-diagram-container {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.competence-diagram-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Dostosowanie na smartfony */
@media (max-width: 599px) {
    .competence-diagram-container {
        margin: 40px auto 10px auto;
        /* Pozwalamy wykresowi delikatnie wystawać poza krawędzie ekranu 
           aby tekst pozostał czytelny bez powiększania */
        transform: scale(1.1); 
    }
}

/* ========================================= */
/* LINKI W STOPCE                            */
/* ========================================= */

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white; 
}

/* ========================================= */
/* MODYFIKACJA SZEROKOŚCI SLIDERA - KOMPETENCJE */
/* ========================================= */
.kompetencje-slider-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* ========================================= */
/* POŚWIATA BRANDX                           */
/* ========================================= */

.shiny-logo-wrapper {
  position: relative;
  display: inline-block; /* Ogranicza wielkość kontenera idealnie do wymiarów obrazka */
}

.shiny-logo-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shiny-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0; 
  
  /* Maska oparta na zmiennej definiowanej w HTML */
  -webkit-mask-image: var(--img-url);
  mask-image: var(--img-url);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* Gradient poświaty (możesz zmienić 0.6 na inną wartość, by zmienić jasność) */
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 80%
  );
  background-size: 250% 100%;

  /* Zachowanie oryginalnych kolorów pod poświatą */
  mix-blend-mode: overlay; 

  /* Definicja animacji: nazwa, czas trwania, nieskończoność, liniowe tempo */
  animation: logo-shine 9s infinite linear;
  
  /* Zapobiega blokowaniu kliknięć przez nałożoną warstwę */
  pointer-events: none; 
}

/* Klatki kluczowe ruchu świetlnej smugi */
@keyframes logo-shine {
  0% {
    background-position: 250% center;
  }
  100% {
    background-position: -250% center;
  }
}


/* ========================================= */
/* Nadpisanie stylów Contact Form 7          */
/* ========================================= */

/* Reset wrappera CF7, żeby zachowywał się jak Twój oryginalny <form> */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Usunięcie automatycznych <p> dodawanych przez CF7 */
.wpcf7-form p {
    margin: 0;
    padding: 0;
}

/* Wrapper pojedynczego pola - rozciągnij na całą szerokość kolumny flexa */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    flex: 1;
}

/* Wiersz formularza z dwoma polami obok siebie */
.wpcf7-form .form-row {
    display: flex;
    gap: 20px;
}

/* Stylowanie inputów i textarea wewnątrz CF7 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    background-color: #f0f0f0;
    border: 1px solid transparent;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #ccc;
    background-color: #e9e9e9;
}

.wpcf7-form textarea {
    resize: vertical;
}

/* Kontener przycisku Prześlij - mniejszy odstęp od textarea */
.wpcf7-form .form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: -170px; /* dociągnij bliżej textarea */
}

/* Stylowanie komunikatów CF7 (sukces/błąd) */
.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    color: #155724;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #f8d7da;
    color: #721c24;
}

/* Komunikat błędu pod konkretnym polem */
.wpcf7-not-valid-tip {
    color: #941100;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Pole z błędem - czerwona ramka */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #941100;
}

/* Spinner CF7 - całkowicie ukryty */
.wpcf7-spinner {
    display: none !important;
}

/* Ukrycie honeypotu (na wszelki wypadek) */
.wpcf7-form .wpcf7-honeypot {
    display: none !important;
}