/* Обычная ссылка */
a {
  color: #0066cc; /* синий */
  text-decoration: none; /* убрать подчёркивание */
}

/* Посещённая ссылка */
a:visited {
  color: #551a8b; /* фиолетовый */
}

/* При наведении курсора */
a:hover {
  color: #ff6600; /* оранжевый */
  text-decoration: underline; /* вернуть подчёркивание */
}

/* В момент нажатия (клика) */
a:active {
  color: #cc0000; /* красный */
}
img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        /* --- 1. БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
        :root {
            --primary-blue: #0056b3;       /* Основной синий цвет */
            --hover-blue: #003d80;         /* Темно-синий для наведения */
            --bg-light: #f4f6f8;           /* Светлый фон страницы */
            --text-dark: #333333;          /* Основной цвет текста */
            --border-color: #d1d5db;       /* Цвет границ */
            --white: #ffffff;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }

        a { text-decoration: none; }
        ul { list-style: none; padding: 0; margin: 0; }

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

        /* --- 2. ШАПКА (HEADER) --- */
        .site-header {
            background-color: var(--white);
            border-bottom: 3px solid var(--primary-blue);
            padding: 20px 0;
                	width: 100vw;
      	position: relative;
  		left: 0;
  		right: 0;
     	max-width: 100%;
        }

        .header-content {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }

        /* Базовые стили логотипа */
