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

:root {
    /* Фиксированные высоты хедера под крупный шрифт */
    --header-height-large: 210px;  
    --header-height-small: 125px;  
    --current-header-height: var(--header-height-large);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: white;
    color: #1a1a1a;
    min-height: 180vh;
    padding-top: var(--current-header-height); 
    transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px; 
    margin: 0 auto;    
    padding: 0 2rem;   
    width: 100%;
}

/* ========================================================
   ХЕДЕР В ЦВЕТАХ ЮНЕСКО С СЕРОЙ ШКАЛОЙ ДЛЯ ТЕКСТА
   ======================================================== */
.site-header {
    background-color: #0077D4; 
    border-bottom: 1px solid #1e40af; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; 
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 0; 
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Первая строка названия: Чистый белый */
.brand-logo .main-title {
    color: #ffffff; 
    font-size: 2.5rem; 
    font-weight: 900;  
    text-transform: uppercase;
    letter-spacing: 0.01em;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: font-size;
}

/* Вторая строка названия: Светло-серый оттенок (вместо голубого) */
.brand-logo .sub-title {
    color: #e5e7eb; /* Оттенок серого (Gray 200) */
    font-size: 1.1rem; 
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 0.01em;
    transform-origin: left top;
    max-height: 50px;
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                        max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Второстепенные кнопки: Мягкий серый цвет */
.btn-action {
    text-decoration: none;
    color: #d1d5db; /* Оттенок серого (Gray 300) */
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-action:hover {
    color: #ffffff; /* Чистый белый при наведении */
}

/* Кнопка входа: Белый фон, темно-серый текст */
.btn-primary {
    background-color: #ffffff;
    color: #111827; /* Глубокий темно-серый, почти черный */
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary:hover {
    background-color: #f3f4f6; /* Светло-серый при наведении */
    color: #111827;
}

/* НАВИГАЦИОННОЕ МЕНЮ */
.header-bottom {
  border-top: 1px solid rgba(243, 244, 246, 0.5);
  margin-left: auto;
  margin-right: auto;

  display: block; /* Гарантирует работу авто-отступов */
  padding-left: 0rem;
}

.nav-container {
    padding: 1.2rem 0;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

/* Ссылки меню: Светло-серый цвет */
.nav-link {
    text-decoration: none;
    color: white; /* Оттенок серого (Gray 200) */
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff; /* Вспыхивает белым при наведении */
}

/* ========================================================
   КОМПАКТНЫЙ СТИЛЬ ХЕДЕРА ПРИ СКРОЛЛЕ
   ======================================================== */
:root:has(.site-header.scrolled) {
    --current-header-height: var(--header-height-small);
}

.site-header.scrolled {
    background-color: #0077D4; 
    border-color: #1e3a8a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-top {
    padding: 1rem 0; 
}

.site-header.scrolled .brand-logo .main-title {
    font-size: 1.5rem; 
}

.site-header.scrolled .brand-logo .sub-title {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.site-header.scrolled .nav-container {
    padding: 0.8rem 0;
}

/* ========================================================
   РАЗДЕЛЫ КОНТЕНТА
   ======================================================== */
.hero-kafedra {
    padding: 5rem 0 2.1rem 0;
	background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);

}

.hero-kafedrawhite {
    padding: 5rem 0 2.1rem 0;
	background: white;

}

.hero-kafedra2 {
	 padding: 2rem 0 2rem 0;

	background-color: #f3f4f6;

}


.hero-kafedra3 {
	 padding: 2rem 0 2rem 0;

	background-color: white;

}


.hero-kafedra4 {
	 padding: 2rem 0 2rem 0;

	background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);;

}

/* Бэдж кафедры: Синий фон, белый текст */
.unesco-badge {
    display: inline-block;
    background-color: #0077D4; 
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.unesco-badge2 {
    /* ИСПРАВЛЕНИЕ: Меняем inline-block на flex */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* ИСПРАВЛЕНИЕ: Авто-отступы теперь сработают и сдвинут бэдж в центр страницы */
    margin-left: auto;
    margin-right: auto;

    background-color: #0077D4; 
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 15px;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    
    /* При использовании flex обязательно задаем ширину (fit-content сожмет блок по размеру текста) */
    width: fit-content; 
    max-width: 950px;
}

/* Заголовки и тексты контента: Оттенки черного и серого */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827; /* Угольно-черный */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 950px;
}

.hero-description {
    font-size: 1.15rem;
    color: #4C5054; /* Темно-серый */
    line-height: 1.7;

}

.hero-description2 {
    font-size: 1.15rem;
    color: #4C5054; /* Темно-серый */
    line-height: 1.7;

	
}

.quick-links-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

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

.link-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.25s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: #9ca3af; /* При наведении карточки подсвечиваются нейтральным серым */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.link-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.link-card p {
    font-size: 0.95rem;
    color: #6b7280; /* Насыщенный серый */
    line-height: 1.5;
}

.card-arrow {
    align-self: flex-end;
    font-size: 1.3rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.link-card:hover .card-arrow {
    color: #111827; /* Стрелка темнеет при наведении */
}

.news-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827;
}

.view-all-btn {
    text-decoration: none;
    color: #4b5563; /* Серый цвет для кнопки «Все материалы» */
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.view-all-btn:hover {
    color: #111827;
}


/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    :root {
        --header-height-large: 145px; 
        --header-height-small: 105px;
    }
    .container { padding: 0 1rem; }
    .header-top { padding: 1rem 0; }
    .brand-logo .main-title { font-size: 2rem !important; }
	 .brand-logo .main-title { font-size: 2rem !important; }
    .brand-logo .sub-title { font-size: 0.9rem !important; max-height: 35px; }
    .nav-container { padding: 0.7rem 0; }
    .nav-menu { gap: 1.5rem; }
    .nav-link { font-size: 0.9rem; }
    .header-actions .btn-action:not(.btn-primary) { display: none; }
    .btn-primary { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-description { font-size: 1rem; }
    .news-grid { gap: 1.5rem; }
}















/* Обновленная структура логотипа (Flex-контейнер) */
.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center; /* Центрирует логотип по вертикали относительно текста */
    gap: 1.5rem;         /* Расстояние между логотипом и текстом */
}

/* Обертка для двух строк названия */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Контейнер для самого изображения */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;        /* Начальный большой размер логотипа на ПК */
    height: 75px;
    flex-shrink: 0;     /* Запрещает логотипу деформироваться и сжиматься */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка масштабируется без искажения пропорций */
}

/* ========================================================
   ДОБАВИТЬ В БЛОК СЖАТИЯ ПРИ СКРОЛЛЕ (.scrolled)
   ======================================================== */

/* Логотип плавно уменьшается при прокрутке страницы вниз */
.site-header.scrolled .logo-wrapper {
    width: 45px;        /* Компактный размер логотипа при скролле */
    height: 45px;
}

/* ========================================================
   ДОБАВИТЬ В БЛОК МОБИЛЬНОЙ АДАПТИВНОСТИ (@media max-width: 768px)
   ======================================================== */
@media (max-width: 768px) {
    .brand-logo {
        gap: 0.8rem;    /* Уменьшаем отступ между лого и текстом на смартфонах */
    }
    .logo-wrapper {
        width: 40px !important;  /* Мобильный размер логотипа */
        height: 40px !important;
    }
}








/* ========================================================
   СТИЛИ СЛАЙДЕРА (МЕДИА-КАРУСЕЛЬ)
   ======================================================== */
.slider-section {
    padding: 3rem 0;
    background-color: #ffffff;
}

/* Главный контейнер слайдера */
.slider-viewport {
    position: relative;
    width: 100%;
    height: 500px; /* Высота слайдера на больших экранах */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Лента со слайдами */
.slider-tape {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Отдельный слайд */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Изображение внутри слайда */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполняет слайд без искажения пропорций */
}

/* Градиентная подложка для текста, чтобы он читался на любых фото */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
}

/* Текстовый блок на слайде (Шкала серого) */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    z-index: 2;
    color: #ffffff; /* Белый текст */
}

.slide-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    max-width: 850px;
    line-height: 1.2;
}

