/* =========================================
   НОВЫЙ ДИЗАЙН testirovanie.by
   Чистый, современный, адаптивный
   ========================================= */

:root {
    /* ===== ОСНОВНАЯ ПАЛИТРА (бренд «Высший балл») ===== */
    --primary: #ff2132;           /* Основной красный бренда */
    --primary-dark: #d4001f;      /* Темная версия - для футера, темных блоков */
    --primary-darker: #a30018;    /* Еще темнее - для очень темных элементов */
    --primary-light: #ff535a;     /* Светлая версия - для hover, подсветок */
    --primary-lighter: #ffd9dc;   /* Очень светлая - для фонов */
    
    /* ===== КОМПЛЕМЕНТАРНЫЕ ЦВЕТА (нейтральные серые) ===== */
    --secondary: #3a3a3a;         /* Тёмно-серый - нейтральный */
    --secondary-dark: #222222;    /* Почти чёрный */
    --secondary-light: #545454;   /* Светло-серый */
    
    /* ===== АКЦЕНТНЫЕ ЦВЕТА ===== */
    --accent: #f59e42;            /* Теплый оранжевый - для CTA кнопок */
    --accent-dark: #d4812a;       /* Темный оранжевый */
    --accent-light: #ffb366;      /* Светлый оранжевый */
    
    /* ===== ФУНКЦИОНАЛЬНЫЕ ЦВЕТА ===== */
    --success: #4CAF50;           /* Зеленый успех */
    --info: #2196F3;              /* Голубой информация */
    --warning: #FF9800;           /* Оранжевый предупреждение */
    --danger: #F44336;            /* Красный опасность */
    
    /* ===== НЕЙТРАЛЬНЫЕ ЦВЕТА ===== */
    --dark: #2b2b2b;              /* Очень темный нейтральный */
    --text-dark: #2D2D2D;         /* Основной текст */
    --text-light: #6B6B6B;        /* Второстепенный текст */
    --text-lighter: #999999;      /* Еще светлее */
    --white: #FFFFFF;             /* Белый */
    --bg-light: #f8f8f9;          /* Светлый нейтральный фон */
    --border: #e6e6e8;            /* Нейтральная граница */
    
    /* Размеры (сайдбар не больше ~22rem — иначе на широких экранах и при крупном системном масштабе «съедает» половину макета) */
    --sidebar-width: 30%;
    --sidebar-max-width: 22rem;
    --topbar-height: 70px;
    --container-width: 94%;
    
    /* Тени */
    --shadow: 0 0.125em 0.5em rgba(0,0,0,0.1);
    --shadow-hover: 0 0.25em 1em rgba(0,0,0,0.15);
    --shadow-lg: 0 0.5em 2em rgba(0,0,0,0.2);
}

/* =========================================
   БАЗОВЫЕ СТИЛИ
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Единая база: уважаем настройки браузера/ОС, без дополнительного «наддува» текста */
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ТИПОГРАФИКА ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-darker);
    margin-bottom: 0.75em;
}

/* Заголовки: только rem — при зуме браузера/ОС растут предсказуемо, без лишней привязки к ширине окна (vw) */
h1 {
    font-size: 2.35rem;
    color: var(--primary-dark);
}

h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

h4 {
    font-size: 1.35rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1em;
    font-weight: 600;
}

@media (max-width: 600px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.45rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.05rem; }

    .page-title { font-size: 1.85rem; }
    .schedule-title { font-size: 1.9rem; }
    .pricing-header .section-title { font-size: 1.85rem; }
}

p {
    margin-bottom: 1em;
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-decoration-thickness: 0.125em;
    text-underline-offset: 0.25em;
}

strong, b {
    font-weight: 700;
    color: var(--primary-darker);
}

