:root {
    --shu-blue-deep:      #0a1e3d;
    --shu-blue-mid:       #0d3b6e;
    --shu-blue-card:      #0f4c7a;
    --shu-gold:           #d4a832;
    --shu-gold-light:     #ecc86a;
    --shu-gold-dim:       #a07e1e;
    --shu-cream:          #f3efe6;
    --shu-text-on-dark:   #f0ead6;
    --shu-text-body:      #2c2c2c;
    --shu-text-muted:     #5a5a5a;
    --shu-shadow-card:    0 6px 30px rgba(0,0,0,0.18);
    --shu-shadow-hover:   0 12px 48px rgba(0,0,0,0.30);
    --shu-radius:         10px;
    --shu-photo-height:   260px;
}




/* =================== СТІНА ПАМ'ЯТІ =================== */
.shu-memorial-wall {
    background: linear-gradient(180deg, var(--shu-blue-deep), var(--shu-blue-mid));
    padding: 44px 24px;
    position: relative;
    overflow: hidden;
}

.shu-memorial-wall::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--shu-gold), transparent);
}

.shu-memorial-wall::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 20 L48 35 L52 35 Z M45 28 L43 40 L47 38 Z M55 28 L57 40 L53 38 Z M48 35 L48 50 L52 50 Z' fill='%23d4a832' opacity='0.04'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.shu-wall-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.shu-wall-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--shu-gold-light);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.shu-wall-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--shu-text-on-dark);
    margin: 0;
    opacity: 0.75;
}

.shu-wall-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.shu-wall-name {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212,168,50,0.25);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shu-wall-name:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(212,168,50,0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.shu-wall-name-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--shu-text-on-dark);
    line-height: 1.3;
}

.shu-wall-name-dates {
    font-size: 0.8rem;
    color: var(--shu-gold-light);
    opacity: 0.85;
    letter-spacing: 0.03em;
}

/* Підсвічування картки при кліку зі стіни */
.shu-card-highlight {
    animation: shu-highlight-pulse 2s ease;
}

@keyframes shu-highlight-pulse {
    0%, 100% {
        box-shadow: var(--shu-shadow-card);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(212,168,50,0.4), var(--shu-shadow-hover);
        transform: translateY(-6px);
    }
}

/* =================== ВІЧНИЙ ВОГОНЬ =================== */
.shu-eternal-flame {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 60px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    opacity: 0.75;
    pointer-events: none;
}

.shu-flame {
    width: 12px;
    height: 28px;
    background: linear-gradient(to top, #d4a832, #ffd700, rgba(255,215,0,0.3));
    border-radius: 50% 50% 0 0;
    animation: shu-flame-flicker 1.5s ease-in-out infinite;
    filter: blur(1px);
    opacity: 0.9;
}

.shu-flame:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 1.3s;
}

.shu-flame:nth-child(2) {
    animation-delay: 0.3s;
    animation-duration: 1.6s;
    height: 32px;
}

.shu-flame:nth-child(3) {
    animation-delay: 0.6s;
    animation-duration: 1.4s;
}

@keyframes shu-flame-flicker {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-4px) scaleY(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-2px) scaleY(0.95);
        opacity: 0.85;
    }
    75% {
        transform: translateY(-5px) scaleY(1.05);
        opacity: 0.95;
    }
}

/* =================== LIGHTBOX =================== */
.shu-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,30,61,0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.shu-lightbox.shu-lightbox-active {
    opacity: 1;
    pointer-events: all;
}

.shu-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: shu-lightbox-zoom 0.4s ease;
}

@keyframes shu-lightbox-zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.shu-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: var(--shu-radius);
    box-shadow: 0 12px 60px rgba(0,0,0,0.6);
    border: 3px solid var(--shu-gold);
}

.shu-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(212,168,50,0.2);
    border: 2px solid var(--shu-gold);
    color: var(--shu-text-on-dark);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.shu-lightbox-close:hover {
    background: var(--shu-gold);
    color: var(--shu-blue-deep);
    transform: rotate(90deg);
}

.shu-lightbox-caption {
    text-align: center;
    color: var(--shu-text-on-dark);
}

.shu-lightbox-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shu-gold-light);
    margin: 0 0 6px;
}

