.flags-divider {
    font-size: 40px;
    color: #d4af37;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Стили для выбора школы */
.school-option {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-option img {
    width: 50px;
    height: 35px;
    border-radius: 4px;
}

.school-option div {
    flex: 1;
}

/* Стили для выбора статуса */
.status-option {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Карточка участника */
.participant-card {
    background: linear-gradient(135deg, #1a3a5f, #2a4a7f);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.5s;
}

.participant-flag {
    width: 30px;
    height: 22px;
    border-radius: 4px;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 3px;
}

.participant-details {
    font-size: 12px;
    color: #d4af37;
}

.participant-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    background: #d4af37;
    color: #0a1a2f;
}

.participant-badge.student {
    background: #2a4a7f;
    color: #fff;
}

.participant-badge.teacher {
    background: #d4af37;
    color: #0a1a2f;
}


/* ==================== БЛОК ФАКТЫ ГЕНОЦИДА ==================== */

/* Контейнер для фактов */
.facts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 25px;
    margin-top: 30px;
}

/* Карточка факта */
.fact-card {
    background: linear-gradient(135deg, #1a2f4f 0%, #2a3f5f 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    height: 500px; /* Фиксированная высота */
    display: flex;
    flex-direction: column;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

/* Заголовок факта */
.fact-header {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #0a1a2f;
}

.fact-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.fact-title {
    color: #0a1a2f;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Контент факта */
.fact-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Скрываем выходящий контент */
}

/* Текст факта */
.fact-text {
    flex: 1;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify; /* Выравнивание по ширине */
    overflow-y: auto; /* Вертикальная прокрутка */
    padding-right: 10px;
    margin-bottom: 15px;
    hyphens: auto; /* Автоматические переносы */
    word-wrap: break-word; /* Перенос длинных слов */
}

/* Кастомный скроллбар */
.fact-text::-webkit-scrollbar {
    width: 8px;
}

.fact-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.fact-text::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.fact-text::-webkit-scrollbar-thumb:hover {
    background: #c09d2f;
}

/* Подвал факта */
.fact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 12px;
    flex-shrink: 0; /* Не сжимать */
}

.fact-source {
    color: #d4af37;
    font-style: italic;
    font-weight: bold;
}

.fact-date {
    color: #a0a0a0;
    background: rgba(212, 175, 55, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
}

/* Адаптивность для мобильных */
@media (max-width: 1200px) {
    .facts-container {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 768px) {
    .facts-container {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
    
    .fact-card {
        height: 450px; /* Меньше высота на мобильных */
    }
    
    .fact-icon {
        font-size: 36px;
    }
    
    .fact-title {
        font-size: 18px;
    }
    
    .fact-text {
        font-size: 13px;
    }
}

/* Эффект свечения для карточек */
.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.fact-card:hover::before {
    opacity: 1;
}

/* Анимация появления карточек */
.fact-card {
    animation: fadeInUp 0.6s ease-out;
}

.fact-card:nth-child(1) { animation-delay: 0.1s; }
.fact-card:nth-child(2) { animation-delay: 0.2s; }
.fact-card:nth-child(3) { animation-delay: 0.3s; }
.fact-card:nth-child(4) { animation-delay: 0.4s; }
.fact-card:nth-child(5) { animation-delay: 0.5s; }
.fact-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== БЛОК КАРТОЧКИ ПАМЯТИ ==================== */

/* Контейнер с прокруткой */
.cards-scroll-container {
    height: 600px; /* Фиксированная высота */
    overflow-y: auto; /* Вертикальная прокрутка */
    overflow-x: hidden;
    padding: 10px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Кастомный скроллбар для контейнера */
.cards-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.cards-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cards-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941f);
    border-radius: 5px;
    border: 2px solid rgba(26, 42, 79, 0.8);
}

.cards-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c09d2f, #a0801a);
}

/* Сетка карточек */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Карточка памяти */
.memory-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 520px; /* Фиксированная высота карточки */
    position: relative;
    border: 2px solid transparent;
}

.memory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
    border-color: #d4af37;
}

/* Флаг страны в углу карточки */
.card-country {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 2px solid #fff;
}

/* Фотография в карточке */
.card-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid #d4af37;
    background: linear-gradient(135deg, #1a3a5f, #2a4a7f);
    transition: transform 0.3s;
}

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

/* Контент карточки */
.card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Имя в карточке */
.card-name {
    font-size: 1.25em;
    font-weight: 700;
    color: #0a1a2f;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    line-height: 1.4;
}

/* Описание в карточке - с прокруткой */
.card-description {
    flex: 1;
    color: #444;
    font-size: 0.95em;
    line-height: 1.7;
    text-align: justify;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 15px;
    hyphens: auto;
    word-wrap: break-word;
    word-break: normal;
}

/* Скроллбар для описания */
.card-description::-webkit-scrollbar {
    width: 6px;
}

.card-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.card-description::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.card-description::-webkit-scrollbar-thumb:hover {
    background: #c09d2f;
}

/* QR-код в карточке */
.card-qr-container {
    text-align: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.card-qr-label {
    color: #0a1a2f;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-qr-code {
    width: 100px;
    height: 100px;
    border: 3px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    background: #fff;
    padding: 5px;
    transition: transform 0.3s;
}

.card-qr-code:hover {
    transform: scale(1.05);
}

/* Форма добавления карточки */
.card-form {
    display: none;
    margin-top: 25px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.4);
}

.form-label {
    font-weight: 700;
    color: #0a1a2f;
    display: block;
    margin-bottom: 12px;
    font-size: 1.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    margin: 8px 0 15px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 13px;
    margin: 10px 0 20px;
    font-style: italic;
}

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

.btn-save {
    padding: 14px 32px;
    background: linear-gradient(135deg, #d4af37, #c09d2f);
    color: #0a1a2f;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-cancel {
    padding: 14px 28px;
    background: linear-gradient(135deg, #555, #444);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #666, #555);
    transform: translateY(-2px);
}

/* Кнопка добавления карточки */
.add-card-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    padding: 16px 35px;
    background: linear-gradient(135deg, #d4af37, #c09d2f);
    color: #0a1a2f;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.add-card-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* Анимация появления карточек */
.memory-card {
    animation: cardFadeIn 0.5s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Загрузка */
.cards-grid .loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #d4af37;
    font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 900px) {
    .cards-scroll-container {
        height: 500px;
    }
    
    .memory-card {
        height: 480px;
    }
    
    .card-photo {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .cards-scroll-container {
        height: 450px;
    }
    
    .memory-card {
        height: 500px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== БЛОК КАРТА ПАМЯТИ ==================== */

/* Контейнер с прокруткой для карты */
.map-scroll-container {
    height: 500px; /* Фиксированная высота */
    overflow: auto; /* Прокрутка если карта не помещается */
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 10px;
}

/* Обёртка карты */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 800px; /* Минимальная ширина для удобства */
}

/* Контейнер iframe карты */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px; /* Фиксированная ширина для масштабирования */
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #1a2f4f, #2a3f5f);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
}

/* Информация о карте */
.map-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Легенда карты */
.map-legend {
    padding-right: 20px;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #e0e0e0;
    font-size: 14px;
}

.legend-marker {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.legend-marker.memorial { color: #d4af37; }
.legend-marker.ghetto { color: #8b7355; }
.legend-marker.execution { color: #c00000; }
.legend-marker.village { color: #8b4513; }

/* Инструкции */
.map-instructions ul {
    list-style-type: none;
    padding-left: 0;
}

.map-instructions li::before {
    content: "→ ";
    color: #d4af37;
    font-weight: bold;
}

/* Анимация маркеров на карте (визуальный эффект) */
@keyframes markerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Адаптивность карты */
@media (max-width: 1024px) {
    .map-info {
        grid-template-columns: 1fr;
    }
    
    .map-legend {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .map-container {
        width: 100%;
        min-width: auto;
    }
    
    .map-wrapper {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .map-scroll-container {
        height: 400px;
    }
    
    .map-container {
        height: 380px;
    }
    
    .map-info {
        padding: 15px;
    }
    
    .legend-item {
        font-size: 13px;
    }
}

/* Кастомный скроллбар для контейнера карты */
.map-scroll-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.map-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.map-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 5px;
    border: 2px solid rgba(26, 42, 79, 0.8);
}

.map-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c09d2f, #a0801a);
}

/* Эффект свечения для контейнера карты */
.map-scroll-container {
    position: relative;
}

.map-scroll-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-scroll-container:hover::before {
    opacity: 1;
}


/* ==================== БЛОК ВИДЕОЛЕКЦИИ ==================== */

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.video-card {
    background: linear-gradient(135deg, rgba(26, 42, 79, 0.9), rgba(42, 62, 99, 0.9));
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
    border-color: #d4af37;
}

.video-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.video-flag {
    width: 50px;
    height: 35px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-title {
    color: #d4af37;
    font-size: 1.4em;
    margin: 0;
    flex: 1;
}

/* Обёртка видео (16:9 aspect ratio) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Информация о видео */
.video-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.video-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 0.95em;
}

.author-icon {
    font-size: 20px;
}

.video-description {
    color: #a0a0a0;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    border-left: 3px solid #d4af37;
}

.video-duration {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

/* Дополнительные заметки */
.video-notes {
    margin-top: 30px;
    padding: 25px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.video-notes ul li {
    margin-bottom: 8px;
}

/* Адаптивность */
@media (max-width: 900px) {
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .video-header {
        flex-direction: column;
        text-align: center;
    }
    
    .video-title {
        font-size: 1.2em;
    }
}

@media (max-width: 600px) {
    .video-flag {
        width: 40px;
        height: 28px;
    }
    
    .video-title {
        font-size: 1.1em;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-description {
        font-size: 0.85em;
    }
}

/* Эффект загрузки видео */
.video-wrapper::before {
    content: '🎥 Загрузка видео...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.video-wrapper iframe {
    z-index: 2;
}

/* Анимация появления карточек */
.video-card {
    animation: fadeInUp 0.6s ease-out;
}

.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}