/*
 * «О нас» /about (page/about.html.twig, реестр AD-122).
 *
 * Надстройка над profile.css: переменные, кнопки `pf-btn`, значки — оттуда.
 * Здесь только своё: вступление с фото, факты карточками, миссия с цитатой,
 * «На что нужны деньги» и последний блок на фото. Корень — `.pf.ab`.
 *
 * Тема задаёт правила голым тегам (`h2 48px`, `p 20px/300`, на телефоне
 * центрированные `h2…h6`, `blockquote`, `figure`), поэтому у каждого
 * заголовка и абзаца свой класс с явным размером и выравниванием.
 *
 * Фото темы с запечёнными скруглёнными углами (белыми или тёмными по краю
 * кадра) показываются с небольшим увеличением внутри своей рамки — иначе
 * эти углы видны внутри нового скругления.
 *
 * Ширины: факты — четыре в ряд, две уже 860px, одна уже 340px; вступление,
 * миссия и «На что нужны деньги» — в колонку уже 860px; на телефоне (уже
 * 600px) кнопки во всю ширину.
 */

.pf.ab {
    padding: 0;
}

.ab-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 30px;
}

.ab-sec {
    padding-top: 88px;
}

.ab-sec--last {
    padding-bottom: 96px;
}

/* ── Текст ───────────────────────────────────────────────────────────────── */

.pf .ab-h2 {
    margin: 0 0 8px;
    color: var(--pf-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-align: left;
}

.pf .ab-h3 {
    margin: 0;
    color: var(--pf-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.pf .ab-sub {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--pf-muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.pf .ab-p {
    margin: 0 0 14px;
    color: var(--pf-ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
}

.pf .ab-p--muted {
    margin-bottom: 24px;
    color: #5A6078;
}

/* ── Вступление ──────────────────────────────────────────────────────────── */

.ab-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 30px 104px;
    background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--pf-paper) 100%);
}

/* Розовый круг справа вверху — фоном блока, без лишней разметки. */
.ab-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -160px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: var(--pf-blush);
    pointer-events: none;
}

.ab-hero__in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
}

.ab-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pf-blush);
    color: var(--pf-coral-ink);
    font-size: 13px;
    font-weight: 500;
}

.pf .ab-h1 {
    margin: 18px 0 16px;
    color: var(--pf-ink);
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-align: left;
}

.ab-h1__accent {
    color: var(--pf-coral);
}

.pf .ab-lead {
    max-width: 560px;
    margin: 0;
    color: #5A6078;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.ab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pf .ab-btn {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 16px;
}

/* Фото на коралловой подложке, повёрнутой на пару градусов. */
.ab-hero__pic {
    position: relative;
}

.ab-hero__pic::before {
    content: '';
    position: absolute;
    top: 26px;
    right: 26px;
    bottom: -18px;
    left: -18px;
    border-radius: 30px;
    background: var(--pf-coral);
    transform: rotate(-3deg);
}

.ab-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 28px;
    background: var(--pf-track);
    box-shadow: 0 36px 60px -36px rgba(55, 62, 91, .7);
}

.ab-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

/* ── Факты ───────────────────────────────────────────────────────────────── */

.ab-facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: -64px;
}

.ab-fact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--pf-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 44px -34px rgba(55, 62, 91, .5);
}

.ab-fact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--pf-blush);
    color: var(--pf-coral);
}

.ab-fact__n {
    color: var(--pf-ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}

.ab-fact__t {
    color: #5A6078;
    font-size: 15px;
    line-height: 1.45;
}

/* ── Миссия ──────────────────────────────────────────────────────────────── */

.ab-mission {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
}

.ab-mission__text {
    padding: 36px 40px;
    border: 1px solid var(--pf-line);
    border-radius: 26px;
    background: #fff;
}

.ab-mission__text .ab-h2 {
    margin-bottom: 18px;
}

.ab-note {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--pf-paper);
}

.ab-note__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--pf-coral);
}

