/* Base Styles and Variables - ТЕПЛЫЕ ТОНА */
:root {
    /* Основные цвета */
    --primary-color: #8c4a2f;       /* Теплый терракотовый */
    --primary-dark: #6a3422;        /* Темный терракотовый */
    --secondary-color: #d9a566;     /* Теплый золотисто-песочный */
    --secondary-dark: #c18b45;      /* Темный песочный */
    --text-color: #3a2a22;          /* Темно-коричневый для текста */
    --text-light: #6b5a50;          /* Светло-коричневый для второстепенного текста */
    --background-light: #f5f2ed;    /* Кремово-бежевый фон */
    --background-warm: #f9f2e7;     /* Более теплый кремовый фон */
    --white: #ffffff;
    --border-color: #e5ddd3;        /* Светло-бежевый для границ */
    /* Акцентные цвета */
    --accent-olive: #7d8c3f;        /* Оливковый - для исследований и проектов */
    --accent-olive-light: #9baa55;  /* Светло-оливковый */
    --accent-rust: #c15a39;         /* Ржаво-красный - для важных новостей */
    --accent-rust-light: #e37a58;   /* Светло-ржавый */
    --accent-coral: #d9794f;        /* Коралловый - для выделения событий */
    --accent-coral-light: #f19974;  /* Светло-коралловый */
    --accent-teal: #4a8c83;         /* Бирюзовый - для публикаций */
    --accent-teal-light: #6aaa9e;   /* Светло-бирюзовый */
    --accent-plum: #8c4a6a;         /* Сливовый - для специальных сообщений */
    --accent-plum-light: #aa6a8c;   /* Светло-сливовый */
    /* Вспомогательные цвета */
    --success-color: #5c9a4f;       /* Более теплый зеленый */
    --danger-color: #c1503e;        /* Более теплый красный */
    --warning-color: #e6b043;       /* Более теплый желтый */
    --info-color: #5e95a3;          /* Приглушенный голубой */
    --shadow: 0 2px 10px rgba(107, 75, 55, 0.1);
    --transition: all 0.3s ease;
}
/* Reset and Base */
_,_ ::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}
/* Общие стили */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2.2rem;
}
h3 {
    font-size: 1.8rem;
}
h4 {
    font-size: 1.4rem;
}
p {
    margin-bottom: 15px;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}
