/* Общие сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-color: rgb(0, 152, 80);
    --main-color-dark: rgb(0, 122, 60);
    --main-color-light: rgba(0, 152, 80, 0.1);
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --sidebar-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Верхняя панель - стандартный размер */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: linear-gradient(135deg, var(--main-color), var(--main-color-dark));
    color: white;
}

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.institution-name .full-name {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.3;
}

.institution-name .short-name {
    font-size: 1.4em;
    font-weight: 700; /* Жирный и четкий текст как в МБУ ЦБ */
    line-height: 1.2;
}

.admin-login {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.admin-login:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Основной контейнер */
.main-container {
    display: flex;
    margin: 0;
    min-height: calc(100vh - 80px);
}

/* Боковые колонки */
.sidebar {
    flex: 0 0 280px;
    background: var(--sidebar-bg);
    padding: 25px 20px;
    border-right: 1px solid #eaeaea;
}

.sidebar.right-sidebar {
    border-right: none;
    border-left: 1px solid #eaeaea;
}

.vertical-nav ul {
    list-style: none;
}

.vertical-nav li {
    margin-bottom: 8px;
}

.vertical-nav a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9em;
}

.vertical-nav a:hover {
    background: var(--main-color-light);
    color: var(--main-color);
    transform: translateX(5px);
}

.vertical-nav i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
    color: var(--main-color);
}

/* Область основного контента */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Главная горизонтальная навигация - компактная под основным контентом */
.main-nav {
    background: var(--card-bg);
    padding: 0 30px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600; /* Более жирный шрифт */
    font-size: 0.95em;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-family: 'Montserrat', sans-serif; /* Шрифт без засечек */
}

.nav-item a:hover {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    background: var(--main-color-light);
}

/* Выпадающее подменю */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    list-style: none;
    border-radius: var(--border-radius);
    z-index: 1001;
    padding: 8px 0;
    border: 1px solid #eaeaea;
}

.dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: none;
    font-size: 0.9em;
    font-weight: 500;
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--main-color-light);
    border-bottom: none;
}

.with-dropdown:hover .dropdown-menu {
    display: block;
}

/* Центральный контент */
.content {
    flex: 1;
    padding: 30px;
    background: var(--bg-color);
}

/* Переработанный слайдер как отдельный блок */
.afisha-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
    background: var(--sidebar-bg);
}

.section-header h2 {
    color: var(--main-color);
    font-size: 1.4em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    background: var(--main-color-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--main-color);
}

.slider-btn:hover {
    background: var(--main-color);
    color: white;
    transform: scale(1.1);
}

.slider-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
}

.slide-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.slide-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.slide-btn {
    align-self: flex-start;
    background: var(--main-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.slide-btn:hover {
    background: var(--main-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 80, 0.3);
}

.slider-dots {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    background: var(--sidebar-bg);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--main-color);
    transform: scale(1.2);
}

/* Блок новостей */
.news-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eaeaea;
}

.news-section h2 {
    margin-bottom: 25px;
    color: var(--main-color);
    font-size: 1.4em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-color-light);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--sidebar-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    flex: 0 0 120px;
}

.news-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.news-content time {
    color: var(--text-light);
    font-size: 0.85em;
    margin-bottom: 10px;
    display: block;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.read-more {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.read-more:hover {
    color: var(--main-color-dark);
}

/* Виджеты правой панели */
.calendar-widget, .feedback-widget {
    margin-bottom: 30px;
}

.calendar-widget h3, .feedback-widget h3 {
    margin-bottom: 20px;
    color: var(--main-color);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.calendar-placeholder {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 2px dashed #ddd;
}

/* Форма обратной связи */
#feedback-form input, #feedback-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    transition: var(--transition);
    background: var(--card-bg);
}

#feedback-form input:focus, #feedback-form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 152, 80, 0.1);
}

#feedback-form button {
    width: 100%;
    padding: 14px;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

#feedback-form button:hover {
    background: var(--main-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 80, 0.3);
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 5% 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    font-family: 'Montserrat', sans-serif;
}

/* Кнопка консультанта */
.consultant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a76a8, #3b5998);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    font-size: 1.5em;
    transition: var(--transition);
}

.consultant-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 89, 152, 0.4);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .sidebar.right-sidebar {
        border-left: none;
        border-top: 1px solid #eaeaea;
    }
    
    .slide {
        flex-direction: column;
    }
    
    .slide img, .slide-content {
        width: 100%;
    }
    
    .slide img {
        height: 200px;
    }
    
    .slide-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item a {
        padding: 12px 20px;
        border-bottom: 1px solid #eaeaea;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .consultant-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .content {
        padding: 20px;
    }
    
    .main-nav {
        padding: 0 20px;
    }
}
/* ===== СТИЛИ ДЛЯ ЭТАПА 2 ===== */

/* Календарь событий */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.calendar-header h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

.calendar-nav {
    background: var(--main-color-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--main-color);
}

.calendar-nav:hover {
    background: var(--main-color);
    color: white;
}

.calendar-grid {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--sidebar-bg);
    border-bottom: 1px solid #eaeaea;
}

