/* ===================================
   ГЕРОЇ ОБОЛОНЦІ - Оновлений елегантний дизайн
   =================================== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0057B7;
    --blue-light: #3b7dd6;
    --blue-dark: #003d82;
    --yellow: #FFD700;
    --yellow-dark: #ffbf00;
    --bg-light: #f2f4f7;
    --white: #ffffff;
    --dark: #2c2c2c;
    --gray: #6b6b6b;
    --light-gray: #e8e8e8;
    --border-gray: #d4d4d4;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 87, 183, 0.15);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('../assets/images/black-marble2.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === Header - белое меню === */
.header {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ua-emblem {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.ua-emblem:hover {
    transform: scale(1.05);
}

.ua-emblem svg {
    width: 40px;
    height: 56px;
    filter: drop-shadow(0 2px 4px rgba(0, 87, 183, 0.2));
}

.obolon-emblem {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.obolon-emblem:hover {
    transform: scale(1.05);
}

.obolon-emblem img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo a {
    display: block;
}

.logo h1 {
    color: var(--yellow);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.logo .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-top: -10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFCB00;;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--yellow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--yellow);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(0, 87, 183, 0.85) 0%, rgba(0, 61, 130, 0.7) 100%); */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin-top: -100px;
}

/* Стиль 1: Градиент флага (верх голубой, низ жёлтый) */
.hero-title {
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    /*background: linear-gradient(180deg, 
        #0057B7 0%, 
        #0057B7 42%, 
        #3b7dd6 48%,
        #FFD700 52%, 
        #FFD700 58%,
        #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 100% 1.2em;
    background-repeat: repeat-y;
    background-position: 0% 0%;
    animation: flag-wave 8s ease-in-out infinite;*/
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
}

.hero-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 500px;
    height: 90px;
    background-image: url('/assets/images/brush-ua.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.9;
    z-index: 0;
}

.hero-title span {
    position: relative;
    z-index: 2;
}

/* Стиль 2: Жёлтые буквы с голубой обводкой */
.hero-title.outlined {
    background: none;
    /* -webkit-background-clip: unset;
    -webkit-text-fill-color: #FFD700;
    background-clip: unset;
    color: #FFD700; */
    /* animation: outline-wave 8s ease-in-out infinite;
     text-shadow: 
        -2px -2px 0 #0057B7,
        2px -2px 0 #0057B7,
        -2px 2px 0 #0057B7,
        2px 2px 0 #0057B7,
        -3px 0 0 #0057B7,
        3px 0 0 #0057B7,
        0 -3px 0 #0057B7,
        0 3px 0 #0057B7,
        -2px 0 0 #0057B7,
        2px 0 0 #0057B7,
        0 -2px 0 #0057B7,
        0 2px 0 #0057B7,
        4px 4px 6px rgba(0, 0, 0, 0.7); */
    filter: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

@keyframes flag-wave {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 12%;
    }
}

@keyframes outline-wave {
    0%, 100% {
        text-shadow: 
            -2px -2px 0 #0057B7,
            2px -2px 0 #0057B7,
            -2px 2px 0 #0057B7,
            2px 2px 0 #0057B7,
            -3px 0 0 #0057B7,
            3px 0 0 #0057B7,
            0 -3px 0 #0057B7,
            0 3px 0 #0057B7,
            -2px 0 0 #0057B7,
            2px 0 0 #0057B7,
            0 -2px 0 #0057B7,
            0 2px 0 #0057B7,
            4px 4px 6px rgba(0, 0, 0, 0.7);
    }
    50% {
        text-shadow: 
            -3px -3px 0 #3b7dd6,
            3px -3px 0 #3b7dd6,
            -3px 3px 0 #3b7dd6,
            3px 3px 0 #3b7dd6,
            -4px 0 0 #3b7dd6,
            4px 0 0 #3b7dd6,
            0 -4px 0 #3b7dd6,
            0 4px 0 #3b7dd6,
            -3px 0 0 #3b7dd6,
            3px 0 0 #3b7dd6,
            0 -3px 0 #3b7dd6,
            0 3px 0 #3b7dd6,
            5px 5px 8px rgba(0, 0, 0, 0.8);
    }
}

.flag {
    font-size: 24px;
    margin-left: 4px;
    display: inline-block;
    animation: flag-wave 2s ease-in-out infinite;
}


.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 68px;
    font-weight: 700;
    color: #FFF;
    /* text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9); */
}

.stat-label {
    display: block;
    font-size: 28px;
    font-weight: 500;
    margin-top: -22px;
    color: #FFF;
}

/* === Buttons === */
.btn-primary,
.btn-secondary,
.btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 87, 183, 0.2);
}