.btn-olive {
    background-color: var(--accent-olive);
    color: var(--white);
}
.btn-olive:hover {
    background-color: var(--accent-olive-light);
    color: var(--white);
}
.btn-rust {
    background-color: var(--accent-rust);
    color: var(--white);
}
.btn-rust:hover {
    background-color: var(--accent-rust-light);
    color: var(--white);
}
.btn-coral {
    background-color: var(--accent-coral);
    color: var(--white);
}
.btn-coral:hover {
    background-color: var(--accent-coral-light);
    color: var(--white);
}
.btn-teal {
    background-color: var(--accent-teal);
    color: var(--white);
}
.btn-teal:hover {
    background-color: var(--accent-teal-light);
    color: var(--white);
}
.btn-plum {
    background-color: var(--accent-plum);
    color: var(--white);
}
.btn-plum:hover {
    background-color: var(--accent-plum-light);
    color: var(--white);
}
.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background-color: var(--background-light);
    border-color: var(--text-light);
}
.btn-block {
    display: block;
    width: 100%;
}
/* Заголовки разделов */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}
.text-center {
    text-align: center;
}
.more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}
.more-link i {
    margin-left: 5px;
    transition: var(--transition);
}
.more-link:hover i {
    transform: translateX(5px);
}
/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    background-color: var(--white);
}
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.language-selector a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 15px;
    transition: var(--transition);
}
.language-selector a.active,
.language-selector a:hover {
    color: var(--white);
}
.contact-info a {
    color: var(--white);
    margin-left: 20px;
}
.contact-info a i {
    margin-right: 5px;
}
.main-header {
    padding: 10px 0; /* Уменьшено с 20px до 15px */
    background-color: var(--white);
}
.main-header .container {
    display: row;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    text-align: left;
    align-items: center;
}
.logo {
    height: 70px; /* Уменьшено с 80px до 70px */
    margin-right: 25px; /* Уменьшено с 30px до 25px */
}
.institute-title h1 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    line-height: 1.2;
}
.institute-title p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}
.main-nav {
    background-color: var(--primary-color);
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    display: block;
    color: var(--white);
    padding: 8px 10px; /* Уменьшено с 12px 15px до 10px 12px */
    font-weight: 500;
    font-size: 0.8rem; /* Уменьшено с 0.95rem до 0.9rem */
}
.nav-links a:hover {
    background-color: var(--primary-dark);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 180px; /* Уменьшено с 200px до 180px */
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
    padding: 0; /* Убираем внутренние отступы */
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    color: var(--text-color);
    padding: 10px 15px; /* Не меняем, сохраняем как было */
    border-bottom: 1px solid var(--border-color);
    display: block; /* Делаем ссылку блочным элементом для заполнения всей ширины */
    text-align: left; /* Выравниваем текст по левому краю */
}
.dropdown-menu a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}
.search-bar {
    display: flex;
    align-items: center;
}
.search-bar input {
    padding: 8px 12px; /* Уменьшено с 8px 15px до 8px 12px */
    border: none;
    border-radius: 4px 0 0 4px;
    width: 160px; /* Уменьшено с 180px до 160px */
    font-size: 14px;
}
.search-bar button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px; /* Уменьшено с 8px 15px до 8px 12px */
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover {
    background-color: var(--secondary-dark);
}
/* Фиксированное мини-меню */
.sticky-nav {
    position: fixed;
    top: -70px;
    left: 0;
    right: 0;
    background-color: rgba(106, 52, 34, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}
.sticky-nav.visible {
    top: 0;
}
.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.sticky-logo img {
    height: 35px;
    width: auto;
}
.sticky-links {
    display: flex;
    list-style: none;
}
.sticky-links li {
    margin: 0 8px;
}
.sticky-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}
.sticky-links a:hover {
    color: var(--secondary-color);
}
.sticky-search {
    position: relative;
}
.search-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
}
/* Панель поиска */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(106, 52, 34, 0.97);
    padding: 30px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.search-panel.active {
    transform: translateY(0);
}
.search-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.search-input-wrapper {
    display: flex;
    margin-bottom: 15px;
}
.search-input-wrapper input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px 0 0 4px;
}
.search-input-wrapper button {
    width: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-input-wrapper button:hover {
    background-color: var(--secondary-dark);
}
.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--white);
}
.search-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.search-options input {
    margin-right: 5px;
}
.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}
.search-suggestions {
    margin-top: 15px;
    color: var(--white);
}
.search-suggestions p {
    margin-bottom: 10px;
    opacity: 0.8;
}
.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.suggestion-tags a {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s;
}
.suggestion-tags a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.hero-slider {
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
}
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}
.slide-content {
    color: var(--white);
    max-width: 600px;
    margin-left: 100px;
    padding: 30px;
    background-color: rgba(107, 52, 34, 0.8); /* Более теплый полупрозрачный фон */
    border-radius: 5px;
}
.slide-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}
.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.prev-slide, .next-slide {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.slide-dots {
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active, .dot:hover {
    background-color: var(--white);
}
/* Акцентные уведомления */
.notification {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
    box-shadow: var(--shadow);
}
.notification::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 18px;
}
.notification.olive {
    background-color: rgba(125, 140, 63, 0.1);
    color: var(--accent-olive);
}
.notification.olive::before {
    content: '\f05a'; /* info icon */
    color: var(--accent-olive);
}
.notification.rust {
    background-color: rgba(193, 90, 57, 0.1);
    color: var(--accent-rust);
}
.notification.rust::before {
    content: '\f071'; /* warning icon */
    color: var(--accent-rust);
}
.notification.coral {
    background-color: rgba(217, 121, 79, 0.1);
    color: var(--accent-coral);
}
.notification.coral::before {
    content: '\f06a'; /* exclamation icon */
    color: var(--accent-coral);
}
.notification.teal {
    background-color: rgba(74, 140, 131, 0.1);
    color: var(--accent-teal);
}
.notification.teal::before {
    content: '\f0eb'; /* lightbulb icon */
    color: var(--accent-teal);
}
.notification.plum {
    background-color: rgba(140, 74, 106, 0.1);
    color: var(--accent-plum);
}
.notification.plum::before {
    content: '\f005'; /* star icon */
    color: var(--accent-plum);
}
.notification h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}
.notification p {
    margin-bottom: 10px;
}
.notification a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}
.notification a:hover {
    text-decoration: none;
}
/* Quick Links Section */
.quick-links {
    background-color: var(--white);
    padding: 50px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.quick-links .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.link-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.link-card:hover {
    transform: translateY(-10px);
}
.link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.link-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}
/* About Section */
.about-section {
    padding: 80px 0;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}