.calendar-weekdays div {
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
    color: var(--text-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #eaeaea;
}

.calendar-day {
    background: var(--card-bg);
    padding: 8px 5px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-day:hover {
    background: var(--main-color-light);
}

.calendar-day.today {
    background: var(--main-color-light);
    border: 2px solid var(--main-color);
}

.calendar-day.has-events {
    background: #fff8e1;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.day-number {
    font-weight: 600;
    font-size: 0.9em;
}

.event-dots {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.event-dots::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 50%;
}

.date-events {
    margin-top: 15px;
    padding: 15px;
    background: var(--sidebar-bg);
    border-radius: var(--border-radius);
    border: 1px solid #eaeaea;
}

.date-events h5 {
    margin: 0 0 10px 0;
    color: var(--main-color);
    font-size: 1em;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    border-left: 3px solid var(--main-color);
}

.event-item.special {
    border-left-color: #e74c3c;
}

.event-item.children {
    border-left-color: #3498db;
}

.event-time {
    font-weight: 600;
    font-size: 0.8em;
    color: var(--main-color);
    min-width: 50px;
}

.event-title {
    font-size: 0.9em;
    flex: 1;
}

/* Форма обратной связи с ошибками */
#feedback-form input.error,
#feedback-form textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.8em;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

/* Мобильное меню */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        box-shadow: var(--shadow-hover);
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item a {
        padding: 15px 20px;
        border-bottom: 1px solid #eaeaea;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
    }

    .with-dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Ленивая загрузка */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Уведомления */
.notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Адаптивность календаря */
@media (max-width: 480px) {
    .calendar-day {
        min-height: 50px;
        padding: 5px 2px;
        font-size: 0.8em;
    }
    
    .day-number {
        font-size: 0.8em;
    }
}

/* Улучшенный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--main-color-dark);
}
/* ===== СТРОКА ПОИСКА ===== */
.search-container {
    position: relative;
    flex: 0 1 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Результаты поиска */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--main-color-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 0.95em;
}

.search-result-preview {
    color: var(--text-light);
    font-size: 0.85em;
    line-height: 1.4;
}

.search-result-section {
    display: inline-block;
    background: var(--main-color-light);
    color: var(--main-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 5px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* ===== БЛОК МИНИСТЕРСТВА КУЛЬТУРЫ ===== */
.ministry-iframe-wrapper {
    margin-top: 30px;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    cursor: pointer;
}

.iframe-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iframe-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.iframe-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.iframe-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.iframe-content.expanded {
    max-height: 800px;
}

.iframe-placeholder {
    padding: 30px;
    text-align: center;
    color: var(--text-light);
}

.iframe-instructions {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background: var(--sidebar-bg);
    border-radius: var(--border-radius);
}

.iframe-instructions h4 {
    color: var(--main-color);
    margin-bottom: 15px;
}

.iframe-instructions ol {
    margin-left: 20px;
}

.iframe-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Стили для встроенного iframe */
.ministry-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ НОВЫХ ЭЛЕМЕНТОВ ===== */
@media (max-width: 1024px) {
    .search-container {
        flex: 0 1 300px;
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-container {
        flex: 1 1 100%;
        order: 3;
        margin: 10px 0 0 0;
    }
    
    .search-input {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .iframe-header {
        padding: 12px 15px;
    }
    
    .iframe-header h3 {
        font-size: 1em;
    }
    
    .iframe-placeholder {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .iframe-instructions {
        padding: 15px;
    }
    
    .iframe-instructions ol {
        margin-left: 15px;
    }
}

/* Анимация для поиска */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Стили для ссылок на разделы библиотек */
.tab-link {
    position: relative;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background: var(--main-color-light);
    color: var(--main-color);
    transform: translateX(5px) scale(1.02);
}

.tab-link .external-icon {
    transition: all 0.3s ease;
}

.tab-link:hover .external-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Анимация загрузки страницы */
@keyframes pageTransition {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: pageTransition 0.5s ease;
}
/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    background: var(--sidebar-bg);
    border-bottom: 1px solid #eaeaea;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
}

.breadcrumbs-nav {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
    font-size: 0.9em;
    margin-left: 8px;
    opacity: 0.6;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: var(--main-color);
    background: var(--main-color-light);
}

.breadcrumb-link i {
    font-size: 0.8em;
    opacity: 0.7;
}

.breadcrumb-link.active {
    color: var(--main-color);
    font-weight: 600;
}

.breadcrumb-link.active i {
    opacity: 1;
}

.breadcrumb-current {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 600;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 20px;
    }
    
    .breadcrumbs-list {
        gap: 4px;
    }
    
    .breadcrumb-link {
        font-size: 0.85em;
        padding: 3px 6px;
    }
    
    .breadcrumb-link span {
        display: none;
    }
    
    .breadcrumb-link i {
        margin-right: 0;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 10px 15px;
    }
    
    .breadcrumb-link {
        font-size: 0.8em;
    }
}

/* Активные ссылки в навигации */
.nav-item a.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    background: var(--main-color-light);
}

.dropdown-menu li a.active {
    color: var(--main-color);
    background: var(--main-color-light);
    font-weight: 600;
}