/* =========================================
   O NAS – STRONA (about.php) – układ pełnoekranowy
   ========================================= */

/* Hero – pełny ekran, bez marginesu pod spodem */
.about-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    max-height: 50vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.about-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.about-hero-title {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Sekcje – zero marginesów (body w tym samym kolorze co szare = luka wygląda jak szara), ta sama wysokość */
section.about-full {
    margin: 0;
    box-sizing: border-box;
    display: flow-root;
    padding: 0;
    min-height: 460px;
}

/* 2=O nas szary, po Nasza firma (3) – 4=Jakość szary, potem na przemian: 5=biały, 6=szary, 7=biały */
section.about-full:nth-of-type(2),
section.about-full:nth-of-type(4),
section.about-full:nth-of-type(6) {
    background-color: #F7F8FA;
}

section.about-full:nth-of-type(5),
section.about-full:nth-of-type(7) {
    background-color: #fff;
}

.about-full .about-full-inner,
.about-full .container.about-full-inner {
    margin-top: 0;
    margin-bottom: 0;
}

.about-full-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 48px;
}

/* Pierwszy blok (O nas) – biały margines między wideo a treścią */
section.about-full:nth-of-type(2) .about-full-inner {
    padding-top: 28px;
}

/* Tylko szary blok Jakość (#quality) – bez paddingu góra/dół */
section#quality.about-full .about-full-inner {
    padding-top: 0;
    padding-bottom: 0;
}

/* Blok Jakość – mniejsze marginesy wewnętrzne */
section#quality.about-full .about-intro-label {
    margin-bottom: 4px;
}

section#quality.about-full .about-intro-lead {
    margin: 0 0 6px 0;
}

section#quality.about-full .about-page-heading {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.25;
    margin-bottom: 8px;
}

section#quality.about-full .about-page-body {
    margin-bottom: 0;
}

section#quality.about-full .about-page-list {
    margin-top: 12px;
}

section#quality.about-full .about-page-list li {
    margin-bottom: 6px;
}


.about-full-text {
    display: flex;
    align-items: center;
}

.about-full-text-inner {
    max-width: 460px;
    width: 100%;
    font-family: var(--font-family);
}

/* Zdjęcie – mniejsze, lżejsze */
.about-full-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #e8e8e8;
    width: 100%;
}

.about-full-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

/* Typografia – mniejsza, lżejsza */
.about-full .about-intro-label {
    display: block;
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.about-full .about-intro-lead {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    color: var(--text-light);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.about-full .about-page-heading {
    font-family: var(--font-family);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    font-style: normal;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.about-full .about-page-body {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.about-full .about-page-list {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-light);
    margin: 20px 0 0 0;
    padding-left: 18px;
}

/* Zachowanie .about-page-heading / .about-page-body poza .about-full (np. Process) */
.about-page-heading {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}

.about-page-body {
    font-size: var(--font-body);
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}

/* Blok 2 – lista punktowana */
.about-page-quality {
    padding-top: 0;
    padding-bottom: 56px;
}

.about-page-list {
    margin: 24px 0 0 0;
    padding-left: 20px;
    list-style: disc;
    font-size: var(--font-body);
    line-height: 1.65;
    color: var(--text-light);
}

.about-full .about-page-list li {
    margin-bottom: 8px;
}

.about-page-list li {
    margin-bottom: 10px;
}

.about-page-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .about-hero-inner {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .about-full-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-full-media {
        order: 2;
    }

    .about-full-text-inner {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 360px;
    }

    .about-hero-inner {
        padding: 0 20px;
    }

    .about-full {
        min-height: 360px;
    }

    .about-full-inner {
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .about-page-heading {
        margin-bottom: 20px;
    }
}

/* Blok 3 – Process Section (ta sama szerokość co strona główna) */
.about-page-process {
    width: 100%;
    background-color: #fff;
    padding: 40px 0 48px;
}

.about-page-process-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.process-title {
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.process-desc {
    font-size: var(--font-body);
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Przycisk Kontakt – ten sam styl co „zobacz wszystkie” w portfolio realizacji */
.process-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.process-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

/* Prawa kolumna – Grid kart */
.process-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.process-card {
    position: relative;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-card-bg {
    position: absolute;
    inset: 0;
    background-color: #e0e0e0;
    transition: transform 0.5s ease;
}

.process-card:hover .process-card-bg {
    transform: scale(1.05);
}

.process-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.process-card-text {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.process-card-desc {
    font-size: 12px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .about-page-process-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .process-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .process-right {
        grid-template-columns: 1fr; /* Jedna kolumna na mobile */
    }
}

/* About Section Styles – kolory jak sekcja Rozwiązania (index.php) */
.about-section {
    padding: 80px 0;
    margin-bottom: var(--section-gap);
    background-color: #f0f1f0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Content */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 540px;
}

.about-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-tiny);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-heading {
    font-size: clamp(18px, 1.85vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 40px;
}

.about-heading span {
    color: var(--text-light);
}

.about-body {
    font-size: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* Przycisk w tym samym stylu co „zobacz wszystkie” w Portfolio */
.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

/* Right – jeden obrazek */
.about-images {
    width: 100%;
}

.about-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e4e2;
}

.about-img-single {
    width: 100%;
    height: 420px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-img-single {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .about-img-single {
        height: 280px;
    }
}

/* Strona O nas – brak marginesu między ostatnią sekcją a footerem */
body.page-about .site-footer {
    margin-top: 0;
}