.slide-description {
    font-size: 1.1rem;
    color: #e5e7eb; /* Светло-серый текст (Gray 200) */
    max-width: 700px;
    line-height: 1.5;
}

/* ========================================================
   КНОПКИ-СТРЕЛКИ (Нейтральные тона)
   ======================================================== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
    border-color: #9ca3af;
}

/* Стрелки влево и вправо */
.slider-btn-prev { left: 1.5rem; }
.slider-btn-next { right: 1.5rem; }

/* Иконки стрелок внутри кнопок (сделаны на чистом CSS, без картинок) */
.arrow-icon {
    width: 12px;
    height: 12px;
    border-top: 3px solid #111827; /* Темно-серый цвет стрелки */
    border-right: 3px solid #111827;
    display: block;
}
.slider-btn-prev .arrow-icon { transform: rotate(-135deg); margin-left: 4px; }
.slider-btn-next .arrow-icon { transform: rotate(45deg); margin-right: 4px; }

/* АДАПТИВНОСТЬ ПОД ТЕЛЕФОНЫ */
@media (max-width: 768px) {
    .slider-viewport {
        height: 350px; /* Уменьшаем высоту карусели на смартфонах */
    }
    .slide-content {
        padding: 1.5rem;
    }
    .slide-title {
        font-size: 1.3rem;
    }
    .slide-description {
        font-size: 0.9rem;
        display: none; /* Скрываем описание на мобильных, чтобы не забивать экран */
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}
/* Двухколоночная разметка для главного экрана */
.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 4rem; /* Большое просторное расстояние между текстом и логотипами */
}

