/* =========================================================
   O NAS — Termo Garaż
   Mosaic, misja, fakty, dwa bloki 50/50.
   ========================================================= */

.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__intro,
.tg-about__mosaic,
.tg-about__mission,
.tg-about__facts,
.tg-about__row,
.tg-about__actions {
    opacity: 0;
    transform: translateY(14px);
}

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

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

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

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

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

.tg-about.is-in .tg-about__row--flip {
    animation-delay: 0.28s;
}

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

/* ——— Intro ——— */

.tg-about__intro {
    max-width: 56rem;
    margin: 0 auto clamp(2.25rem, 5vh, 3.5rem);
    text-align: center;
}

.tg-about__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 0 0 1.1rem;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tg-faint);
}

.tg-about__eyebrow::before,
.tg-about__eyebrow::after {
    content: "";
    width: clamp(1.5rem, 4vw, 2.5rem);
    height: 1px;
    background-color: var(--tg-line-strong);
}

.tg-about__title {
    margin: 0 0 1rem;
    font-size: clamp(2.15rem, 4.8vw, 3.5rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.tg-about__lead {
    margin: 0 auto;
    max-width: 38rem;
    font-size: clamp(1.05rem, 1.4vw, 1.1875rem);
    line-height: 1.5;
    color: var(--tg-muted);
    text-wrap: pretty;
}

/* ——— Mosaic ——— */

.tg-about__mosaic {
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    margin-bottom: clamp(2.5rem, 5.5vh, 4rem);
}

.tg-about__shot {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--tg-radius-lg);
    background-color: var(--tg-surface);
    aspect-ratio: 16 / 10;
}

.tg-about__shot:first-child {
    margin-right: -5.5%;
    z-index: 1;
}

.tg-about__shot--mid {
    flex: 1.16 1 0;
    z-index: 2;
}

.tg-about__shot:last-child {
    margin-left: -5.5%;
    z-index: 1;
}

.tg-about__shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
    transition: filter 0.45s var(--tg-ease);
}

.tg-about__shot:first-child img {
    object-position: 42% 48%;
}

.tg-about__shot--mid img {
    object-position: 50% 58%;
}

.tg-about__shot:last-child img {
    object-position: 55% 50%;
}

.tg-about__shot:hover img {
    filter: brightness(1.07);
}

/* ——— Mission ——— */

.tg-about__mission {
    max-width: 42rem;
    margin: 0 auto clamp(2.5rem, 5.5vh, 3.75rem);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.025em;
    text-align: center;
    text-wrap: pretty;
    color: var(--tg-ink);
}

/* ——— Facts ——— */

.tg-about__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 clamp(3rem, 7vh, 5rem);
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--tg-line);
    border-bottom: 1px solid var(--tg-line);
}

.tg-about__facts li {
    padding: clamp(1.5rem, 3.2vh, 2.15rem) clamp(1.15rem, 2vw, 1.85rem);
}

.tg-about__facts li + li {
    border-left: 1px solid var(--tg-line);
}

.tg-about__fact-value {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.tg-about__fact-note {
    margin: 0;
    max-width: 14rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--tg-faint);
    transition: color 0.3s var(--tg-ease);
}

.tg-about__facts li:hover .tg-about__fact-note,
.tg-about__facts li:focus-within .tg-about__fact-note {
    color: var(--tg-ink);
}

/* ——— Rows ——— */

.tg-about__row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    margin-bottom: clamp(3rem, 7vh, 5.5rem);
}

.tg-about__row--flip {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.tg-about__copy {
    max-width: 34rem;
}

.tg-about__kicker {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.9rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tg-faint);
}

.tg-about__kicker::after {
    content: "";
    width: clamp(1.25rem, 3vw, 2rem);
    height: 1px;
    background-color: var(--tg-line-strong);
}

.tg-about__heading {
    margin: 0 0 1.05rem;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.tg-about__copy > p:not(.tg-about__kicker) {
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tg-muted);
}

.tg-about__copy > p:not(.tg-about__kicker):last-of-type {
    margin-bottom: 1.35rem;
}

.tg-about__points {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--tg-line);
}

.tg-about__points li {
    padding: 0.95rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--tg-muted);
    border-bottom: 1px solid var(--tg-line);
    transition: color 0.3s var(--tg-ease);
}

.tg-about__points li:hover {
    color: var(--tg-ink);
}

.tg-about__frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--tg-radius-lg);
    background-color: var(--tg-surface);
}

.tg-about__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 48%;
    transition: filter 0.45s var(--tg-ease);
}

