/* ============================================================
   STUDIO FIGURA — strona "O marce"
   Uzupełnia Bootstrap 5.3
   ============================================================ */

:root {
    --sf-orange: #FF9100;
    --sf-orange-gradient: linear-gradient(90deg, #FFAF45 0%, #FF9100 100%);
    --sf-blue-gradient: linear-gradient(90deg, #B6CDE3 0%, #94B8D6 100%);
    --sf-text: #100707;
    --sf-text-soft: #4C4545;
    --sf-text-muted: #ACA8A8;
    --sf-border: #E3E3E3;
    --sf-border-light: #F0F0F0;
    --sf-bg: #F7F7F7;
    --sf-card: #FFFFFF;
}

.about-page,
.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4,
.about-page p,
.about-page a,
.about-page button {
    font-family: 'Poppins', system-ui, Arial, sans-serif;
}

.about-page {
    color: var(--sf-text);
    background: var(--sf-card);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================================
   HERO — Kim jesteśmy?  (tekst po lewej, obraz full-bleed po prawej)
   ============================================================ */
.about-hero {
    position: relative;
    padding: 32px 0 56px;
    background: var(--sf-card);
}

.about-hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #EFEFEF;
    overflow: hidden;
    z-index: 0;
}

.about-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 56px;
    color: #BEBEBE;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%;
}

.about-breadcrumb a,
.about-breadcrumb span {
    color: #BEBEBE;
    text-decoration: none;
}

.about-breadcrumb a:hover {
    color: var(--sf-orange);
}

.about-breadcrumb span[aria-hidden="true"] {
    padding: 0 10px;
}

.about-hero__inner {
    max-width: 560px;
}

.about-hero__title {
    margin: 0 0 24px;
    color: var(--sf-text);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-hero__text {
    margin: 0 0 16px;
    color: var(--sf-text);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
}

.about-hero__text:last-child {
    margin-bottom: 0;
}

/* ============================================================
   JAK TO SIĘ ZACZĘŁO  (obraz po lewej + tekst po prawej)
   ============================================================ */
.about-story {
    padding: 80px 0;
    background: var(--sf-bg);
}

.about-story__media {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #E5E5E5;
}

.about-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-story__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--sf-orange);
    flex-shrink: 0;
}

.about-icon--small {
    width: 32px;
    height: 32px;
}

.about-story__title {
    margin: 0;
    color: var(--sf-text);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-story__body p {
    margin: 0 0 16px;
    color: var(--sf-text-soft);
    font-size: 0.875rem;
    line-height: 1.7;
}

.about-story__body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   NAJWAŻNIEJSZE MOMENTY — timeline (karta)
   ============================================================ */
.about-timeline {
    padding: 40px 0 96px;
    background: var(--sf-bg);
}

.timeline-card {
    padding: 40px 0px 56px;
    border-radius: 20px;
    background: var(--sf-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: relative;
}

.timeline-card__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.timeline-card__title {
    margin: 0;
    color: var(--sf-text);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-card__div {
    border-bottom: 1px solid var(--sf-border-light);

}

.timeline-card__lead {
    margin: 0 auto 32px;
    max-width: 760px;
    text-align: center;
    color: var(--sf-text-soft);
    font-size: 0.875rem;
    line-height: 1.65;
    padding-bottom: 32px;
}

/* --- Timeline rail (desktop) --- */
.timeline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.timeline__nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--sf-border);
    background: #FFFFFF;
    color: #BEBEBE;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
    position: absolute;
    z-index: 2;
    border-radius: 47px;
    border: 1px solid var(--Pole-Obrys-Jasny, #E3E3E3);
    background: var(--Background-Dodatkowy, #FFF);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
}

.timeline__nav:hover {
    color: var(--sf-orange);
    border-color: var(--sf-orange);
}

.timeline__track {
    position: relative;
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 45px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    min-height: 260px;
    padding: 0;
}

.timeline__track::-webkit-scrollbar {
    display: none;
}

/* Linia jest renderowana jako odcinki — patrz .timeline__item::after poniżej */
.timeline__line {
    display: none;
}

/* Każdy item — kropka ABSOLUTNIE wycentrowana pionowo (zawsze na środku tracku).
   Etykieta + łącznik są w normalnym flow flex column. */
.timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    z-index: 1;
    height: 100%;
    width: 200px;
}

.sf-hero-title {
    flex-direction: row !important;
    gap: 8px !important;
}

/* Odcinek pomarańczowej linii — od prawej krawędzi kropki tego itemu
   do lewej krawędzi kropki następnego itemu, z małym odstępem (4px) z każdej strony.
   Linia idzie OD środka tej kropki DO środka następnej (czyli o 100% szerokości itemu),
   po czym odejmujemy promień kropki + mały odstęp z każdej strony. */
.timeline__item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% + 32px);
    width: 120px;
    height: 4px;
    background: var(--sf-orange);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 4px;
}

.timeline__item:last-child::after {
    display: none;
}

/* Kropka — absolutnie wycentrowana w środku itemu (zawsze na pomarańczowej linii) */
.timeline__item .timeline__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* TOP item — etykieta + łącznik NAD linią (kropka pod nimi, ale absolutnie wycentrowana) */
.timeline__item--top {
    justify-content: flex-start;
    padding-bottom: calc(50% + 28px);
    /* rezerwujemy miejsce pod kropką */
}

.timeline__item--top .timeline__label {
    margin: 0 0 10px;
}

.timeline__item--top .timeline__connector {
    margin: 10px;
}

/* Mała szara kropka u góry łącznika (od strony etykiety) */
.timeline__item--top .timeline__connector::before {
    top: -3px;
}

/* BOTTOM item — łącznik + etykieta POD linią */
.timeline__item--bottom {
    justify-content: flex-end;
    padding-top: calc(50% + 28px);
}