em, i {
    font-style: italic;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.75em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

blockquote {
    margin: 2em 0;
    padding: 1.75em 2em;
    border-left: 0.375em solid var(--primary);
    background: linear-gradient(135deg, 
        var(--primary-lighter) 0%, 
        rgba(255,255,255,0.5) 50%,
        transparent 100%
    );
    font-style: italic;
    color: var(--text-dark);
    border-radius: 0 0.75em 0.75em 0;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.08);
    position: relative;
    font-size: 1.0625em;
    line-height: 1.8;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 0.25em;
    left: 0.25em;
    font-size: 4em;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote p {
    margin-bottom: 0.75em;
    position: relative;
    z-index: 1;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===== СЧЁТЧИК ДО ЦЭ ===== */

.ce-countdown-container {
    margin: 2em 0;
    padding: 1.5em;
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
    border-radius: 1em;
    box-shadow: 0 0.5em 2em rgba(0,0,0,0.2);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ce-countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 15em;
    height: 15em;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ce-countdown-header {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.ce-icon {
    width: 2.75em;
    height: 2.75em;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    box-shadow: 0 0.25em 1em rgba(245, 158, 66, 0.5);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0.25em 1em rgba(245, 158, 66, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0.5em 1.5em rgba(245, 158, 66, 0.7);
    }
}

.ce-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.ce-countdown-display {
    text-align: center;
    padding: 1.25em 1em;
    background: rgba(255,255,255,0.1);
    border-radius: 0.75em;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25em;
    color: var(--white);
    text-shadow: 0 0.125em 0.5em rgba(0,0,0,0.3);
}

.countdown-number small {
    font-size: 0.35em;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 0.25em;
}

.time-part {
    display: inline-block;
    margin: 0 0.25em;
}

.time-separator {
    opacity: 0.6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

.countdown-formula {
    font-size: 1em;
    color: rgba(255,255,255,0.9);
    margin-top: 0.75em;
    font-style: italic;
}

.countdown-formula strong {
    color: var(--accent-light);
    font-weight: 700;
}

.countdown-formula em {
    color: var(--primary-light);
    font-style: normal;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ce-countdown-container {
        padding: 1.25em;
    }
    
    .ce-icon {
        width: 2.5em;
        height: 2.5em;
        font-size: 1.125em;
    }
    
    .ce-title {
        font-size: 1.25em;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-formula {
        font-size: 0.9em;
    }
}

/* ===== БАННЕР / СЛАЙДЕР (SWIPER) ===== */

#banner-section,
.banner-section {
    margin-bottom: 2.5em;
    position: relative;
}

.banner-swiper {
    border-radius: 1.25em;
    overflow: hidden;
    box-shadow: 0 0.5em 2.5em rgba(0,0,0,0.15);
    position: relative;
    height: 30em;
}

.banner-swiper .swiper-slide {
    position: relative;
    height: 100%;
}

.banner-swiper .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение для читабельности текста */
.banner-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Подпись баннера - компактный блок справа внизу */
.banner-caption {
    position: absolute;
    bottom: 2em;
    right: 2em;
    left: auto;
    max-width: 25em;
    text-align: left;
    z-index: 10;
    padding: 1em 1.5em;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 0.75em;
    border-left: 0.25em solid var(--primary);
}

.banner-caption h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    text-shadow: 0 0.125em 0.5em rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* Пагинация Swiper (точки) */
.banner-swiper .swiper-pagination {
    bottom: 1.5em;
    z-index: 15;
}

.banner-swiper .swiper-pagination-bullet {
    width: 0.75em;
    height: 0.75em;
    background: rgba(255,255,255,0.5);
    border: 0.125em solid var(--white);
    opacity: 1;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Адаптивность баннера */
@media (max-width: 1150px) {
    .banner-swiper {
        height: 25em;
    }
    
    .banner-caption {
        bottom: 1.5em;
        right: 1.5em;
        max-width: 20em;
        padding: 1em 1.25em;
    }
}

@media (max-width: 768px) {
    #banner-section,
    .banner-section {
        margin-bottom: 1.5em;
    }
    
    .banner-swiper {
        border-radius: 1em;
        height: 20em;
    }
    
    .banner-caption {
        bottom: 1em;
        right: 1em;
        max-width: 18em;
        padding: 0.875em 1.125em;
    }
    
    .banner-caption h3 {
        font-size: 1rem;
    }
    
    .banner-swiper .swiper-pagination {
        bottom: 1em;
    }
}

/* ===== ВИДЖЕТ ПРЕПОДАВАТЕЛЯ (ГЛАВНАЯ СТРАНИЦА) ===== */

.teacher-widget {
    display: flex;
    gap: 2em;
    padding: 2.5em;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-radius: 1.5em;
    box-shadow: 0 0.5em 2em rgba(0,0,0,0.08);
    border: 0.0625em solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.teacher-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-lighter) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.teacher-widget:hover {
    transform: translateY(-0.375em);
    box-shadow: 0 0.75em 2.5em rgba(0,0,0,0.12);
}

/* Фото преподавателя */
.teacher-widget-photo {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.teacher-widget-photo img {
    width: 15em;
    height: 15em;
    border-radius: 1.25em;
    object-fit: cover;
    border: 0.25em solid var(--white);
    box-shadow: 0 0.5em 2em rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.teacher-widget:hover .teacher-widget-photo img {
    transform: scale(1.05);
    box-shadow: 0 0.75em 2.5em rgba(0,0,0,0.2);
}

/* Бэйдж с иконкой */
.teacher-badge {
    position: absolute;
    bottom: -0.75em;
    right: -0.75em;
    width: 3.5em;
    height: 3.5em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5em;
    box-shadow: 0 0.25em 1em rgba(179, 200, 65, 0.5);
    border: 0.1875em solid var(--white);
}

/* Контент */
.teacher-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    z-index: 1;
}

.teacher-widget-header {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.teacher-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.teacher-title {
    font-size: 1.125em;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teacher-widget-text {
    font-size: 1.0625em;
    line-height: 1.7;
    color: var(--text-dark);
    flex: 1;
}

.teacher-widget-text p {
    margin: 0 0 0.75em 0;
}

/* Социальные иконки */
.teacher-widget-social {
    display: flex;
    align-items: center;
    gap: 1em;
}

.teacher-social-icons {
    display: flex;
    gap: 0.75em;
    list-style: none;
    padding: 0;
    margin: 0;
}

.teacher-social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    background: var(--white);
    border: 0.125em solid var(--border);
    border-radius: 0.75em;
    color: var(--text-light);
    font-size: 1.125em;
    transition: all 0.3s ease;
}

.teacher-social-icons li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-0.1875em);
}

/* Кнопка */
.teacher-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    padding: 1em 2em;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-weight: 600;
    font-size: 1.0625em;
    border-radius: 3em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0.25em 1em rgba(245, 158, 66, 0.4);
    align-self: flex-start;
}

.teacher-widget-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateX(0.375em);
    box-shadow: 0 0.5em 1.5em rgba(245, 158, 66, 0.5);
    text-decoration: none;
    color: var(--white);
}

.teacher-widget-btn i {
    transition: transform 0.3s ease;
}

.teacher-widget-btn:hover i {
    transform: translateX(0.375em);
}

/* Адаптивность виджета */
@media (max-width: 1150px) {
    .teacher-widget {
        flex-direction: column;
        text-align: center;
        padding: 2em;
    }
    
    .teacher-widget-photo {
        position: relative; /* Обязательно для правильного позиционирования бэйджа */
        align-self: center;
    }
    
    .teacher-widget-photo img {
        width: 12em;
        height: 12em;
    }
    
    .teacher-widget-content {
        align-items: center;
    }
    
    .teacher-widget-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .teacher-widget {
        padding: 1.5em;
        gap: 1.5em;
    }
    
    .teacher-widget-photo img {
        width: 10em;
        height: 10em;
    }
    
    .teacher-badge {
        width: 3em;
        height: 3em;
        font-size: 1.25em;
    }
    
    .teacher-name {
        font-size: 1.65rem;
    }
    
    .teacher-widget-btn {
        width: 100%;
        justify-content: center;
    }
}

code {
    background: var(--bg-light);
    padding: 0.125em 0.375em;
    border-radius: 0.25em;
    font-family: 'Courier New', monospace;
    color: var(--primary-dark);
}

/* =========================================
   LAYOUT - Sidebar + Content
   ========================================= */

.site-wrapper {
    display: flex;
    min-height: 100vh;
    width: var(--container-width);
    max-width: 2000px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* =========================================
   МОБИЛЬНЫЙ ХЕДЕР
   ========================================= */

.mobile-header {
    display: none;  /* Скрыт на десктопе */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 3.75em;  /* Минимум ~60px */
    height: clamp(3.75em, 10vw, 5em);  /* От 60px до 80px, адаптивно */
    background: var(--white);
    border-bottom: 0.0625em solid var(--border);
    z-index: 1001;
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
}

.mobile-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: clamp(6.25em, 20vw, 9.375em);  /* От 100px до 150px */
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   SIDEBAR
   ========================================= */

/* Кнопки в меню (только на мобильных) */
.sidebar-mobile-actions {
    display: none;
    padding: 1em;
    border-bottom: 0.125em solid var(--border);
    background: var(--bg-light);
}

.sidebar-mobile-actions .top-search {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.sidebar-mobile-actions .btn {
    width: 100%;
    padding: 0.75em 1.25em;
    font-size: 0.9375em;
    font-weight: 600;
    border-radius: 1.5em;  /* Скругление как у pill button */
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.sidebar-mobile-actions .btn-danger {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 0.25em 0.75em rgba(245, 158, 66, 0.3);
}

.sidebar-mobile-actions .btn-danger:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-0.125em);
    box-shadow: 0 0.375em 1em rgba(245, 158, 66, 0.4);
}

.sidebar-mobile-actions .btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 0.25em 0.75em rgba(107, 127, 215, 0.3);
}

.sidebar-mobile-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-0.125em);
    box-shadow: 0 0.375em 1em rgba(107, 127, 215, 0.4);
}

/* =========================================
   SIDEBAR (Левое меню)
   ========================================= */

.sidebar {
    flex: 0 0 auto;
    width: min(var(--sidebar-width), var(--sidebar-max-width));
    max-width: var(--sidebar-max-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar::-webkit-scrollbar {
    width: 0.375em;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0.1875em;
}

/* Логотип */
.sidebar-logo {
    padding: 2em 1.5em;
    text-align: center;
    border-bottom: 0.0625em solid var(--border);
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

/* Меню */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
    border-bottom: 0.0625em solid var(--border);
}

.menu-item > a {
    display: flex;
    align-items: center;
    padding: 1.125em 1.25em;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item > a i {
    width: 1.5em;
    margin-right: 0.75em;
    color: var(--primary);
    font-size: 1.125em;
}

.menu-item > a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary-light);
}

.menu-item.active > a {
    background: linear-gradient(90deg, var(--primary-lighter) 0%, var(--bg-light) 100%);
    color: var(--primary-dark);
    font-weight: 600;
    border-left: 0.25em solid var(--primary);
}

/* Submenu toggle */
.submenu-toggle {
    position: absolute;
    right: 0.9375em;
    top: 1.125em;  /* Фиксированная позиция от верха пункта меню */
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5em;
    transition: all 0.3s;
    width: 2em;
    height: 2em;
    border-radius: 0.5em;  /* Более скругленная кнопка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-toggle:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.menu-item.open .submenu-toggle {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);  /* Убрано translateY */
}

/* Submenu */
.submenu {
    list-style: none;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease-out;
}

.menu-item.open .submenu {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}

.submenu li a {
    display: block;
    padding: 0.75em 1.25em 0.75em 3.5em;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.submenu li a:hover {
    background: var(--white);
    color: var(--primary);
    padding-left: 3.75em;
}

/* Мобильная кнопка */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    left: 1em;
    transform: translateY(-50%);
    z-index: 1002;
    background: var(--primary);
    border: none;
    padding: 0.625em 0.75em;
    border-radius: 0.75em;  /* Более скругленный бургер */
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.mobile-menu-toggle span {
    display: block;
    width: 1.375em;
    height: 0.125em;
    background: var(--white);
    margin: 0.25em 0;
    transition: 0.3s;
    border-radius: 0.125em;
}

/* Анимация бургера */
body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-0.25em, 0.3125em);
}

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

body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-0.25em, -0.3125em);
}

/* =========================================
   MAIN CONTENT (Правая часть)
   ========================================= */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* =========================================
   TOP BAR (Верхняя панель)
   ========================================= */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 0.0625em solid var(--border);
    box-shadow: var(--shadow);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(1rem, 2vw, 1.75rem);
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* Кнопки записи */
.top-bar-links {
    display: flex;
    gap: 0.625em;
    flex-wrap: wrap;
}

.top-search .btn {
    padding: 0.625em 1.25em;
    font-size: 0.875em;
    font-weight: 600;
    border-radius: 1.5em;  /* Скругление как у pill button */
    text-decoration: none;
    transition: all 0.3s;
}

.top-search .btn-danger {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 0.25em 0.5em rgba(245, 158, 66, 0.3);
}

.top-search .btn-danger:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-0.125em);
    box-shadow: 0 0.375em 0.75em rgba(245, 158, 66, 0.4);
}

