.memory-person {
    --memory-line: #ded8cd;
    --memory-beige: #f8f4ed;
    --memory-gold: #b49d78;
    --memory-blue-soft: #eef5f8;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    color: inherit;
}

/* Типографика не задается здесь: она настраивается в Elementor. */

.memory-person__hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 34px 38px 40px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at 94% 16%, rgba(180,157,120,.10) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 27%, rgba(180,157,120,.08) 0 3px, transparent 4px),
        linear-gradient(120deg, rgba(248,244,237,.78), rgba(255,255,255,.92) 48%, rgba(239,246,249,.72));
    border-top: 1px solid rgba(180,157,120,.28);
    border-bottom: 1px solid rgba(180,157,120,.22);
}

.memory-person__hero::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: 22px;
    width: 150px;
    height: 110px;
    opacity: .12;
    pointer-events: none;
    background:
        linear-gradient(58deg, transparent 48%, var(--memory-gold) 49% 50%, transparent 51%) 42px 54px / 86px 1px no-repeat,
        radial-gradient(ellipse at center, var(--memory-gold) 0 30%, transparent 33%) 70px 31px / 25px 10px no-repeat,
        radial-gradient(ellipse at center, var(--memory-gold) 0 30%, transparent 33%) 88px 46px / 25px 10px no-repeat,
        radial-gradient(ellipse at center, var(--memory-gold) 0 30%, transparent 33%) 103px 61px / 25px 10px no-repeat,
        radial-gradient(ellipse at center, var(--memory-gold) 0 30%, transparent 33%) 54px 48px / 25px 10px no-repeat,
        radial-gradient(ellipse at center, var(--memory-gold) 0 30%, transparent 33%) 39px 65px / 25px 10px no-repeat;
    transform: rotate(-8deg);
}

.memory-person__portrait {
    width: 290px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-person__portrait img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: transparent;
    box-shadow: none;
    mix-blend-mode: multiply;
}

.memory-person__intro {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.memory-person__name {
    margin: 0 0 24px;
    padding: 0;
}

.memory-person__name::after {
    content: "";
    display: block;
    width: 135px;
    height: 1px;
    margin-top: 22px;
    background: var(--memory-gold);
}

.memory-person__meta {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    margin-top: 20px;
    max-width: 610px;
}

.memory-person__meta-icon {
    padding-top: 6px;
    color: #90a9ba;
    font-size: 9px;
    line-height: 1;
    text-align: center;
}

.memory-person__label,
.memory-person__field-title,
.memory-person__comment-label {
    margin: 0 0 7px;
    padding: 0;
    opacity: .78;
}

.memory-person__field-title {
    position: relative;
    padding-left: 14px;
}

.memory-person__field-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--memory-gold);
    opacity: .65;
}

.memory-person__meta-value {
    margin: 0;
    padding: 0;
}

.memory-person__section {
    position: relative;
    margin: 0;
    padding: 38px 34px 42px;
    border-top: 1px solid var(--memory-line);
}

.memory-person__section:nth-of-type(even) {
    background: linear-gradient(90deg, rgba(248,244,237,.34), rgba(255,255,255,.95) 40%, rgba(248,244,237,.22));
}

.memory-person__section > h2 {
    position: relative;
    margin: 0 0 25px;
    padding: 0 0 0 18px;
}

.memory-person__section > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .08em;
    width: 2px;
    background: var(--memory-gold);
}

.memory-person__section > h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 12px;
    background: rgba(180,157,120,.55);
}

.memory-person__item + .memory-person__item {
    margin-top: 30px;
}

.memory-person__text,
.memory-person__awards,
.memory-person__death-content,
.memory-person__comment-text {
    margin: 0;
    padding: 0;
}

.memory-person__text p,
.memory-person__awards p,
.memory-person__death-content p,
.memory-person__comment-text p {
    margin: 0 0 12px;
}

.memory-person__text p:last-child,
.memory-person__awards p:last-child,
.memory-person__death-content p:last-child,
.memory-person__comment-text p:last-child {
    margin-bottom: 0;
}

.memory-person__section--awards {
    background: linear-gradient(100deg, rgba(237,245,249,.74), rgba(255,255,255,.96) 56%, rgba(237,245,249,.40)) !important;
}

.memory-person__section--awards::after {
    content: "✦";
    position: absolute;
    right: 38px;
    top: 30px;
    color: #91aabd;
    opacity: .26;
    font-size: 32px;
    line-height: 1;
}

.memory-person__awards {
    padding: 16px 20px;
    border-left: 2px solid rgba(120, 157, 180, .45);
    background: rgba(255,255,255,.48);
}

.memory-person__section--death {
    padding-bottom: 44px;
}

.memory-person__death-content {
    padding: 26px 30px;
    background: linear-gradient(90deg, rgba(249,243,234,.95), rgba(255,251,246,.72));
    border-left: 3px solid var(--memory-gold);
}

.memory-person__comment {
    margin: 28px 34px 8px;
    padding: 20px 24px;
    border-left: 2px solid var(--memory-line);
    background: rgba(248, 244, 237, .58);
}

.memory-person__comment-label {
    opacity: .72;
}

.memory-person__back {
    margin: 28px 34px 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(222,216,205,.8);
}

.memory-person__back-link {
    color: inherit;
    text-decoration: none;
    opacity: .82;
    transition: opacity .2s ease;
}

.memory-person__back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .memory-person {
        padding-left: 20px;
        padding-right: 20px;
    }

    .memory-person__hero {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 32px;
        padding: 28px;
    }

    .memory-person__portrait {
        width: 240px;
    }
}

@media (max-width: 680px) {
    .memory-person {
        padding-left: 16px;
        padding-right: 16px;
    }

    .memory-person__hero {
        display: block;
        padding: 24px 20px 28px;
    }

    .memory-person__hero::after {
        right: -12px;
        bottom: 5px;
    }

    .memory-person__portrait {
        width: min(82%, 300px);
        margin: 0 auto 28px;
    }

    .memory-person__section {
        padding: 30px 20px 34px;
    }

    .memory-person__awards {
        padding: 15px 17px;
    }

    .memory-person__death-content {
        padding: 20px 20px;
    }

    .memory-person__comment,
    .memory-person__back {
        margin-left: 20px;
        margin-right: 20px;
    }
}
