/* ============================================================
   css/news-promam.css — страница «PRO МАМ»
   Подключать после main.css и news-detail.css, перед effects.css.
   Принципы: бесшовные секции (без жёстких фонов и линий),
   сливовая гамма, розовый только тонкими акцентами.
   ============================================================ */

.pm {
    --pm-radius: var(--radius-lg);
    overflow-x: clip;
}
.pm-narrow { max-width: 820px; }

/* ---------- Секции: прозрачные, стыки скрыты ---------- */
.pm-section {
    position: relative;
    padding: clamp(48px, 7vw, 88px) 0;
}
.pm-section > .container { position: relative; z-index: 1; }

/* «Подсвеченные» секции: мягкое свечение, плавно уходящее в прозрачность
   по всем краям — границы между секциями не видны */
.pm-section--tinted::before,
.pm-section--plum::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            radial-gradient(60% 55% at 100% 50%, var(--color-pink-soft), transparent 70%),
            radial-gradient(55% 50% at 0% 40%, var(--color-plum-soft), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* .pm-section--plum больше не тёмная: стиль как у tinted (класс в HTML можно не менять) */
.pm-section--plum::before {
    background:
            radial-gradient(60% 55% at 0% 50%, var(--color-pink-soft), transparent 70%),
            radial-gradient(55% 50% at 100% 60%, var(--color-plum-soft), transparent 70%);
}

/* ---------- Заголовки секций (как .section-badge на остальных страницах) ---------- */
.pm-head { margin-bottom: clamp(28px, 4vw, 48px); }
.pm-head--center { text-align: center; }
.pm-head--center .pm-sub { margin-inline: auto; }

.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 22px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-plum);
}

.pm-title {
    margin: 0;
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-plum-dark);
}
.pm-sub {
    max-width: 720px;
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-muted);
}

/* ---------- Вступление ---------- */
.pm-intro { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 0; }
.pm-lead {
    margin: 0 auto;
    padding-left: 26px;
    border-left: 3px solid var(--color-pink); /* единственный «розовый» акцент блока */
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.55;
    color: var(--color-plum-dark);
}
.pm-lead em { font-style: italic; color: var(--color-plum); }

/* ---------- Текст ---------- */
.pm-prose p,
.pm-prose-p {
    margin: 0 0 1.1em;
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- Карточки направлений (БЕЗ border) ---------- */
.pm-directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}
.pm-card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px 28px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.pm-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-card-hover);
}
.pm-card__num {
    position: absolute;
    top: 16px;
    right: 22px;
    font-family: var(--font-display), var(--font-main);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-plum-soft);
    transition: color .3s ease;
}
.pm-card:hover .pm-card__num { color: var(--color-pink-soft); }

.pm-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--color-plum);
    background: linear-gradient(135deg, var(--color-plum-soft), var(--color-pink-soft));
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.pm-card__icon svg { width: 24px; height: 24px; }
.pm-card:hover .pm-card__icon { transform: scale(1.08) rotate(-6deg); }

.pm-card__title {
    margin: 0 0 10px;
    font-family: var(--font-display), var(--font-main);
    font-size: 1.15rem;
    color: var(--color-plum-dark);
}
.pm-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--color-text-muted); }

/* ---------- Текст + фото ---------- */
.pm-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

/* ---------- Списки ---------- */
.pm-list { list-style: none; display: grid; gap: 14px; }
.pm-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.7;
    font-size: 15px;
    color: var(--color-text-muted);
}
.pm-list li strong { color: var(--color-plum-dark); }
.pm-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-plum);
    box-shadow: 0 0 0 5px var(--color-plum-soft);
}

/* ---------- Фото ---------- */
.pm-photo { margin: 0; position: relative; }
.pm-photo img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
/* мягкая подложка вместо розовой рамки */
.pm-photo::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-plum-soft), var(--color-pink-soft));
    z-index: -1;
    transition: transform .4s ease;
}
.pm-photo:hover::before { transform: translate(6px, 6px); }
.pm-photo--tilt-right img { transform: rotate(1.5deg); }
.pm-photo figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-plum);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-soft);
}