.top-search .btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 0.25em 0.5em rgba(107, 127, 215, 0.3);
}

.top-search .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-0.125em);
    box-shadow: 0 0.375em 0.75em rgba(107, 127, 215, 0.4);
}

/* Социальные сети */
.top-bar-social {
    display: flex;
    list-style: none;
    gap: 0.625em;
    margin: 0;
}

.top-bar-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.375em;
    height: 2.375em;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 0.75em;  /* Скругленные иконки соцсетей */
    font-size: 1.125em;
    transition: all 0.3s;
    text-decoration: none;
}

.top-bar-social li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-0.125em);
}

/* =========================================
   PAGE CONTENT
   ========================================= */

.page-content {
    flex: 1;
    padding: 2em;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */

.breadcrumbs-wrapper {
    padding: 1em 0;
    margin-bottom: 1.5em;
    border-bottom: 0.0625em solid var(--border);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5em;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.875em;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375em;
    padding: 0.25em 0.5em;
    border-radius: 0.25em;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    background: var(--bg-light);
    text-decoration: none;
}

.breadcrumb-item.active span {
    color: var(--primary-dark);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--border);
    font-weight: 300;
}

.breadcrumb-item i {
    font-size: 1em;
    color: var(--primary);
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */

.page-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 0.125em solid var(--primary-light);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -0.125em;
    left: 0;
    width: 5em;
    height: 0.125em;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.page-title {
    font-size: 2.25rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Секции */
.section-teacher {
    margin: 3.75em 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1.25em;
}

.section-header h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.45em;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5em;
    height: 0.2em;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 0.5em;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--dark) 100%);
    color: var(--white);
    padding: 2.5em 1.875em 1.25em;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25em;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    margin-bottom: 1.875em;
}

/* Блок контактов (слева) */
.footer-contacts {
    min-width: 0;
    background: rgba(255,255,255,0.08); /* Более непрозрачный */
    padding: 1.5em;
    border-radius: 1em;
    border: 0.125em solid rgba(255,255,255,0.15); /* Более заметная рамка */
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.2);
}

.footer-contacts h3 {
    margin-bottom: 1.25em;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--white);
}

.footer-contacts h3 i {
    color: var(--primary-light);
    font-size: 1.2em;
}

.contact-tabs {
    display: flex;
    gap: 0.75em;
    margin-bottom: 1.5em;
}

.contact-tab {
    flex: 1;
    padding: 1em;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08)); /* Более непрозрачный */
    border: 0.125em solid rgba(255,255,255,0.2); /* Ярче */
    color: var(--white);
    cursor: pointer;
    border-radius: 0.75em;
    transition: all 0.3s ease;
    font-size: 1.5em;
    position: relative;
    overflow: hidden;
}

.contact-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.contact-tab i {
    position: relative;
    z-index: 1;
}

