/* СБРОС НАСТРОЕК ПО УМОЛЧАНИЮ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ЦВЕТОВАЯ СХЕМА - можно легко поменять под брендбук */
    --sidebar-bg: #2c3e50; /* Темно-синий фон */
    --sidebar-text: #ecf0f1; /* Светлый текст */
    --sidebar-hover: #34495e; /* Цвет фона при наведении */
    --accent-color: #e74c3c; /* Акцентный цвет (красный) */
    --main-bg: #f5f6fa; /* Светлый фон для контента */
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--main-bg);
}

h2 {
    margin-top:0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
}

/* ---------------- СТИЛИ БОКОВОГО МЕНЮ ---------------- */
.sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar__logo {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar__logo a {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.sidebar__logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sidebar__nav {
    flex-grow: 1; /* Растягивает навигацию на всё доступное пространство */
    padding: 1rem 0;
}

.sidebar__nav ul {
    list-style: none;
}

.nav-item {
    margin: 5px 0.8rem;
    border-radius: 8px;
    overflow: hidden;
}

.nav-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-item a:hover {
    background-color: var(--sidebar-hover);
}

.nav-item.active a {
    background-color: var(--accent-color);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-text {
    white-space: nowrap;
}

.sidebar__footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar_footer_logo {
    width:50px;
    height:30px;
    flex-shrink:0;	
}

.exit-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.exit-button:hover {
    background-color: var(--sidebar-hover);
    text-decoration: none;
}

/* ---------------- ОСНОВНАЯ ОБЛАСТЬ КОНТЕНТА ---------------- */
.main-content {
    flex-grow: 1;
    margin-left: 300px; /* ОБЯЗАТЕЛЬНО! Равно ширине сайдбара */
    padding: 2rem;
    padding-top: 1rem;
    min-height: 100vh;
}

/* Стили для заголовка на главной */
.main-content h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
}

/* Уменьшаем отступы секций */
.video-section,
.gallery-section {
    margin: 1.5rem 0; /* Уменьшили с 2rem */
    padding: 1.5rem; /* Уменьшили с 2rem */
}

/* ---------------- СТИЛИ ФУТЕРА ---------------- */
.footer {
    background-color: #2c3e50; /* Темный фон, как у сайдбара */
    color: #ecf0f1; /* Светлый текст */
    padding: 1.5rem 2rem;
    margin-top: auto; /* Это важно для прижатия к низу, если контента мало */
    font-size: 0.9rem;
    margin-left: 50px;
}

.footer__section {
    max-width: 300px;
    margin: 0 auto;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Позволяет элементам переноситься на маленьких экранах */
    gap: 1rem; /* Отступ между блоками при переносе */
    max-width: 1200px;
    margin: 0 auto;
}

.footer__section {
    text-align: center;
}

.footer__section p {
    margin: 0;
}

.footer a {
    color: #3498db; /* Цвет ссылок */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}



/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 768px) {
    .sidebar {
        width: 70px; /* Сворачиваем в узкую полоску */
    }
    .sidebar__logo span,
    .nav-text,
    .exit-button span {
        display: none; /* Прячем текст */
    }
    .sidebar__logo {
        padding: 1rem 0.5rem;
    }
    .sidebar__logo img {
        width: 35px;
        height: 35px;
    }
    .nav-item a {
        justify-content: center;
        padding: 1rem;
    }

     .exit-button img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    .sidebar__footer {
        padding: 0.8rem;
    }
    
    .exit-button {
        padding: 0.4rem;
        justify-content: center;
    }

    .main-content {
        margin-left: 70px; /* Уменьшаем отступ */
    }
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__section {
        max-width: 250px;
    }
    
    .footer__section p {
        font-size: 0.85rem;
    }
}

/* Стили для основной галереи */
.gallery-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Стили для фотопотока */
.photo-stream {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

.stream-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.stream-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #e74c3c;
    z-index: 2;
}

.stream-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-item:hover img {
    transform: scale(1.1);
}

/* Заголовок для фотопотока */
.photo-stream::before {
    content: "Все фотографии";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Анимация для фотопотока */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stream-item:nth-child(odd) {
    animation: float 3s ease-in-out infinite;
}

.stream-item:nth-child(even) {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Адаптивность для фотопотока */
@media (max-width: 768px) {
    .photo-stream {
        gap: 0.6rem;
        padding: 1rem;
    }
    
    .stream-item {
        width: 60px;
        height: 60px;
    }
    
    .photo-stream::before {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
        top: -12px;
    }
}

@media (max-width: 480px) {
    .photo-stream {
        gap: 0.4rem;
        padding: 0.8rem;
    }
    
    .stream-item {
        width: 50px;
        height: 50px;
    }
    
    .gallery-main {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Дополнительные стили для hover-эффектов */
.gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 200px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ---------------- СТИЛИ ДЛЯ КАСТОМНОГО ВИДЕОПЛЕЕРА ---------------- */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.video-controls button:hover {
    background-color: rgba(255,255,255,0.2);
}

.progress {
    flex-grow: 1;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    cursor: pointer;
}

.progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
}

.progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
}

.volume {
    width: 60px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    cursor: pointer;
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
}

.volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
}

.time {
    color: white;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

/* Стили для состояния воспроизведения */
.playing .play-pause {
    content: "⏸";
}

/* Адаптивность для видеоплеера */
@media (max-width: 768px) {
    .video-controls {
        padding: 10px;
        gap: 8px;
    }
    
    .video-controls button {
        font-size: 14px;
        padding: 3px;
    }
    
    .time {
        font-size: 11px;
        min-width: 70px;
    }
    
    .volume {
        width: 40px;
    }
}

/* ---------------- СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ ---------------- */
.contact-info {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.contact-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-card p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left-color: #e74c3c;
}

.contact-item h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #e74c3c;
    text-decoration: underline;
}


/* Стили для телефонов */
.phone-numbers {
    display: grid;
    gap: 0.5rem;
}

.phone-numbers p {
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    margin: 0.3rem 0 !important;
}


/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .contact-info {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .phone-numbers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item::before {
        display: block;
        margin-bottom: 0.5rem;
    }
}



/* ==================== СТИЛИ ДЛЯ РАСПИСАНИЯ ==================== */

.schedule-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.schedule-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Поиск и управление */
.schedule-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.schedule-search {
    flex: 1;
    min-width: 250px;
}

.schedule-search input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.schedule-search input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.schedule-month-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-width: 250px;
}

.month-btn {
    background: #2c3e50;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.month-btn:hover {
    background: #34495e;
}

.month-display {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

/* Дерево групп */
.schedule-tree {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 700px;
    overflow-y: auto;
}

.jstree-default .jstree-anchor {
    white-space: normal !important;
    height: auto !important;
    line-height: 1.4;
    padding: 4px 8px;
    margin: 2px 0;
}

.jstree-default .jstree-clicked {
    background: #3498db !important;
    color: white !important;
    border-radius: 4px;
}

.jstree-default .jstree-hovered {
    background: #e3f2fd !important;
    border-radius: 4px;
}

/* Таблица расписания */
.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.schedule-table th {
    background: #2c3e50;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
}

.schedule-table td {
    padding: 0.6rem;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    vertical-align: top;
}

.schedule-table tr.day-start td {
    border-top: 3px solid #27ae60;
    background-color: #f8fff9;
}

.schedule-table tr.day-start td:first-child {
    background: #27ae60;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.schedule-table tr.active td {
    background-color: #f8f9fa;
    color: #6c757d;
}

.schedule-table tr:hover td {
    background-color: #e3f2fd;
}

.schedule-table .text-success {
    color: #27ae60 !important;
}

.schedule-table .text-muted {
    color: #6c757d !important;
}

/* Состояния занятий */
.lesson-empty {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.lesson-self-work {
    background-color: #fff3cd;
    color: #856404;
}

.lesson-modified {
    background-color: #d4edda;
    color: #155724;
}

/* Адаптивность */
@media (max-width: 968px) {
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-search,
    .schedule-month-nav {
        min-width: 100%;
    }
    
    .schedule-table {
        font-size: 0.75rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.4rem;
    }
}

@media (max-width: 768px) {
    .schedule-container {
        padding: 0.5rem;
    }
    
    .schedule-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .schedule-table {
        min-width: 800px;
    }
    
    .main-content {
        margin-left: 70px !important;
        padding: 0.5rem !important;
    }
}

/* Загрузка */
.schedule-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.schedule-loading::after {
    content: "⏳ Загрузка расписания...";
}

.schedule-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Иконки */
.fas {
    font-size: 0.8rem;
}

/* Кастомные стили для jstree */
.jstree-default .jstree-icon {
    color: #2c3e50;
}

.jstree-default .jstree-open > .jstree-ocl {
    background-position: -36px -4px;
}

.jstree-default .jstree-closed > .jstree-ocl {
    background-position: -4px -4px;
}

.jstree-default .jstree-leaf > .jstree-ocl {
    background-position: -68px -4px;
}

/* Layout для расписания */
.schedule-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 968px) {
    .schedule-layout {
        grid-template-columns: 1fr;
    }
    
    .schedule-tree {
        max-height: 250px;
    }
}

/* Убираем стандартные стили Bootstrap */
.schedule-table-container .table {
    margin-bottom: 0;
}

.schedule-table-container .table-bordered {
    border: none;
}

.schedule-table-container .table-hover tbody tr:hover {
    background-color: transparent;
}

/* ==================== СТИЛИ ДЛЯ СТРАНИЦЫ РЕСУРСОВ ==================== */

.resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.resources-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e9ecef;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.resource-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.resource-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.resource-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.resource-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.modal-qr {
    width: 220px;
    height: 220px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.modal-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    text-align: center;
}

.modal-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-link-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resources-container {
        padding: 1.5rem;
    }
    
    .resource-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 2rem;
    }
    
    .modal-body {
        gap: 1.5rem;
    }
    
    .modal-qr {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .resources-container {
        padding: 1rem;
    }
    
    .resource-card {
        padding: 1.2rem;
    }
    
    .resource-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        border-radius: 15px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-qr {
        width: 150px;
        height: 150px;
    }
}

/* Стили для ссылок-изображений */
.resource-image-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.resource-image-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.resource-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-title-link:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Убедитесь, что изображения внутри ссылок выглядят хорошо */
.resource-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.resource-image-link:hover .resource-image img {
    transform: scale(1.1);
}