.shu-lightbox-caption p {
    font-size: 0.95rem;
    color: var(--shu-gold-light);
    opacity: 0.85;
    margin: 0;
}

/* Курсор для клікабельних фото */
.shu-photo-clickable {
    cursor: zoom-in;
}

/* ================= АДАПТИВНІСТЬ НОВИХ ЕЛЕМЕНТІВ ================== */
@media (max-width: 1024px) {
    .shu-filters-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shu-filter-group {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .shu-filter-label {
        min-width: 120px;
    }

    .shu-results-count {
        text-align: center;
        padding-top: 8px;
        border-top: 1px solid rgba(212,168,50,0.2);
    }
}

@media (max-width: 680px) {
    .shu-memorial-wall {
        padding: 32px 16px;
    }

    .shu-wall-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shu-eternal-flame {
        width: 40px;
        height: 50px;
    }

    .shu-flame {
        width: 10px;
        height: 24px;
    }

    .shu-lightbox-close {
        top: -50px;
        right: 0;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

@media (max-width: 420px) {
    .shu-filters {
        padding: 24px 16px;
    }

    .shu-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .shu-wall-name {
        padding: 12px 14px;
    }

    .shu-wall-name-text {
        font-size: 0.95rem;
    }
}

/* --- Обёртка сторінки --- */
.shu-page {
    font-family: 'Raleway', sans-serif;
    background-color: var(--shu-cream);
    color: var(--shu-text-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle grain texture overlay */
.shu-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

/* ===================== HERO ===================== */
.shu-hero {
    position: relative;
    background: linear-gradient(180deg, var(--shu-blue-deep) 0%, var(--shu-blue-mid) 60%, var(--shu-blue-card) 100%);
    padding: 44px 24px 40px;
    text-align: center;
    overflow: hidden;
}

.shu-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--shu-gold), transparent);
}

.shu-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--shu-gold-dim) 30%, var(--shu-gold) 50%, var(--shu-gold-dim) 70%, transparent 95%);
}

.shu-hero-title {
    font-family: 'Playfair Display', serif;
    color: var(--shu-gold-light);
    font-size: clamp(1.7rem, 4.5vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0 0 6px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.shu-hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--shu-text-on-dark);
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    font-weight: 400;
    opacity: 0.72;
    margin: 0 0 30px;
}

.shu-video-wrap {
    max-width: 740px;
    margin: 0 auto;
    border-radius: var(--shu-radius);
    overflow: hidden;
    box-shadow: 0 8px 44px rgba(0,0,0,0.5);
    border: 2px solid rgba(212,168,50,0.3);
}

.shu-video-wrap video {
    display: block;
    width: 100%;
    background: #000;
}

/* ================= QUOTE BAR ================== */
.shu-quote-bar {
    background: linear-gradient(135deg, var(--shu-blue-mid), var(--shu-blue-deep));
    padding: 38px 24px;
    text-align: center;
    position: relative;
}

.shu-quote-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--shu-gold), transparent);
}

/* --- Герб України через Font Awesome (fa-shield-halved) --- */
/* --- Орнамент (тризуб) --- */
.shu-quote-ornament {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* прибираємо/не використовуємо старі стилі для Font Awesome */
.shu-quote-ornament i {
    display: none;
}

/* нові стилі для зображення з правильними пропорціями */
.shu-quote-ornament .shu-quote-icon {
    height: 44px;
    width: auto;
    max-width: 120px;
    display: block;
    opacity: 0.88;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.shu-quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--shu-text-on-dark);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    line-height: 1.8;
    max-width: 920px;
    margin: 0 auto;
    opacity: 0.88;
}

.shu-quote-text strong {
    color: var(--shu-gold-light);
    font-weight: 600;
    display: block;
    margin-top: 10px;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}

/* =================== GRID ======================== */
.shu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px;
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 28px 56px;
}
/* =================== CARD ======================== */
.shu-card {
    background: #fff;
    border-radius: var(--shu-radius);
    box-shadow: var(--shu-shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212,168,50,0.2);
    opacity: 0;
    transform: translateY(30px);
}

.shu-card.shu-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}

.shu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shu-shadow-hover);
}