.contact-tab:hover {
    background: rgba(255,255,255,0.2); /* Ярче */
    border-color: var(--primary-light);
    transform: translateY(-0.25em);
    box-shadow: 0 0.5em 1em rgba(0,0,0,0.3);
}

.contact-tab:hover::before {
    opacity: 0.2;
}

.contact-tab.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-color: var(--primary);
    transform: translateY(-0.125em);
    box-shadow: 0 0.5em 1.5em rgba(179, 200, 65, 0.5);
}

.contact-tab.active::before {
    opacity: 1;
}

.contact-panel {
    display: none;
    padding: 1.5em;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); /* Более непрозрачный */
    border-radius: 0.75em;
    min-height: 5em;
    border: 0.125em solid rgba(255,255,255,0.15); /* Ярче */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.5em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-panel.active {
    display: block;
}

.contact-panel p {
    margin: 0 0 1em 0;
    font-size: 1.125em;
    line-height: 1.6;
    color: var(--white);
}

.contact-panel p:last-of-type {
    margin-bottom: 0;
}

.contact-panel i {
    margin-right: 0.5em;
    color: var(--primary-light);
    font-size: 1.1em;
}

.contact-panel a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 0.125em solid transparent;
}

.contact-panel a:hover {
    color: var(--white);
    border-bottom-color: var(--primary-light);
}

/* Ссылки на мессенджеры */
.messenger-links {
    display: flex;
    gap: 0.75em;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 0.125em solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.25em;
    background: rgba(255,255,255,0);
    border-radius: 2em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0.125em solid;
    font-size: 0.95em;
    font-weight: 600;
}

.messenger-link i {
    font-size: 1.3em;
    margin-right: 0;
    transition: color 0.3s ease;
}

.messenger-link span {
    white-space: nowrap;
    transition: color 0.3s ease;
}

.messenger-link:hover {
    transform: translateY(-0.125em);
    box-shadow: 0 0.25em 0.75em rgba(0,0,0,0.3);
}

/* Стили для каждого мессенджера */
.messenger-link.telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.messenger-link.telegram i {
    color: #0088cc;
}

.messenger-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
    box-shadow: 0 0.25em 0.75em rgba(0, 136, 204, 0.5);
}

.messenger-link.telegram:hover i {
    color: #ffffff;
}

.messenger-link.viber {
    border-color: #7360f2;
    color: #7360f2;
}

.messenger-link.viber i {
    color: #7360f2;
}

.messenger-link.viber:hover {
    background: #7360f2;
    border-color: #7360f2;
    color: #ffffff;
    box-shadow: 0 0.25em 0.75em rgba(115, 96, 242, 0.5);
}

.messenger-link.viber:hover i {
    color: #ffffff;
}

.messenger-link.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.messenger-link.whatsapp i {
    color: #25d366;
}

.messenger-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 0.25em 0.75em rgba(37, 211, 102, 0.5);
}

.messenger-link.whatsapp:hover i {
    color: #ffffff;
}

/* Текстовый блок (справа) */
.footer-text-block {
    min-width: 0;
    background: rgba(255,255,255,0.06); /* Более непрозрачный */
    padding: 1.5em;
    border-radius: 1em;
    border: 0.125em solid rgba(255,255,255,0.1);
}

.footer-text-block h3 {
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--white);
}

.footer-text-content {
    background: rgba(255,255,255,0.08); /* Более непрозрачный */
    padding: 1.25em;
    border-radius: 0.75em;
    line-height: 1.7;
    border: 0.0625em solid rgba(255,255,255,0.1);
}

.footer-text-content p {
    margin: 0 0 0.75em 0;
    color: rgba(255,255,255,0.95); /* Ярче */
}

.footer-text-content p:last-child {
    margin-bottom: 0;
}

.footer-text-content a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 0.125em solid transparent;
}

.footer-text-content a:hover {
    color: var(--white);
    border-bottom-color: var(--primary-light);
}

/* Footer bottom (горизонтальный блок) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25em;
    border-top: 0.0625em solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 1.25em;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.footer-bottom-left p {
    margin: 0;
    font-size: 0.875em;
    opacity: 0.8;
}

.footer-bottom-left img.payment-logos {
    height: 2em;
    max-width: 100%;
}

.footer-custom {
    width: 100%;
    padding-top: 1em;
}

.footer-social {
    display: flex;
    list-style: none;
    gap: 0.625em;
    margin: 0;
}

.footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25em;
    height: 2.25em;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 0.75em;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social li a:hover {
    background: var(--primary-light);
    transform: translateY(-0.125em);
}

/* =========================================
   СТРАНИЦА О ПРЕПОДАВАТЕЛЕ
   ========================================= */

/* Hero секция */
.teacher-hero {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-light) 100%);
    border-radius: 1.5em;
    padding: 3em;
    margin-bottom: 2.5em;
    position: relative;
    overflow: hidden;
}

.teacher-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(179, 200, 65, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.teacher-hero-content {
    display: flex;
    align-items: center;
    gap: 3em;
    position: relative;
    z-index: 1;
}

.teacher-hero-photo {
    position: relative;
    flex-shrink: 0;
}

.teacher-hero-photo img {
    width: 18em;
    height: 18em;
    border-radius: 1.5em;
    object-fit: cover;
    border: 0.375em solid var(--white);
    box-shadow: 0 1em 3em rgba(0,0,0,0.15);
}

.teacher-hero-badge {
    position: absolute;
    bottom: -1em;
    right: -1em;
    width: 2.5em;
    height: 2.5em;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2em;
    box-shadow: 0 0.5em 1.5em rgba(245, 158, 66, 0.5);
    border: 0.1875em solid var(--white);
}

.teacher-hero-info {
    flex: 1;
}

.teacher-hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25em 0;
    line-height: 1.2;
}

.teacher-hero-title {
    font-size: 1.375em;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teacher-hero-description {
    font-size: 1.0625em;
    line-height: 1.7;
    color: var(--text-dark);
}

.teacher-hero-description p {
    margin: 0 0 0.75em 0;
}

.teacher-hero-description p:last-child {
    margin-bottom: 0;
}

.teacher-social-list {
    display: flex;
    gap: 1em;
    list-style: none;
    padding: 0;
    margin: 0;
}

.teacher-social-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3em;
    background: var(--white);
    border: 0.125em solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.25em;
    transition: all 0.3s ease;
}

.teacher-social-list li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-0.25em);
}

/* Статистика */
.teacher-stats {
    margin-bottom: 2.5em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
    gap: 1.25em;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25em;
    padding: 1.5em;
    background: var(--white);
    border-radius: 1em;
    border: 0.0625em solid var(--border);
    box-shadow: 0 0.25em 0.75em rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-0.25em);
    box-shadow: 0 0.375em 1em rgba(0,0,0,0.1);
}

