::selection {
    background-color: #060028; /* Цвет фона выделения (например, коралловый) */
    color: #ffffff;            /* Цвет самого текста при выделении (белый) */
}

/* Пробел перед ::selection означает "для всех элементов внутри footer" */
footer ::selection {
    background-color: #ffffff; /* Белый фон выделения */
    color: #000000;            /* Черный текст */
}

.site-footer ::selection {
    background-color: #ffffff; /* Яркий цвет (например, желтый) */
    color: #000000;            /* Черный текст */
}

/* --- Стили скроллбара (Chrome, Edge, Safari) --- */

/* 1. Ширина полосы прокрутки */
::-webkit-scrollbar {
    width: 10px;               /* Для вертикального скролла */
    height: 10px;              /* Для горизонтального скролла */
}

/* 2. Фон (дорожка), по которой ездит ползунок */
::-webkit-scrollbar-track {
    background: #fff;       /* Очень темный серый, почти черный */
    border-radius: 5px;        /* Слегка скругляем края дорожки */
}

/* 3. Сам ползунок (бегунок) */
::-webkit-scrollbar-thumb {
    background-color: #195b86;    /* Темно-серый цвет */
    border-radius: 10px;       /* Полное скругление (овал) */
    
    /* Хитрый трюк для отступа: */
    border: 2px solid #fff; /* Рамка цвета фона создает эффект "отступа" */
}

/* 4. Ползунок при наведении */
::-webkit-scrollbar-thumb:hover {
    background-color: #31a495;    /* Светлеет при наведении */
}

:root {
    --primary-color: #0047AB; /* Синий оттенок */
    --dark-blue: #002D62;
    --accentt-color: #e2e2e2; /* Золотой/желтый для акцентов */
    --light-bg: #F5F7FA;
    --white: #ffffff;
    --text-color: #333;
    --transition: all 0.3s ease;
    --header-bg: #fff;
    --top-bar-text: #fff;
    --primary: #003156;    /* Глубокий синий */
    --secondary: #0c273f;  /* Темный синий */
    --accent: #00d37f;     /* Яркая бирюза */
    --accent-dim: #00a94c;
    --light: #f7fbff;
    --white: #ffffff;
    --text: var(--dark-blue);
    --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --accent-color: #003156; /* Основной синий цвет */
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --psych-primary: #2d6ff0;
    --psych-secondary: #EC4899;
    --psych-accent: #10B981;
    --psych-dark: #1F2937;
    --psych-light: #F3F4F6;
    --psych-white: #ffffff;
    --psych-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --psych-radius: 16px;
}


textarea {
  resize: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Цвета для заголовка */
.text-green {
    color: #55f279; /* Зеленый APEC (примерно) */
}

.text-blue {
    color: #4094dc; /* Тот самый синий, который мы использовали */
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-tg-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #00719e;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-tg-btn:hover {
    background-color: #fff;
    color: #00719e;
    transform: translateY(-5px);
}

.pulsee-tg-anim {
    animation: pulsee 2s infinite;
}

@keyframes pulsee {
    0% { box-shadow: 0 0 0 0 rgba(17, 156, 191, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 71, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 71, 171, 0); }
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #009e52;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    background-color: #fff;
    color: #009e52;
    transform: translateY(-5px);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(17, 191, 87, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 71, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 71, 171, 0); }
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    max-width: 1500px;
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-links li {
    position: relative;
    padding: 10px 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-blue);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Логотипы в Навбаре --- */

/* Контейнер для всех логотипов */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между логотипами */
}

/* Ссылка-обертка для логотипа */
.logo-item {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Сами картинки */
.logo-item img {
    height: 50px; /* Фиксируем высоту, ширина подстроится сама */
    width: auto;  /* Сохраняем пропорции */
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo-item:hover img {
    opacity: 0.8; /* Легкий эффект при наведении */
}

/* Вертикальная палочка-разделитель */
.logo-separator {
    display: block;
    width: 1px;
    height: 35px; /* Высота палочки */
    background-color: #ddd; /* Светло-серый цвет */
}

/* --- Адаптив для мобильных (Важно!) --- */
/* На телефонах 3 логотипа не влезут, поэтому мы оставляем только 1-й, а остальные скрываем */
@media (max-width: 768px) {
    .logo-item:not(:first-child),
    .logo-separator {
        display: none;
    }
}

/* Закрепляем шапку наверху */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Чтобы была поверх всего контента */
    transition: transform 0.3s ease-in-out; /* Плавная анимация исчезновения */
    background-color: #fff; /* Убедись, что есть фон, иначе контент будет просвечивать */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Легкая тень для красоты */
}

/* Класс, который мы будем добавлять через JS для скрытия */
#site-header.hide {
    transform: translateY(-100%); /* Сдвигаем шапку полностью вверх */
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
    padding: 10px 0;
}

.nav-links li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    padding-left: 25px; /* Hover animation */
}

/* Nested Dropdown */
.nested-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu.nested {
    left: 100%;
    top: 0;
}

/* --- HEADER WRAPPER (Главный контейнер) --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out; /* Плавная анимация скрытия */
}

/* Класс, который скрывает шапку (уводит вверх) */
#site-header.header-hidden {
    transform: translateY(-100%);
}

/* --- TOP BAR (Верхняя полоса) --- */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--top-bar-text);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}