/* ---------- Врезка ---------- */
.pm-callout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-plum-soft), var(--color-pink-soft));
}
.pm-callout__icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-plum);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}
.pm-callout__icon svg { width: 22px; height: 22px; }
.pm-callout__title { margin: 0 0 6px; font-size: 1.1rem; }
.pm-callout p { margin: 0; line-height: 1.7; font-size: 15px; color: var(--color-text-muted); }

/* ---------- Цитата ---------- */
.pm-quote {
    position: relative;
    max-width: 820px;
    margin: 56px auto 0;
    padding: 48px 24px 0;
    text-align: center;
}
.pm-quote::before {
    content: "\201C";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display), serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--color-plum-mid);
}
.pm-quote p {
    position: relative;
    margin: 0 0 16px;
    font-family: var(--font-display), serif;
    font-style: italic;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    line-height: 1.5;
    color: var(--color-plum-dark);
}
.pm-quote cite {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---------- Гости ---------- */
.pm-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    margin-bottom: 40px;
}
.pm-feature__people { display: grid; gap: 20px; }
.pm-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.pm-person {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pm-person:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.pm-person__badge {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    background: var(--gradient-btn);
    box-shadow: 0 8px 18px -8px rgba(62,31,50,.5);
}
.pm-person__name { margin: 0; font-size: 1.05rem; color: var(--color-plum-dark); }
.pm-person__role {
    margin: 2px 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--color-plum);
    opacity: .75;
}
.pm-person p:last-child { margin: 0; font-size: 14px; line-height: 1.65; color: var(--color-text-muted); }

/* ---------- Волонтёры ---------- */
.pm-chips { list-style: none; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.pm-chips li {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-plum);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, background .25s ease;
}
.pm-chips li:hover { transform: translateY(-3px); background: var(--color-plum-soft); }
.pm-chips li:last-child { background: transparent; box-shadow: none; color: var(--color-text-muted); font-weight: 500; }

/* ---------- Мозаика ---------- */
.pm-mosaic {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    grid-template-areas: "a b c" "a d d";
    gap: 16px;
}
.pm-mosaic__item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.pm-mosaic__item--a { grid-area: a; }
.pm-mosaic__item--b { grid-area: b; }
.pm-mosaic__item--c { grid-area: c; }
.pm-mosaic__item--d { grid-area: d; }
.pm-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.pm-mosaic__item:hover img { transform: scale(1.06); }

.pm-thanks {
    max-width: 760px;
    margin: 40px auto 0;
    text-align: center;
    line-height: 1.75;
    font-size: 15px;
    color: var(--color-text-muted);
}
.pm-thanks strong { display: block; margin-top: 6px; color: var(--color-plum-dark); }

/* ---------- Принципы ---------- */
.pm-values {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    counter-reset: pm-v;
}
.pm-values li {
    counter-increment: pm-v;
    position: relative;
    padding: 34px 26px 26px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    line-height: 1.6;
    font-size: 14.5px;
    color: var(--color-text-muted);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pm-values li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.pm-values li::before {
    content: counter(pm-v);
    position: absolute;
    top: -18px;
    left: 24px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-display), serif;
    font-weight: 700;
    color: var(--color-white);
    background: var(--gradient-btn);
    box-shadow: 0 8px 18px -8px rgba(62,31,50,.5);
}
.pm-values strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display), serif;
    font-size: 1.2rem;
    color: var(--color-plum-dark);
}

.pm-why {
    margin: 64px auto 0;
    padding: 32px 36px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-plum-soft), var(--color-pink-soft));
}
.pm-why h3 { margin: 0 0 10px; font-family: var(--font-display), serif; font-size: 1.5rem; }
.pm-why p { margin: 0; line-height: 1.8; font-size: 16px; color: var(--color-text-muted); }

/* ---------- Присоединиться ---------- */
.pm-join {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}
.pm-join__main {
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    background: var(--gradient-plum);
    box-shadow: var(--shadow-card);
}
.pm-join__main .pm-eyebrow { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.22); }
.pm-join__main .pm-title { color: var(--color-white); margin-bottom: 14px; }
.pm-join__main > p { margin: 0 0 24px; opacity: .85; line-height: 1.7; }