.stat-icon {
    width: 3em;
    height: 3em;
    border-radius: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.stat-icon.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.stat-icon.secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25em;
    word-break: break-word;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* Распределение баллов учеников */
.teacher-score-distribution {
    margin-bottom: 3em;
}

.distribution-block {
    background: var(--white);
    border-radius: 1.5em;
    padding: 2.5em;
    margin-bottom: 2em;
    border: 0.0625em solid var(--border);
    box-shadow: 0 0.5em 2em rgba(0,0,0,0.08);
}

.distribution-header {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1.5em 0;
    text-align: center;
    padding-bottom: 1em;
    border-bottom: 0.125em solid var(--border);
}

.distribution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: center;
}

.distribution-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.875em 1.25em;
    background: var(--bg-light);
    border-radius: 0.75em;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: var(--primary-lighter);
    transform: translateX(0.5em);
}

.legend-color {
    width: 2.5em;
    height: 2.5em;
    border-radius: 0.5em;
    flex-shrink: 0;
    box-shadow: 0 0.125em 0.5em rgba(0,0,0,0.15);
}

.legend-label {
    flex: 1;
    font-size: 1.0625em;
    font-weight: 600;
    color: var(--text-dark);
}

.legend-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

.legend-total {
    margin-top: 1em;
    padding: 1em 1.25em;
    background: linear-gradient(135deg, var(--primary-lighter), var(--bg-light));
    border-radius: 0.75em;
    font-size: 1.125em;
    text-align: center;
    color: var(--dark);
}

/* Достижения и награды (упрощенная версия) */
.teacher-achievements-simple {
    margin-bottom: 3em;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    gap: 2em;
}

.achievement-card {
    background: var(--white);
    border-radius: 1.25em;
    padding: 2em;
    text-align: center;
    border: 0.0625em solid var(--border);
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-0.5em);
    box-shadow: 0 0.75em 2em rgba(0,0,0,0.12);
}

.achievement-card .achievement-icon {
    width: 5em;
    height: 5em;
    margin: 0 auto 1.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--white);
}

.achievement-card.primary .achievement-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.achievement-card.accent .achievement-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.achievement-card.secondary .achievement-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.achievement-image {
    margin-bottom: 1.5em;
}

.achievement-image img {
    width: 100%;
    height: auto;
    max-height: 15em;
    object-fit: cover;
    border-radius: 0.75em;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.1);
}

.achievement-card .achievement-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75em 0;
}