/* --- Фото контейнер --- */
.shu-card-photo {
    width: 100%;
    height: var(--shu-photo-height);
    position: relative;
    overflow: hidden;
    background: var(--shu-blue-deep);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shu-card-photo img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.shu-card:hover .shu-card-photo img {
    transform: scale(1.03);
}

.shu-card-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
            radial-gradient(ellipse 70% 70% at center, transparent 40%, rgba(10,30,61,0.55) 75%, rgba(10,30,61,0.92) 100%);
    pointer-events: none;
}

.shu-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 3px solid rgba(212,168,50,0.4);
    border-radius: var(--shu-radius) var(--shu-radius) 0 0;
    pointer-events: none;
    transition: border-color 0.3s;
}

.shu-card:hover .shu-card-photo::after {
    border-color: rgba(212,168,50,0.7);
}

.shu-card-photo .shu-photo-shadow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    z-index: 4;
    background: linear-gradient(to top, rgba(10,30,61,0.6), transparent);
    pointer-events: none;
}

.shu-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    min-height: 0;
}

.shu-card-body::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--shu-gold), transparent);
}

.shu-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--shu-blue-mid);
    margin: 0 0 5px;
    line-height: 1.3;
}

.shu-card-dates {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--shu-gold-dim);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.shu-card-bio {
    font-size: 0.87rem;
    line-height: 1.72;
    color: var(--shu-text-muted);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =================== БЛОК НАГОРОД =================== */

.shu-awards {
    margin: 14px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(212,168,50,0.06), rgba(212,168,50,0.02));
    border-left: 3px solid var(--shu-gold);
    border-radius: 8px;
}

.shu-awards-section {
    margin-bottom: 14px;
}

.shu-awards-section:last-child {
    margin-bottom: 0;
}

.shu-awards-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    color: var(--shu-gold-dim);
    margin: 0 0 8px;
    padding-left: 2px;
}


/* Списки нагород */
.shu-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shu-awards-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--shu-text-muted);
    text-align: left;
}

/* ЗОЛОТА КУЛЬКА - основний маркер */
.shu-awards-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--shu-gold);
    font-size: 2rem;
    top: 3px;
    font-weight: bold;
    line-height: 1;
}



.shu-memorial-line {
    text-align: center !important;
    color: var(--shu-gold);
    font-style: italic;
    font-weight: 600;
    margin-top: auto !important;
    padding-top: 18px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    opacity: 0.9;
    flex-shrink: 0;
    display: block;
    width: 100%;
}


.shu-bio-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-bottom: 12px;
}

.shu-bio-text:last-of-type {
    margin-bottom: 0;
}

.shu-bio-text p {
    margin: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-indent: 1em;
}

/* Перший параграф БЕЗ відступу */
.shu-bio-text p:first-child {
    text-indent: 0;
}

.shu-bio-text p + p {
    margin-top: 9px;
}

/* Запобігання "сирітським" словам */
.shu-card-name,
.shu-card-dates {
    text-wrap: balance;
}

/* Для браузерів що не підтримують text-wrap */
@supports not (text-wrap: balance) {
    .shu-card-name {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ================= АДАПТИВНІСТЬ ================== */
@media (max-width: 680px) {
    .shu-quote-ornament .shu-quote-icon {
        height: 40px;
    }

    .shu-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 44px;
        gap: 28px;
    }
    :root { --shu-photo-height: 240px; }

    .shu-quote-text strong {
        font-size: 1rem;
    }

    .shu-awards {
        padding: 14px;
        margin: 12px 0;
    }

    .shu-awards-subtitle {
        font-size: 0.9rem;
    }

    .shu-awards-list li {
        font-size: 0.85rem;
        padding-left: 18px;
    }

    .shu-awards-list li::before {
        font-size: 1.9rem;
        top: 4px;
    }
}

@media (max-width: 420px) {
    :root { --shu-photo-height: 220px; }

    .shu-card-body {
        padding: 18px 18px 22px;
    }
    .shu-card-body::before {
        left: 18px;
        right: 18px;
    }

    .shu-quote-text {
        font-size: 0.9rem;
    }
    .shu-quote-text strong {
        font-size: 0.95rem;
    }

    .shu-awards {
        padding: 12px;
    }

    .shu-awards-subtitle {
        font-size: 0.88rem;
    }

    .shu-awards-list li {
        padding-left: 16px;
    }

    .shu-awards-list li::before {
        font-size: 1.9rem;
    }
}