.top-left a {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.top-left a:hover {
    color: #fff;
    text-decoration: underline;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Язык */
.lang-dropdown {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

/* Стили для меню */
.lang-menu {
    /* --- ИЗМЕНЕНИЯ НАЧАЛО --- */
    /* Убираем display: none */
    position: absolute;
    top: 148%;
    right: -15px;
    background: var(--dark-blue);
    color: #fff;
    overflow: hidden;
    z-index: 1001;
    min-width: 80px;
    /* Начальное состояние анимации */
    opacity: 0;              /* Полностью прозрачный */
    visibility: hidden;      /* Скрыт от кликов */
    /* Настройка плавности */
    transition: all 0.3s ease-in-out;
    /* --- ИЗМЕНЕНИЯ КОНЕЦ --- */
}

/* Состояние при наведении */
.lang-dropdown:hover .lang-menu {
    /* display: block; <- УДАЛЯЕМ ЭТО */
    
    /* Конечное состояние анимации */
    opacity: 1;              /* Полностью видимый */
    visibility: visible;     /* Доступен для кликов */
    transform: translateY(0); /* Возвращается на место */
}

/* Кнопки внутри меню (без изменений, добавил только плавность фона) */
.lang-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px; /* Чуть больше воздуха */
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s; /* Плавный ховер на пунктах */
}

.lang-menu button:hover {
    background: #fff;
    color: #000;
}

/* --- БОНУС: Анимация стрелочки --- */
.lang-dropdown span i {
    transition: transform 0.3s ease; /* Плавный поворот */
    margin-left: 5px;
}

.lang-dropdown:hover span i {
    transform: rotate(180deg); /* Поворот при наведении */
}

/* Кнопка "Войти" */
.btn-login {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 4px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.btn-login:hover {
    background: #fff;
    color: var(--dark-blue);
}

/* --- NAVBAR (Основная) --- */
.navbar {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* СТИЛЬ АКТИВНОЙ КНОПКИ (СИНЯЯ КАПСУЛА) */
.active-pill {
    background: linear-gradient(135deg, #3a3a9e, #5555bb); /* Градиент как на фото */
    color: white !important;
    padding: 8px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(58, 58, 158, 0.3);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: inherit;
    cursor: pointer;
    padding: 5px;
}

.share-btn {
    background: linear-gradient(135deg, #3a3a9e, #5555bb);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}
.share-btn i { color: white !important; }

.nav-actions {
    display: flex;
    align-items: center;
}

/* Адаптив */
@media (max-width: 1024px) {
    .top-left { display: none; } /* Скрываем ссылки сверху на планшетах */
    .nav-links { display: none; } /* Бургер меню надо донастроить отдельно */
    .burger-menu { display: block; font-size: 1.5rem; cursor: pointer; }
    .nav-actions { display: none; } /* Скрываем поиск на мобилках если мало места */
}

/* Burger Menu */
.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-blue);
}

/* Language Switcher */
.lang-switcher button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
    transition: 0.2s;
}

.lang-switcher button:hover {
    background: var(--primary-color);
    color: white;
    transition: 0.2s;
}

.lang-switcher button.active {
    background: var(--primary-color);
    color: white;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    background: #0f172a; /* Цвет подложки, если картинка не загрузится */
}

/* Общие стили для слайда */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Скрыт по умолчанию */
    transition: opacity 1s ease-in-out; /* Плавное появление */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
    /* Параллакс настройки */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Тот самый параллакс */
    z-index: 0;
}

/* Активный слайд */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Затемнение (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Полупрозрачный черный */
    z-index: 1;
}

/* Контент поверх затемнения */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-content h2 { font-size: 1.5rem; margin-bottom: 30px; font-weight: 300; }

/* Кнопка */
.btn-primary {
    padding: 12px 30px;
    background-color: #278145;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background-color: #1e6b36;
    transform: scale(1.05);
}

/* --- Точки навигации (Dots) --- */
.slider-dots {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active, .dot:hover {
    background-color: white;
    transform: scale(1.2);
}

.btn-primary2 {
    padding: 12px 30px;
    margin: 30px 0px;
    background-color: white;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary2:hover {
    background-color: #092f2a;
    color: white;
}

/* Scroll Animations */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.card {
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
}

.stats-section {
    /* 1. Настройка фона и наложения */
    /* linear-gradient создает синюю пленку поверх фото. 
       0.85 - это прозрачность (от 0 до 1). Меняй URL на свое изображение. */
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), 
                url('assets/background2.jpg'); 
    
    /* 2. Магия параллакса */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    /* Остальные стили */
    color: white;
    padding: 100px 0; /* Чуть увеличил отступы для масштабности */
    margin-top: 60px;
    position: relative;
}

/* Сетка (оставляем как было, чуть улучшил адаптивность) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Увеличил minmax чтобы цифры не слипались */
    text-align: center;
    gap: 30px;
}

.stat-item h3 { 
    font-size: 3.5rem; /* Сделал цифры крупнее и жирнее */
    font-weight: 800;
    color: var(--accentt-color); /* Желтый/Золотой цвет цифр */
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ВАЖНО: Отключаем параллакс на мобильных телефонах */
/* На iPhone/Android параллакс часто тормозит или выглядит плохо, лучше сделать фон статичным */
@media (max-width: 768px) {
    .stats-section {
        background-attachment: scroll;
    }
}

/* Common Sections */
section { padding: 0px 0px 40px 0px; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.section-subtitle, .section-desc {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

/* --- Секция Партнеров --- */
.partners-slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.partners-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px; /* Отступы, чтобы тени не обрезались */
    cursor: grab; /* Курсор в виде ладони */
    
    /* Скрываем стандартный скроллбар */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.partners-slider::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Состояние "Захвата" (когда тянешь мышкой) */
.partners-slider.active {
    cursor: grabbing;
    user-select: none; /* Чтобы текст не выделялся */
}

/* Карточка партнера */
.partner-card {
    min-width: 200px; /* Ширина карточки */
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Чтобы карточки не сжимались */
    flex-shrink: 0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Контейнер для лого */
.logo-box {
    height: 80px; /* Фиксированная высота для лого */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    
    /* ЧБ фильтр по умолчанию */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

/* При наведении на карточку лого становится цветным */
.partner-card:hover .logo-box {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Секция Партнеров --- */
.partners-slider-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden; /* Скрываем вылезающие элементы */
}

.partners-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto; /* Позволяет скроллить */
    padding: 10px 5px 30px 5px;
    cursor: grab;
    
    /* Важно для бесконечной прокрутки JS: отключаем плавность на уровне CSS, 
       чтобы мгновенный прыжок в начало был незаметен */
    scroll-behavior: auto !important; 

    /* Скрываем скроллбар */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.partners-slider::-webkit-scrollbar { 
    display: none; 
}

.partners-slider.active {
    cursor: grabbing;
    user-select: none; 
}

/* Карточка партнера */
.partner-card {
    min-width: 200px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Логотип */
.logo-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}
.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-card:hover .logo-box {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Логотип впишется и не обрежется */
    pointer-events: none; /* Запрещаем перетаскивание самой картинки браузером */
}

.partner-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
}

.slider-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: -10px;
}

/* Programs Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.program-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.program-card:hover { transform: scale(1.03); }
.center-btn { text-align: center; }

/* --- Секция Клубов --- */
.clubs-slider-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.clubs-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 20px 30px 20px; /* Чуть больше отступ по бокам */
    cursor: grab;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.clubs-slider::-webkit-scrollbar { display: none; }

.clubs-slider.active {
    cursor: grabbing;
}

/* --- Основные настройки секции --- */
.clubs-section {
    padding: 50px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #002366; /* Темно-синий заголовок */
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 800;
}

/* --- СЕТКА (GRID) --- */
.clubs-grid {
    display: grid;
    /* 3 колонки одинаковой ширины */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Расстояние между карточками */
}

/* --- ДИЗАЙН КАРТОЧКИ --- */
.club-card {
    position: relative;
    height: 520px; /* Фиксированная высота, чтобы все были ровными */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #000; /* Фон пока грузится картинка */
}

.club-card:hover {
    transform: translateY(-10px); /* Карточка всплывает при наведении */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Картинка на фоне */
.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* Эффект зума картинки при наведении */
.club-card:hover .card-bg {
    transform: scale(1.1);
}

/* Оверлей (Контент) */
.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    /* Градиент: чтобы текст читался, снизу темнее */
    background: linear-gradient(180deg, rgba(0, 35, 102, 0.1) 0%, rgb(18 34 67 / 95%) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column; /* Элементы друг под другом */
    color: #fff;
}

/* Заголовок клуба */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 3px solid #ffffff; /* Желтая линия */
    padding-bottom: 10px;
    display: inline-block;
}

/* Описание (текст) */
.card-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Список преимуществ */
.card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.card-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-list li::before {
    content: "✔"; /* Галочка вместо точки */
    color: #ffffff; /* Желтый цвет */
    position: absolute;
    left: 0;
}

/* Кнопка (Прижата к низу) */
.card-btn {
    margin-top: auto; /* Это магия: прижимает кнопку к самому низу карточки */
    display: block;
    text-align: center;
    background-color: #009e52;
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.card-btn:hover {
    background-color: #fff; /* При наведении становится белой */
    color: #000f20;
}

/* --- АДАПТИВНОСТЬ (Мобильные устройства) --- */

/* Планшеты (меньше 1024px) -> 2 колонки */
@media (max-width: 1024px) {
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Телефоны (меньше 768px) -> 1 колонка */
@media (max-width: 768px) {
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    .club-card {
        height: auto; /* На телефоне высота может быть автоматической */
        min-height: 450px;
    }
}

/* --- Дизайн Карточки --- */
.club-cardd {
    position: relative;
    min-width: 280px;  /* Ширина карточки */
    height: 400px;     /* Немного увеличил высоту для списков */
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    background-color: #002366; /* Цвет фона если картинка не загрузится */
}

.club-cardd:hover {
    transform: translateY(-5px);
}

/* Фотография на фоне */
.club-cardd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Делаем картинку чуть тусклее, чтобы текст читался лучше */
    filter: brightness(0.7); 
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Оверлей с контентом (Синий фон как на постере) */
.club-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 35, 102, 0.1) 0%, rgb(25 46 88 / 95%) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Текст начинается сверху */
    align-items: flex-start;
    color: #fff;
}

/* Заголовок */
.club-name {
    font-size: 1.6rem;
    font-weight: 800; /* Жирный шрифт как на фото */
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    border-bottom: 2px solid #11de7b; /* Желтая полоска для акцента (опционально) */
    padding-bottom: 10px;
    width: 100%;
}

/* Список */
.club-list {
    list-style: none; /* Убираем стандартные точки браузера */
    padding: 0;
    margin: 0;
    width: 100%;
}

.club-list li {
    position: relative;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 20px; /* Место для нашей точки */
    line-height: 1.4;
    font-weight: 500;
}

/* Кастомные точки списка (белые кружки) */
.club-list li::before {
    content: "•";
    color: #fff; /* Можно сделать желтым #FFD700, если хотите акцент */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0px;
    font-size: 1.2rem;
}

/* Изначальное состояние: скрыто и смещено вниз */
.club-card {
    opacity: 0;
    transform: translateY(50px); /* Смещаем вниз на 50px */
    transition: all 0.6s ease-out; /* Плавность 0.6 секунды */
}

/* Состояние "Видимый": возвращаем на место */
.club-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* (Опционально) Задержка для каждой карточки, чтобы они выплывали лесенкой */
/* Если карточек много, это выглядит очень круто */
.club-card:nth-child(2) { transition-delay: 0.1s; }
.club-card:nth-child(3) { transition-delay: 0.2s; }
.club-card:nth-child(4) { transition-delay: 0.1s; } /* На новой строке снова с задержкой */
.club-card:nth-child(5) { transition-delay: 0.2s; }
.club-card:nth-child(6) { transition-delay: 0.3s; }

/* Затемнение фона */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Темный полупрозрачный фон */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Скрываем по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Активное состояние (когда открыто) */
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.modal-overlay.open .modal-window {
    transform: translateY(0);
}

/* Крестик закрытия */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #000;
}

/* Заголовки */
.modal-header h2 {
    margin-top: 0;
    color: #002366; /* Твой синий */
}

.modal-header p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.highlight-text {
    color: #28a745; /* Зеленый цвет (как на кнопках) */
    font-weight: bold;
}

/* Поля ввода */
.modal-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.modal-form input:focus {
    border-color: #28a745; /* Зеленая обводка при фокусе */
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #28a745; /* Зеленый (подстрой под свой код цвета) */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #218838; /* Чуть темнее при наведении */
}

/* --- 3D ГАЛЕРЕЯ --- */
.gallery-section {
    padding: 60px 0;
    overflow: hidden; /* Чтобы 3D элементы не вылезали за экран */
    background: #f9f9f9; /* Легкий фон, чтобы выделить фото */
}

.gallery-3d-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    height: 500px; /* Высота галереи под размер фото */
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Глубина 3D сцены */
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Карточка фото */
.gallery-item {
    position: absolute;
    width: 350px; /* Ширина фото */
    height: 450px; /* Высота фото */
    border-radius: 20px;
    background: #fff;
    transition: all 0.5s ease-in-out; /* Плавность анимации */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    
    /* Начальное состояние (для скрытых) */
    opacity: 0;
    transform: translate3d(0, 0, -200px); 
    z-index: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Чтобы не перетаскивались */
}

/* --- СОСТОЯНИЯ (JS будет менять эти классы) --- */

/* Активное фото (По центру) */
.gallery-item.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Следующее фото (Справа, повернуто) */
.gallery-item.next {
    opacity: 0.7;
    transform: translate3d(250px, 0, -100px) rotateY(-15deg);
    z-index: 5;
    filter: brightness(0.8); /* Чуть темнее */
}

/* Предыдущее фото (Слева, повернуто) */
.gallery-item.prev {
    opacity: 0.7;
    transform: translate3d(-250px, 0, -100px) rotateY(15deg);
    z-index: 5;
    filter: brightness(0.8);
}

/* --- КНОПКИ --- */
.gallery-nav {
    position: absolute;
    bottom: -80px; /* Кнопки под фото */
    display: flex;
    gap: 20px;
}

.g-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002D62; /* APEC Blue */
    transition: all 0.3s ease;
}

.g-btn svg {
    width: 28px;
    height: 28px;
}

.g-btn:hover {
    background: #002D62;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 45, 98, 0.3);
}

.g-btn:active {
    transform: scale(0.95);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .gallery-3d-container { height: 400px; }
    .gallery-item { width: 260px; height: 350px; }
    .gallery-item.next { transform: translate3d(60px, 0, -100px) rotateY(-10deg) scale(0.9); }
    .gallery-item.prev { transform: translate3d(-60px, 0, -100px) rotateY(10deg) scale(0.9); }
}

/* Contact Form */
.contact-form-section {
    background: var(--dark-blue);
    color: white;
    text-align: center;
}

.mini-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-form input, .mini-form textarea {
    padding: 15px;
    background-color: #001f4a;
    color: #fff;
    border-radius: 5px;
    border: none;
    outline: none;
}

/* Instagram */
.instagram-block {
    text-align: center;
    border-radius: 20px;
    margin: 40px auto;
}
.insta-btn {
    display: inline-block;
    background: #cc2366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: bold;
    transition: var(--transition);
}
.insta-btn:hover { transform: scale(1.1); }

/* Map */
.map-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Стили Футера --- */
.site-footer {
    background-color: #000f20; /* Темно-серый фон как на фото */
    color: #ffffff;
    padding-top: 30px;
    font-family: sans-serif; /* Или твой основной шрифт */
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

/* --- Левая часть (Контакты) --- */
.footer-left {
    flex: 0 0 300px; /* Фиксированная ширина левой колонки */
    margin-right: 40px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 2px;
    color: #fff;
    width: 20px;
    text-align: center;
}

.contact-text h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-text p, 
.contact-text a {
    margin: 0;
    font-size: 0.95rem;
    color: #d1d1d1; /* Чуть серый текст */
    line-height: 1.4;
    text-decoration: none;
}

.contact-text a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Разделитель --- */
.footer-divider {
    width: 2px;
    background-color: #fff;
    margin-right: 40px;
    /* Скрываем на мобильных */
    display: block; 
}

/* --- Правая часть (Ресурсы + Город) --- */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.footer-nav-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    z-index: 2; /* Чтобы текст был поверх картинки города, если наедет */
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Ссылки ресурсов */
.resources ul {
    list-style: none;
    padding: 0;
}

.resources li {
    margin-bottom: 12px;
}

.resources a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.resources a:hover {
    color: #fff;
}

/* Соцсети */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border: 1px solid #777; /* Тонкая рамка */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-btn:hover {
    background-color: #fff;
    color: #2b2b2b;
    border-color: #fff;
}

/* --- Картинка Города --- */
.footer-city-img {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Выравниваем вправо, как на макете */
}

.footer-city-img img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    /* Если картинка белая с прозрачным фоном, она идеально ляжет */
}

/* --- Нижняя полоска --- */
.footer-bottom {
    background-color: #030c18; /* Чуть темнее основного фона */
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ (Телефоны и планшеты)
   ========================================= */
@media (max-width: 992px) {

    /* --- 1. ГЛАВНОЕ: ВКЛЮЧАЕМ КНОПКУ БУРГЕРА --- */
    .burger-menu {
        display: block !important; /* Принудительно показываем */
        font-size: 2rem;           /* Размер иконки */
        color: #333;               /* Цвет (черный) */
        cursor: pointer;
        position: relative;
        z-index: 2000;             /* Чтобы была поверх всего */
        margin-left: auto;         /* Прижать вправо (если во флекс контейнере) */
    }

    /* Анимация крестика (если JS добавляет класс active) */
    .burger-menu.active i {
        /* Если у тебя FontAwesome, можно менять контент или поворачивать */
        color: #0056b3; 
    }

    /* --- 2. ОСНОВНОЕ МЕНЮ (Шторка) --- */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute; /* Или fixed, если хочешь чтобы ездило за экраном */
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        z-index: 1500;

        /* Скрыто по умолчанию */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        transform: translateY(-10px);
    }

    /* Меню открыто (класс добавляет JS) */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Ссылки меню */
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 20px 0;
        font-size: 1.2rem;
        color: #333;
        background: #fff;
        text-decoration: none;
    }

    /* --- 3. ВЫПАДАЮЩИЕ СПИСКИ (DROPDOWNS) --- */
    
    /* Отключаем всплытие при наведении (Hover) - УБИВАЕМ ГЛЮК */
    .dropdown:hover .dropdown-menu {
        display: none; 
    }

    /* Базовый стиль списка (скрыт) */
    .dropdown-menu {
        position: static !important; /* Не летает, а раздвигает список */
        float: none !important;
        display: none;               /* Жестко скрыт */
        width: 100%;
        box-shadow: none !important;
        border: none;
        background: #f9f9f9 !important; /* Чуть серее фон для вложенности */
        margin: 0;
        padding: 0;
        transform: none !important;
    }

    /* ПОКАЗЫВАЕМ ТОЛЬКО ЕСЛИ ЕСТЬ КЛАСС ACTIVE (от JS) */
    .dropdown.active > .dropdown-menu {
        display: block !important;
    }

    /* Ссылки внутри выпадающего */
    .dropdown-menu li a {
        padding: 15px 0;
        font-size: 1.1rem;
        color: #555;
        background: transparent; /* Прозрачный фон, чтобы видеть серый цвет родителя */
    }
    
    /* Активная вкладка */
    .dropdown.active > a {
        color: #0056b3;
        font-weight: bold;
        background: #fff;
    }
    
    /* Поворот стрелки */
    .dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* --- Стили для страницы Администрации --- */

.admin-main {
    padding: 60px 0;
    background-color: #f9f9f9; /* Светлый фон страницы */
    min-height: 80vh;
    margin-top: 120px;
}

.page-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-structure {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    
    /* ВОТ ЭТА СТРОКА РЕШАЕТ ПРОБЛЕМУ: */
    align-items: flex-start; 
}

/* Карточка сотрудника */
.admin-card {
    background-color: #e3e5e7; /* Тёмно-серый фон карточки как на фото */
    color: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    width: 230px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Фото */
.admin-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    margin-bottom: 20px;
    background: white;
}

.admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текст внутри карточки */
.admin-info h3 {
    color: var(--dark-blue); /* Золотой цвет для должности */
    font-size: 1.1rem;
    margin-bottom: 10px;
    min-height: 50px; /* Чтобы карточки были ровными по высоте заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-info h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
}

/* Изначальное скрытое состояние */
.admin-details-content {
    display: grid;
    grid-template-rows: 0fr; /* Высота 0 */
    transition: grid-template-rows 0.4s ease-out; /* Плавная анимация */
    overflow: hidden;
}

/* Внутренний элемент (обязательно нужен min-height: 0) */
.admin-details-content > p {
    min-height: 0;
    margin: 0; /* Убираем отступы, чтобы не дергалось */
    opacity: 0; /* Опционально: текст появляется плавно */
    transition: opacity 0.4s ease-out;
}

/* Класс, который добавляет JS */
.admin-details-content.open {
    grid-template-rows: 1fr; /* Растягиваем до реальной высоты контента */
}

.admin-details-content.open > p {
    opacity: 1; /* Показываем текст */
    padding-top: 10px; /* Отступ добавляем только когда открыто */
    color: #333;
    margin-bottom: 15px;
}

/* Кнопка "Подробнее" */
.btn-details {
    background: #fff;
    color: black;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-details:hover {
    background: var(--dark-blue);
    color: #fff;
}

/* --- Стили для Блога Директора --- */

.blog-main {
    background-color: #f4f6f8;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Секция приветствия */
.director-welcome-section {
    padding: 60px 0;
    background: linear-gradient(to right, #003366, #0047AB); /* Синий градиент */
    margin-bottom: 50px;
}

.welcome-card {
    background: white;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-photo {
    flex: 1;
    min-width: 300px;
}

.welcome-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text {
    flex: 1.5;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text h5 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.welcome-text h1 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.position-text {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.welcome-divider {
    border: 0;
    height: 2px;
    background: var(--accentt-color);
    width: 50px;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.social-links-director a {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-right: 20px;
    transition: var(--transition);
}

.social-links-director a:hover {
    color: var(--accentt-color);
}

/* Сетка постов */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accentt-color);
    color: var(--dark-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.post-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: bold;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.read-more-btn:hover {
    gap: 15px;
    color: var(--dark-blue);
}

/* Адаптивность для блога */
@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
    }
    .welcome-photo {
        height: 250px;
    }
    .welcome-text {
        padding: 30px 20px;
    }
}

/* --- Новый дизайн Блока Директора (Reference Style) --- */

.director-hero-new {
    padding: 80px 0;
    background: #fff;
}

.hero-layout {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 100px;
}

/* ЛЕВАЯ ЧАСТЬ - ФОТО */
.hero-image-wrapper {
    flex: 1;
    min-width: 350px;
    position: relative;
    margin-top: 20px;
    margin-left: 20px; /* Отступ для рамки */
}

/* Декоративная рамка сзади */
.image-frame-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: 0;
}

.image-box {
    position: relative;
    z-index: 1;
    background: #e0e0e0; /* Светло-серый фон как на фото */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ПРАВАЯ ЧАСТЬ - КОНТЕНТ */
.hero-content-new {
    flex: 1.2;
    padding-top: 10px;
}

.super-header {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-content-new h1 {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 700;
}

/* Цитата в рамке */
.hero-quote-box {
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color); /* Черная линия слева */
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.hero-quote-box p {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}

.hero-content-new h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.hero-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Список с галочками */
.hero-list {
    margin-bottom: 30px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.hero-list li i {
    color: #222; /* Цвет галочки */
    font-size: 0.9rem;
}

.hero-footer-text {
    margin-bottom: 40px;
    color: #555;
}

/* Нижняя панель (Имя + Кнопка) */
.hero-action-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.director-sign {
    display: flex;
    flex-direction: column;
}

.director-sign strong {
    font-size: 1.1rem;
    color: #222;
}

.director-sign span {
    font-size: 0.9rem;
    color: #777;
}

/* Кнопка "Задать вопрос" */
.btn-ask-question {
    background-color: var(--primary-color); /* Почти черный, как на фото */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ask-question:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column;
    }
    .hero-image-wrapper {
        width: 100%;
        margin-right: 20px;
    }
}

/* --- Стили для Аккредитации --- */

.accreditation-main {
    padding: 60px 0;
    background-color: #f0f2f5; /* Чуть сероватый фон, чтобы белые карточки выделялись */
    min-height: 80vh;
}

.page-header-center {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
}

.page-header-center h1 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-header-center p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--accentt-color);
    margin: 0 auto;
}

/* Сетка карточек */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent; /* Для эффекта при наведении */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--accentt-color); /* Золотая полоска сверху при наведении */
}

/* Логотип внутри карточки */
.partner-logo {
    height: 80px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%); /* Логотипы серые */
    opacity: 0.7;
    transition: var(--transition);
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%); /* Становятся цветными при наведении */
    opacity: 1;
}

.partner-content h3 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.partner-year {
    display: inline-block;
    background: #eee;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.partner-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Бейджик в углу карточки */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-badge i {
    color: var(--accentt-color);
}

/* Нижний блок с итогом */
.accreditation-info-box {
    background: var(--dark-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.accreditation-info-box i {
    font-size: 2.5rem;
    color: var(--accentt-color);
}

.accreditation-info-box p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Адаптив */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
    }
}

/* --- Стили для Страницы "О нас" (about.html) --- */

/* Общие отступы секций */
.section-padding {
    padding: 40px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

/* 1. Page Hero */
.page-hero {
    background-color: #31a495;
    padding: 100px 0;
    margin-top: 100px;
    text-align: center;
    color: white;
}
.hero-text-center h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}
.hero-text-center p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 2. Intro Section (Split) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.intro-content { flex: 1; }
.intro-image-wrapper { 
    flex: 1; 
    position: relative;
    min-width: 300px;
}
.intro-image-wrapper img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Бейджик 14+ лет */
.floating-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}
.badge-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.badge-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.section-tag {
    color: var(--primaty-color); /* Золотой/Оранжевый */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}
.about-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-blue);
}
.intro-lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}
.intro-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}
.check-list {
    list-style: none;
}
.check-list li {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}
.check-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 3. Timeline (История) */
.history-section { position: relative; }
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}
/* Центральная линия */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Левая и правая стороны */
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* Кружок на линии */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.timeline-content:hover { transform: translateY(-3px); }