.tg-about__frame:hover img {
    filter: brightness(1.07);
}

.tg-about__chips {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.tg-about__chip {
    margin: 0;
    padding: 0.7rem 0.95rem 0.65rem;
    border-radius: var(--tg-radius);
    background-color: rgba(7, 7, 7, 0.72);
    border: 1px solid rgba(245, 245, 247, 0.14);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    color: var(--tg-ink);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.tg-about__chip span {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-right: 0.2rem;
}

.tg-about__quote {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    margin: 0;
    max-width: 22rem;
    padding: 1rem 1.15rem;
    border-radius: var(--tg-radius);
    background-color: rgba(7, 7, 7, 0.72);
    border: 1px solid rgba(245, 245, 247, 0.14);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.tg-about__quote p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--tg-ink);
}

/* ——— CTA ——— */

.tg-about__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.tg-about__actions .tg-btn {
    white-space: normal;
}

/* =========================================================
   Breakpointy 1450 / 1201 / 1024 / 768 / 375
   ========================================================= */

@media (max-width: 1200px) {
    .tg-about__title {
        font-size: clamp(2rem, 4.2vw, 3rem);
    }

    .tg-about__heading {
        font-size: clamp(1.6rem, 3vw, 2.15rem);
    }

    .tg-about__row,
    .tg-about__row--flip {
        gap: 2.25rem;
    }
}

@media (max-width: 1023px) {
    .tg-about {
        padding-block: clamp(3.75rem, 8vh, 6.25rem);
    }

    .tg-about__shot:first-child {
        margin-right: -3.5%;
    }

    .tg-about__shot:last-child {
        margin-left: -3.5%;
    }

    .tg-about__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-about__facts li {
        padding: 1.35rem 1.25rem;
    }

    .tg-about__facts li + li {
        border-left: 0;
    }

    .tg-about__facts li:nth-child(2n) {
        border-left: 1px solid var(--tg-line);
    }

    .tg-about__facts li:nth-child(n + 3) {
        border-top: 1px solid var(--tg-line);
    }

    .tg-about__row,
    .tg-about__row--flip {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .tg-about__row--flip .tg-about__frame {
        order: -1;
    }

    .tg-about__copy {
        max-width: none;
    }
}

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

    .tg-about__mosaic {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .tg-about__shot,
    .tg-about__shot--mid,
    .tg-about__frame {
        border-radius: var(--tg-radius);
    }

    .tg-about__shot:first-child,
    .tg-about__shot:last-child {
        margin: 0;
    }

    .tg-about__shot--mid {
        flex: none;
        z-index: auto;
    }

    .tg-about__shot {
        aspect-ratio: 16 / 10;
    }

    .tg-about__mission {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .tg-about__facts {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tg-about__facts li,
    .tg-about__facts li:nth-child(2n) {
        padding: 1.2rem 0;
        border-left: 0;
    }

    .tg-about__facts li + li,
    .tg-about__facts li:nth-child(n + 3) {
        border-top: 1px solid var(--tg-line);
    }

    .tg-about__fact-note {
        max-width: 22rem;
        margin-inline: auto;
    }

    .tg-about__chips {
        position: static;
        flex-direction: row;
        margin-top: 0.75rem;
        pointer-events: auto;
    }

    .tg-about__frame {
        overflow: visible;
        background: transparent;
    }

    .tg-about__frame img {
        border-radius: var(--tg-radius);
        aspect-ratio: 4 / 3;
    }

    .tg-about__quote {
        position: static;
        max-width: none;
        margin-top: 0.75rem;
    }

    .tg-about__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tg-about__actions .tg-btn,
    .tg-about__actions .tg-link {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .tg-about__title {
        font-size: 1.85rem;
    }

    .tg-about__heading {
        font-size: 1.5rem;
    }

    .tg-about__copy > p:not(.tg-about__kicker),
    .tg-about__points li {
        font-size: 1rem;
    }

    .tg-about__chips {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-about__intro,
    .tg-about__mosaic,
    .tg-about__mission,
    .tg-about__facts,
    .tg-about__row,
    .tg-about__actions,
    .tg-about.is-in .tg-about__intro,
    .tg-about.is-in .tg-about__mosaic,
    .tg-about.is-in .tg-about__mission,
    .tg-about.is-in .tg-about__facts,
    .tg-about.is-in .tg-about__row,
    .tg-about.is-in .tg-about__actions {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tg-about__shot img,
    .tg-about__frame img {
        transition: none;
    }
}