.about-image img {
    border-radius: 5px;
    box-shadow: var(--shadow);
}
.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.about-text p {
    margin-bottom: 20px;
}
.heading-accent {
    position: relative;
    padding-left: 15px;
}
.heading-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background-color: var(--primary-color);
}
.heading-accent.olive::before {
    background-color: var(--accent-olive);
}
.heading-accent.rust::before {
    background-color: var(--accent-rust);
}
.heading-accent.coral::before {
    background-color: var(--accent-coral);
}
.heading-accent.teal::before {
    background-color: var(--accent-teal);
}
.heading-accent.plum::before {
    background-color: var(--accent-plum);
}
.key-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.fact {
    text-align: center;
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 5px;
    transition: var(--transition);
}
.fact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}
.fact p {
    margin-bottom: 0;
}
/* Research Section */
.research-section {
    padding: 80px 0;
    background-color: var(--background-light);
}
.research-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.area-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.area-card:hover {
    transform: translateY(-5px);
}
.area-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.area-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.featured-projects h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.project-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-5px);
}
.card-accent {
    border-top: 3px solid var(--primary-color);
}
.card-accent.olive {
    border-top-color: var(--accent-olive);
}
.card-accent.rust {
    border-top-color: var(--accent-rust);
}
.card-accent.coral {
    border-top-color: var(--accent-coral);
}
.card-accent.teal {
    border-top-color: var(--accent-teal);
}
.card-accent.plum {
    border-top-color: var(--accent-plum);
}
.project-image {
    height: 200px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.project-info {
    padding: 20px;
}
.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}
/* Календарь событий */
.events-calendar {
    padding: 60px 0;
    background-color: var(--background-light);
}
.calendar-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--white);
}
.calendar-controls h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--white);
}
.btn-calendar-prev,
.btn-calendar-next {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}
.btn-calendar-prev:hover,
.btn-calendar-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.calendar {
    padding: 20px;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.calendar-days > div {
    padding: 8px;
}
.calendar-days > div:nth-child(-n+7) {
    font-weight: 700;
    color: var(--text-color);
}
.day {
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: background-color 0.3s;
}
.day:hover:not(.empty) {
    background-color: var(--background-light);
}
.day.event {
    background-color: var(--secondary-color);
    color: var(--white);
}
.day.today {
    outline: 2px solid var(--primary-color);
}
.day.empty {
    cursor: default;
}
.upcoming-events {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}
.upcoming-events h4 {
    margin-bottom: 15px;
}
.event-card {
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: var(--background-light);
    transition: transform 0.3s;
}
.event-card:hover {
    transform: translateY(-3px);
}
.event-card-highlighted {
    background-color: rgba(217, 165, 102, 0.2);
    border-left: 3px solid var(--secondary-color);
}
.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
}
.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}
.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}
.event-details h5 {
    margin-bottom: 5px;
}
.event-time,
.event-location {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}
.event-time i,
.event-location i {
    margin-right: 5px;
    color: var(--primary-color);
}
/* News Section */
.news-section {
    padding: 80px 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.news-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-image img {
    transform: scale(1.1);
}
.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    text-align: center;
    border-top-right-radius: 5px;
}
.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--white);
}
.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--white);
}
.news-content {
    padding: 20px;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.badge-olive {
    background-color: var(--accent-olive);
    color: var(--white);
}
.badge-rust {
    background-color: var(--accent-rust);
    color: var(--white);
}
.badge-coral {
    background-color: var(--accent-coral);
    color: var(--white);
}
.badge-teal {
    background-color: var(--accent-teal);
    color: var(--white);
}
.badge-plum {
    background-color: var(--accent-plum);
    color: var(--white);
}
.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}
.link-olive {
    color: var(--accent-olive);
    font-weight: 500;
    transition: var(--transition);
}
.link-olive:hover {
    color: var(--accent-olive-light);
}
.link-rust {
    color: var(--accent-rust);
    font-weight: 500;
    transition: var(--transition);
}
.link-rust:hover {
    color: var(--accent-rust-light);
}
.link-coral {
    color: var(--accent-coral);
    font-weight: 500;
    transition: var(--transition);
}
.link-coral:hover {
    color: var(--accent-coral-light);
}
.link-teal {
    color: var(--accent-teal);
    font-weight: 500;
    transition: var(--transition);
}
.link-teal:hover {
    color: var(--accent-teal-light);
}
.link-plum {
    color: var(--accent-plum);
    font-weight: 500;
    transition: var(--transition);
}
.link-plum:hover {
    color: var(--accent-plum-light);
}
/* Publications Section */
.publications-section {
    padding: 80px 0;
    background-color: var(--background-light);
}
.publications-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.publication-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.publication-card:hover {
    transform: translateY(-5px);
}
.publication-cover {
    height: 280px;
    overflow: hidden;
}
.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.publication-card:hover .publication-cover img {
    transform: scale(1.05);
}
.publication-info {
    padding: 20px;
}
.publication-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
}
.publication-info .authors {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 5px;
}
.publication-info .year {
    font-weight: 500;
    margin-bottom: 15px;
}
.meta-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 10px;
    color: var(--white);
}
.meta-label.olive {
    background-color: var(--accent-olive);
}
.meta-label.rust {
    background-color: var(--accent-rust);
}
.meta-label.coral {
    background-color: var(--accent-coral);
}
.meta-label.teal {
    background-color: var(--accent-teal);
}
.meta-label.plum {
    background-color: var(--accent-plum);
}
/* Видео-презентация */
.video-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.video-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(106, 52, 34, 0.8);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
}
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-caption {
    padding: 20px;
    text-align: center;
}
.video-caption h3 {
    margin-bottom: 10px;
}
/* Специальные блоки */
.highlight-block {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}
.highlight-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 4px 0 0 4px;
}
.highlight-block.olive {
    background-color: rgba(125, 140, 63, 0.08);
}
.highlight-block.olive::before {
    background-color: var(--accent-olive);
}
.highlight-block.rust {
    background-color: rgba(193, 90, 57, 0.08);
}
.highlight-block.rust::before {
    background-color: var(--accent-rust);
}
.highlight-block.coral {
    background-color: rgba(217, 121, 79, 0.08);
}
.highlight-block.coral::before {
    background-color: var(--accent-coral);
}
.highlight-block.teal {
    background-color: rgba(74, 140, 131, 0.08);
}
.highlight-block.teal::before {
    background-color: var(--accent-teal);
}
.highlight-block.plum {
    background-color: rgba(140, 74, 106, 0.08);
}
.highlight-block.plum::before {
    background-color: var(--accent-plum);
}
.highlight-block h3 {
    margin-top: 0;
}
/* Раздел для исследователей */
.researchers-section {
    padding: 60px 0;
    background-color: var(--background-light);
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.resource-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}
.resource-card:hover {
    transform: translateY(-5px);
}
.resource-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(125, 140, 63, 0.1);
    color: var(--accent-olive);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.resource-card h3 {
    margin-bottom: 15px;
    color: var(--accent-olive);
}
.resource-card p {
    margin-bottom: 20px;
}
/* Галерея */
.gallery-section {
    padding: 60px 0;
}
.gallery-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.filter-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
/* FAQ */
.faq-section {
    padding: 60px 0;
}
.faq-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.faq-category-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.faq-category-btn:hover,
.faq-category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}
.faq-items {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    padding: 15px 20px;
    background-color: var(--background-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.faq-question:hover {
    background-color: rgba(217, 165, 102, 0.1);
}
.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-more {
    text-align: center;
    margin-top: 30px;
}
.faq-more p {
    margin-bottom: 15px;
}
/* Contact Section */
.contact-section {
    padding: 80px 0;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.contact-info-card, .contact-form-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}
.contact-details {
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    margin-bottom: 20px;
}
.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}
.contact-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}
.social-links h4 {
    margin-bottom: 15px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    transition: var(--transition);
}
.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}
/* Расширенная форма контактов */
.enhanced-contact-form {
    max-width: 100%;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    margin-bottom: 20px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(140, 74, 47, 0.1);
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-checkbox input[type="checkbox"] {
    width: auto;
}
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.form-actions button {
    flex: 1;
}
/* Интерактивная карта */
.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-container iframe {
    display: block;
    width: 100%;
}
.map-overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 10;
}
.location-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    max-width: 300px;
}
.location-card h3 {
    margin-bottom: 15px;
}
.location-card p {
    margin-bottom: 10px;
}
.location-card p i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}
.location-card .btn {
    margin-top: 15px;
}
/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
}
.footer-top {
    padding: 80px 0;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}