.achievement-card .achievement-desc {
    font-size: 0.9375em;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.section-title i {
    color: var(--primary);
}

/* Цитата */
.teacher-quote {
    margin-bottom: 3em;
}

.teacher-quote blockquote {
    position: relative;
    padding: 2.5em 3em;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    border-radius: 1.25em;
    border-left: 0.375em solid var(--accent);
    margin: 0;
    color: var(--white);
    box-shadow: 0 0.5em 2em rgba(107, 127, 215, 0.3);
}

.quote-icon {
    position: absolute;
    top: 0.75em;
    left: 0.75em;
    font-size: 3em;
    color: rgba(255,255,255,0.2);
}

.teacher-quote blockquote p {
    font-size: 1.125em;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Описание */
.teacher-description {
    margin-bottom: 3em;
}

.description-content {
    background: var(--white);
    border-radius: 1.25em;
    padding: 2.5em;
    border: 0.0625em solid var(--border);
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.05);
}

.description-content h2 {
    font-size: 1.75em;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1em 0;
}

.description-content p {
    font-size: 1.0625em;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 1em 0;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Результаты ЦТ/ЦЭ - Swiper карусель */
.teacher-results {
    margin-bottom: 3em;
    position: relative;
}

.results-swiper {
    padding: 2em 0 4em 0;
    position: relative;
}

.results-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.result-card {
    position: relative;
    padding: 2em 1.5em;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 1.25em;
    border: 0.0625em solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.375em;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.result-card:hover {
    transform: translateY(-0.5em);
    box-shadow: 0 0.75em 2em rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.result-year {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25em;
}

.result-type {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-subject {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1em;
}

.result-desc {
    font-size: 0.9375em;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1em;
}

.result-arrow {
    margin-top: auto;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    transition: all 0.3s ease;
}

.result-card:hover .result-arrow {
    background: var(--accent);
    transform: translateX(0.375em);
}

/* Навигационные стрелки */
.results-next,
.results-prev {
    width: 3em;
    height: 3em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.15);
}

.results-next:after,
.results-prev:after {
    font-size: 1.25em;
    font-weight: 900;
}

.results-next:hover,
.results-prev:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: scale(1.1);
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Пагинация */
.results-pagination {
    bottom: 0 !important;
}

.results-pagination .swiper-pagination-bullet {
    width: 0.75em;
    height: 0.75em;
    background: var(--text-light);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.results-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.3);
}

/* Адаптивность карусели */
@media (max-width: 768px) {
    .results-swiper {
        padding: 1.5em 0 3.5em 0;
    }
    
    .results-next,
    .results-prev {
        width: 2.5em;
        height: 2.5em;
    }
    
    .results-next:after,
    .results-prev:after {
        font-size: 1em;
    }
    
    .result-card {
        padding: 1.5em 1.25em;
    }
    
    .result-year {
        font-size: 2.5em;
    }
}

/* Адаптивность страницы преподавателя */
@media (max-width: 1150px) {
    .teacher-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .teacher-hero-photo {
        margin: 0 auto;
    }
    
    .teacher-hero-description {
        text-align: left;
    }
    
    .distribution-content {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
    }
    
    .section-title {
        font-size: 1.75em;
    }
}

@media (max-width: 768px) {
    .teacher-hero {
        padding: 2em 1.5em;
    }
    
    .teacher-hero-photo img {
        width: 12em;
        height: 12em;
    }
    
    .teacher-hero-badge {
        width: 2em;
        height: 2em;
        font-size: 1.25em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .stat-card {
        padding: 1.25em;
        gap: 1em;
    }
    
    .stat-icon {
        width: 2.5em;
        height: 2.5em;
        font-size: 1.25em;
        border-radius: 0.625em;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8125em;
    }
    
    .distribution-block {
        padding: 1.5em;
    }
    
    .distribution-header {
        font-size: 1.25em;
    }
    
    .distribution-content {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    
    .legend-item {
        padding: 0.75em 1em;
    }
    
    .legend-value {
        font-size: 1.25em;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-quote blockquote {
        padding: 2em 1.5em;
    }
    
    .description-content {
        padding: 2em 1.5em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1em;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 3em;
        height: 3em;
        font-size: 1.5em;
    }
    
    .stat-content {
        width: 100%;
    }
}

/* =========================================
   BACK TO TOP
   ========================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */

/* Планшеты */
@media (max-width: 1366px) {
    :root {
        --sidebar-width: 30%;
        --container-width: 94%;
    }
}

@media (max-width: 1150px) {
    :root {
        --sidebar-width: 30%;
        --container-width: 100%;
    }
    
    .site-wrapper {
        box-shadow: none;
    }
    
    /* Показать мобильный хедер */
    .mobile-header {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Спрятать верхний блок */
    .top-bar {
        display: none;
    }
    
    /* Показать кнопки в меню */
    .sidebar-mobile-actions {
        display: block;
    }
    
    /* Скрыть логотип в sidebar на мобильных */
    .sidebar-logo {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: clamp(3.75em, 10vw, 5em);  /* Синхронизировано с высотой хедера */
        height: calc(100vh - clamp(3.75em, 10vw, 5em));
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        margin-top: clamp(3.75em, 10vw, 5em);  /* Синхронизировано с высотой хедера */
    }
    
    .page-content {
        padding: 1.25em;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 17.5em;
        --container-width: 100%;
    }
    
    .mobile-header {
        min-height: 3.5em;  /* Немного меньше на мобильных */
    }
    
    .page-content {
        padding: 1em;
    }
    
    /* Футер на мобильных */
    .footer-content {
        grid-template-columns: 1fr; /* Один столбец */
        gap: 1.5em;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5em;
    }
    
    /* Мессенджеры на мобильных */
    .messenger-links {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .messenger-link {
        justify-content: center;
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.25em;
    }
}

/* Overlay для открытого меню (планшеты и мобильные) */
@media (max-width: 1150px) {
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        animation: fadeIn 0.3s ease-in-out;
        cursor: pointer;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Запрет прокрутки когда меню открыто */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        min-height: 3.25em;  /* Еще меньше на очень узких */
    }
    
    .mobile-menu-toggle {
        left: 0.5em;  /* Ближе к краю */
        padding: 0.5em 0.625em;
    }
    
    .mobile-menu-toggle span {
        width: 1.25em;  /* Чуть меньше */
    }
    
    .sidebar-mobile-actions .btn {
        font-size: 0.875em;
        padding: 0.625em 1em;
    }
}

/* ============================================================
   СЕКЦИЯ ЦЕНОВЫХ ПАКЕТОВ
============================================================ */

.pricing-section {
    padding: clamp(0.25em, 1vw, 0.75em) 0 clamp(1.5em, 3vw, 2.5em);
    background: transparent;
}

.pricing-container {
    max-width: 82em;
    margin: 0 auto;
    padding: 0 clamp(1em, 3vw, 2em);
}

/* Заголовок секции */
.pricing-header {
    text-align: center;
    margin-bottom: clamp(2.5em, 5vw, 4em);
}

.pricing-header .section-title {
    font-size: 2.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.pricing-header .section-title i {
    color: var(--primary);
    font-size: 0.9em;
}

.pricing-header .section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0;
}

/* Сетка карточек */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr));
    gap: clamp(1.5em, 3vw, 2.5em);
    align-items: stretch;
}

/* Карточка пакета */
.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: 1.25em;
    padding: clamp(2em, 4vw, 2.5em);
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.08);
    border: 0.125em solid rgba(179, 200, 65, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.3125em;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-0.625em);
    box-shadow: 0 1em 2.5em rgba(179, 200, 65, 0.25);
    border-color: var(--primary);
}

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

/* Популярная карточка */
.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0.5em 2em rgba(179, 200, 65, 0.2);
}

.pricing-card-featured::before {
    opacity: 1;
}

.pricing-card-featured:hover {
    box-shadow: 0 1.25em 3em rgba(179, 200, 65, 0.3);
}

/* Бэйдж "Популярный" */
.pricing-badge {
    position: absolute;
    top: 1.5em;
    right: -2.5em;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    padding: 0.5em 3em;
    transform: rotate(45deg);
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    box-shadow: 0 0.25em 0.75em rgba(245, 158, 66, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3em;
    justify-content: center;
}

.pricing-badge i {
    font-size: 0.875em;
}

/* Заголовок карточки */
.pricing-card-header {
    text-align: center;
    padding-bottom: 1.5em;
    border-bottom: 0.0625em solid rgba(179, 200, 65, 0.15);
    margin-bottom: 1.5em;
}

.pricing-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1em 0;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25em;
    flex-wrap: wrap;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-currency {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.price-period {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Тело карточки */
.pricing-card-body {
    flex: 1;
    margin-bottom: 1.5em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    padding: 0.875em 0;
    border-bottom: 0.0625em solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature i {
    flex-shrink: 0;
    font-size: 1.125em;
    margin-top: 0.125em;
    color: var(--primary);
}

.pricing-feature span {
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Основная фича (занятия) */
.pricing-feature-main {
    background: linear-gradient(135deg, 
        rgba(179, 200, 65, 0.08), 
        rgba(179, 200, 65, 0.03));
    padding: 1em;
    border-radius: 0.75em;
    border: 0.0625em solid rgba(179, 200, 65, 0.2);
    margin-bottom: 0.75em;
}

.pricing-feature-main i {
    font-size: 1.25em;
    color: var(--primary-dark);
}

.pricing-feature-main span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Отключенная фича */
.pricing-feature-disabled {
    opacity: 0.5;
}

.pricing-feature-disabled i {
    color: var(--text-muted);
}

.pricing-feature-disabled span {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Подвал карточки */
.pricing-card-footer {
    margin-top: auto;
}

.pricing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625em;
    width: 100%;
    padding: 1em 1.5em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 0.75em;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0.25em 1em rgba(179, 200, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pricing-btn:hover::before {
    width: 20em;
    height: 20em;
}

.pricing-btn:hover {
    transform: translateY(-0.1875em);
    box-shadow: 0 0.5em 1.5em rgba(179, 200, 65, 0.4);
    color: var(--white);
}

.pricing-btn i {
    transition: transform 0.3s ease;
}

.pricing-btn:hover i {
    transform: translateX(0.3125em);
}

.pricing-btn span,
.pricing-btn i {
    position: relative;
    z-index: 1;
}

/* Популярная карточка - особая кнопка */
.pricing-card-featured .pricing-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 0.25em 1em rgba(245, 158, 66, 0.3);
}

.pricing-card-featured .pricing-btn:hover {
    box-shadow: 0 0.5em 1.5em rgba(245, 158, 66, 0.4);
}

/* Адаптивность */
@media (max-width: 1150px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 18em), 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: clamp(2em, 5vw, 3em) 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .pricing-card {
        padding: 1.75em;
    }

    .pricing-badge {
        font-size: 0.625em;
        padding: 0.5em 2.5em;
        top: 1.25em;
        right: -2em;
    }

    .pricing-card:hover {
        transform: translateY(-0.3125em);
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5em;
    }

    .pricing-feature {
        gap: 0.5em;
        padding: 0.75em 0;
    }

    .pricing-feature-main {
        padding: 0.875em;
    }
}

/* ============================================================
   РАСПИСАНИЕ ЗАНЯТИЙ
============================================================ */

.schedule-section {
    padding: clamp(3em, 6vw, 6em) 0;
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        rgba(179, 200, 65, 0.03) 50%, 
        var(--bg-light) 100%);
}

.schedule-container {
    max-width: 92em;
    margin: 0 auto;
    padding: 0 clamp(1em, 3vw, 2em);
}

/* Заголовок секции */
.schedule-header {
    text-align: center;
    margin-bottom: clamp(2.5em, 5vw, 4em);
}

.schedule-title {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.schedule-title i {
    color: var(--primary);
    font-size: 0.9em;
}

.schedule-quote {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(179, 200, 65, 0.08), 
        rgba(179, 200, 65, 0.03));
    border-left: 0.25em solid var(--primary);
    border-radius: 0 0.75em 0.75em 0;
    padding: 1.5em 2em;
    max-width: 40em;
    margin: 0 auto;
    font-style: italic;
    color: var(--text-dark);
}

.schedule-quote i {
    position: absolute;
    top: 0.5em;
    left: 0.75em;
    font-size: 1.5em;
    color: var(--primary);
    opacity: 0.3;
}

.schedule-quote p {
    margin: 0;
    padding-left: 1.5em;
    font-size: 1rem;
    line-height: 1.7;
}

/* Контент с сайдбаром */
.schedule-content {
    display: grid;
    grid-template-columns: 18.75em 1fr;
    gap: clamp(1.5em, 3vw, 2.5em);
    align-items: start;
}

/* Фильтры */
.schedule-filters {
    position: sticky;
    top: calc(var(--top-bar-height) + 1em);
}

.filters-card {
    background: var(--white);
    border-radius: 1.25em;
    padding: 1.75em;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.08);
    border: 0.125em solid rgba(179, 200, 65, 0.15);
}

.filters-title {
    font-size: 1.375em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.25em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.filters-title i {
    color: var(--primary);
    font-size: 0.9em;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.filter-group label {
    font-size: 0.9375em;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
}

.filter-group label i {
    color: var(--primary);
    font-size: 1.125em;
}

.filter-group select {
    width: 100%;
    padding: 0.75em 1em;
    border: 0.125em solid rgba(179, 200, 65, 0.2);
    border-radius: 0.625em;
    font-size: 0.9375em;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1875em rgba(179, 200, 65, 0.15);
}

.filter-btn {
    width: 100%;
    padding: 0.875em 1.25em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 0.75em;
    font-weight: 600;
    font-size: 0.9375em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25em 1em rgba(179, 200, 65, 0.3);
    margin-top: 0.5em;
}

.filter-btn:hover {
    transform: translateY(-0.125em);
    box-shadow: 0 0.375em 1.25em rgba(179, 200, 65, 0.4);
}

/* Список занятий */
.schedule-lessons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22em), 1fr));
    gap: clamp(1.5em, 3vw, 2em);
}

/* Карточка занятия */
.lesson-card {
    background: var(--white);
    border-radius: 1.25em;
    padding: 0;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.08);
    border: 0.125em solid rgba(179, 200, 65, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.3125em;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-0.5em);
    box-shadow: 0 0.75em 2em rgba(179, 200, 65, 0.2);
    border-color: var(--primary);
}

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

/* Заголовок карточки */
.lesson-card-header {
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    padding: 1.5em;
    position: relative;
}

.lesson-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375em;
    background: var(--primary);
    color: var(--white);
    padding: 0.375em 0.875em;
    border-radius: 6.25em;
    font-size: 0.8125em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03125em;
    margin-bottom: 0.75em;
}