/* Ограничиваем ширину текста, чтобы он не прижимался к картинкам */
.hero-text-content {
    flex: 1;
    max-width: 850px;
}
.hero-text-content2 {
    flex: 1;
    max-width: 850px;
	    /* ИСПРАВЛЕНИЕ: Центрирует сам текстовый блок на странице */

    

}


/* Контейнер для правых логотипов (Строго один под другим) */
.hero-side-logos {
    display: flex;
    flex-direction: column; /* Вертикальная стопка на ПК */
    gap: 1.5rem; /* Зазор между двумя логотипами */
    flex-shrink: 0; /* Запрещает логотипам сжиматься */
    padding-top: 3.5rem; /* Легкое смещение вниз под уровень бэджа */
}

/* Индивидуальная серая карточка для каждого логотипа */
.side-logo-item {
    display: flex;
    align-items: left;
    justify-content: center;
    width: 300px;  /* Оптимальный фиксированный размер */
    height: 150px;
	margin-left: auto;
	margin-right: auto;






}

/* Настройка изображения внутри карточки */
.side-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка сохраняет пропорции и не деформируется */
}

/* Ссылка внутри текста в оттенках серого */
.newslink {
    color: #4b5563; /* Насыщенный серый цвет для ссылки */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.newslink:hover {
    color: #111827; /* Темнеет до угольно-черного при наведении */
}

/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (ПЕРЕНОС ВНИЗ)
   ======================================================== */
@media (max-width: 968px) {
    .hero-layout {
        flex-direction: column; /* Перестраиваем контент в один вертикальный ряд */
        gap: 2.5rem;
    }

    .hero-side-logos {
        flex-direction: column; /* На смартфонах логотипы встают горизонтально РЯДОМ */
        justify-content: flex-start;
        padding-top: 0; /* Сбрасываем верхний отступ */
        width: 100%;

    }

    .side-logo-item {
        width: 300px; /* Слегка уменьшаем карточки на телефонах */
        height: 200px;
    }
}