.pm-contact {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    background: rgba(255,255,255,.07);
}
.pm-contact__label { margin: 0 0 6px; font-size: 13px; opacity: .75; }
.pm-contact__phone {
    display: inline-block;
    margin-bottom: 18px;
    font-family: var(--font-display), serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-white);
}
.pm-contact__phone:hover { opacity: .8; }
/* на тёмной карточке основная кнопка — светлая */
.pm-contact__vk {
    display: inline-flex;
    margin-bottom: 14px;
    background: var(--color-white);
    color: var(--color-plum-dark);
    box-shadow: none;
}
.pm-contact__note { margin: 0; font-size: 12px; line-height: 1.5; opacity: .65; }

.pm-join__help h3 { margin: 0 0 18px; font-family: var(--font-display), serif; font-size: 1.5rem; }
.pm-help { list-style: none; display: grid; gap: 12px; }
.pm-help li {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-muted);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease;
}
.pm-help li:hover { transform: translateX(6px); }
.pm-help strong { color: var(--color-plum-dark); }

.pm-fund {
    max-width: 780px;
    margin: 48px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ---------- Галерея ---------- */
.pm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}
.pm-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.pm-gallery img:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.pm-final {
    margin: clamp(48px, 7vw, 72px) 0 32px;
    text-align: center;
    font-family: var(--font-display), serif;
    font-style: italic;
    font-size: clamp(1.5rem, 3.6vw, 2.3rem);
    color: var(--color-plum-dark);
}
.pm-final svg {
    display: inline-block;
    width: .7em;
    height: .7em;
    margin-left: 6px;
    vertical-align: baseline;
    color: var(--color-pink);   /* тонкий акцент */
}


/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .pm-split, .pm-feature, .pm-join { grid-template-columns: 1fr; }
    .pm-photo { max-width: 560px; margin-inline: auto; }
    .pm-photo::before { inset: 10px -8px -10px 8px; }
    .pm-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 220px 220px;
        grid-template-areas: "a a" "b c" "d d";
    }
}
@media (max-width: 560px) {
    .pm-lead { padding-left: 18px; }
    .pm-callout { flex-direction: column; padding: 22px; }
    .pm-person { padding: 18px; }
    .pm-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: 260px;
        grid-template-areas: "a" "b" "c" "d";
    }
    .pm-quote { padding: 44px 8px 0; }
    .pm-lightbox__close { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .pm-card, .pm-card__icon, .pm-person, .pm-chips li, .pm-help li, .pm-values li,
    .pm-gallery img, .pm-mosaic__item img, .pm-photo::before { transition: none !important; }
}

/* ============================================================
   ИСПРАВЛЕНИЕ: граница под волной hero
   ============================================================ */
.news-detail-hero {
    position: relative;
    overflow: hidden;
}
.news-detail-hero .hero__wave {
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: clamp(32px, 4.86vw, 70px);
    z-index: 3;
}
.news-detail-hero .hero__wave path { fill: #FDF9F7; } /* = --color-cream */

/* Первая секция продолжает цвет волны и плавно растворяется */
.pm-intro {
    background: linear-gradient(180deg, #FDF9F7 0, rgba(253, 249, 247, 0) 220px);
}

/* ============================================================
   ДУДЛЫ — тематические рисунки на фоне секций
   ============================================================ */
.pm-doodle {
    --pm-d-plum: rgba(92, 48, 74, .16);
    --pm-d-pink: rgba(250, 160, 194, .5);
    position: absolute;
    z-index: 0;
    height: auto;
    pointer-events: none;
    color: var(--pm-d-plum);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pm-doodle--pink { color: var(--pm-d-pink); }
.pm-doodle--float { animation: pmFloat 8s ease-in-out infinite; }
.pm-doodle--float-slow { animation: pmFloat 12s ease-in-out infinite reverse; }

@keyframes pmFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

@media (max-width: 768px) {
    .pm-doodle { opacity: .7; }
    .pm-doodle--hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pm-doodle--float,
    .pm-doodle--float-slow { animation: none !important; }
}



/* «PRO МАМ» в заголовке hero — на отдельной строке */
.news-detail-hero__title-accent {
    display: block;
}