/* Портрет занимает левую часть секции; текст остаётся поверх фонового узора. */
.about {
    scroll-margin-top: var(--header-scroll-offset);
    background-color: #f3eef5;
    background-image: url("../assets/about-pattern-desktop-r3.webp");
    background-position: top center;
    /* Узор сохраняет масштаб при изменении ширины и раскрытии текста. */
    background-size: 1440px 712px;
    background-repeat: repeat;
}

.about-inner {
    display: grid;
    width: min(100%, 1920px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 712px;
    margin-inline: auto;
}

.about-copy {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 712px;
    flex-direction: column;
    gap: 16px;
    padding: 56px var(--content-inset) 0 36px;
}

.about-copy h2,
.about-copy p { margin: 0; }

.about-introduction,
.about-invitation { font-size: 18px; line-height: 28px; }
.about-benefits-heading {
    color: var(--color-brand-strong);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
}
.about-benefits {
    margin: 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 24px;
    list-style: none;
}
.about-benefits li::before { content: "• "; color: var(--color-action-primary); }
.about-details { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about-gallery-cta {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    border: 2px solid var(--color-action-primary);
    border-radius: 28px;
    color: var(--color-brand-strong);
    background: var(--color-surface-white);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
    transition: background-color 150ms ease;
}

.about-gallery-cta:focus-visible {
    background: var(--color-surface-soft);
    outline: none;
}

@media (hover: hover) {
    .about-gallery-cta:hover { background: var(--color-surface-soft); }
}

@media (hover: none) {
    .about-gallery-cta:active { background: var(--color-surface-soft); }
}
.about-photo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 712px;
    overflow: hidden;
    pointer-events: none;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.about-toggle { display: none; }

@media (max-width: 1199px) and (min-width: 900px) {
    .about-copy { padding-right: var(--content-inset); }
    .about-benefits,
    .about-introduction,
    .about-invitation { font-size: 16px; line-height: 22px; }
}

/* Мобильная версия показывает подробности по запросу и оставляет портрет в конце. */
@media (max-width: 899px) {
    .about {
        background-image: url("../assets/about-pattern-mobile-r3.webp");
        background-size: 375px 1280px;
    }
    .about-inner { display: flex; min-height: 0; flex-direction: column; padding: 32px var(--content-inset); }
    .about-copy { width: 100%; min-height: 0; gap: 16px; margin: 0; padding: 0; }
    .about-copy h2 { max-width: 327px; }
    .about-title-prefix { display: block; }
    .about-introduction,
    .about-invitation { font-size: 16px; line-height: 24px; }
    .about-toggle {
        display: block;
        align-self: flex-start;
        padding: 0;
        border: 0;
        color: var(--color-brand-strong);
        background: transparent;
        cursor: pointer;
        font-size: 14px;
        font-weight: var(--font-weight-bold);
        line-height: 24px;
    }
    .about-toggle-collapse,
    .about-details { display: none; }
    .about-details-expanded { display: flex; }
    .about-details-expanded .about-toggle-collapse { display: block; }
    .about-copy-expanded .about-toggle-read-more { display: none; }
    .about-benefits { font-size: 16px; line-height: 24px; }
    .about-photo {
        width: min(100%, 327px);
        height: 392px;
        min-height: 0;
        align-self: center;
        mask-image: linear-gradient(#000 78%, transparent 100%);
    }
    .about-photo img { object-position: top center; }
}
