/* =========================================================
   O NAS — Biel Stal
   Nagłówek, zdjęcie, cytat + karta, pasek faktów.
   ========================================================= */

.tg-about {
    position: relative;
    background-color: var(--tg-base);
    color: var(--tg-ink);
    padding-block: clamp(4.5rem, 9.5vh, 7.75rem);
    scroll-margin-top: 5.5rem;
}

.tg-about__head,
.tg-about__hero,
.tg-about__split,
.tg-about__stats {
    opacity: 0;
    transform: translateY(14px);
}

.tg-about.is-in .tg-about__head {
    animation: tg-rise 0.72s var(--tg-ease-out) forwards;
}

.tg-about.is-in .tg-about__hero {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.08s forwards;
}

.tg-about.is-in .tg-about__split {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.16s forwards;
}

.tg-about.is-in .tg-about__stats {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.24s forwards;
}

.tg-about__head {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(18rem, 0.78fr);
    gap: 0;
    align-items: start;
    position: relative;
    z-index: 3;
    margin: 0;
}

.tg-about__title-wrap {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 2.4rem 1.55rem 0;
    background-color: #fff;
    border-bottom-right-radius: 3.4rem;
}

.tg-about__title {
    margin: 0;
    max-width: none;
    font-size: clamp(2.65rem, 4.1vw, 3.85rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.tg-about__lead {
    position: relative;
    z-index: 4;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.2rem 0 0 2.4rem;
    background-color: transparent;
    border-radius: 0;
    font-size: clamp(1.02rem, 1.2vw, 1.125rem);
    line-height: 1.5;
    color: #5c6570;
    text-wrap: pretty;
}

.tg-about__hero {
    position: relative;
    z-index: 1;
    margin: -4.9rem 0 clamp(4.5rem, 7vh, 5.75rem);
}

.tg-about__hero img {
    display: block;
    width: 100%;
    height: clamp(16.5rem, 34vw, 25.5rem);
    object-fit: cover;
    object-position: 54% 28%;
    border-radius: 2.25rem;
}

.tg-about__notch {
    position: absolute;
    z-index: 1;
    right: 1.05rem;
    bottom: -2.15rem;
    width: 7.6rem;
    height: 7.6rem;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
}

a.tg-about__more,
a.tg-about__more:link,
a.tg-about__more:visited,
a.tg-about__more:hover,
a.tg-about__more:focus-visible {
    position: absolute;
    z-index: 2;
    right: calc(1.05rem + (7.6rem - 3.9rem) / 2);
    bottom: calc(-2.15rem + (7.6rem - 3.9rem) / 2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.9rem;
    height: 3.9rem;
    border-radius: 50%;
    background-color: var(--tg-accent);
    color: #fff;
    transition: background-color 0.3s var(--tg-ease);
}

.tg-about__more svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    color: #fff;
}

.tg-about__more path {
    stroke: #fff;
}

.tg-about__more:hover,
.tg-about__more:focus-visible {
    background-color: var(--tg-accent-hover);
    color: #fff;
}

.tg-about__more:focus-visible {
    outline: 2px solid var(--tg-accent);
    outline-offset: 4px;
}

.tg-about__split {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: clamp(1.35rem, 2.2vw, 2.15rem);
    align-items: stretch;
    margin: 0 0 clamp(2rem, 4.5vh, 3rem);
    scroll-margin-top: 6rem;
}

.tg-about__story {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tg-about__mark {
    margin: 0 0 1.15rem;
    font-size: 3.35rem;
    font-weight: 500;
    line-height: 0.55;
    letter-spacing: -0.04em;
    color: var(--tg-ink);
}

.tg-about__quote {
    margin: 0 0 1.65rem;
    font-size: clamp(1.125rem, 1.28vw, 1.3125rem);
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: -0.022em;
}

.tg-about__thumb {
    margin: auto 0 0;
    overflow: hidden;
    border-radius: 1.5rem;
}

.tg-about__thumb img {
    display: block;
    width: 100%;
    height: clamp(7.75rem, 11vw, 9.75rem);
    object-fit: cover;
    object-position: 50% 32%;
}

.tg-about__panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: clamp(1.7rem, 2.4vw, 2.35rem) clamp(1.55rem, 2.2vw, 2.2rem);
    border-radius: 1.5rem;
    background-color: var(--tg-accent);
    color: #fff;
}

.tg-about__kicker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tg-about__kicker svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.tg-about__panel p:not(.tg-about__kicker) {
    margin: 0;
    max-width: 36rem;
    font-size: 0.95rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.94);
}

.tg-about__panel p:not(.tg-about__kicker) + p {
    margin-top: 1.2rem;
}

.tg-about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(46, 54, 62, 0.12);
    border-radius: 1.65rem;
}

.tg-about__stats li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 1.55rem 1.15rem;
}

.tg-about__stats li + li {
    border-left: 1px solid rgba(46, 54, 62, 0.14);
}

.tg-about__stat-value {
    margin: 0;
    font-size: clamp(1.85rem, 2.5vw, 2.55rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--tg-accent);
    white-space: nowrap;
}

.tg-about__stat-note {
    margin: 0;
    max-width: 7.5rem;
    font-size: 0.78rem;
    line-height: 1.25;
    color: #8b939c;
}

@media (max-width: 1023px) {
    .tg-about__head {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .tg-about__title-wrap {
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .tg-about__lead {
        justify-self: start;
        max-width: 36rem;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .tg-about__hero {
        margin-top: 1.35rem;
    }

    .tg-about__hero img {
        border-radius: 1.75rem;
    }

    .tg-about__split {
        grid-template-columns: 1fr;
    }

    .tg-about__thumb img {
        height: 12rem;
    }
}

@media (max-width: 767px) {
    .tg-about {
        padding-block: clamp(3.15rem, 7vh, 4.75rem);
    }

    .tg-about__hero {
        margin-bottom: 4.35rem;
    }

    .tg-about__hero img {
        height: 14.5rem;
        border-radius: 1.35rem;
        object-position: 62% 40%;
    }

    .tg-about__notch {
        right: 0.65rem;
        bottom: -1.55rem;
        width: 5.6rem;
        height: 5.6rem;
    }

    a.tg-about__more:link,
    a.tg-about__more:visited {
        right: calc(0.65rem + (5.6rem - 3.15rem) / 2);
        bottom: calc(-1.55rem + (5.6rem - 3.15rem) / 2);
        width: 3.15rem;
        height: 3.15rem;
    }

    .tg-about__head,
    .tg-about__title,
    .tg-about__lead,
    .tg-about__quote,
    .tg-about__panel {
        text-align: center;
    }

    .tg-about__lead {
        justify-self: center;
        margin-inline: auto;
    }

    .tg-about__kicker {
        justify-content: center;
    }

    .tg-about__panel p:not(.tg-about__kicker) {
        margin-inline: auto;
    }

    .tg-about__stats li {
        justify-content: center;
        text-align: left;
    }

    .tg-about__quote {
        font-size: 1.05rem;
    }

    .tg-about__stats {
        grid-template-columns: 1fr;
        border-radius: 1.15rem;
    }

    .tg-about__stats li {
        padding: 1.1rem 1.15rem;
    }

    .tg-about__stats li + li {
        border-left: 0;
        border-top: 1px solid rgba(46, 54, 62, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-about__head,
    .tg-about__hero,
    .tg-about__split,
    .tg-about__stats,
    .tg-about.is-in .tg-about__head,
    .tg-about.is-in .tg-about__hero,
    .tg-about.is-in .tg-about__split,
    .tg-about.is-in .tg-about__stats {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tg-about__more {
        transform: none;
    }
}
