/* =========================================================================
   O NAS — /o-nas (about.css)
   Spójne z home-landing.css: Montserrat 800 + Cinzel em, złoto var(--gold),
   granat var(--navy). Strona jasna (#fffdfa), granat tylko w hero i CTA.
   ========================================================================= */

.about-page {
    overflow-x: clip;
    background: #fffdfa;
}

/* --- Etykiety sekcji --- */
.about-eyebrow {
    margin: 0 0 14px;
    color: #a9762b;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.about-eyebrow--gold {
    color: #e6c47f;
}

/* =========================================================================
   HERO — tekst na zdjęciu (jak strona główna)
   ========================================================================= */
.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(440px, 62vh, 640px);
    margin-top: -120px;
    overflow: hidden;
    background: #0a1a30;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 14, 27, 0.72) 0%, rgba(6, 14, 27, 0.45) 45%, rgba(6, 14, 27, 0.66) 100%);
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    width: min(880px, calc(100% - 48px));
    margin: 0 auto;
    padding: 170px 0 64px;
    text-align: center;
    color: #fff;
}

.about-hero-inner .about-eyebrow {
    letter-spacing: 0.34em;
}

.about-hero h1 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.about-hero h1 em,
.about-page h2 em {
    font-family: "Cinzel", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #e6c47f;
}

.about-page h2 em {
    color: #a9762b;
}

.about-hero-lead {
    max-width: 60ch;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    line-height: 1.7;
}

/* =========================================================================
   SEKCJE
   ========================================================================= */
.about-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(80px, 9vw, 130px) 0 0;
}

.about-section--last {
    padding-bottom: clamp(80px, 8vw, 110px);
}

.about-page h2 {
    margin: 0;
    color: #131b2c;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.about-section-head {
    max-width: 560px;
    margin-bottom: 44px;
}

/* =========================================================================
   ZAŁOŻYCIELKA
   ========================================================================= */
.about-founder {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.about-portrait {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: var(--sand);
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-license {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(185, 138, 58, 0.05);
    border: 1px solid rgba(185, 138, 58, 0.35);
    border-radius: 14px;
}

.about-license-badge {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #a9762b;
    background: rgba(185, 138, 58, 0.1);
    border: 1px solid rgba(185, 138, 58, 0.3);
    border-radius: 50%;
}

.about-license-badge svg {
    width: 18px;
    height: 18px;
}

.about-license div {
    display: grid;
    gap: 2px;
}

.about-license strong {
    color: #131b2c;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.about-license span:not(.about-license-badge) {
    color: #8a8578;
    font-size: 0.78rem;
    font-weight: 500;
}

.about-founder-copy h2 {
    margin-bottom: 28px;
}

.about-founder-copy p:not(.about-eyebrow) {
    margin: 0 0 18px;
    color: #3d3a33;
    font-size: 1rem;
    line-height: 1.8;
}

.about-founder-copy p:not(.about-eyebrow):last-child {
    margin-top: 28px;
    margin-bottom: 0;
}

/* lista partnerów — złote kreski, styl akapitu */
.about-partners {
    display: grid;
    gap: 10px;
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
}

.about-partners li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #3d3a33;
    font-size: 1rem;
    line-height: 1.8;
}

.about-partners li::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 1px;
    transform: translateY(-4px);
    background: var(--gold);
}

/* =========================================================================
   SPECJALIZACJA — galeria regionów
   ========================================================================= */
.about-regions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.about-regions figure {
    margin: 0;
}

.about-region-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sand);
}

.about-region-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-regions figure:hover .about-region-media img {
    transform: scale(1.04);
}

.about-regions figcaption {
    margin-top: 14px;
    color: #131b2c;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
}

/* =========================================================================
   CYTAT — po zakupie
   ========================================================================= */
.about-quote-block {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(80px, 9vw, 130px) 0 0;
    text-align: center;
}

.about-quote-rule {
    display: block;
    width: 56px;
    height: 1px;
    margin: 0 auto 32px;
    background: var(--gold);
}

.about-quote {
    margin: 0;
    color: #131b2c;
    font-family: "Cinzel", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.45;
}