.logo-placeholder {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    border-radius: 4px;
    flex-shrink: 0; /* Не давать сжиматься */
    line-height: 0; /* Убираем лишние отступы */
}
.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


        .school-title h1 {
            margin: 0;
            font-size: 1.5rem;
            color: var(--text-dark);
            text-transform: uppercase;
        }

        .school-title p {
            margin: 5px 0 0;
            color: #666;
            font-size: 0.9rem;
        }
        @media (max-width: 768px) {
    .site-header {
        padding: 10px 0; /* Уменьшаем отступы */
      	width: 100vw;
      	position: relative;
  		left: 0;
  		right: 0;
     	max-width: 100%;
    }

    .header-content {
        flex-wrap: wrap; /* Разрешаем перенос элементов */
        justify-content: center; /* Центрируем содержимое */
        text-align: center;
        gap: 10px; /* Уменьшаем расстояние между элементами */
    }

    .logo-placeholder {
        width: 50px !important; /* Уменьшаем логотип */
        height: 50px !important;
        min-width: 50px; /* Фиксируем минимальный размер */
        flex-shrink: 0; /* Запрещаем сжиматься */
        margin: 0 auto; /* Центрируем логотип */
    }

    .school-title {
        width: 100%; /* Название на всю строку */
        text-align: center;
    }

    .school-title h1 {
        font-size: 1.1rem !important; /* Уменьшаем шрифт */
        line-height: 1.3;
    }

    .school-title p {
        font-size: 0.75rem !important; /* Уменьшаем подзаголовок */
    }

    /* Кнопка меню справа сверху */
    .mobile-menu-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-left: 0;
    }
}

        /* --- 3. ГЛАВНОЕ МЕНЮ (NAV) --- */
        .main-nav {
            background-color: var(--white);
            border-bottom: 1px solid var(--border-color);
            position: relative;
        }

        .nav-list {
            display: flex;
            flex-wrap: wrap;
        }

        .nav-item a {
            display: block;
            padding: 15px 20px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: background 0.3s, color 0.3s;
            border-bottom: 3px solid transparent;
        }

        /* Подсветка кнопок (синий оттенок) */
        .nav-item a:hover, .nav-item a.active {
            background-color: #eef4fb;
            color: var(--primary-blue);
            border-bottom: 3px solid var(--primary-blue);
        }

        /* Кнопка гамбургера (скрыта на ПК) */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: 1px solid var(--primary-blue);
            color: var(--primary-blue);
            padding: 10px;
            cursor: pointer;
            font-size: 1.2rem;
            margin-left: auto;
        }

        /* --- 4. ОСНОВНОЙ КОНТЕНТ + САЙДБАР --- */
        .layout-wrapper {
            display: grid;
            grid-template-columns: 280px 1fr; /* Сайдбар фиксирован, контент резиновый */
            gap: 30px;
            margin-top: 30px;
            margin-bottom: 50px;
        }

        /* Боковое меню (Сайдбар) */
        .sidebar {
            background: var(--white);
            border: 1px solid var(--border-color);
            padding: 20px;
            height: fit-content;
        }

        .sidebar-title {
            font-size: 1.1rem;
            border-bottom: 2px solid var(--primary-blue);
            padding-bottom: 10px;
            margin-bottom: 15px;
        }

        .sidebar-list li {
            border-bottom: 1px solid #eee;
        }

        .sidebar-list a {
            display: block;
            padding: 10px 5px;
            font-size: 0.9rem;
            color: #555;
            transition: 0.2s;
        }

        .sidebar-list a:hover {
            color: var(--primary-blue);
            padding-left: 10px; /* Эффект сдвига при наведении */
        }

        /* Основной контент */
        .main-content {
            background: var(--white);
            padding: 30px;
            border: 1px solid var(--border-color);
        }

        .news-item {
            margin-bottom: 30px;
            border-bottom: 1px dashed var(--border-color);
            padding-bottom: 20px;
        }
        .news-date {
            color: #888;
            font-size: 0.85rem;
        }
        .news-title {
            color: var(--primary-blue);
            margin: 5px 0;
        }

        /* --- 5. ФУТЕР (FOOTER) --- */
        .site-footer {
            background-color: #2c3e50; /* Темный строгий фон */
            color: #ecf0f1;
            padding: 40px 0;
            margin-top: auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .footer-col h3 {
            border-bottom: 2px solid var(--primary-blue);
            padding-bottom: 10px;
            margin-top: 0;
            font-size: 1.1rem;
        }

        .footer-col p {
            margin: 5px 0;
            font-size: 0.95rem;
        }

        /* --- 6. АДАПТИВНОСТЬ (MOBILE) --- */
        @media (max-width: 768px) {
            .layout-wrapper {
                grid-template-columns: 1fr; /* Одна колонка */
            }

            /* Скрываем главное меню и показываем кнопку */
            .mobile-menu-btn {
                display: block;
            }

            .nav-list {
                display: none; /* Скрыто по умолчанию */
                flex-direction: column;
                background: var(--white);
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                z-index: 100;
            }

            .nav-list.open {
                display: flex;
            }

            .nav-item a {
                border-bottom: 1px solid #eee;
            }

            /* Скрываем сайдбар под кнопку на мобильном */
            .sidebar {
                display: none; /* Скрыт по умолчанию */
            }
            
            .sidebar.active {
                display: block;
                margin-bottom: 20px;
            }

            .mobile-sidebar-toggle {
                display: block;
                width: 100%;
                padding: 15px;
                background-color: var(--primary-blue);
                color: white;
                border: none;
                text-align: left;
                font-weight: bold;
                cursor: pointer;
                margin-bottom: 20px;
            }
        }

        @media (min-width: 769px) {
            .mobile-sidebar-toggle {
                display: none;
            }
        }
        /* --- СТИЛИ ДЛЯ БАННЕРА В САЙДБАРЕ --- */

.sidebar-banner {
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.sidebar-banner a {
    display: block;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block; /* Убирает лишний отступ снизу у картинки */
}

/* Текст поверх баннера (опционально) */
.banner-text {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Эффекты при наведении */
.sidebar-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,86,179,0.3);
}

.sidebar-banner a:hover .banner-text {
    background-color: var(--hover-blue);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .sidebar-banner {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}
/* === БЛОК ПРИВЕТСТВИЯ === */
.welcome-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.director-greeting {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}
.greeting-text {
    text-align: justify;    /* ВЫРАВНИВАНИЕ ПО ШИРИНЕ */
    flex-grow: 1;           /* Текст занимает всё доступное место */
    line-height: 1.6;       /* Межстрочный интервал для читаемости */
}
/* --- ОТСТУПЫ ПЕРВОЙ СТРОКИ (КРАСНАЯ СТРОКА) --- */

/* Базовый отступ для всех абзацев в контенте */
.main-content p {
    text-indent: 1.5em;        /* Стандартный отступ (≈25-30px) */
    margin-bottom: 1em;        /* Отступ между абзацами */
    text-align: justify;       /* Выравнивание по ширине (опционально) */
}

/* Исключения: убираем отступ у первого абзаца после заголовка */
.main-content h1 + p,
.main-content h2 + p,
.main-content h3 + p,
.main-content h4 + p {
    text-indent: 0;
}

/* Исключения: заголовки, списки и цитаты не нуждаются в отступе */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content ul,
.main-content ol,
.main-content blockquote,
.main-content li {
    text-indent: 0;
}
/* Стили для кнопок фильтрации */
 .filter-buttons {
 margin-bottom: 30px;
 text-align: center;
 }

 .filter-btn {
 padding: 10px 20px;
 margin: 0 5px 10px 5px;
 cursor: pointer;
 border: 1px solid #ccc;
 background-color: #f0f0f0;
 border-radius: 5px;
 transition: 0.3s;
 font-size: 14px;
 }

 .filter-btn:hover {
 background-color: #e0e0e0;
 }

 .filter-btn.active {
 background-color: #007bff;
 color: white;
 border-color: #007bff;
 }

 /* Сетка для карточек */
 .teachers-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
 gap: 20px;
 width: 100%;
 }

 /* Карточка учителя */
 .teacher-card {
 border: 1px solid #ddd;
 padding: 20px;
 border-radius: 8px;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
 background: white;
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 }

.teacher-photo {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Было: cover */
  object-position: top; /* Чтобы голова не обрезалась, если пропорции не совпадают */
}

 .teacher-photo.placeholder {
 background: #f5f5f5;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #999;
 font-size: 4em;
 }

 .teacher-name {
 font-size: 1.1em;
 margin: 10px 0;
 font-weight: 600;
 }

 .teacher-name a {
 color: #333;
 text-decoration: none;
 transition: color 0.3s;
 }

 .teacher-name a:hover {
 color: #007bff;
 text-decoration: underline;
 }

 .teacher-position {
 color: #666;
 font-size: 0.9em;
 line-height: 1.4;
 margin-top: 5px;
 text-align: center;
 width: 100%;
 }

 .hide {
 display: none;
 }

 @media (max-width: 768px) {
 .teachers-grid {
 grid-template-columns: 1fr;
 }
 }
.teachers-section .teacher-card .teacher-position {
 text-indent: 0;
}
/* ===== Ссылки в футере (тёмный фон) ===== */
footer-col a,
.footer-col a,
#footer-col a {
  color: #ffffff !important;           /* Белый цвет для читаемости */
  text-decoration: none;
}

footer-col a:hover,
.footer-col a:hover,
#footer-col a:hover {
  color: #ffcc00 !important;           /* Акцент при наведении */
  text-decoration: underline;
}

footer-col a:visited,
.footer-col a:visited,
#footer-col a:visited {
  color: #e0e0e0 !important;           /* Чуть приглушённый для посещённых */
}

footer-col a:focus,
.footer-col a:focus,
#footer-col a:focus {
  outline: 2px solid #ffcc00;          /* Видимый фокус для доступности */
  outline-offset: 2px;
}
.teacher-p-photo {
    float: left !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 25px 0 0 !important;
}

.teacher-p-photo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
@media (max-width: 768px) {
    .teacher-p-photo {
        float: none !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
}