/* Фоновая секция */
.staff-card-section {
    padding: 4rem 0;
    /* Использован ваш градиент */
    background: white; 
}

/* Карточка, занимающая всю ширину контейнера */
.staff-card-wide {
    display: flex;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    width: 100%; /* Занимает все 1200px контейнера */
    max-width: 1200px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* Презентабельное широкое фото */
.staff-photo-wrapper-wide {
    width: 200px; /* Увеличено для баланса на 1200px */
    height: 300px;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.staff-photo-wide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Информационный блок */
.staff-info-wide {
    flex: 1;
    padding: 3.5rem; /* Больше воздуха вокруг текста */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяет имя сверху, контакты снизу */
}

/* ФИО (Шкала серого) */
.staff-name-wide {
    font-size: 2.2rem; /* Крупный академический заголовок */
    font-weight: 800;
    color: #111827; 
    line-height: 1.2;
    margin-bottom: 1rem;
}

.info-block-wide {
    margin-bottom: auto; /* Толкает блок должностей вверх */
    padding-top: 0.5rem;
}

/* Подзаголовки мелким серым капсом */
.info-label-wide, .contact-label-wide {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af; 
    font-weight: 700;
    margin-bottom: 0.3rem;
}

/* Должность */
.info-value-wide {
    font-size: 1.25rem;
    color: #4b5563; 
    font-weight: 500;
}

/* Блок контактов: Горизонтальный ряд для широкого формата */
.staff-contacts-wide {
    display: flex;
    gap: 4rem; /* Просторный зазор между телефоном и почтой */
    border-top: 1px solid #f3f4f6;
    padding-top: 2rem;
    margin-top: 2rem;
}

.contact-item-wide {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: #4b5563; 
    transition: color 0.2s ease;
}

.contact-box-wide {
    display: flex;
    flex-direction: column;
}

.contact-text-wide {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item-wide:hover {
    color: #111827; /* Темнеет при наведении */
}

/* Чистые CSS иконки без сторонних шрифтов */
.contact-icon-wide {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Проводной телефон */
.icon-phone-wide::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 16px;
    border: 2px solid #9ca3af;
    border-radius: 3px;
    left: 4px;
    top: 0;
}
.icon-phone-wide::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #9ca3af;
    border-radius: 50%;
    left: 9px;
    bottom: 3px;
}

/* Конверт почты */
.icon-email-wide::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid #9ca3af;
    border-radius: 2px;
    left: 2px;
    top: 2px;
}
.icon-email-wide::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border-bottom: 2px solid #9ca3af;
    border-right: 2px solid #9ca3af;
    left: 5px;
    top: 1px;
    transform: rotate(45deg);
}



/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ
   ======================================================== */
@media (max-width: 900px) {
    .staff-info-wide {
        padding: 2rem;
    }
    .staff-name-wide {
        font-size: 1.8rem;
    }
    .staff-contacts-wide {
        gap: 2rem;
    }
}

@media (max-width: 680px) {
    .staff-card-wide {
        flex-direction: column; /* Переворот в вертикальный вид на телефонах */
        max-width: 400px;
        margin: 0 auto;
    }
    .staff-photo-wrapper-wide {
        width: 50%;
        height: 320px;
    }
    .staff-contacts-wide {
        flex-direction: column; /* Контакты снова один под другим на телефонах */
        gap: 1.2rem;
        padding-top: 1.5rem;
    }
}






/* ========================================================
   УНИВЕРСАЛЬНАЯ СИНЯЯ КНОПКА КАФЕДРЫ (ШИРИНА 1200px)
   ======================================================== */