.about-quote-body {
    max-width: 58ch;
    margin: 28px auto 0;
    color: #514e46;
    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================================================
   FINAŁOWE CTA — panel jak na stronie głównej (style lokalne,
   bo home-landing.css nie jest ładowany na tej podstronie)
   ========================================================================= */
.about-final-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(32px, 4.4vw, 56px) clamp(26px, 3.6vw, 60px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(150deg, #1b3a68, var(--navy) 58%, #0b1d34);
    border: 1px solid rgba(185, 138, 58, 0.26);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(16, 35, 63, 0.24);
}

.about-final-cta::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 138, 58, 0.26), transparent 66%);
    filter: blur(14px);
    pointer-events: none;
}

.about-final-cta > * {
    position: relative;
    z-index: 1;
}

.about-final-cta > div {
    max-width: 640px;
}

.about-final-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 16px;
    padding: 0 14px;
    color: #e0bd77;
    background: rgba(185, 138, 58, 0.14);
    border: 1px solid rgba(185, 138, 58, 0.34);
    border-radius: 999px;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-final-cta h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.1;
}

.about-final-cta p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.65;
}

/* przyciski .dg-btn — kopia z home-landing.css (nieładowanego tutaj) */
.about-page .dg-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.about-page .dg-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.4) 50%, transparent 66%);
    transform: translateX(-130%);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-page .dg-btn:hover::before { transform: translateX(130%); }
.about-page .dg-btn:hover { transform: translateY(-2px); }
.about-page .dg-btn:active { transform: translateY(0); }

.about-page .dg-btn:focus-visible {
    outline: 2px solid rgba(185, 138, 58, 0.7);
    outline-offset: 3px;
}

.about-page .dg-btn .dg-arrow { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.about-page .dg-btn:hover .dg-arrow { transform: translate(3px, -3px); }

.about-page .dg-btn--gold {
    color: #241703;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(169, 118, 43, 0.22);
}

.about-page .dg-btn--gold:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 14px rgba(169, 118, 43, 0.16);
}

.about-page .dg-btn--lg {
    min-height: 54px;
    padding: 15px 30px;
    font-size: 15px;
    white-space: nowrap;
}

/* =========================================================================
   RESPONSYWNOŚĆ
   ========================================================================= */
@media (max-width: 980px) {
    .about-hero {
        margin-top: -96px;
    }
}

@media (max-width: 860px) {
    .about-founder {
        grid-template-columns: 1fr;
    }

    .about-founder-media {
        max-width: 420px;
    }

    .about-regions {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 680px) {
    .about-section,
    .about-quote-block {
        width: min(100% - 32px, 1180px);
    }

    .about-final-cta {
        border-radius: 22px;
    }

    .about-final-cta .dg-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .dg-btn,
    .about-page .dg-btn::before,
    .about-page .dg-btn .dg-arrow,
    .about-region-media img {
        transition: none;
    }
}

/* =========================================================================
   ANIMACJE — wejście hero + scroll-reveal (klasę .js-rv dodaje skrypt,
   więc bez JS wszystko jest widoczne od razu)
   ========================================================================= */
@keyframes onasIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes onasZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.about-page .hin {
    opacity: 0;
    animation: onasIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-page .hero-zoom img {
    animation: onasZoom 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-page.js-rv [data-rv] {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
}

.about-page.js-rv [data-rv].in {
    opacity: 1;
    transform: none;
}

/* =========================================================================
   FLOATING „WRÓĆ" — lewy dolny róg, wraca history.back()
   ========================================================================= */
.about-back {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px 12px 16px;
    color: var(--navy);
    background: rgba(255, 253, 250, 0.92);
    border: 1px solid rgba(227, 219, 207, 0.95);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(16, 35, 63, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(140%);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-back:hover,
.about-back:focus-visible {
    border-color: rgba(185, 138, 58, 0.5);
    box-shadow: 0 18px 48px rgba(16, 35, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.about-back:focus-visible {
    outline: 2px solid rgba(185, 138, 58, 0.7);
    outline-offset: 3px;
}

.about-back-ic {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #a9762b;
    background: rgba(185, 138, 58, 0.12);
    border: 1px solid rgba(185, 138, 58, 0.35);
    border-radius: 50%;
}

.about-back-ic svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 680px) {
    .about-back {
        left: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .hin,
    .about-page .hero-zoom img {
        animation: none;
        opacity: 1;
    }

    .about-page.js-rv [data-rv] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .about-back {
        transition: none;
    }
}