.lesson-card-badge i {
    font-size: 0.875em;
}

.lesson-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.375em 0;
    line-height: 1.3;
}

.lesson-card-subtitle {
    font-size: 0.9375em;
    color: var(--text-muted);
    margin: 0;
}

/* Тело карточки */
.lesson-card-body {
    padding: 1.5em;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.lesson-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875em;
}

.lesson-info-item > i {
    flex-shrink: 0;
    font-size: 1.375em;
    color: var(--primary);
    margin-top: 0.125em;
}

.lesson-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.1875em;
    flex: 1;
}

.lesson-info-label {
    font-size: 0.8125em;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03125em;
}

.lesson-info-value {
    font-size: 0.9375em;
    color: var(--text-dark);
    font-weight: 600;
}

.lesson-info-link {
    font-size: 0.9375em;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lesson-info-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.lesson-duration-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    color: var(--white);
    padding: 0.25em 0.75em;
    border-radius: 0.375em;
    font-size: 0.875em;
    font-weight: 700;
}

/* Подвал карточки */
.lesson-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    padding: 1.25em 1.5em;
    background: rgba(179, 200, 65, 0.05);
    border-top: 0.0625em solid rgba(179, 200, 65, 0.15);
}

.lesson-location {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lesson-location i {
    color: var(--primary);
    font-size: 1.25em;
}

.lesson-location:hover {
    color: var(--primary);
    transform: translateX(0.1875em);
}

.lesson-register-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.625em 1.25em;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 0.625em;
    font-weight: 600;
    font-size: 0.875em;
    transition: all 0.3s ease;
    box-shadow: 0 0.1875em 0.75em rgba(179, 200, 65, 0.3);
    white-space: nowrap;
}

.lesson-register-btn:hover {
    transform: translateY(-0.125em);
    box-shadow: 0 0.3125em 1em rgba(179, 200, 65, 0.4);
    color: var(--white);
}

.lesson-register-btn i {
    font-size: 1.125em;
}

.lesson-no-places {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.625em 1.25em;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 0.625em;
    font-weight: 600;
    font-size: 0.875em;
    white-space: nowrap;
}

.lesson-no-places i {
    font-size: 1.125em;
}

/* Адаптивность */
@media (max-width: 1150px) {
    .schedule-content {
        grid-template-columns: 1fr;
    }

    .schedule-filters {
        position: static;
        order: -1;
    }

    .filters-card {
        padding: 1.5em;
    }

    .filters-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(12.5em, 1fr));
        gap: 1em;
    }

    .filter-btn {
        grid-column: 1 / -1;
    }

    .schedule-lessons {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 18em), 1fr));
    }
}