.pf .ab-note__text {
    margin: 0;
    color: var(--pf-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.ab-note__text b {
    font-weight: 700;
}

.pf .ab-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 36px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--pf-coral);
    color: #fff;
}

/* Кольцо в правом нижнем углу. */
.ab-quote::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    box-sizing: border-box;
    border: 36px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    pointer-events: none;
}

.ab-quote__mark {
    position: relative;
    fill: rgba(255, 255, 255, .35);
}

.pf .ab-quote__text {
    position: relative;
    margin: 24px 0 8px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-align: left;
}

/* ── На что нужны деньги ─────────────────────────────────────────────────── */

.ab-money {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ab-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pf-line);
    border-radius: 22px;
    background: #fff;
}

.ab-item__pic {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: var(--pf-track);
}

.ab-item__pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.ab-item__price {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px -10px rgba(31, 35, 56, .6);
    color: var(--pf-money);
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.ab-item__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 24px;
}

.pf .ab-item__text {
    margin: 0;
    color: #5A6078;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

/* ── Последний блок ──────────────────────────────────────────────────────── */

.ab-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    padding: 48px 52px;
    overflow: hidden;
    border-radius: 26px;
    background: #23263A;
    color: #fff;
}

.ab-cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

/* Затемнение слева — под текст; справа видно фото. */
.ab-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(35, 38, 58, .9) 0%, rgba(35, 38, 58, .72) 45%, rgba(35, 38, 58, .1) 100%);
}

.ab-cta__in {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.pf .ab-h2--cta {
    margin-bottom: 12px;
    color: #fff;
    font-weight: 900;
}

.pf .ab-cta__text {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    opacity: .92;
    text-align: left;
}

.ab-actions--left {
    margin-top: 26px;
}

.pf .ab-btn--light {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
    color: #fff;
}

.pf .ab-btn--light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ── Ширины ──────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pf .ab-h1 {
        font-size: 46px;
    }

    .ab-fact__n {
        font-size: 30px;
    }
}

@media (max-width: 860px) {
    .ab-hero__in,
    .ab-mission,
    .ab-money {
        grid-template-columns: minmax(0, 1fr);
    }

    .ab-hero__in {
        gap: 36px;
    }

    .ab-photo {
        aspect-ratio: 4 / 3;
    }

    /* Подложка ближе к фото: при полях 16–30px повёрнутый угол иначе
       срезало краем экрана. */
    .ab-hero__pic::before {
        top: 18px;
        right: 14px;
        bottom: -10px;
        left: -6px;
    }

    /* Текст здесь шире половины блока, и затемнение к правому краю не
       должно светлеть так сильно, как на широком экране. */
    .ab-cta::before {
        background: linear-gradient(90deg, rgba(35, 38, 58, .9) 0%, rgba(35, 38, 58, .78) 70%, rgba(35, 38, 58, .4) 100%);
    }

    .ab-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pf .ab-h2 {
        font-size: 28px;
    }

    .pf .ab-quote__text {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    /* Только бока: сокращённая запись обнулила бы нижний отступ последнего
       блока, и он вставал вплотную к подвалу. */
    .ab-wrap {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ab-sec {
        padding-top: 64px;
    }

    .ab-hero {
        padding: 32px 16px 96px;
    }

    .pf .ab-h1 {
        font-size: 38px;
    }

    .pf .ab-lead {
        font-size: 16px;
    }

    .ab-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ab-fact {
        gap: 8px;
        padding: 16px;
    }

    .ab-fact__icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .ab-fact__n {
        font-size: 24px;
    }

    .ab-fact__t {
        font-size: 14px;
    }

    .ab-mission__text {
        padding: 24px 20px;
    }

    .pf .ab-quote {
        padding: 28px 24px;
    }

    .ab-item__body {
        padding: 18px 18px 20px;
    }

    .ab-cta {
        min-height: 0;
        padding: 28px 22px;
    }
}

@media (max-width: 339px) {
    .ab-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}