.btn-universal {
    display: block;             /* Делает кнопку блочной для управления шириной */
    width: 100%;                /* На смартфонах занимает всю доступную ширину */
    max-width: 1140px; 
	max-height: 50px;	/* ЖЕСТКОЕ ОГРАНИЧЕНИЕ: Ровно 1200px на ПК */
    margin-left: auto;   
	margin-right: auto;	
	margin-top: 20px;	/* Выравнивает кнопку строго по центру страницы */
    
    /* ВАШИ НАСТРОЙКИ ЦВЕТА И РАМОК */
    border: 1px solid #0077D4; /* Толстая рамка 12px синего цвета */
    background: white;    /* Прозрачная внутри (transparent inside) */
    color: #0077D4;             /* Синий цвет текста */
    
    /* Оформление текста внутри кнопки */
    text-align: center;         /* Центрирует текст внутри 1200 пикселей */
    text-decoration: none;      /* Убирает подчеркивание, если это тег <a> */
    font-size: 1rem;         /* Крупный, хорошо читаемый шрифт */
    font-weight: 700;           /* Жирный шрифт для авторитетности */
    text-transform: uppercase;  /* Все буквы заглавные (по желанию можно убрать) */
    letter-spacing: 0.05em;     /* Легкий отступ между буквами */
    
    /* Внутренние отступы (высота кнопки) */
    padding: 0.8rem 0.8rem;       
    border-radius: 12px;        /* Скругление углов, гармонирующее с рамкой */
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный переход для ховера */
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ (ИНВЕРСИЯ) */
.btn-universal:hover {
    background-color: #0077D4;  /* Заливается синим цветом */
    color: #ffffff;             /* Текст становится чисто белым */
    box-shadow: 0 10px 20px rgba(0, 119, 212, 0.15); /* Мягкое синее свечение */
}

/* Стили для мобильных экранов, чтобы кнопка не вылезала за границы */
@media (max-width: 1240px) {
    .btn-universal {
        max-width: calc(100% - 4rem); /* Вычитает боковые поля контейнера */
        border-width: 1px;            /* Чуть уменьшаем рамку на телефонах */
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}










/* ========================================================
   ПРОСТОЙ ФУТЕР В ЦВЕТАХ ЮНЕСКО (#0077D4)
   ======================================================== */
.site-footer {
    /* ВАШ ЦВЕТ: Насыщенный синий */
    background-color: #0077D4; 
    border-top: 1px solid #0066b4; /* Линия сверху чуть темнее для четкости границ */
    padding: 1rem 0; /* Просторные отступы сверху и снизу */
    margin-top: 5rem; /* Отступ от основного контента страницы */
}

/* Двухколоночный флекс-контейнер */
.footer-layout {
        flex-direction: column; /* На телефонах выстраиваем элементы в один столбец */
        align-items: center;    /* Центрируем весь контент подвала */
        text-align: center;
        gap: 2.5rem;
    }

/* Блок бренда (Левая сторона) */
.footer-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Главное название (Чистый белый) */
.footer-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Подзаголовок */
.footer-subtitle {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 6px;
	margin-left: auto;
	margin-right: auto;
	text-align:center;
    opacity: 0.9;
}

/* Копирайт (Мягкий светло-серый из шкалы серого) */
.footer-copy {
    color: #e5e7eb; /* Серый оттенок (Gray 200) */
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-weight: 400;
}

/* Блок навигации (Правая сторона) */
.footer-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* Зазор между ссылками */
    flex-wrap: wrap; /* Если ссылки не влезут, они перенесутся на новую строку */
}

/* Ссылки футера */
.footer-link {
    text-decoration: none;
    color: #e5e7eb; /* Серый оттенок (Gray 200) */
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Ховер-эффект для ссылок */
.footer-link:hover {
    color: #ffffff; /* Ссылка загорается чисто белым цветом при наведении */
}

/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И ТАБЛЕТОК
   ======================================================== */
@media (max-width: 768px) {
    .footer-layout {
        flex-direction: column; /* На телефонах выстраиваем элементы в один столбец */
        align-items: center;    /* Центрируем весь контент подвала */
        text-align: center;
        gap: 2.5rem;
    }

    .footer-title {
        font-size: 1.15rem;
    }

    .footer-menu {
        justify-content: center; /* Центрируем пункты меню на мобильном */
        gap: 1.5rem;
    }
}


















/* ========================================================
   СТРОГАЯ ДВУХКОЛОНОЧНАЯ СЕТКА ПАРТНЕРОВ
   ======================================================== */
.partners-section {
    padding: 5rem 0;
    background-color: #ffffff; /* Чистый белый фон секции */
}

/* Заголовок секции (Шкала серого) */
.partners-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827; /* Угольно-черный */
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* СЕТКА НА 2 КОЛОНКИ */
.partners-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ровно 2 колонки одинаковой ширины */
    gap: 1.5rem; /* Зазор 24px между карточками */
}

/* Индивидуальная интерактивная карточка партнера */
.partner-card {
    display: flex;
    align-items: center;
    background-color: white; /* Нейтральный светло-серый фон карточки */
    border: 1px solid #e5e7eb;  /* Серая рамка */
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект наведения в нейтральных серых тонах */
.partner-card:hover {
    transform: translateY(-3px);
    background-color: #ffffff; /* Карточка «загорается» белым при наведении */
    border-color: #9ca3af;     /* Рамка становится плотнее */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* Левый блок: Безопасный контейнер для логотипа */
.partner-logo-box {
    width: 100px;  /* Фиксированные габариты для ровной сетки */
    height: 100px;
    background-color: transparent; /* Белая подложка для логотипа */
    border: 0px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    flex-shrink: 0; /* Запрещает картинке сжиматься */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Идеальное масштабирование любого логотипа */
.partner-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка никогда не исказится и влезет целиком */
}

/* Правый блок: Информация о партнере */
.partner-info-box {
    margin-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Название партнера (Угольно-черный) */
.partner-info-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* Описание (Темно-серый) */
.partner-info-box p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Текст названия слегка темнеет при наведении на всю карточку */
.partner-card:hover .partner-info-box h3 {
    color: #000000;
}

/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   ======================================================== */
@media (max-width: 900px) {
    /* На планшетах и телефонах перестраиваем сетку в 1 колонку */
    .partners-grid-2col {
        grid-template-columns: 1fr; 
        gap: 1.2rem;
    }
}

@media (max-width: 500px) {
    /* На совсем узких смартфонах разворачиваем логотип наверх */
    .partner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }
    
    .partner-info-box {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .partners-section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}



.profile-card {
    display: flex;          /* Выстраивает внутренние блоки в ряд */
    align-items: flex-start; /* Выравнивает фото и текст по верхнему краю */
    gap: 30px;              /* Расстояние между фото и текстом */
    background: #f7f7f7;
    padding: 20px;
    border: 0px solid #ddd;
    border-radius: 12px;
    margin-top: 20px;
	box-shadow: 0px 10px 15px -2px rgba(0, 0, 0, 0.2);
}

.profile-photo img {
    width: 200px;           /* Ширина фотографии */
    height: auto;           /* Пропорциональная высота */
    border-radius: 8px;     /* Скругленные углы у фото */
    display: block;
}

.profile-info {
    flex: 1;                /* Заставляет текстовый блок занять всё оставшееся место */
}

.profile-info h2 {
    margin-top: 0;          /* Убираем лишний отступ сверху у заголовка */
    color: black;
}

/* На мобильных устройствах (меньше 600px) фото станет СВЕРХУ для удобства */
@media (max-width: 600px) {
    .profile-card {
        flex-direction: column; /* Переключает в режим "один под другим" */
        align-items: center;
        text-align: center;
    }
    
    .profile-photo img {
        width: 100%;        /* Фото на всю ширину экрана на мобильном */
        max-width: 250px;
    }
}