.footer-logo {
    margin-top: 20px;
}
.footer-logo img {
    height: 60px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}
/* Улучшенная форма подписки на рассылку */
.newsletter-form {
    margin-top: 20px;
}
.newsletter-form .form-group input {
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}
.newsletter-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.newsletter-categories {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.newsletter-categories p {
    margin-bottom: 10px;
    font-weight: 500;
}
.newsletter-categories label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}
.newsletter-categories input {
    margin-right: 8px;
}
.newsletter-privacy {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.newsletter-privacy a {
    color: var(--secondary-color);
    text-decoration: underline;
}
.newsletter-privacy a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}
.footer-bottom {
    background-color: #5a2c1c; /* Немного темнее чем primary-dark */
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    transition: var(--transition);
}
.footer-bottom-links a:hover {
    color: var(--white);
}
/* Кнопка "наверх" */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}
/* Переключатель темы */
.theme-switch-wrapper {
    margin-left: 20px;
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(30px);
}
.slider .fa-sun {
    position: absolute;
    left: 8px;
    bottom: 5px;
    color: var(--white);
    font-size: 14px;
}
.slider .fa-moon {
    position: absolute;
    right: 8px;
    bottom: 5px;
    color: var(--white);
    font-size: 14px;
}
/* Темная тема */
.dark-theme {
    --primary-color: #a66a4f;
    --primary-dark: #8c4a2f;
    --text-color: #e1e1e1;
    --text-light: #b0b0b0;
    --background-light: #2d2922;
    --background-warm: #221f1c;
    --white: #3a2a22;
    --border-color: #4a3c33;
    background-color: #282118;
}
.dark-theme .white-bg,
.dark-theme .card-accent,
.dark-theme .fact,
.dark-theme .area-card,
.dark-theme .project-card,
.dark-theme .news-card,
.dark-theme .publication-card,
.dark-theme .contact-info-card,
.dark-theme .contact-form-card {
    background-color: #3a2a22;
}
.dark-theme .section-header h2,
.dark-theme .heading-accent,
.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4 {
    color: #e1e1e1;
}
.dark-theme .border-color {
    border-color: #4a3c33;
}
.dark-theme .top-bar,
.dark-theme .main-nav,
.dark-theme footer,
.dark-theme .footer-bottom {
    background-color: #6a3422;
}
/* News Carousel Styles */
.news-carousel {
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.news-slides {
    position: relative;
    min-height: 400px;
}
.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.news-slide.active {
    opacity: 1;
    z-index: 2;
}
.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}
@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
    }
}
.news-image {
    flex: 0 0 40%;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-item:hover .news-image img {
    transform: scale(1.05);
}
.news-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.news-excerpt {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.news-dot.active {
    background-color: var(--secondary-color);
}
.news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.news-nav:hover {
    background-color: var(--primary-dark);
}
.news-prev {
    left: 15px;
}
.news-next {
    right: 15px;
}
/* News List Page Styles */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .news-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
.news-list .news-item {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-list .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* News Detail Page Styles */
.news-detail {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}
.news-detail-header {
    margin-bottom: 1.5rem;
}
.news-detail-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}
.news-detail-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}
.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}
.news-detail-content {
    line-height: 1.6;
}
.news-detail-content p {
    margin-bottom: 1.5rem;
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-style: italic;
    color: var(--text-light);
}
.page-header {
    background-color: var(--background-light);
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-item {
    margin-right: 0.5rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--text-light);
}
.breadcrumb-item.active {
    color: var(--text-light);
}
.my-4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .quick-links .container,
    .research-areas {
        grid-template-columns: repeat(2, 1fr);
    }
    .publications-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero {
        height: 500px;
    }
    .slide-content {
        max-width: 500px;
        margin-left: 50px;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .about-content,
    .contact-container,
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: 1;
    }
    .about-text {
        order: 2;
    }
    .projects-grid,
    .news-grid,
    .publications-slider {
        grid-template-columns: 1fr 1fr;
    }
    .sticky-links {
        display: none;
    }
    .key-facts {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-overlay {
        position: static;
        margin-top: 20px;
    }
    .location-card {
        max-width: 100%;
    }

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: flex-end; /* Выравнивает содержимое контейнера по правому краю */
    }
    
    .logo {
        margin-right: 0; /* Убираем отступ справа, если он есть */
    }
    
    .institute-title {
        text-align: right; /* Выравниваем текст по правому краю */
    }

    .institute-title h1 {
        font-size: 1rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav .container {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .search-bar {
        width: 100%;
        margin-top: 20px;
    }
    .search-bar input {
        width: 100%;
    }
    .hero {
        height: 400px;
    }
    .slide-content {
        margin-left: 20px;
        margin-right: 20px;
        max-width: none;
    }
    .slide-content h2 {
        font-size: 1.5rem;
    }
    .quick-links .container,
    .research-areas,
    .key-facts,
    .projects-grid,
    .news-grid,
    .publications-slider {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-bottom-links a {
        margin: 0;
    }
    .theme-switch-wrapper {
        margin: 10px 0 0 0;
    }
}
@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    .hero {
        height: 350px;
    }
    .slide-content {
        padding: 15px;
    }
    .slide-content h2 {
        font-size: 1.3rem;
    }
    .slide-content .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    .calendar-days {
        gap: 4px;
    }
    .day {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .search-options {
        flex-direction: column;
        gap: 10px;
    }
    .video-caption h3 {
        font-size: 1.2rem;
    }
    .logo {
        height: 50px;
    }
}
/* Добавленные стили для кнопки "Чытаць далей" */
.news-content .btn-primary {
    margin-top: auto;
    margin-bottom: 30px;
    z-index: 10;
}
/* Новые стили для точек навигации в слайдере новостей */
.news-dots {
    bottom: 40px;
}
/* Стили для новостей */
.news-slider {
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}
.news-slide {
    display: none;
    position: relative;
    background-color: var(--white);
    width: 100%;
    min-height: 300px;
    border-radius: 8px;
}
.news-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.news-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}
/* Кнопки навигации для слайдера */
.news-prev, .news-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    border-radius: 50%;
}
.news-prev {
    left: 15px;
}
.news-next {
    right: 15px;
}
.news-prev:hover, .news-next:hover {
    background-color: var(--primary-color);
}
/* Точки навигации */
.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.news-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.news-dot.active {
    background-color: var(--primary-color);
}
/* Выделенная первая новость на странице новостей */
.featured-news {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}
@media (min-width: 768px) {
    .featured-news {
        grid-template-columns: 1fr 1fr;
    }
}
.featured-news-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}
.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.featured-news:hover .featured-news-image img {
    transform: scale(1.05);
}
.featured-news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.featured-news-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.featured-news-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}
/* Сетка для остальных новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.news-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-item-image {
    height: 200px;
    overflow: hidden;
}
.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-item:hover .news-item-image img {
    transform: scale(1.05);
}
.news-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.news-item-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}
/* Детальная страница новости */
.news-detail {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}
.news-detail-header {
    margin-bottom: 20px;
}
.news-detail-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
}
.news-detail-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}
.news-detail-content {
    line-height: 1.8;
    margin-bottom: 30px;
}
.news-detail-content p {
    margin-bottom: 20px;
}
.btn-back {
    display: inline-block;
    margin-top: 20px;
}
/* Заглушка при ошибке загрузки изображения */
img[src="images/news-placeholder.jpg"] {
    object-fit: contain;
    background-color: var(--background-light);
}
/* Стили для сообщений загрузки и ошибок */
.loading, .error {
    padding: 20px;
    text-align: center;
    background-color: var(--background-light);
    border-radius: 8px;
    margin: 20px 0;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
}
/* Стили для карусели новостей */
.news-carousel {
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    min-height: 400px;
}
.news-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.news-slide {
    display: none; /* Скрываем все слайды по умолчанию */
    width: 100%;
    border-radius: 8px;
}
.news-slide.active {
    display: block; /* Показываем только активный слайд */
}
.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
    }
}
.news-image {
    flex: 0 0 40%;
    overflow: hidden;
    height: 250px;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-item:hover .news-image img {
    transform: scale(1.05);
}
.news-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.news-excerpt {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(140, 74, 47, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.news-dot.active {
    background-color: var(--primary-color);
}
.news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(140, 74, 47, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.news-nav:hover {
    background-color: var(--primary-color);
}
.news-prev {
    left: 15px;
}
.news-next {
    right: 15px;
}
/* Стили для загрузки */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 300px;
    color: var(--text-light);
}
/* Обновленные стили для новостного слайдера */
.news-carousel {
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    height: 400px; /* Фиксированная высота */
}
.news-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.news-slide {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer; /* Курсор указывает, что элемент кликабельный */
}
.news-slide.active {
    display: block;
}
.news-item {
    display: flex;
    flex-direction: row; /* Всегда в строку */
    height: 100%;
    width: 100%;
}
.news-image {
    flex: 1; /* Занимает половину ширины */
    overflow: hidden;
    height: 100%; /* Растягиваем на всю высоту */
    position: relative; /* Для правильного позиционирования изображения */
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изменено с cover на contain для полного отображения изображения */
    transition: transform 0.3s ease;
    background-color: var(--background-light); /* Фон за изображением */
}
.news-item:hover .news-image img {
    transform: scale(1.01); /* Уменьшено масштабирование для contain */
}
.news-content {
    flex: 1; /* Занимает половину ширины */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем содержимое по вертикали */
}
.news-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.news-excerpt {
    margin-bottom: 0; /* Убираем отступ снизу */
    line-height: 1.6;
}
/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    .news-image {
        height: 50%; /* На мобильных - половина высоты */
    }
    .news-content {
        height: 80%; /* На мобильных - половина высоты */
        padding: 1rem;
    }
    .news-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .news-excerpt {
        font-size: 0.9rem;
        max-height: 80%;
        overflow: hidden;
    }
}
/* Стили для страницы новостей */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}
.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.news-card-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--background-light);
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Обеспечивает отображение всего изображения целиком */
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-image img {
    transform: scale(1.05);
}
.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.news-card-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}
/* Кнопка читать далее */
.news-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }
    .news-card-image {
        height: 180px;
    }
    .news-card-title {
        font-size: 1.1rem;
    }
}
/* Стили для выделенной новости */
.featured-news {
    margin-bottom: 40px;
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
}
.featured-news-card {
    max-width: 900px;
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color); /* Верхняя граница для выделения */
}
.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.featured-news-image {
    height: 350px;
    overflow: hidden;
    background-color: var(--background-light);
}
.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.featured-news-card:hover .featured-news-image img {
    transform: scale(1.03);
}
.featured-news-content {
    padding: 30px;
}
.featured-news-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.featured-news-excerpt {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.featured-news-content .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .featured-news-image {
        height: 250px;
    }
    .featured-news-title {
        font-size: 1.5rem;
    }
    .featured-news-excerpt {
        font-size: 1rem;
    }
}
/* Стили для выделенной новости на всю ширину */
.featured-news-full-width {
    margin-bottom: 40px;
    width: 100%;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: none; /* Убираем тень */
    border-radius: 0; /* Убираем скругление углов */
}
.featured-news-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}
@media (min-width: 768px) {
    .featured-news-wrapper {
        flex-direction: row;
    }
}
.featured-news-image {
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
}
@media (min-width: 768px) {
    .featured-news-image {
        width: 45%;
    }
}
.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягиваем изображение */
    display: block;
}
.featured-news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-news-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.featured-news-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
}
.featured-news-content .btn {
    align-self: flex-start;
    margin-top: auto;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .featured-news-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    .featured-news-content {
        padding: 20px;
    }
}
/* Стылі для старонкі кіраўніцтва */
.leadership-section {
    margin: 3rem 0;
}

.person-card {
    display: flex;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.person-photo {
    width: 250px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-info {
    padding: 2rem;
    flex-grow: 1;
}

.person-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.person-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.person-title {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.person-position {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.person-contacts {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
}

.person-contacts p {
    margin-bottom: 0.5rem;
}

/* Адаптыўнасць для мабільных прылад */
@media (max-width: 768px) {
    .person-card {
        flex-direction: column;
    }
    
    .person-photo {
        width: 100%;
        height: 250px;
    }
    
    .person-info {
        padding: 1.5rem;
    }
}