.timeline__item--bottom .timeline__connector {
    margin: 10px;
}

/* Mała szara kropka u dołu łącznika (od strony etykiety) */
.timeline__item--bottom .timeline__connector::before {
    bottom: -3px;
}

.timeline__item--bottom .timeline__label {
    margin: 10px 0 0;
}

.timeline__label {
    margin: 0;
    color: var(--sf-text-soft);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    max-width: 200px;
}

.timeline__connector {
    position: relative;
    display: block;
    width: 1px;
    height: 72px;
    background: var(--sf-border);
}

/* Mała szara kropka na końcu łącznika od strony etykiety */
.timeline__connector::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sf-border);
    transform: translateX(-50%);
}

.timeline__dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sf-orange-gradient);
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.25);
    z-index: 2;
}

/* ============================================================
   CTA
   ============================================================ */
.about-cta {
    padding: 56px 0 96px;
    background: var(--sf-bg);
    text-align: center;
}

.about-cta__title {
    margin: 0 0 28px;
    color: var(--sf-text);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-cta__actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-cta__or {
    color: var(--sf-text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border: none;
    border-radius: 64px;
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
    min-width: 200px;
}

.btn-cta--orange {
    background: var(--sf-orange-gradient);
}

.btn-cta--blue {
    background: var(--Gradient-Kontrast, linear-gradient(90deg, #9AC4D6 0%, #9075C7 100%));

}

.btn-cta:hover {
    color: #FFFFFF;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-cta:active {
    transform: translateY(0);
    color: white !important;
}

/* ============================================================
   RESPONSIVE — Tablet (<992px)
   ============================================================ */
@media (max-width: 991.98px) {
    .about-hero {
        padding: 16px 0 40px;
    }

    .about-hero__bg {
        position: relative;
        width: 100%;
        height: 320px;
        margin-top: 24px;
    }

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

    .about-hero__title {
        font-size: 2.25rem;
        margin-bottom: 18px;
    }

    .about-hero__text {
        font-size: 0.8125rem;
    }

    .about-breadcrumb {
        margin-bottom: 32px;
    }

    .about-story {
        padding: 56px 0;
    }

    .about-story__media {
        aspect-ratio: 16 / 10;
        margin-bottom: 24px;
    }

    .about-story__title {
        font-size: 1.5rem;
    }

    .about-story__body p {
        font-size: 1rem;
    }

    .timeline-card {
        padding: 32px 16px 40px;
    }

    .about-timeline {
        padding: 24px 0 64px;
    }

    .timeline__track {
        grid-auto-columns: minmax(160px, 1fr);
        min-height: 320px;
    }

    .timeline__label {
        font-size: 0.75rem;
        max-width: 160px;
    }

    .timeline__dot {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (<768px) — timeline pionowy
   ============================================================ */
@media (max-width: 767.98px) {
    .about-hero {
        padding: 12px 0 32px;
    }

    .about-hero__bg {
        height: 240px;
    }

    .about-hero__title {
        font-size: 1.875rem;
        margin-bottom: 16px;
    }

    .about-hero__text {
        font-size: 0.8125rem;
        line-height: 1.7;
    }

    .about-story {
        padding: 36px 0;
    }

    .about-story__title {
        font-size: 1.375rem;
    }

    .about-story__head {
        margin-bottom: 18px;
    }

    .about-story__body p {
        font-size: 1rem;
    }

    .about-timeline {
        padding: 16px 0 48px;
    }

    .timeline-card {
        padding: 28px 18px 36px;
    }

    .timeline-card__title {
        font-size: 1.1875rem;
    }

    .timeline-card__lead {
        font-size: 1rem;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .timeline-card__lead br {
        display: none;
    }

    /* Ukryj strzałki nawigacji */
    .timeline__nav {
        display: none;
    }

    /* Timeline pionowy */
    .timeline {
        display: block;
        position: relative;
    }

    .timeline__track {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow: visible;
        min-height: 0;
        position: relative;
    }

    .timeline__line {
        display: none;
    }

    /* Reset desktopowych właściwości flex/grid */
    .timeline__item,
    .timeline__item--top,
    .timeline__item--bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        padding: 0;
        grid-row: auto;
        grid-template-rows: none;
    }

    /* Kropka w normalnym flow (nie absolutnie wycentrowana) */
    .timeline__item .timeline__dot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        order: 1;
        margin: 0 0 14px;
    }

    /* Etykieta zawsze pod kropką */
    .timeline__item--top .timeline__label,
    .timeline__item--bottom .timeline__label {
        order: 2;
        margin: 0;
        max-width: 280px;
    }

    /* Łącznik ukryty na mobilu (nie potrzebny) */
    .timeline__connector {
        display: none;
    }

    /* Każdy item ma pozycję relatywną + dolny padding = miejsce na patyk pomarańczowy */
    .timeline__item {
        position: relative;
        width: 100%;
        padding-bottom: 36px;
        /* miejsce na pomarańczowy odcinek pod etykietą */
    }

    /* Pomarańczowy patyk POD etykietą — między tym itemem a następnym.
       Resetujemy wszystkie desktopowe właściwości (top/width). */
    .timeline__item::after {
        content: "";
        position: absolute;
        top: auto;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 32px;
        background: var(--sf-orange);
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 0;
    }

    .timeline__item:last-child {
        padding-bottom: 0;
    }

    .timeline__item:last-child::after {
        display: none;
    }

    .timeline__dot {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 0.75rem;
    }

    .timeline__label {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .about-cta {
        padding: 32px 0 56px;
    }

    .about-cta__title {
        font-size: 1.375rem;
        margin-bottom: 24px;
    }

    .about-cta__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        min-width: 0;
    }
}