@media (max-width: 768px) {
    .schedule-section {
        padding: clamp(2em, 5vw, 3em) 0;
    }

    .schedule-lessons {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .lesson-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75em;
    }

    .lesson-location,
    .lesson-register-btn,
    .lesson-no-places {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .schedule-quote {
        padding: 1.25em 1.5em;
    }

    .lesson-card-header {
        padding: 1.25em;
    }

    .lesson-card-body {
        padding: 1.25em;
    }

    .lesson-card-footer {
        padding: 1em 1.25em;
    }
}


/* ============================================================
   ЗАЛ СЛАВЫ
============================================================ */

.hof-section {
    padding: 2.5rem 0 3rem;
}

.hof-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0;
}

/* ── Блок периода ── */
.hof-period-block {
    margin-bottom: 2.5rem;
}

.hof-period-block:last-child {
    margin-bottom: 0;
}

.hof-period-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hof-period-header::after {
    content: '';
    flex: 1;
    height: 0.125rem;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 1rem;
}

.hof-period-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4em 1.1em;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 2em;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0.75rem rgba(245, 158, 66, 0.35);
}

.hof-period-label i {
    font-size: 0.875em;
    opacity: 0.9;
}

/* ── Сетка ── */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
}

/* ── Карточка ── */
.hof-card {
    border-radius: 0.875rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    cursor: default;
}

/* Фото-обёртка с соотношением 4:5 — контейнер для абсолютных потомков */
.hof-card-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: block;
}

.hof-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Значок с результатом — всегда виден в правом верхнем углу */
.hof-result-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.75rem rgba(245, 158, 66, 0.5);
    z-index: 4;
    padding: 0 0.25rem;
}

/* Тег предмета */
.hof-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25em 0.75em;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Оверлей при hover */
.hof-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 40, 15, 0.97) 0%,
        rgba(30, 40, 15, 0.75) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.hof-card-content {
    width: 100%;
    transform: translateY(0.375rem);
    transition: transform 0.3s ease;
}

.hof-card-content .hof-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Рамка акцентная при hover */
.hof-card-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 0.1875rem solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Инфо-блок под фото — скрыт на десктопе */
.hof-card-info {
    display: none;
}

/* ── Десктоп: hover-эффекты ── */
@media (hover: hover) and (pointer: fine) {
    .hof-card:hover .hof-card-photo {
        transform: scale(1.07);
    }

    .hof-card:hover .hof-card-overlay {
        opacity: 1;
    }

    .hof-card:hover .hof-card-content {
        transform: translateY(0);
    }

    .hof-card:hover .hof-card-photo-wrap::after {
        border-color: var(--accent);
    }
}

/* ── Мобильные: карточка с блоком под фото ── */
@media (hover: none), (pointer: coarse) {
    .hof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hof-card-overlay {
        display: none;
    }

    .hof-card-info {
        display: block;
        padding: 0.75rem 0.875rem 0.875rem;
    }

    .hof-card-info .hof-card-name {
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 0.5rem;
        line-height: 1.3;
    }

    .hof-card-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .hof-result-num {
        font-size: 0.875rem;
        font-weight: 800;
        color: var(--accent-dark);
    }
}

@media (hover: none) and (max-width: 420px), (pointer: coarse) and (max-width: 420px) {
    .hof-grid {
        grid-template-columns: 1fr;
    }

    .hof-card-photo-wrap {
        aspect-ratio: 3 / 2;
    }
}

/* Пустое состояние */
.hof-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-lighter);
    font-style: italic;
    padding: 3rem 0;
}

/* =========================================
   СОВМЕСТИМОСТЬ С ЛЕГАСИ-КОНТЕНТОМ
   (классы из старого шаблона, которые ещё
   используются в content/schedule)
   ========================================= */

/* --- Текстовый контент страниц (TinyMCE) --- */
.content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    color: var(--text-dark);
    line-height: 1.75;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.content ul,
.content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.4rem;
}

.content blockquote {
    border-left: 0.3rem solid var(--primary);
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--text-light);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.content table th,
.content table td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.content table th {
    background: var(--primary);
    color: #fff;
}

.content table tr:nth-child(even) td {
    background: var(--bg-light);
}

/* --- Разделитель --- */
.seprator-border {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
    border: 0;
}

/* --- Карточки пакетов обучения (training_packages) --- */
.pricing-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.price-table {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.price-table:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow-hover);
}

/* Двухцветная горизонтальная шапка: название слева, цена справа */
.price-table .plan-title {
    display: flex;
    align-items: stretch;
}

.price-table .plan-name {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.65rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.price-table .plan-name .package-info-toggle {
    color: #fff !important;
    opacity: 0.8;
    font-size: 0.8em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.price-table .plan-name .package-info-toggle:hover {
    opacity: 1;
}

.price-table .plan-price {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.65rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    line-height: 1.15;
    text-align: center;
}

.price-table .plan-price .price-main {
    font-size: 1.55rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-table .plan-price .price-discount {
    font-size: 0.8rem;
    opacity: 0.92;
    margin-top: 0.2rem;
}

/* Подзаголовок «Для учеников … классов» */
.price-table .plan-subtitle {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
    padding: 0.6rem 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.price-table ul {
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.25rem;
    flex: 1 1 auto;
}

.price-table ul li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.price-table ul li:last-child {
    border-bottom: 0;
}

.price-table ul li .fa-check-circle {
    color: var(--success);
    margin-top: 0.2rem;
}

.price-table ul li .fa-times-circle {
    color: var(--danger);
    margin-top: 0.2rem;
}

.price-table .package-description {
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-table .plan-select {
    padding: 0.75rem 1.25rem 1.1rem;
    text-align: center;
}

.price-table .plan-select a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.price-table .plan-select a:hover {
    filter: brightness(1.08);
}

/* --- Карточка преподавателя (schedule / team-box) --- */
.team-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-box img {
    width: 9rem;
    height: 9rem;
    object-fit: cover;
    border-radius: 50%;
    margin: 0.5rem auto 1rem;
    border: 4px solid var(--primary-lighter);
}

.team-box h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

/* --- Алерты (если не покрыты bootstrap-темой) --- */
.alert-success {
    border-left: 0.3rem solid var(--success);
}

/* --- Футер: читаемые ссылки на красном фоне --- */
/* По умолчанию ссылки в футере красили в --primary-light (светло-красный),
   из-за чего они сливались с красным фоном. Делаем их белыми с подчёркиванием. */
.contact-panel a {
    color: #fff;
    border-bottom: 0.125em solid rgba(255, 255, 255, 0.45);
}

.contact-panel a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.contact-panel i {
    color: #fff;
}

.footer-text-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-text-content a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Жирные значения реквизитов — чёткий белый, без красноватого оттенка */
.footer-text-content strong {
    color: #fff;
}
