/* Сторінка «Про нас» — доповнення до site.css */

.about {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    width: 100%;
    animation: fadeUp 0.9s ease 0.1s both;
}

.about__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about p {
    color: var(--card-desc-color, var(--text-muted));
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
}

.about p strong {
    color: var(--card-title-color, var(--silver-bright));
    font-weight: 600;
}

.about__symbol {
    display: block;
    height: 1.75em;
    width: auto;
}

.symbol-btn {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.symbol-btn:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.symbol-wrap {
    position: relative;
    display: inline-block;
    vertical-align: -0.22em;
    margin: 0 0.2em;
}

.symbol-popover {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.45rem);
    transform: translateX(-50%);
    z-index: 30;
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
}

.symbol-popover.is-open {
    display: block;
}

.symbol-popover__img {
    display: block;
    width: auto;
    height: calc(1em * 1.7 * 5);
    max-width: min(calc(100vw - 3rem), 16rem);
    margin: 0 auto;
    transform-origin: top center;
}

.symbol-popover.is-open .symbol-popover__img {
    animation: symbolZoom 0.22s ease;
}

.symbol-popover__close {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--panel-bg);
    color: var(--text-nav);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.symbol-popover__close:hover {
    color: var(--silver-bright);
    border-color: var(--accent);
}

.about__actions {
    margin-top: 1.5rem;
}

/* Кнопки-портали (значок нескінченності) */
.about__portals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 2rem;
}

.portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 0.85rem;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--panel-border, var(--card-border));
    background: var(--panel-bg);
    color: var(--card-title-color, var(--silver-bright));
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-btn:hover,
.portal-btn:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--panel-shadow);
}

.portal-btn__symbol {
    display: block;
    height: 2.4rem;
    width: auto;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.portal-btn:hover .portal-btn__symbol,
.portal-btn:focus-visible .portal-btn__symbol {
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transform: scale(1.05);
}

.portal-btn__label {
    line-height: 1.25;
}

/* Сторінки-розділи (Галерея / Волонтерство / Наше життя) */
.about-sub {
    flex: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    width: 100%;
    animation: fadeUp 0.9s ease 0.1s both;
}

.about-sub__crumb {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--text-nav);
    text-decoration: none;
    font-size: 0.875rem;
}

.about-sub__crumb:hover {
    color: var(--silver-bright);
}

.about-sub__head {
    text-align: center;
    margin-bottom: 2rem;
}

.about-sub__symbol {
    display: block;
    height: 2.75rem;
    width: auto;
    margin: 0 auto 1rem;
}

.about-sub__title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-sub__subtitle {
    color: var(--text-muted);
    margin-top: 0.65rem;
    font-size: 1rem;
    line-height: 1.6;
}

.about-sub__content p {
    color: var(--card-desc-color, var(--text-muted));
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.about-sub__logo {
    margin: 0 0 1.75rem;
    text-align: center;
}

.about-sub__logo img {
    width: min(280px, 62vw);
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.28));
}

.about-sub__logo figcaption {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.about-sub__gallery-title {
    margin: 0.5rem 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--silver-bright, var(--text));
}

.about-sub__list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--card-desc-color, var(--text-muted));
    line-height: 1.7;
    font-size: 0.9375rem;
}

.about-sub__list li {
    margin-bottom: 0.4rem;
}

.about-sub__note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.about-sub__note a {
    color: var(--accent);
    text-decoration: none;
}

.about-sub__note a:hover {
    text-decoration: underline;
}

/* Сітка галереї */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    display: block;
    margin: 0;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel-bg);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--panel-shadow);
}

.gallery-item__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(3, 6, 14, 0.92);
    backdrop-filter: blur(6px);
}

.lightbox.is-open {
    display: flex;
    animation: fadeUp 0.25s ease;
}

.lightbox__img {
    max-width: min(94vw, 1400px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    background: var(--panel-bg);
    color: var(--silver-bright);
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    border-color: var(--accent);
    color: #fff;
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

.about-sub__foot {
    margin-top: 2.5rem;
    text-align: center;
}

.about-sub__back {
    display: inline-block;
}

@media (max-width: 640px) {
    .about__portals {
        grid-template-columns: 1fr;
    }

    .about-sub {
        padding: 2rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
    }

    .about-sub__back {
        width: 100%;
        max-width: 20rem;
        min-height: 44px;
    }
}

@keyframes symbolZoom {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
    .about {
        padding: 2rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
    }

    .about__title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .about p {
        font-size: 0.9rem;
    }

    .symbol-popover {
        left: 0;
        right: auto;
        transform: none;
        width: min(calc(100vw - 2rem), 16rem);
    }

    .symbol-popover__img {
        max-width: 100%;
        height: auto;
    }

    .about__actions .btn {
        width: 100%;
        max-width: 20rem;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about { animation: none; }
    .symbol-popover.is-open .symbol-popover__img { animation: none; }
}
