/*
|--------------------------------------------------------------------------
| O MNIE — NAGŁÓWEK
|--------------------------------------------------------------------------
*/

.about-page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 108px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 58%,
            #fff5f9 100%
        );
}

.about-page-hero::after {
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    background: rgba(229, 24, 115, 0.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.about-page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.78fr);
    align-items: center;
    gap: 90px;
}

.about-page-overline {
    margin: 0 0 17px;
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-page-hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: clamp(45px, 5vw, 73px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.about-page-hero h1 em {
    display: block;
    color: var(--pink);
    font-family: inherit;
    font-style: normal;
    font-weight: 500;
}

.about-page-hero-text {
    max-width: 670px;
    margin: 29px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.about-page-hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

.about-page-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.about-page-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.about-page-secondary-link:hover {
    gap: 13px;
    color: var(--pink);
}

.about-page-stat-row {
    display: flex;
    gap: 38px;
    margin-top: 47px;
    padding-top: 29px;
    border-top: 1px solid var(--line);
}

.about-page-stat-row div {
    display: flex;
    flex-direction: column;
}

.about-page-stat-row strong {
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 25px;
    line-height: 1;
}

.about-page-stat-row span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.about-page-hero-visual {
    position: relative;
    max-width: 470px;
    margin-left: auto;
}

.about-page-photo-frame {
    overflow: hidden;
    aspect-ratio: 0.79;
    background: #f1f1f1;
    border-radius: 220px 220px 30px 30px;
    box-shadow: 0 28px 70px rgba(42, 64, 95, 0.14);
}

.about-page-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-page-photo-card {
    position: absolute;
    right: -38px;
    bottom: 69px;
    display: flex;
    flex-direction: column;
    min-width: 245px;
    padding: 19px 22px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(42, 64, 95, 0.15);
}

.about-page-photo-card span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-page-photo-card strong {
    margin-top: 4px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 19px;
}

.about-page-photo-note {
    position: absolute;
    bottom: -25px;
    left: -42px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 255px;
    padding: 16px 19px;
    color: #ffffff;
    background: var(--navy);
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(42, 64, 95, 0.22);
}

.about-page-photo-note i {
    color: var(--pink);
}

.about-page-photo-note span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| MOJA DROGA
|--------------------------------------------------------------------------
*/

.about-page-story {
    padding: 120px 0;
}

.about-page-story-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 115px;
}

.about-page-story-heading h2,
.about-page-section-heading h2,
.about-page-books-heading h2,
.about-page-cta h2 {
    margin: 0;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: clamp(34px, 4vw, 51px);
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.about-page-signature {
    margin-top: 34px;
    color: var(--pink);
    font-family: Georgia, serif;
    font-size: 27px;
    font-style: italic;
}

.about-page-story-copy {
    padding-top: 30px;
}

.about-page-story-copy p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.about-page-story-copy .about-page-lead {
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| PODEJŚCIE
|--------------------------------------------------------------------------
*/

.about-page-method {
    padding: 110px 0 120px;
    background: #f8f9fb;
}

.about-page-section-heading {
    max-width: 830px;
    margin-bottom: 53px;
}

.about-page-section-heading h2 em {
    display: block;
    color: var(--pink);
    font-style: normal;
    font-weight: 500;
}

.about-page-section-heading > p:last-child {
    max-width: 720px;
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.about-page-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
}

.about-page-method-card {
    position: relative;
    min-height: 330px;
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.about-page-method-card:hover {
    border-color: rgba(229, 24, 115, 0.24);
    box-shadow: 0 22px 50px rgba(42, 64, 95, 0.08);
    transform: translateY(-5px);
}

.about-page-method-card > span {
    position: absolute;
    top: 27px;
    right: 30px;
    color: #dfe3e8;
    font-family: Manrope, sans-serif;
    font-size: 31px;
    font-weight: 800;
}

.about-page-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 42px;
    color: var(--pink);
    background: var(--pink-soft);
    border-radius: 16px;
    font-size: 19px;
}

.about-page-method-card h3 {
    margin: 0 0 13px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 20px;
}

.about-page-method-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| EDUKACJA
|--------------------------------------------------------------------------
*/

.about-page-education {
    padding: 120px 0;
}

.about-page-education-box {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 80px;
    padding: 70px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--navy-2),
            var(--navy)
        );
    border-radius: 28px;
    box-shadow: 0 28px 65px rgba(42, 64, 95, 0.18);
}

.about-page-overline-light {
    color: #ff76ac;
}

.about-page-education h2 {
    margin: 0;
    color: #ffffff;
    font-family: Manrope, sans-serif;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.about-page-education h2 em {
    display: block;
    color: #ff76ac;
    font-style: normal;
    font-weight: 500;
}

.about-page-education-content > p:not(.about-page-overline) {
    max-width: 650px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.73);
    line-height: 1.8;
}

.about-page-light-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 31px;
    padding: 14px 20px;
    color: var(--navy);
    background: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.about-page-light-button:hover {
    color: var(--pink);
    transform: translateY(-2px);
}

.about-page-education-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-page-education-list div {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-page-education-list div:last-child {
    border-bottom: 0;
}

.about-page-education-list i {
    display: flex;
    flex: 0 0 47px;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    color: #ff76ac;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 13px;
}

.about-page-education-list span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| PUBLIKACJE
|--------------------------------------------------------------------------
*/

.about-page-books {
    padding: 110px 0 120px;
    background: #f8f9fb;
}

.about-page-books-heading {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: end;
    gap: 90px;
    margin-bottom: 49px;
}

.about-page-books-heading > p {
    margin: 0 0 3px;
    color: var(--muted);
    line-height: 1.8;
}

.about-page-books-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 17px;
}

.about-page-book {
    grid-column: span 2;
    display: flex;
    gap: 19px;
    min-height: 225px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.about-page-book-featured {
    grid-column: span 3;
    color: #ffffff;
    background: var(--navy);
    border-color: var(--navy);
}

.about-page-book:nth-child(2) {
    grid-column: span 3;
}

.about-page-book > span {
    color: var(--pink);
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.about-page-book small {
    color: var(--pink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-page-book h3 {
    margin: 8px 0 12px;
    color: var(--navy);
    font-family: Manrope, sans-serif;
    font-size: 19px;
    line-height: 1.3;
}

.about-page-book-featured h3 {
    color: #ffffff;
}

.about-page-book p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.about-page-book-featured p {
    color: rgba(255, 255, 255, 0.68);
}

.about-page-books-action {
    display: flex;
    justify-content: center;
    margin-top: 43px;
}

.about-page-books-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/*
|--------------------------------------------------------------------------
| CTA
|--------------------------------------------------------------------------
*/

.about-page-cta {
    padding: 110px 0;
}

.about-page-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 58px 64px;
    background: #fff4f8;
    border: 1px solid #f7d8e5;
    border-radius: 25px;
}

.about-page-cta-box > div:first-child {
    max-width: 760px;
}

.about-page-cta h2 em {
    color: var(--pink);
    font-style: normal;
    font-weight: 500;
}

.about-page-cta-box p:not(.about-page-overline) {
    margin: 21px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.about-page-cta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}

.about-page-cta-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.about-page-cta-link {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.about-page-cta-link:hover {
    color: var(--pink);
}

/*
|--------------------------------------------------------------------------
| RESPONSYWNOŚĆ
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .about-page-hero-grid {
        gap: 55px;
    }

    .about-page-photo-card {
        right: -10px;
    }

    .about-page-photo-note {
        left: -15px;
    }

    .about-page-story-grid {
        gap: 65px;
    }

    .about-page-education-box {
        gap: 50px;
        padding: 55px;
    }
}

@media (max-width: 900px) {
    .about-page-hero-grid,
    .about-page-story-grid,
    .about-page-education-box,
    .about-page-books-heading {
        grid-template-columns: 1fr;
    }

    .about-page-hero-visual {
        width: min(100%, 480px);
        margin: 25px auto 0;
    }

    .about-page-story-grid,
    .about-page-books-heading {
        gap: 35px;
    }

    .about-page-method-grid {
        grid-template-columns: 1fr;
    }

    .about-page-method-card {
        min-height: auto;
    }

    .about-page-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-page-book,
    .about-page-book-featured,
    .about-page-book:nth-child(2) {
        grid-column: span 1;
    }

    .about-page-book:last-child {
        grid-column: span 2;
    }

    .about-page-cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-page-cta-actions {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .about-page-hero {
        padding: 65px 0 85px;
    }

    .about-page-hero h1 {
        font-size: 42px;
    }

    .about-page-hero-actions,
    .about-page-stat-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-page-stat-row {
        gap: 21px;
    }

    .about-page-photo-card {
        right: 10px;
        bottom: 45px;
        min-width: 210px;
    }

    .about-page-photo-note {
        right: 25px;
        bottom: -42px;
        left: 25px;
        max-width: none;
    }

    .about-page-story,
    .about-page-education,
    .about-page-cta {
        padding: 85px 0;
    }

    .about-page-method,
    .about-page-books {
        padding: 85px 0 90px;
    }

    .about-page-education-box,
    .about-page-cta-box {
        padding: 36px 27px;
        border-radius: 20px;
    }

    .about-page-books-grid {
        grid-template-columns: 1fr;
    }

    .about-page-book,
    .about-page-book-featured,
    .about-page-book:nth-child(2),
    .about-page-book:last-child {
        grid-column: span 1;
    }
}