.timeline-content .year {
    font-size: 1.5rem;
    font-weight: 800;
    color: #31a495;
    display: block;
    margin-bottom: 5px;
}
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.timeline-content p { font-size: 0.95rem; color: #666; }

/* 4. Mission & Vision */
.split-cards {
    display: flex;
    gap: 30px;
}
.mv-card {
    flex: 1;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}
.mv-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}
.mv-card.dark {
    background: var(--dark-blue);
    color: white;
}
.mv-card.light {
    background: white;
    color: var(--dark-blue);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.mv-card.light i { color: var(--primary-color); }
.mv-card h3 { font-size: 1.8rem; margin-bottom: 15px; }

/* 5. Values (Ценности) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.value-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-5px); }
.icon-box {
    width: 70px;
    height: 70px;
    background: #eef2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.icon-box i { font-size: 1.8rem; color: var(--primary-color); }
.value-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark-blue); }

/* 6. Team Slider (Команда) */
.team-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.team-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth; /* Плавность для кнопок */
    padding: 20px 5px;
    /* Скрываем скроллбар */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: grab;
}
.team-slider::-webkit-scrollbar { display: none; }
.team-slider.active { cursor: grabbing; scroll-behavior: auto; }

.team-card {
    min-width: 280px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    user-select: none; /* Чтобы текст не выделялся при драге */
}
.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Чтобы картинка не перетаскивалась браузером */
}
.team-info { padding: 20px; text-align: center; }
.team-info h5 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 5px; }
.team-info span { font-size: 0.9rem; color: #777; }

.slider-btn {
    background: var(--dark-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    flex-shrink: 0;
}
.slider-btn:hover { background: var(--accentt-color); }
.prev-btn { margin-right: 15px; }
.next-btn { margin-left: 15px; }

/* 7. Campus Grid */
/* Сетка (оставляем как было, чуть поправил minmax для гибкости) */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.campus-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.campus-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%; /* Чтобы карточки были одинаковой высоты */
    display: flex;
    flex-direction: column;
}

/* Ховер эффект на саму карточку (легкий подъем) */
.campus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- БЛОК С ИКОНКОЙ --- */
.campus-thumb {
    height: 220px; /* Высота цветного блока */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Чтобы иконка не вылезала при увеличении */
}

/* Стиль самой иконки */
.campus-thumb i {
    font-size: 5rem; /* Размер иконки */
    color: white;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистая анимация */
}

/* АНИМАЦИЯ: При наведении на карточку, иконка увеличивается */
.campus-item:hover .campus-thumb i {
    transform: scale(1.3);
}

/* --- ЦВЕТА ФОНОВ (Градиенты) --- */
/* Ты можешь поменять эти цвета на любые hex коды */

/* 1. Лаборатории (Синий) */
.bg-1 {
    background: linear-gradient(135deg, #1a84be 0%, #194042 100%);
}

/* 2. Библиотека (Фиолетовый) */
.bg-2 {
    background: linear-gradient(135deg, #667eea 0%, #200c35 100%);
}

/* 3. Спорт (Оранжевый) */
.bg-3 {
    background: linear-gradient(135deg, #e57df1 0%, #6d083f 100%);
}

/* 4. Столовая (Зеленый/Бирюзовый) */
.bg-4 {
    background: linear-gradient(135deg, #4df385 0%, #086c5a 100%);
}

.bg-5 {
    background: linear-gradient(135deg, #000000 0%, #108a47 100%);
}

.bg-6 {
    background: linear-gradient(135deg, #e96969 0%, #086c5a 100%);
}

.bg-7 {
    background: linear-gradient(135deg, #383838 0%, #000000 100%);
}

.bg-8 {
    background: linear-gradient(135deg, #123953 0%, #0982b6 100%);
}

.bg-9 {
    background: linear-gradient(135deg, #ffed28 0%, #0a4f7a 100%);
}

.bg-10 {
    background: linear-gradient(135deg, #38795f 0%, #053225 100%);
}

.bg-11 {
    background: linear-gradient(135deg, #adadad 0%, #383a3a 100%);
}

.bg-12 {
    background: linear-gradient(135deg, #9b4040 0%, #491b0b 100%);
}


/* Синий бабл с кодом */
.spec-code {
    background: #0a885e; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code2 {
    background: #b35d6a; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code3 {
    background: #333; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code4 {
    background: #387cb0; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code5 {
    background: #ffdf61; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code6 {
    background: #173a1a; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code7 {
    background: #b6b6b6; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spec-code8 {
    background: #64180e; /* Цвет из примера */
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Разделительная линия */
.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Иконки в футере */
.spec-footer {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 15px;
}

.footer-item i {
    font-size: 18px;
}

/* Ссылка Подробнее */
.more-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s;
    margin-top: 10px;
}

.more-link:hover {
    transform: translateX(5px); /* Небольшая анимация стрелочки */
}

/* Текстовая часть */
.campus-info {
    padding: 25px;
    flex-grow: 1; /* Чтобы текст занимал оставшееся место */
    text-align: center;
}
.campus-info h4 {
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-size: 1.25rem;
}
.campus-info p {
    color: #666;
    font-size: 0.95rem;
}

/* 8. CTA Section */
.cta-section {
    background: #093f37;
    color: white;
    padding: 80px 0;
    text-align: center;
}
.cta-content h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .split-layout { flex-direction: column; }
    .intro-image-wrapper { width: 100%; margin-bottom: 40px; }
    .split-cards { flex-direction: column; }
    .campus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Timeline Mobile */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item::after { left: 21px; } /* Точка слева */
    
    .floating-badge { left: 0; bottom: -20px; }
    .cta-buttons { flex-direction: column; }
}

/* --- ADMISSIONS PAGE STYLES --- */

/* Base Layout & Animation */
.admissions-page {
    width: 100%;
    overflow-x: hidden;
    color: #333; /* Основной цвет текста, если не задан глобально */
}

.adm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.adm-section {
    padding: 40px 0;
    opacity: 0; /* Для анимации */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delay animations slightly for effect */
.adm-section:nth-child(1) { animation-delay: 0.1s; }
.adm-section:nth-child(2) { animation-delay: 0.2s; }
.adm-section:nth-child(3) { animation-delay: 0.3s; }
.adm-section:nth-child(4) { animation-delay: 0.4s; }
.adm-section:nth-child(5) { animation-delay: 0.5s; }
.adm-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Titles */
.admissions-page h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-blue); /* APEC Blue suggestion */
}
.adm-section-desc, .adm-form-desc, .adm-contact-sub {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
}

/* 1. Hero */
.adm-hero {
    background: linear-gradient(135deg, #31a495); /* Blue gradient */
    color: #fff;
    text-align: center;
    padding: 120px 0;
    margin-top: 100px;
}
.adm-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.adm-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 2. Steps (Horizontal line) */
.adm-steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.adm-step-card {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s;
}
.adm-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}
.adm-step-card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #002D62;
}

/* 3. Documents */
.adm-docs-section {
    background-color: #fff;
}
.adm-docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.adm-doc-item {
    border-left: 4px solid #002D62;
    padding-left: 20px;
}
.adm-doc-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-blue);
}
.adm-doc-item span {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. Dates */
.adm-dates-section {
    background: #f4f6f8;
}
.adm-dates-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}
.adm-date-card {
    flex: 1;
    min-width: 200px;
}
.date-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2fb08b;
    line-height: 1;
    margin-bottom: 15px;
}
.date-big small {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 15px;
}

/* 5. Tuition */
.adm-tuition-section {
    text-align: center;
    background: #002D62;
    color: #fff;
}
.adm-tuition-section h2 { color: #fff; }
.adm-tuition-section h3 { margin-bottom: 20px; font-weight: 300; }
.adm-tuition-section p { max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* 6. Form */
.adm-wide-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #002f59;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.adm-wide-form select {
    width: 100%;
    padding: 15px;
    padding-right: 40px; /* Отступ под стрелку */
    margin-bottom: 20px;
    
    /* УБИРАЕМ все рамки и стандартные стили */
    border: none; 
    outline: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Дизайн: скругление и фон "стекло" */
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;

    /* Рисуем нашу белую стрелочку */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* При наведении делаем фон чуть светлее */
.adm-wide-form select:hover {
    background-color: rgb(51 111 80);
}

/* При нажатии (фокусе) еще светлее, но БЕЗ рамки */
.adm-wide-form select:focus {
    background-color: #001f4a;
    color: #fff;
}

/* Стилизация опций (темный фон выпадающего списка) */
.adm-wide-form select option {
    background-color: #002f59; 
    color: #fff;
    border: none; 
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row input { flex: 1; }

.adm-wide-form button {
    width: 25%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background: #fff; /* Primary btn color */
    color: #444;
    border: none;
    border-radius: 8px;
    transition: background 0.3s;
}
.adm-wide-form button:hover {
    background: #033d3d;
    color: #fff;
    transition: 0.2s;
}

/* 7. Contacts */
.adm-contacts-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.adm-c-item {
    flex: 1;
    min-width: 220px;
    padding: 20px;
}
.c-label {
    display: block;
    font-weight: bold;
    color: #002D62;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.c-link, .c-text {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
}
.c-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .adm-hero h1 { font-size: 2.5rem; }
    .adm-steps-grid { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .adm-dates-row { flex-direction: column; }
}

/* --- IT Department Section Styles --- */

/* Глобальный отступ обертки */
.itd-wrapper {
    margin-top: 150px;
    margin-bottom: 100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контейнер карточки (Белый лист) */
.itd-content-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    overflow: hidden; /* Чтобы шапка не вылезала за углы */
    max-width: 1200px; /* Ограничиваем ширину для красоты */
    margin: 0 auto;
}

/* --- 1. Шапка (Header Bar) --- */
.itd-header-bar {
    background: #247874; /* Глубокий синий */
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.itd-main-title {
    margin: 0;
    font-size: 2.2rem; /* Крупный шрифт */
    font-weight: 700;
}

.itd-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.itd-badge {
    background: rgb(18, 51, 82); /* Полупрозрачный белый */
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Тело контента */
.itd-body {
    padding: 50px;
}

/* --- 2. Описание --- */
.itd-description-text {
    font-size: 1.3rem; /* Крупный текст */
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 50px;
    max-width: 95%;
}

/* --- 3. Специальности (Сетка) --- */
.itd-specs-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 30px;
    margin-bottom: 40px;
}

.itd-spec-item {
    background: #f8fafc; /* Очень светло-серый фон */
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.itd-spec-item:hover {
    transform: translateY(-5px);
    background: #f1f5f9;
}

/* Цветная полоска слева */
.itd-spec-left-border {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

/* Цвета для полосок */
.spec-blue .itd-spec-left-border { background: #003366; } /* Синий */
.spec-pink .itd-spec-left-border { background: #b35d6a; } /* Зеленый */
.spec-yellow .itd-spec-left-border { background: #ffd640; } /* желтый */
.spec-skyblue .itd-spec-left-border { background: #429ed3; } /* желтый */
.spec-chem .itd-spec-left-border { background: #116d08; } /* желтый */
.spec-red .itd-spec-left-border { background: #63211e; } /* желтый */
.spec-gray .itd-spec-left-border { background: #707070; } /* желтый */
.spec-black .itd-spec-left-border { background: #202020; } /* желтый */

.itd-spec-info {
    padding-left: 15px;
}

.itd-code {
    display: inline-block;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    font-size: 1rem;
}

.itd-spec-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: #1e293b;
    font-weight: 700;
}

.itd-spec-item p {
    margin: 0;
    font-size: 1.1rem;
    color: #64748b;
}

/* --- 4. WorldSkills Banner --- */
.itd-ws-banner {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); /* Оставим оранжевый для контраста (WorldSkills style), либо замени на #28a745 для зелени */
    /* Вариант зеленый: background: linear-gradient(135deg, #059669 0%, #10b981 100%); */
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.itd-ws-bold {
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
}

/* --- 5. Карьера (Grid) --- */
.itd-career-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 20px;
    margin-bottom: 40px;
}

.itd-career-card {
    background: #f0fdf4; /* Светло-зеленый фон */
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: background 0.3s;
}

.itd-career-card:hover {
    background: #dcfce7;
}

.itd-c-icon {
    font-size: 2rem; /* Большие иконки */
    color: #15803d; /* Темно-зеленый */
}

.itd-career-card span {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

/* --- 6. Достижения (Нижний блок) --- */
.itd-achieve-block {
    background: #fffbeb; /* Светло-желтый/золотой фон (очень бледный) */
    border: 2px solid #fcd34d;
    border-radius: 12px;
    padding: 30px;
}

.itd-achieve-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: #b45309;
    font-size: 1.5rem;
}

.itd-achieve-block p {
    margin: 0;
    font-size: 1.2rem;
    color: #4b5563;
    padding-left: 45px; /* Отступ под иконкой */
}

.autod-header-bar {
    background: #3778c2; /* Глубокий синий */
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* --- АДАПТИВНОСТЬ (Mobile) --- */
@media (max-width: 992px) {
    .itd-header-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .itd-career-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 768px) {
    .itd-wrapper {
        margin-top: 100px;
        margin-bottom: 60px;
    }
    
    .itd-body { padding: 25px; }
    
    .itd-specs-row {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
    
    .itd-career-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
    
    .itd-main-title { font-size: 1.8rem; }
    .itd-description-text { font-size: 1.1rem; }
    
    .itd-achieve-block p { padding-left: 0; }
}

/* --- Дополнения для Электромеханики --- */

/* Если специальностей всего одна, растягиваем на всю ширину */
.itd-specs-row.single-col {
    grid-template-columns: 1fr;
}

/* Заголовки разделов внутри карточки */
.itd-sub-heading {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Сетка лабораторий (Синие теги) */
.itd-labs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.itd-lab-tag {
    background: #1e3a8a; /* Темно-синий (как на фото) */
    color: white;
    padding: 12px 25px;
    border-radius: 50px; /* Овальная форма */
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    cursor: default;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.itd-lab-tag:hover {
    background: #172554;
    transform: translateY(-2px);
}

/* Адаптив для лабораторий */
@media (max-width: 600px) {
    .itd-lab-tag {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }
}

/* Основной контейнер страницы */
.clg-main-wrapper {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif; /* Наследует твой шрифт, если убрать эту строку */
}

/* Заголовок страницы */
.clg-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-blue);
    font-size: 2rem;
}

/* Сетка галереи */
.clg-gallery-grid {
    display: grid;
    /* Адаптивность: колонки сами подстраиваются. Минимум 280px шириной */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Карточка одной новости/фото */
.clg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Легкая тень */
    transition: transform 0.3s ease;
}

.clg-card:hover {
    transform: translateY(-5px); /* Эффект приподнятия при наведении */
}

/* Контейнер для картинки (чтобы обрезать лишнее) */
.clg-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.clg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок, не искажаясь */
    transition: transform 0.3s ease;
}

.clg-card:hover .clg-photo {
    transform: scale(1.05); /* Легкий зум картинки при наведении */
}

/* Описание под фото */
.clg-card-desc {
    padding: 20px;
}

.clg-card-desc h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #222;
}

.clg-card-desc p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- СЕКЦИЯ ГАЛЕРЕИ --- */

/* Фон только для контейнера галереи */
.z-gallery-section {
    padding: 60px 20px; /* Отступы внутри синего блока */
    width: 100%;
    box-sizing: border-box;
}

.z-page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--dark-blue); /* Белый текст заголовка */
    font-family: sans-serif;
    margin-top: 100px;
}

/* СЕТКА */
.z-grid {
    display: grid;
    /* Блоки крупные (минимум 350px) */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px; /* Маленький отступ между блоками */
    max-width: 1400px;
    margin: 0 auto;
}

/* КАРТОЧКА */
.z-card {
    background: #fff; /* Белый фон внутри карточки */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none; /* Убираем рамки если были */
}

/* Эффект наведения на карточку */
.z-card:hover {
    transform: translateY(-5px); /* Чуть всплывает */
    z-index: 2;
}

/* Блок картинки */
.z-img-box {
    height: 260px; /* Высота картинки в сетке */
    width: 100%;
    overflow: hidden;
}

.z-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет блок */
    transition: transform 0.5s ease;
}

/* Зум картинки при наведении */
.z-card:hover .z-img-box img {
    transform: scale(1.05);
}

/* Текст под картинкой */
.z-text-box {
    padding: 15px;
    text-align: left;
}

.z-text-box h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #0a1f44; /* Темно-синий заголовок */
}

.z-text-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* --- МОДАЛЬНОЕ ОКНО (ПРОСМОТР) --- */

.z-modal-overlay {
    display: none; /* Скрыто */
    position: fixed;
    z-index: 9999; /* Поверх всего */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Очень темный фон вокруг */
    backdrop-filter: blur(4px);
}

.z-modal-container {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px; /* Ограничение ширины */
    background: white;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    animation: z-zoom 0.3s;
}

@keyframes z-zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

#zModalImg {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Чтобы не улетало за экран */
    object-fit: contain;
    display: block;
    background: #000;
}

.z-modal-caption {
    padding: 20px;
    background: #fff;
    text-align: center;
}
.z-modal-caption h3 { margin: 0 0 5px; color: #0a1f44; }

/* Кнопки управления */
.z-close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}
.z-close-btn:hover { color: #bbb; }

.z-prev-btn, .z-next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    z-index: 10000;
    background-color: rgba(0,0,0,0.3);
}

.z-next-btn { right: 0; border-radius: 5px 0 0 5px; }
.z-prev-btn { left: 0; border-radius: 0 5px 5px 0; }
.z-prev-btn:hover, .z-next-btn:hover { background-color: rgba(255,255,255,0.2); }

/* Фон всей секции - светло-серый, чтобы карточка выделялась */
.results-status-section {
    min-height: 80vh; /* На весь экран по высоте */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f6f9;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif; /* Или твой шрифт */
    margin-top: 130px;
}

/* Карточка уведомления */
.status-card {
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 35, 102, 0.1); /* Легкая тень */
    text-align: center;
    border-top: 5px solid #002366; /* Синяя "шапка" сверху для официальности */
}

/* Иконка календаря */
.status-icon {
    color: #002366;
    margin-bottom: 25px;
}

/* Заголовок */
.status-title {
    font-size: 2.2rem;
    color: #002366;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Бейдж статуса (с пульсирующей точкой) */
.status-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff3cd; /* Желтоватый фон (предупреждение/ожидание) */
    color: #856404;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid #ffeeba;
    white-space: nowrap; /* Запрещает перенос текста на новую строку */
    max-width: 100%; /* На всякий случай, чтобы не ломало мобилку */
}

/* Основной текст */
.status-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
    text-align: left; /* Текст читать удобнее слева */
}

/* Блок с датой */
.important-dates {
    background-color: #f8f9fa;
    border-left: 4px solid #002366; /* Синий акцент слева */
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.important-dates h3 {
    margin-top: 0;
    color: #002366;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.date-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002366;
    margin-top: 10px;
}

/* Мелкий текст внизу */
.status-footer {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

/* Кнопка "Назад" */
.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #002366;
    color: #002366;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #002366;
    color: #fff;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .status-card {
        padding: 30px 20px;
    }
    .status-title {
        font-size: 1.8rem;
    }
}

.section-title {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
    background: var(--gradient);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 170px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(0, 210, 211, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 20px 0;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* MISSION SECTION */
.mission-section {
    padding: 80px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 60, 120, 0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--accent);
}

.mission-card:hover {
    transform: translateY(-5px);
}

.icon-boxx {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* SWOT SECTION */
.swot-section {
    padding: 80px 0;
    background: #eef5fa;
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.swot-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ccc;
}

.swot-item h3 {
    margin-top: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.s-item { border-color: #2ecc71; }
.s-item h3 { color: #27ae60; }

.w-item { border-color: #f1c40f; }
.w-item h3 { color: #d35400; }

.o-item { border-color: #3498db; }
.o-item h3 { color: #2980b9; }

.t-item { border-color: #e74c3c; }
.t-item h3 { color: #c0392b; }

.swot-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* VECTORS SECTION */
.vectors-section {
    padding: 80px 0;
}

.vectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.vector-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #e0eaf5;
}

.vector-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 210, 211, 0.15);
}

.vector-card i {
    font-size: 2rem;
    color: var(--accent-dim);
    margin-bottom: 15px;
}

.vector-card h4 {
    margin: 10px 0;
    color: var(--primary);
}

.vector-card p {
    font-size: 0.9rem;
    color: #666;
}

/* KPI SECTION */
.kpi-section {
    padding: 60px 0 100px;
}

.kpi-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.08);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #eff2f7;
    color: var(--text);
}

.tag.target {
    background: rgba(0, 210, 211, 0.15);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .swot-grid { grid-template-columns: 1fr; }
    .kpi-wrapper { padding: 20px; }
}

/* --- WorldSkills Specific Styles --- */

/* Hero */
.ws-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 180px;
}

.ws-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(0, 210, 211, 0.1); /* Бирюзовый акцент */
    border-radius: 50%;
    filter: blur(50px);
}

.ws-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: bold;
}

/* Competencies Grid */
.ws-competencies {
    padding: 80px 0;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.comp-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.comp-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent);
}

.comp-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.comp-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

/* Experts Section */
.ws-experts {
    padding: 80px 0;
    background: var(--white);
}

.experts-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.expert-card {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 250px;
    border: 1px solid #eee;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.expert-card h4 { margin: 10px 0 5px; color: var(--secondary); }
.expert-card span { font-size: 0.9rem; color: #777; }

/* International List */
.experts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.intl-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent);
}

.medal-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}
.medal-icon.gold { color: #f1c40f; }
.medal-icon.silver { color: #bdc3c7; }
.medal-icon.bronze { color: #cd7f32; }

.intl-info h3 { margin: 0 0 5px; color: var(--primary); font-size: 1.1rem; }
.intl-info p { margin: 0; font-size: 0.9rem; color: #555; }

/* Achievement Box */
.ws-achievement {
    padding: 60px 0;
    background: var(--primary); /* Синий фон */
    color: var(--white);
}

.achievement-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-align: center;
}

.trophy-icon {
    font-size: 5rem;
    color: #f1c40f; /* Золотой кубок */
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
}

.achieve-content h2 { margin: 0 0 10px; color: var(--accent); }
.achieve-content h3 { margin: 0 0 10px; font-size: 1.5rem; }
.achieve-content p { opacity: 0.9; }

/* Partners */
.ws-partners {
    padding: 80px 0;
    text-align: center;
    background: var(--light);
}

.partners-content {
    max-width: 800px;
    margin: 0 auto;
}

.logos-placeholder {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logos-placeholder span {
    font-weight: bold;
    color: var(--primary);
    padding: 10px 20px;
    background: rgba(0, 78, 137, 0.1);
    border-radius: 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .achievement-box { flex-direction: column; gap: 20px; }
    .experts-list { grid-template-columns: 1fr; }
}

/* --- Hero Section (Главный экран) --- */
.heroo-section {
    position: relative;
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    overflow: hidden;
    padding-top: 180px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #bfdbfe;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #fff;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

/* --- Карточки (Cards) --- */
.section-wrapper {
    padding: 4rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

.sectionn-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card.border-blue { border-color: #3b82f6; }
.feature-card.border-emerald { border-color: #10b981; }
.feature-card.border-purple { border-color: #8b5cf6; }

.icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* --- Таблицы и списки --- */
.custom-table-wrapper {
    background: #f8fafc;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table tr:hover {
    background-color: #eff6ff;
}

.highlight-blue {
    color: #21606f;
    font-weight: bold;
}

/* --- Alert Boxes --- */
.alert-box {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left-width: 4px;
}

.alert-red {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* --- Budget & Stats --- */
.budget-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #1e293b;
    color: white;
    border-radius: 0.75rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-top-width: 4px;
}
.stat-card.border-yellow { border-top-color: #facc15; }
.stat-card.border-orange { border-top-color: #f97316; }
.stat-card.border-red { border-top-color: #dc2626; }

.stat-val { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: #64748b; font-weight: bold; }

/* --- Formula Bar --- */
.formula-bar {
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .formula-bar { flex-direction: row; }
}

.formula-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- Dress Code Lists --- */
.list-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}
.bg-emerald-light { background-color: #ecfdf5; border-color: #d1fae5; }
.bg-red-light { background-color: #fef2f2; border-color: #fee2e2; }

.styled-list { list-style: none; padding: 0; margin-top: 1rem; }
.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.styled-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}
.emerald-dots li::before { background-color: #10b981; }
.red-dots li::before { background-color: #ef4444; }

/* --- Campus & Footer --- */
.bg-dark { background-color: #0f172a; }
.icon-boxx {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
}
.icon-boxx:hover { background: #334155; }

.contacts-bar {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}
.contacttt-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}
.contacttt-item .label { text-transform: uppercase; font-size: 0.8rem; opacity: 0.8; margin-bottom: 0.25rem; }
.contacttt-item .value { font-weight: bold; font-size: 1.25rem; }

/* --- Основные настройки секции --- */
.campus-section {
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.text-white {
    color: #ffffff;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Заголовки --- */
.sectionnn-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* --- Сетка (Grid) --- */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* --- Карточки (Icon Box) --- */
.icon-boxx {
    background-color: #1e293b;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Чтобы контент не "прыгал" */
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%; /* Одинаковая высота карточек */
}

.icon-boxx:hover {
    background-color: #334155;
    transform: translateY(-5px);
}

/* --- Настройка иконок Font Awesome --- */
.campus-icon {
    font-size: 3.5rem; /* Размер иконки */
    color: #fff;    /* Голубой цвет (можно поменять на любой) */
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.icon-boxx:hover .campus-icon {
    color: #e2e2e2; /* Иконка становится светлее при наведении */
}

.rule-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

/* --- Блок мотивации --- */
.motivation-box {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    border-left: 4px solid #3b82f6;
}

.motivation-box p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.pdf-section-wrapper {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pdf-grid {
    display: grid;
    /* Автоматическая сетка: 1 колонка на телефоне, до 4 на пк */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* Стили карточки */
.pdf-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении */
.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

/* Иконка */
.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.pdf-card:hover .icon-box {
    background: var(--accent-color);
    color: white;
}

.icon-box svg {
    width: 30px;
    height: 30px;
}

/* Тексты */
.content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
}

.content p {
    margin: 0 0 25px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Кнопка */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    gap: 8px;
}

.download-btn:hover {
    background: var(--accent-color);
    color: white;
}

.btn-icon {
    font-size: 1.1em;
}

/* Изолированный контейнер */
.psych-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.psych-section-padding {
    padding: 80px 0;
}

.psych-bg-light { background-color: var(--psych-light); }
.psych-bg-dark { background-color: var(--psych-dark); color: var(--psych-white); }
.psych-center { text-align: center; }

/* --- Hero Section --- */
.psych-hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.psych-hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.psych-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--psych-primary), var(--psych-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.psych-hero-content p {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 40px;
}

.psych-btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--psych-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.psych-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Декоративные круги */
.psych-hero-decoration .psych-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}
.psych-c1 { width: 300px; height: 300px; background: var(--psych-secondary); top: -50px; right: -50px; }
.psych-c2 { width: 400px; height: 400px; background: var(--psych-accent); bottom: -100px; right: 10%; }

/* --- Intro Section --- */
.psych-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.psych-intro-card {
    padding: 40px;
    border-radius: var(--psych-radius);
    background: white;
    box-shadow: var(--psych-shadow);
}

.psych-intro-card.psych-accent {
    background: var(--psych-primary);
    color: white;
}

.psych-intro-card .psych-icon { font-size: 3rem; margin-bottom: 20px; }

/* --- Team Section --- */
.psych-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Чуть увеличил ширину карточки */
    gap: 40px;
    margin-top: 40px;
}

.psych-member-card {
    background: white;
    /* Убрали padding, чтобы фото касалось краев */
    padding: 0; 
    border-radius: var(--psych-radius);
    box-shadow: var(--psych-shadow);
    /* border-left убираем, чтобы было красиво с фото, или оставляем по желанию */
    overflow: hidden; /* Чтобы фото не вылезало за скругленные углы */
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.psych-member-card:hover { transform: translateY(-10px); }

/* Новые стили для фото */
.psych-photo-wrapper {
    width: 100%;
    height: 350px; /* Высота фото */
    background-color: #e0e7ff; /* Цвет заглушки, пока фото не загрузится */
    position: relative;
}

.psych-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполнит блок, не искажаясь */
    object-position: top center; /* Лицо обычно сверху */
}

/* Отступы для текста внутри карточки */
.psych-member-info {
    padding: 30px;
    border-left: 5px solid var(--psych-secondary); /* Вернули полоску сюда */
}

.psych-role {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--psych-secondary);
    font-weight: 700;
}

.psych-member-info h3 {
    margin: 10px 0;
    font-size: 1.4rem;
}

.psych-phone-link {
    display: block;
    margin-top: 15px;
    color: var(--psych-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Services Split --- */
.psych-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.psych-custom-list { list-style: none; padding: 0; margin-top: 20px; }
.psych-custom-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}
.psych-custom-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--psych-accent);
}

.psych-cards-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.psych-info-card {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.psych-info-card h4 { margin: 0 0 5px 0; color: var(--psych-primary); }
.psych-info-card p { margin: 0; font-size: 0.9rem; color: #6b7280; }

/* --- Tags Cloud --- */
.psych-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.psych-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

/* --- CTA Box --- */
.psych-cta-box {
    background: linear-gradient(135deg, var(--psych-primary), var(--psych-secondary));
    color: white;
    padding: 60px;
    border-radius: var(--psych-radius);
    text-align: center;
}
.psych-cta-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.psych-cta-box p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

/* --- Contacts --- */
.psych-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.psych-contact-item {
    background: white;
    padding: 30px;
    border-radius: var(--psych-radius);
    box-shadow: var(--psych-shadow);
    text-align: center;
}

.psych-contact-item strong { display: block; font-size: 1.2rem; margin-bottom: 10px; color: var(--psych-primary); }
.psych-contact-item .psych-time { display: block; margin-top: 10px; font-weight: 600; color: var(--psych-accent); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .psych-hero-content h1 { font-size: 2.5rem; }
    .psych-intro-grid, .psych-split-layout { grid-template-columns: 1fr; }
    .psych-hero-decoration { display: none; }
}

/* Основной контейнер */
.ws-exam-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Заголовок */
.ws-exam-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-top: 140px;
}

.ws-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ws-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.ws-date {
    display: inline-block;
    background-color: #f0f4f8;
    color: #0056b3;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* Сетка карточек */
.ws-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ws-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.ws-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ws-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.ws-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.ws-qual {
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ws-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.ws-stats {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
}

.ws-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ws-stat-item i {
    margin-top: 4px;
    color: #0056b3;
    width: 20px;
    text-align: center;
}

.ws-expert-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ws-result {
    margin-top: 10px;
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

.ws-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.ws-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.ws-badge.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Секция отзывов */
.ws-reviews {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ws-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.ws-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ws-review-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #0056b3;
}

.ws-review-box h4 {
    margin-bottom: 10px;
    color: #0056b3;
    font-size: 1.1rem;
}

.ws-review-box p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.ws-footer-note {
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .ws-title {
        font-size: 1.8rem;
    }
    
    .ws-exam-wrapper {
        padding: 20px 10px;
    }
    
    .ws-reviews {
        padding: 20px;
    }
}

/* --- Карточки внутри слайдера --- */

/* Контейнер для ряда карточек */
.h-cards-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0; /* Отступ сверху и снизу от текста */
    flex-wrap: wrap; /* Чтобы на мобильных переносились */
}

/* Сама карточка */
.h-card-item {
    /* Размеры */
    width: 300px;
    height: 140px;
    
    /* Фон и границы */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    
    /* Позиционирование текста */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    
    /* Эффекты */
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    
    /* Чтобы текст не вылезал */
    overflow: hidden;
}

/* Текст внутри карточки */
.h-card-item span {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Тень для читаемости */
    z-index: 2;
    line-height: 1.3;
}

/* Ховер эффект (наведение) */
.h-card-item:hover {
    transform: translateY(-5px) scale(1.05); /* Чуть всплывает и увеличивается */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #ffffff; /* Рамка становится ярко-белой */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .h-cards-row {
        gap: 10px;
        margin: 20px 0;
    }
    
    .h-card-item {
        width: 140px; /* Карточки поменьше на телефоне */
        height: 100px;
    }
    
    .h-card-item span {
        font-size: 0.85rem;
    }
}
/* --- Скрываем карточки на мобильных устройствах --- */
@media (max-width: 768px) {
    .h-cards-row {
        display: none !important; /* Полностью убирает блок из потока */
    }
}

/* Основной контейнер-изолятор */
.apec-comm-wrapper {
    --comm-blue: #1a3b86;
    --comm-white: #ffffff;
    --comm-gray: #f8f9fa;
    --comm-text: #333333;
    
    font-family: 'Open Sans', sans-serif; /* Или ваш шрифт */
    background-color: var(--comm-gray);
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Hero секция */
.apec-comm-wrapper .comm-hero {
    background-color: var(--comm-blue);
    color: var(--comm-white);
    padding: 60px 20px 100px 20px;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    padding-top: 180px;
}

.apec-comm-wrapper .comm-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.apec-comm-wrapper .comm-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Сетка курсов */
.apec-comm-wrapper .comm-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -50px auto 50px auto; /* Поднимаем карточки на синий фон */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Карточка курса */
.apec-comm-wrapper .comm-card {
    background: var(--comm-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apec-comm-wrapper .comm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.apec-comm-wrapper .comm-card-image {
    height: 200px;
    overflow: hidden;
}

.apec-comm-wrapper .comm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apec-comm-wrapper .comm-card:hover .comm-card-image img {
    transform: scale(1.1);
}

.apec-comm-wrapper .comm-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apec-comm-wrapper .comm-card-body h3 {
    color: var(--comm-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.apec-comm-wrapper .comm-card-body p {
    color: var(--comm-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Кнопка */
.apec-comm-wrapper .comm-btn-apply {
    background-color: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    align-self: flex-start;
    text-transform: uppercase;
}

.apec-comm-wrapper .comm-btn-apply:hover {
    background-color: var(--accent-dim);
    color: #fff;
}

/* Модальное окно */
.apec-comm-wrapper .comm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.apec-comm-wrapper .comm-modal-overlay.active {
    display: flex;
}

.apec-comm-wrapper .comm-modal-content {
    background-color: var(--comm-white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-top: 5px solid var(--comm-yellow);
}

.apec-comm-wrapper .comm-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}

.apec-comm-wrapper .comm-close-btn:hover {
    color: var(--comm-blue);
}

.apec-comm-wrapper .comm-modal-content h2 {
    color: var(--comm-blue);
    margin-bottom: 10px;
    text-align: center;
}

.apec-comm-wrapper .comm-selected-course {
    text-align: center;
    color: var(--comm-yellow);
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Форма в модалке */
.apec-comm-wrapper .comm-form-group {
    margin-bottom: 20px;
}

.apec-comm-wrapper .comm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--comm-text);
    font-weight: 600;
}

.apec-comm-wrapper .comm-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.apec-comm-wrapper .comm-form-group input:focus {
    border-color: var(--comm-blue);
    outline: none;
}

.apec-comm-wrapper .comm-btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--comm-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.apec-comm-wrapper .comm-btn-submit:hover {
    background-color: #122a63;
}

/* Анимация Scroll Anim (базовая реализация) */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-anim.show {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .apec-comm-wrapper .comm-hero h1 {
        font-size: 1.8rem;
    }
    .apec-comm-wrapper .comm-grid-container {
        margin-top: -30px;
    }
}

/* Стили для окна успеха */
.apec-comm-wrapper .comm-success-content {
    text-align: center;
    border-top: 5px solid #28a745; /* Зеленая полоска сверху */
}

.apec-comm-wrapper .comm-success-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    color: #28a745;
    font-size: 40px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.apec-comm-wrapper .comm-success-content h2 {
    color: #28a745 !important; /* Зеленый заголовок */
}

.apec-comm-wrapper .comm-success-content p {
    color: var(--comm-text);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.apec-comm-wrapper .comm-btn-center {
    margin: 0 auto;
    display: block;
    min-width: 150px;
}

/* --- ELPASITO WIDGET --- */

/* Контейнер кнопки */
.elpasito-widget-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9990;
    font-family: 'Inter', sans-serif;
}

/* --- Кнопка (Trigger) --- */

/* Обертка, которая прыгает */
.elpasito-jump-wrapper {
    /* Анимация перенесена сюда */
    animation: elpasito-jump 5s infinite;
    /* Чтобы кнопка не застревала в прыжке при наведении,
       можно добавить паузу, но плавно. 
       Или просто пусть прыгает, пока мы наводим. */
}

/* Сама кнопка */
.elpasito-float-btn {
    width: 60px;
    height: 60px;
    background: #FF5722;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Теперь трансформ работает чисто для scale */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
    z-index: 9992;
}

/* Эффект при наведении */
.elpasito-float-btn:hover {
    transform: scale(1.15); /* Плавно увеличивается */
    background: #F4511E;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

/* Если хочешь, чтобы при наведении она переставала прыгать, 
   раскомментируй строку ниже в .elpasito-jump-wrapper:hover */
.elpasito-jump-wrapper:hover {
    animation-play-state: paused; /* Кнопка замрет в воздухе плавно */
}

/* Анимация прыжка (без изменений) */
@keyframes elpasito-jump {
    0%, 85% { transform: translateY(0); }
    87% { transform: translateY(-12px); }
    90% { transform: translateY(0); }
    93% { transform: translateY(-6px); }
    96% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

/* --- Мини-Окно (Window) --- */
.elpasito-window {
    position: absolute;
    bottom: 75px;
    left: 5px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 9991;
    
    /* Скрыто по умолчанию (через opacity для плавности) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom left;
    
    /* ПЛАВНАЯ АНИМАЦИЯ */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Состояние: Открыто */
.elpasito-window.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Состояние: Расширено (Зеленая кнопка) */
.elpasito-window.is-expanded {
    width: 450px; /* Становится шире */
}

/* Шапка окна */
.elpasito-header {
    background: #f3f4f6;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elpasito-dots { display: flex; gap: 8px; }
.elpasito-dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: transform 0.2s; }
.elpasito-dot:hover { transform: scale(1.2); }
.elpasito-dot.red { background: #ff5f56; }
.elpasito-dot.yellow { background: #ffbd2e; }
.elpasito-dot.green { background: #27c93f; }

.elpasito-title {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 700;
    font-family: monospace;
}

/* Контент */
.elpasito-content {
    padding: 20px;
    text-align: center;
    /* Плавное сворачивание для желтой кнопки */
    max-height: 500px; 
    opacity: 1;
    transition: all 0.5s ease;
}

/* Если свернуто (Желтая кнопка) */
.elpasito-window.is-minimized .elpasito-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.elpasito-icon-box {
    font-size: 2.5rem;
    color: #3B82F6;
    margin-bottom: 10px;
}

.elpasito-content h4 { margin: 0 0 5px; color: #111827; }
.elpasito-content p { font-size: 0.9rem; color: #6b7280; margin-bottom: 20px; line-height: 1.4; }

.elpasito-footer {
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elpasito-author { font-size: 0.75rem; font-weight: 700; color: #374151; }

.elpasito-contact-btn {
    background: none;
    border: none;
    color: #FF5722;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}
.elpasito-contact-btn:hover { color: #d84315; text-decoration: underline; }


/* --- FULLSCREEN CONTACT MODAL --- */
.elpasito-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8); /* Темный фон */
    backdrop-filter: blur(10px); /* Сильное размытие */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Анимация появления */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.elpasito-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.elpasito-modal-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elpasito-modal-overlay.is-visible .elpasito-modal-card {
    transform: translateY(0);
}

.elpasito-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}

.elpasito-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }

.elpasito-input, .elpasito-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 1rem;
}

.elpasito-textarea { resize: vertical; min-height: 120px; }

.elpasito-submit-btn {
    background: #3B82F6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.elpasito-submit-btn:hover { background: #2563EB; }

/* ... Твои старые стили Elpasito (оставь их) ... */

/* --- Success View Animation --- */
#elpasito-success-view {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-animation {
    font-size: 4rem;
    color: #10B981; /* Зеленый */
    margin-bottom: 20px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Скрываем скролл, если контент меняется */
.elpasito-modal-card {
    overflow: hidden; 
    /* Добавь min-height, чтобы окно не "прыгало" по высоте при смене контента */
    min-height: 350px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Scoped CSS for Educational Method Section --- */

.umr-unique-wrapper {
    --umr-primary: #173472;       /* Синий основной */
    --umr-secondary: #173472;     /* Темно-синий */
    --umr-accent: #3b82f6;        /* Голубой */
    --umr-bg: #f8fafc;            /* Светлый фон */
    --umr-text: #1e293b;          /* Темный текст */
    --umr-text-light: #64748b;    /* Серый текст */
    --umr-radius: 12px;
    
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--umr-text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.umr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Animation Class --- */
/* JS должен добавлять класс .visible при скролле, 
   либо анимация сработает сразу при загрузке, если убрать .visible из селектора */
.umr-unique-wrapper .scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.umr-unique-wrapper .scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section --- */
.umr-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    padding-top: 190px;
}

.umr-hero .umr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.umr-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--umr-secondary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.umr-hero p {
    font-size: 1.2rem;
    color: var(--umr-text-light);
}

.umr-hero-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e2e8f0; /* Серый плейсхолдер */
    border-radius: var(--umr-radius);
    position: relative;
    overflow: hidden;
}

.umr-hero-image-placeholder::after {
    content: "Image Area";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-weight: 600;
}

/* --- Mission --- */
.umr-mission {
    padding: 60px 0;
    background: var(--umr-primary);
    color: white;
}

.umr-mission-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.umr-mission h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.umr-mission p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* --- Goals & Tasks --- */
.umr-goals-tasks {
    padding: 80px 0;
    background: var(--umr-bg);
}

.umr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.umr-card {
    background: white;
    padding: 40px;
    border-radius: var(--umr-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.umr-icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.umr-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--umr-secondary);
}

.umr-list {
    list-style: none;
    padding: 0;
}

.umr-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--umr-text-light);
}

.umr-list li::before {
    content: "•";
    color: var(--umr-primary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- Directions --- */
.umr-directions {
    padding: 80px 0;
    background: white;
}

.umr-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--umr-secondary);
    margin-bottom: 50px;
}

.umr-directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.umr-dir-item {
    background: #f1f5f9;
    padding: 25px;
    border-radius: var(--umr-radius);
    transition: transform 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.umr-dir-item:hover {
    transform: translateY(-5px);
    background: #e2e8f0;
}

.umr-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--umr-primary);
    opacity: 0.5;
}

/* --- Structure (Governance & CMC) --- */
.umr-structure {
    padding: 80px 0;
    background: var(--umr-bg);
}

.umr-gov-block {
    text-align: center;
    margin-bottom: 60px;
}

.umr-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.umr-tags span {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--umr-primary);
    color: var(--umr-primary);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.umr-cmc-wrapper {
    background: white;
    border-radius: var(--umr-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.umr-cmc-content {
    padding: 50px;
}

.umr-check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки для списка */
    gap: 10px;
}

.umr-check-list li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.umr-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981; /* Зеленый */
    font-weight: bold;
}

.umr-cmc-image-placeholder {
    background-color: #cbd5e1;
    position: relative;
    min-height: 300px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .umr-hero .umr-container,
    .umr-grid-2,
    .umr-cmc-wrapper,
    .umr-check-list {
        grid-template-columns: 1fr; /* Все в одну колонку */
    }

    .umr-hero h1 {
        font-size: 2rem;
    }
    
    .umr-hero-image-placeholder {
        height: 250px;
        order: -1; /* Картинка сверху на мобильном */
    }

    .umr-cmc-image-placeholder {
        height: 200px;
        order: -1;
    }
    
    .umr-card, .umr-cmc-content {
        padding: 25px;
    }
}

/* Unique variables for this section */
:root {
    --ws24-primary: #005bc4; /* WorldSkills Blue */
    --ws24-dark: #333333;
    --ws24-light: #f4f7f6;
    --ws24-white: #ffffff;
    --ws24-gold: #FFD700;
    --ws24-gold-bg: #fff9db;
    --ws24-silver: #C0C0C0;
    --ws24-silver-bg: #f1f1f1;
    --ws24-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --ws24-radius: 12px;
}

.ws-2024-main {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--ws24-light);
    color: var(--ws24-dark);
    overflow-x: hidden;
}

.ws-2024-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.ws-2024-hero {
    background: var(--primary);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.ws-2024-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ws-2024-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.ws-2024-stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ws-2024-stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px 30px;
    border-radius: var(--ws24-radius);
    text-align: center;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.ws-2024-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.ws-2024-stat-card.gold { border-bottom: 4px solid var(--ws24-gold); }
.ws-2024-stat-card.silver { border-bottom: 4px solid var(--ws24-silver); }
.ws-2024-stat-card.parts { border-bottom: 4px solid #fff; }

.ws-2024-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.ws-2024-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Departments Section --- */
.ws-2024-departments {
    padding: 40px 0;
}

.ws-2024-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ws-2024-dept-card {
    background: var(--ws24-white);
    border-radius: var(--ws24-radius);
    padding: 30px;
    box-shadow: var(--ws24-shadow);
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.ws-2024-dept-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.ws-2024-dept-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.ws-2024-dept-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ws-2024-dept-card li {
    margin-bottom: 8px;
    font-weight: 500;
}

.ws-2024-dept-footer {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

/* --- Winners Table Section --- */
.ws-2024-winners {
    padding: 60px 0;
}

.ws-2024-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--ws24-dark);
    position: relative;
    display: inline-block;
    transform: translateX(-50%);
}

.ws-2024-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
}

.ws-2024-table-wrapper {
    overflow-x: auto;
    background: var(--ws24-white);
    border-radius: var(--ws24-radius);
    box-shadow: var(--ws24-shadow);
    padding: 10px;
}

.ws-2024-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ws-2024-table th, 
.ws-2024-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ws-2024-table th {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ws-2024-table tr:last-child td {
    border-bottom: none;
}

.ws-2024-table tr:hover {
    background-color: #f9fcff;
}

.ws-2024-row-gold td:first-child {
    font-weight: bold;
    color: var(--ws24-dark);
}

.ws-2024-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ws-2024-badge.gold {
    background-color: var(--ws24-gold-bg);
    color: #bfa100;
    border: 1px solid var(--ws24-gold);
}

.ws-2024-badge.silver {
    background-color: var(--ws24-silver-bg);
    color: #7f7f7f;
    border: 1px solid var(--ws24-silver);
}

/* --- Experts Section --- */
.ws-2024-experts {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.ws-2024-experts h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.ws-2024-experts p {
    color: #888;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .ws-2024-hero h1 { font-size: 1.8rem; }
    .ws-2024-stat-card { min-width: 100px; padding: 15px; }
    .ws-2024-stat-num { font-size: 2rem; }
}

/* Основные настройки секции */
.ed-st-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 1. Увеличиваем ширину контейнера, чтобы поместились две карточки */
.ed-st-container {
    max-width: 1700px; /* Было 1000px, стало шире */
    margin: 0 auto;
    padding: 0 15px;
}

.ed-st-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

/* 2. Превращаем список в сетку */
.ed-st-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ровно две колонки */
    gap: 30px; /* Расстояние между карточками */
}

/* Карточка (Горизонтальная) */
.ed-st-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Flexbox для горизонтального расположения */
    display: flex; 
    flex-direction: row; 
    align-items: stretch; /* Растянуть фото на всю высоту карточки */
}

.ed-st-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Рамка для фото (Слева) */
.ed-st-photo-frame {
    width: 220px; /* Фиксированная ширина - "не такая большая" */
    flex-shrink: 0; /* Запрещаем сжимать фото */
    background-color: #e9ecef;
    position: relative;
}

.ed-st-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно: фото заполнит область, не искажаясь */
    object-position: center top;
}

/* Контент (Справа) */
.ed-st-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по вертикали */
}

.ed-st-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ed-st-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.ed-st-position {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
    font-style: italic;
}

.ed-st-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.ed-st-info-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: baseline;
}

.ed-st-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
    min-width: 100px; /* Выравнивание колонок текста */
}

.ed-st-footer {
    margin-top: auto;
}

.ed-st-contact-link {
    display: inline-block;
    color: var(--accent-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--accent-dim);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ed-st-contact-link:hover {
    background-color: var(--accent-dim);
    color: #fff;
}

/* --- АДАПТИВНОСТЬ (Для телефонов) --- */
@media (max-width: 768px) {
    /* 1. Карточка становится вертикальной */
    .ed-st-card {
        flex-direction: column;
        align-items: center; /* Центрируем всё */
        text-align: center;
    }

    /* 2. Рамка фото превращается в круг */
    .ed-st-photo-frame {
        width: 120px;           /* Фиксированная ширина */
        height: 120px;          /* Фиксированная высота (обязательно такая же!) */
        border-radius: 50%;     /* Делаем круг */
        overflow: hidden;       /* ВАЖНО: обрезаем углы фото, чтобы оно не торчало */
        margin: 25px auto 10px auto; /* Отступ сверху и центровка (auto по бокам) */
        flex-shrink: 0;
        border: 3px solid #fff; /* Белая обводка для красоты */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Легкая тень под кружком */
    }

    /* 3. Само фото внутри */
    .ed-st-photo {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Фото заполняет круг, не искажаясь */
    }

    /* 4. Остальной контент */
    .ed-st-content {
        padding: 20px;
        width: 100%;
    }
    
    .ed-st-header {
        border-bottom: none;
        margin-bottom: 10px;
    }

    .ed-st-name {
        font-size: 1.3rem;
    }
    
    .ed-st-info-list li {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ed-st-label {
        margin-right: 5px;
        width: auto;
    }
    
    .ed-st-contact-link {
        width: 100%;
        box-sizing: border-box;
        display: block; /* Чтобы кнопка точно растянулась */
        margin-top: 10px;
    }
}

/* --- СТИЛИ ДЛЯ НОВОГО ЗАГОЛОВКА (HEADER) --- */

.ed-st-header-banner {
    background: var(--gradient); /* Красивый синий градиент */
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px; /* Отступ до карточек */
    margin-top: 100px;
}

.ed-st-banner-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ed-st-banner-subtitle {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9; /* Чуть прозрачнее, чтобы не спорил с заголовком */
    font-weight: 300;
}

/* Адаптивность заголовка для мобильных */
@media (max-width: 768px) {
    .ed-st-header-banner {
        padding: 30px 15px;
    }
    .ed-st-banner-title {
        font-size: 1.8rem;
    }
}

/* Дополнительный стиль для второй строки текста */
.ed-st-subtext {
    display: block;      /* Перенос на новую строку */
    margin-top: 4px;     /* Небольшой отступ */
    color: #7f8c8d;      /* Чуть серый цвет */
    font-size: 0.9em;    /* Чуть меньше шрифт */
}

/* Убедись, что в .ed-st-info-list li стоит align-items: flex-start, 
   иначе многострочный текст будет выглядеть криво относительно заголовка */
.ed-st-info-list li {
    align-items: flex-start; /* ВАЖНО: выравнивание по верхнему краю */
}

.ed-st-label {
    margin-top: 2px; /* Компенсация, чтобы заголовок был ровно напротив первой строки */
}

/* 3. Адаптивность: превращаем обратно в 1 колонку на планшетах и телефонах */
@media (max-width: 1100px) {
    .ed-st-list {
        grid-template-columns: 1fr; /* Одна колонка, если экран меньше 1100px */
    }
}

/* Основной контейнер */
.tree-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  margin-top: 100px;
}

/* Десктопный контейнер */
.tree-desktop-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Сообщение для мобильных (скрыто на ПК) */
.tree-mobile-msg {
  display: none;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #0284c7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 16px;
  color: #333;
  text-align: center;
  max-width: 400px;
}

/* Уровни и ветки */
.tree-level, .tree-hr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tree-branches {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 160px; /* Чтобы колонки не сжимались слишком сильно */
  position: relative;
  z-index: 1;
}

/* Линии соединения */
.tree-connector-main {
  width: 3px;
  height: 30px;
  background-color: #cbd5e1;
}

.tree-sub-branches {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  position: relative;
}

.tree-sub-branches::before {
  content: '';
  position: absolute;
  top: -35px;
  left: 50%;
  width: 3px;
  height: calc(100% + 30px);
  background-color: #cbd5e1;
  transform: translateX(-50%);
  z-index: 0;
}

/* Горизонтальный блок HR */
.tree-hr-branches {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  position: relative;
  align-items: flex-start;
}
.tree-hr-branches::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 10%;
  width: 80%;
  height: 3px;
  border-top: 3px dashed #cbd5e1;
}
.tree-hr-branches > div {
  position: relative;
}
.tree-hr-branches > div::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 3px;
  height: 15px;
  border-left: 3px dashed #cbd5e1;
}

/* Главные карточки должностей */
.tree-node {
  position: relative;
  padding: 15px 10px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 230px;
  box-sizing: border-box;
  z-index: 2;
  cursor: pointer;
}

/* Контейнер для списков (ЕГО БОЛЬШЕ НЕ АНИМИРУЕМ, ЧТОБЫ ЛИНИИ НЕ ПРЫГАЛИ) */
.tree-sub-node {
  position: relative;
  padding: 15px 8px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 230px;
  box-sizing: border-box;
  z-index: 2;
  font-size: 13px;
  margin: 0 auto;
}

/* Анимация только для самих карточек и пунктов внутри списка */
.tree-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 100;
}

/* Текст */
.tree-node-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.tree-sub-node strong {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* Списки внутри отделов */
.tree-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.tree-li-item {
  position: relative;
  padding: 8px 5px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border-radius: 6px;
  z-index: 3;
}

.tree-li-item:last-child {
  border-bottom: none;
}

.tree-li-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px); /* Легкий прыжок самого пункта, линия стоит на месте! */
  z-index: 101;
}

.tree-single-item {
  border-bottom: none;
  padding: 0;
  text-align: center;
}

/* Интерактивное окошко (Tooltip) - СВЕРХУ */
.tree-tooltip {
  position: absolute;
  
  /* --- ПОЗИЦИОНИРОВАНИЕ СВЕРХУ --- */
  bottom: 110%; /* Начальная позиция (скрыто чуть ниже финальной точки) */
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  
  /* Сбрасываем лишние свойства, если остались от прошлого варианта */
  top: auto;
  right: auto;
  
  /* --- ВАШ Z-INDEX --- */
  z-index: 5; 

  /* Стили большой карточки */
  width: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Стрелочка ВНИЗ (от дна карточки к элементу) */
.tree-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; /* Прилепляем к низу карточки */
  left: 50%;
  transform: translateX(-50%);
  
  border-width: 10px;
  border-style: solid;
  /* Цвет: БЕЛЫЙ-прозрачный-прозрачный-прозрачный (стрелка смотрит вниз) */
  /* Белый цвет сливается с блоком имени */
  border-color: #ffffff transparent transparent transparent; 
}

/* Состояние при наведении */
.tree-node:hover > .tree-tooltip,
.tree-li-item:hover > .tree-tooltip {
  opacity: 1;
  visibility: visible;
  
  /* Финальная позиция (чуть выше элемента) */
  bottom: 125%; 
  transform: translateX(-50%) scale(1);
}

/* Фотография */
.tree-tooltip-photo {
  width: 100%;
  height: 240px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
  background-color: #e2e8f0;
  display: block;
}

/* Имя */
.tree-tooltip-name {
  width: 100%;
  background-color: #ffffff;
  padding: 15px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  white-space: normal;
  line-height: 1.4;
  box-sizing: border-box;
}

/* --- ШАБЛОН ДЛЯ МУЛЬТИ-ОКОШКА (2+ ЧЕЛОВЕК) --- */
.tree-tooltip-multi {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
}
.tree-tooltip-person {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.tree-tooltip-multi .tree-tooltip-person:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}
/* --------------------------------------------- */

/* Цвета блоков (все 7 веток + HR) */
.tree-bg-director { background-color: #1e3a8a; color: #ffffff; }

.tree-bg-hr-main { background-color: #ffedd5; border: 2px solid #fdba74; color: #9a3412; }
.tree-bg-hr-light { background-color: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

.tree-bg-yellow { background-color: #fbbf24; color: #78350f; }
.tree-bg-yellow-light { background-color: #fef3c7; border: 2px solid #fde68a; color: #92400e; }

.tree-bg-purple { background-color: #c084fc; color: #ffffff; }
.tree-bg-purple-light { background-color: #f3e8ff; border: 2px solid #e9d5ff; color: #6b21a8; }

.tree-bg-teal { background-color: #0d9488; color: #ffffff; }
.tree-bg-teal-light { background-color: #ccfbf1; border: 2px solid #5eead4; color: #115e59; }

.tree-bg-admin { background-color: #be185d; color: #ffffff; }
.tree-bg-admin-light { background-color: #fce7f3; border: 2px solid #fbcfe8; color: #831843; }

.tree-bg-it { background-color: #4ade80; color: #064e3b; }
.tree-bg-it-light { background-color: #dcfce7; border: 2px solid #bbf7d0; color: #166534; }

.tree-bg-acad { background-color: #15803d; color: #ffffff; }
.tree-bg-acad-light { background-color: #dcfce7; border: 2px solid #86efac; color: #14532d; }

.tree-bg-edu { background-color: #0ea5e9; color: #ffffff; }
.tree-bg-edu-light { background-color: #e0f2fe; border: 2px solid #bae6fd; color: #0c4a6e; }


/* Скрываем дерево на мобильных */
@media (max-width: 1024px) {
  .tree-desktop-container {
    display: none !important;
  }
  .tree-mobile-msg {
    display: block;
  }
}

/* Логотип */
.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}
.hero-logo-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
}
.hero-logo-text {
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 1.5px;
}
.logo-text-top {
    font-weight: 700;
}
.logo-text-bottom {
    font-weight: 400;
}

/* Надзаголовок бирюзовый */
.hero-tagline {
    color: #00FFBB; /* Бирюзовый цвет с референса */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Главный заголовок */
.hero-main-title {
    color: #E0F7FA; /* Голубовато-белый */
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
}
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 40px;
    }
}

/* Хештеги */
.hero-hashtags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hashtag-block {
    border: 1px solid #2273a1; /* Тонкая рамка */
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px; /* Овальный блок */
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-evente-logo {
    margin-bottom: 1.5rem; /* Отступ до текста "Международная..." */
    display: flex;
    justify-content: center; /* Центрируем логотип по горизонтали */
}

.main-evente-logo img {
    max-width: 150px; /* Оптимальный размер для десктопа */
    height: auto;     /* Сохраняем пропорции */
    display: block;
    
    /* Если логотип черный, этот фильтр сделает его белым (раскомментируй при необходимости) */
    /* filter: brightness(0) invert(1); */
    
    /* Легкое свечение для кибер-стиля (по желанию) */
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3)); 
}

/* На мобильных (внутри существующего медиа-запроса или отдельно) */
@media (max-width: 900px) {
    .main-evente-logo {
        display: flex;
        justify-content: center; /* Центрируем лого на телефоне */
        margin-bottom: 1rem;
    }
    
    .main-evente-logo img {
        max-width: 160px; /* Чуть поменьше на телефоне */
    }
}

/* Базовые стили для секции */
.cdorm-main-wrapper {
  font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  padding-bottom: 60px;
}

/* Мини-хедер */
.cdorm-mini-header {
    background: var(--gradient);
  color: white;
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 4px 15px rgba(0, 82, 212, 0.2);
  margin-bottom: 50px;
}

.cdorm-mini-header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cdorm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Секции с контентом */
.cdorm-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cdorm-section-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cdorm-section-text h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.cdorm-section-text p {
  line-height: 1.6;
  color: #666;
}

/* Сетки для галерей */
.cdorm-gallery {
  display: grid;
  gap: 15px;
}

.cdorm-gallery-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 200px);
}
.cdorm-gallery-5 > div:nth-child(1), .cdorm-gallery-5 > div:nth-child(2) { grid-column: span 3; }
.cdorm-gallery-5 > div:nth-child(3), .cdorm-gallery-5 > div:nth-child(4), .cdorm-gallery-5 > div:nth-child(5) { grid-column: span 2; }

.cdorm-gallery-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}

.cdorm-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 250px;
  margin-top: 15px;
}

.cdorm-gallery-1 {
  grid-template-columns: 1fr;
  grid-auto-rows: 250px;
  margin-top: 15px;
}

/* Общие зоны (Flexbox для кухни и прачечной) */
.cdorm-shared-areas {
  display: flex;
  gap: 30px;
}

.cdorm-area-block {
  flex: 1;
}

.cdorm-area-block h3 {
  color: #333;
  margin-bottom: 10px;
}

.cdorm-area-block p {
  color: #666;
  font-size: 0.95rem;
}

/* Информационный блок */
.cdorm-info-board {
    background: var(--primary);
  color: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.cdorm-info-board h2 {
  margin-bottom: 30px;
}

.cdorm-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cdorm-info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.cdorm-info-card h4 {
  margin: 0 0 10px 0;
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cdorm-info-card p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

/* 1. Настраиваем сам контейнер, где лежит фото */
.cdorm-img-placeholder {
  background-color: #e9ecef; /* Цвет фона, пока фото грузится */
  border-radius: 12px;
  
  overflow: hidden; /* КРИТИЧЕСКИ ВАЖНО: все, что выходит за рамку, будет обрезано */
  position: relative; /* Чтобы картинка позиционировалась внутри */
  padding: 0 !important; /* Убираем любые отступы, если они были */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Эффекты при наведении (оставляем) */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Эффект ховера */
.cdorm-img-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 2. Настраиваем саму картинку <img> внутри контейнера.
   Используем сильный селектор, чтобы перебить другие стили на сайте */
.cdorm-main-wrapper .cdorm-img-placeholder img {
  display: block;
  width: 100% !important;  /* Растягиваем по ширине рамки */
  height: 100% !important; /* Растягиваем по высоте рамки */
  
  object-fit: cover !important; /* МАГИЯ ЗДЕСЬ: Фото заполняет блок, сохраняя пропорции, лишнее обрезается */
  object-position: center; /* Центрируем фото при обрезке */
  
  border-radius: 12px; /* Повторяем скругление для самой картинки */
}

/* Адаптивность */
@media (max-width: 900px) {
  .cdorm-shared-areas {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .cdorm-gallery-5, .cdorm-gallery-6 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .cdorm-gallery-5 > div { grid-column: span 1 !important; }
  .cdorm-gallery-5 > div:last-child { grid-column: span 2 !important; }
}

@media (max-width: 480px) {
  .cdorm-gallery-5, .cdorm-gallery-6, .cdorm-gallery-2 {
    grid-template-columns: 1fr;
  }
  .cdorm-gallery-5 > div:last-child { grid-column: span 1 !important; }
}