/* OFFICE TECH. O firmie. Od zera. Siatka 12 kolumn, ciemna plansza. */

.about {
    background-color: var(--wp--preset--color--contrast);
    color: #ffffff;
    scroll-margin-top: var(--header-height, 108px);
}

.about__inner {
    padding-block: var(--wp--preset--spacing--60, 5rem);
}

/* Intro */

.about__intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem 2.5rem;
    align-items: end;
    padding-bottom: var(--wp--preset--spacing--40, 2rem);
    margin-bottom: var(--wp--preset--spacing--40, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.about__intro-head {
    grid-column: span 6;
}

.about__intro-lead {
    grid-column: 8 / -1;
}

.about__eyebrow {
    margin: 0 0 0.5rem;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.about__title {
    margin: 0;
    max-width: 22ch;
    font-size: var(--wp--preset--font-size--4xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.about__intro-lead p {
    margin: 0;
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.about__intro-lead p + p {
    margin-top: 0.85rem;
}

/* Zdjęcie i ścieżka pracy */

.about__main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.about__photo {
    position: relative;
    grid-column: span 5;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    min-height: 26rem;
    background-color: rgba(255, 255, 255, 0.06);
}

.about__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 22, 26, 0.78) 0%, rgba(21, 22, 26, 0) 55%);
}

.about__photo-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.15rem 1.35rem 1.3rem;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.about__work {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.15rem 2.15rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
}

.about__work-title {
    margin: 0 0 1.5rem;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.about__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.about__step {
    padding: 1.15rem 0 1.25rem 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 2px solid var(--wp--preset--color--primary);
}

.about__step:first-child {
    border-top: 0;
    padding-top: 0;
}

.about__step-name {
    margin: 0;
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.about__step-text {
    margin: 0.4rem 0 0;
    max-width: 46ch;
    font-size: var(--wp--preset--font-size--sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1.75rem;
}

.about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    text-decoration: none !important;
}

.about__btn--primary {
    background-color: var(--wp--preset--color--primary);
    color: #ffffff !important;
}

.about__btn--primary:hover,
.about__btn--primary:focus-visible {
    background-color: #9A7538;
}

.about__btn--ghost {
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.about__btn--ghost:hover,
.about__btn--ghost:focus-visible {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--wp--preset--color--contrast) !important;
}

/* Liczniki */

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin: var(--wp--preset--spacing--40, 2rem) 0 0;
    padding: 0;
    list-style: none;
}

.about__stat {
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.about__stat-value {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--primary);
}

.about__stat-label {
    margin: 0.55rem 0 0;
    width: 100%;
    max-width: none;
    white-space: nowrap;
    font-size: var(--wp--preset--font-size--sm);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

/* Responsive */

@media (max-width: 1200px) {
    .about__work {
        padding: 1.65rem 1.75rem 1.75rem;
    }

    .about__photo {
        min-height: 22rem;
    }
}

@media (max-width: 1023px) {
    .about__title {
        font-size: var(--wp--preset--font-size--3xl);
        max-width: none;
    }

    .about__intro-head,
    .about__intro-lead {
        grid-column: span 12;
    }

    .about__photo,
    .about__work {
        grid-column: span 12;
    }

    .about__photo {
        min-height: 18rem;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .about__inner {
        padding-block: 4.5rem;
    }

    .about__intro {
        padding-bottom: 2rem;
        margin-bottom: 2.25rem;
        gap: 1.25rem;
    }

    .about__intro,
    .about__intro-head,
    .about__intro-lead,
    .about__title {
        text-align: center;
        max-width: none;
    }

    .about__intro-lead p {
        margin-inline: auto;
        max-width: 40ch;
    }

    .about__title {
        font-size: var(--wp--preset--font-size--2xl);
    }

    .about__main {
        gap: 1.25rem;
    }

    .about__work {
        padding: 1.85rem 1.35rem 2rem;
        text-align: center;
    }

    .about__step {
        border-left: 0;
        padding: 1.35rem 0 1.45rem;
        text-align: center;
    }

    .about__step-name {
        font-size: var(--wp--preset--font-size--lg);
    }

    .about__step-text {
        margin-inline: auto;
        margin-top: 0.55rem;
    }

    .about__actions {
        justify-content: center;
        width: 100%;
        padding-top: 1.85rem;
        gap: 0.85rem;
    }

    .about__btn {
        flex: 1 1 auto;
        min-width: min(100%, 12rem);
    }

    .about__stats {
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .about__stat {
        text-align: center;
        padding-top: 1.35rem;
    }

    .about__stat-label {
        white-space: normal;
        margin-inline: auto;
        max-width: 28ch;
    }

    .about__photo-tag {
        text-align: center;
    }
}