.btn-primary:hover {
    background: var(--blue-light);
    box-shadow: 0 4px 12px rgba(0, 87, 183, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-secondary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-yellow:hover {
    background: var(--yellow-dark);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* === Search Section === */
.search-section {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-box h2 {
    font-size: 32px;
    color: var(--yellow);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.search-form {
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-btn {
    padding: 16px 36px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: -12px;
}

.search-btn:hover {
    background: var(--yellow-dark);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* === Stats Video Section === */
.stats-video-section {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stats-video {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.9;
}

.stats-video-section .container {
    position: relative;
    z-index: 2;
}

.stats-video-section .hero-stats {
    margin: 0;
}

/* === Heroes Grid === */
.heroes-grid-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    color: var(--yellow);
    margin-bottom: -12px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: -40px;
    top: -5px;
    width: 360px;
    height: 50px;
    background-image: url('/assets/images/brush-ua.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 1.0;
    z-index: 0;
}

.section-header h2 span {
    position: relative;
    z-index: 2;
}

.section-header p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hero-card {
    /*background: var(--white);*/
    /*полупрозрачный белый фон*/
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.hero-card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-card-image img {
    transform: scale(1.05);
}

.no-photo {
    width: 100%;
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    color: var(--gray);
    font-weight: 500;
    font-size: 14px;
}

.hero-card-content {
    padding: 22px;
}

.hero-name {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-dates {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-age {
    color: var(--yellow);
    font-weight: 600;
}

.hero-rank {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 215, 0, 0.2);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.view-all-heroes {
    text-align: center;
    margin-top: 50px;
}

/* === About Section === */
.about-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 38px;
    color: var(--yellow);
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.about-content .btn-secondary {
    margin-top: 20px;
}

/* === Page Header === */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    color: var(--yellow);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 45px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-count {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* === Filters === */
.filters-section {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 35px;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.filters-title {
    font-size: 22px;
    color: var(--yellow);
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.filters-form-advanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.age-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.filter-input,
.filter-select,
.filter-input-small {
    padding: 12px 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.filter-input-small {
    flex: 1;
    padding: 11px 14px;
}

.filter-input:focus,
.filter-select:focus,
.filter-input-small:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 10px;
}

.filter-btn-apply {
    padding: 13px 36px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn-apply:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.filter-btn-reset {
    padding: 13px 36px;
    background-color: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn-reset:hover {
    background-color: var(--yellow);
    color: var(--dark);
    transform: translateY(-2px);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
}

/* === Hero Detail Page === */

.marble-bg {
    background: url('../assets/images/black-marble2.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}



.heroes-catalog {
    padding: 60px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--yellow);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.back-link:hover {
    transform: translateX(-5px);
}

.hero-page {
    padding: 60px 0;
}

.hero-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    /* background: var(--white); */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hero-detail-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

.hero-detail-info h1 {
    font-size: 36px;
    color: var(--blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
}

.info-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
}

.hero-bio {
    margin-top: 30px;
}

.hero-bio h3 {
    font-size: 22px;
    color: var(--blue);
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-bio p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

/* === No Results === */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* === Footer - Мемориальный стиль === */
.footer {
    background: #000000;
    background: url('../assets/images/black-marble2.jpg');
    padding: 60px 0 30px;
    /* border-top: 3px solid var(--yellow); */
    position: relative;
    overflow: hidden;
}

/* Тонкая текстура для эффекта гранита/мрамора */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 215, 0, 0.02) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.01) 50%, transparent 52%);
    background-size: 3px 3px;
    pointer-events: none;
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.footer-section h4 {
    color: var(--yellow);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-size: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-section a:hover {
    color: var(--yellow);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    /* border-top: 1px solid rgba(255, 215, 0, 0.2); */
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

/* === 404 Page === */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 400;
    color: var(--yellow);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.error-page h1 {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.error-page p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* === About Page === */
.about-page {
    padding: 60px 0;
}

.about-hero {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.about-hero h1 {
    font-size: 42px;
    color: var(--yellow);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.about-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.about-content-section {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.about-content-section h2 {
    font-size: 28px;
    color: var(--yellow);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.about-content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* === Share Section === */
.share-section {
    margin-top: 40px;
}

.share-section h4 {
    font-size: 18px;
    color: var(--yellow);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
    padding: 12px 12px;
    min-width: 48px;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.twitter {
    background: #000000;
    color: white;
    padding: 12px 12px;
    min-width: 48px;
}

.share-btn.twitter:hover {
    background: #2c2c2c;
}

.share-btn.copy-link {
    background: var(--yellow);
    color: var(--blue);
}

.share-btn.copy-link:hover {
    background: var(--yellow-dark);
}

/* === QR Code Section === */
.hero-qr-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.qr-title {
    font-size: 16px;
    color: var(--yellow);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.qr-code-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.qr-code-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 10px;
}

.download-qr-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-qr-btn:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.download-qr-btn svg {
    fill: currentColor;
}


/* === Hero Detail Info Blocks === */
.hero-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-full-name {
    font-size: 36px;
    color: var(--yellow);
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-rank-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.info-block {
    padding: 0;
}

.info-block h3 {
    font-size: 16px;
    color: var(--yellow);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.info-block p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.dates-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 8px 0; */
}

.date-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.date-value {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.age-display {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 15px;
    color: var(--yellow);
    font-weight: 600;
}

.hero-tribute {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 215, 0, 0.15);
    border-left: 4px solid var(--yellow);
    border-radius: 6px;
}

.tribute-text {
    font-size: 18px;
    color: var(--yellow);
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.no-photo-large {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    color: var(--gray);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
}

/* === Responsive === */
@media (max-width: 968px) {
    .hero-detail {
        grid-template-columns: 1fr;
    }
    
    .hero-qr-section {
        margin-top: 20px;
    }
    
    .qr-code-image {
        max-width: 200px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-group {
        width: 100%;
        max-width: 100%;
    }

    .filter-input,
    .filter-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .age-range {
        flex-direction: column;
        gap: 8px;
    }

    .filter-input-small {
        width: 100%;
        max-width: 100%;
    }

    .filters-section {
        padding: 20px;
        margin: 0 10px 30px 10px;
    }

    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .hero-info-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--light-gray);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }

    .main-nav a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .ua-emblem svg {
        width: 32px;
        height: 45px;
    }

    .obolon-emblem {
        display: none;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo .subtitle {
        font-size: 11px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-section .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stats-video-section {
        height: 220px;
    }

    .stats-video-section .stat-number {
        font-size: 48px;
    }

    .stats-video-section .stat-label {
        font-size: 14px;
        margin-top: -18px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        border-radius: 8px;
    }

    .search-btn {
        border-radius: 8px;
    }

    .heroes-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-code-image {
        max-width: 180px;
    }
    
    .download-qr-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .filter-btn-apply,
    .filter-btn-reset {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .filters-section {
        padding: 15px;
        margin: 0 5px 30px 5px;
    }

    .age-range {
        flex-direction: row;
    }

    .filter-input-small {
        min-width: 0;
        flex: 1;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn.copy-link {
        width: 100%;
    }
}

/* ===================================
   Hero Description Section (Frontend)
   =================================== */

.hero-description-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding: 40px;
    background: rgba(30, 30, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-description-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #FFD700;
}

.hero-description-content h2:first-child {
    margin-top: 0;
}

.hero-description-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFF;
    margin-top: 25px;
    margin-bottom: 12px;
}

.hero-description-content p {
    margin-bottom: 1px;
    text-align: justify;
}

.hero-description-content ul,
.hero-description-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.hero-description-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.hero-description-content ul li {
    list-style-type: disc;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description-content ol li {
    list-style-type: decimal;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #FFD700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 0 8px 8px 0;
}

.hero-description-content a {
    color: #3b7dd6;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 125, 214, 0.3);
    transition: all 0.3s ease;
}

.hero-description-content a:hover {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

.hero-description-content strong {
    font-weight: 600;
    color: #FFD700;
}

.hero-description-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive для опису */
@media (max-width: 768px) {
    .hero-description-section {
        padding: 25px 20px;
        margin-top: 30px;
    }

    .hero-description-section .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero-description-content {
        font-size: 15px;
    }

    .hero-description-content h2 {
        font-size: 22px;
        margin-top: 25px;
    }

    .hero-description-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .hero-description-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
}

/* ===================================
   GALLERY & LIGHTBOX
   =================================== */
.hero-gallery-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding: 40px;
    background: rgba(30, 30, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-gallery-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.hero-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-gallery-item:hover {
    transform: scale(1.03);
    border-color: #FFD700;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.hero-gallery-item:hover img {
    opacity: 0.85;
}

.hero-gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(0, 0, 0, 0.25);
}

.hero-gallery-item:hover .hero-gallery-zoom {
    opacity: 1;
}

.hero-gallery-zoom svg {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* Lightbox */
.hero-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.hero-lightbox.active {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    user-select: none;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 52px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 10000;
    user-select: none;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-gallery-section {
        padding: 25px 16px;
    }
    .hero-gallery-section .section-title {
        font-size: 24px;
    }
    .hero-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    .lightbox-prev { left: 6px; padding: 8px 12px; font-size: 40px; }
    .lightbox-next { right: 6px; padding: 8px 12px; font-size: 40px; }
}
