/* Основные стили для iapp.am */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные переменные */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --white: #ffffff;
    --light-gray: #e5e7eb;
    --gray: #6b7280;
    --medium-gray: #6b7280;
    --dark-gray: #374151;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Базовые стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* Ссылки */
a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 100;
}

.header .container {
    padding: 0 32px;
}

/* Основной контейнер header */
.header-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
}

/* Контейнер логотипа */
.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Логотип сайта */
.site-logo {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Контейнер для названия и навигации */
.title-and-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Название сайта */
.logo {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Навигация и языки */
.nav-and-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    flex-wrap: wrap;
    gap: 16px;
}

/* Навигация */
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--white);
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* Переключатель языков */
.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 50%, 
        rgba(96, 165, 250, 0.05) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Анимации для hero секций */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для скрытия hero секции */
.hero.hidden {
    display: none;
}

/* Дополнительные отступы для основного контента, когда hero секция скрыта */
main:first-child {
    padding-top: 0;
}

/* Убираем верхний отступ у первой секции, если hero скрыта */
.hero + section,
.hero + .news-section,
.hero + .about-section,
.hero + .structure-section,
.hero + .events-section,
.hero + .contact-section {
    margin-top: 0;
}

/* Если hero секция скрыта, добавляем отступ к первой секции */
section:first-of-type:not(.hero),
.news-section:first-of-type,
.about-section:first-of-type,
.structure-section:first-of-type,
.events-section:first-of-type,
.contact-section:first-of-type {
    padding-top: 40px;
}

/* Секции */
.about-section,
.contact-section,
.research-section,
.structure-section,
.labs-section,
.management-section,
.events-section,
.past-events-section,
.calendar-section,
.contact-info-section,
.contact-form-section,
.map-section,
.additional-info-section,
.main-content-section {
    padding: 64px 0;
}

/* News Section - специальные стили */
.news-section {
    padding: 48px 0;
    background-color: #f8fafc;
}

/* Events Section - специальные стили (компактные, как News) */
.events-section {
    padding: 32px 0;
    background-color: #f8fafc;
}

/* Стили для кликабельных карточек новостей */
.news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card:active {
    transform: translateY(-2px);
}

/* Стили для ссылок в карточках новостей */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-card-link:hover {
    color: inherit;
}

.news-card-link:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Стили для ссылок в карточках событий */
.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-card-link:hover {
    color: inherit;
}

.event-card-link:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

.news-intro {
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 0;
}

.news-intro p {
    font-size: 18px;
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Event Overview - стили для страницы Events (аналогично news-intro) */
.event-overview {
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 0;
}

.event-overview p {
    font-size: 18px;
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Основная секция контента */
.main-content-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.main-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.main-content-title {
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 600;
}

.main-content-text {
    font-size: 18px;
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.main-content-text p {
    margin-bottom: 20px;
}

.main-content-text h1,
.main-content-text h2,
.main-content-text h3,
.main-content-text h4,
.main-content-text h5,
.main-content-text h6 {
    color: var(--primary-blue);
    margin-top: 32px;
    margin-bottom: 16px;
}

.main-content-text ul,
.main-content-text ol {
    margin: 20px 0;
    padding-left: 24px;
}

.main-content-text li {
    margin-bottom: 8px;
}

.main-content-text a {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.main-content-text a:hover {
    color: var(--primary-blue);
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

.section-text {
    font-size: 18px;
    color: var(--dark-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Контент сетка */
.content-grid {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 24px;
    text-align: left;
}

/* Исследовательские области */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.research-item {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.research-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.research-item h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.research-item p {
    color: var(--medium-gray);
    font-size: 16px;
}



/* Структура */
.structure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.structure-item {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.structure-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.structure-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.structure-item h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.structure-item p {
    color: var(--medium-gray);
    margin-bottom: 16px;
}

.structure-item ul {
    list-style: none;
    text-align: left;
}

.structure-item li {
    color: var(--medium-gray);
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.structure-item li:last-child {
    border-bottom: none;
}

/* Кликабельные блоки структуры */
.structure-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.structure-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.structure-item-link::after {
    content: '🔗';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.structure-item-link:hover::after {
    opacity: 1;
}

/* Адаптивность для структуры */
@media (max-width: 1200px) {
    .structure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .structure-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Лаборатории */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.lab-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.lab-card h4 {
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.lab-card p {
    color: var(--medium-gray);
    margin-bottom: 16px;
}

.lab-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-info span {
    color: var(--medium-gray);
    font-size: 14px;
    padding: 4px 0;
}

/* Управление */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-btn.current {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    cursor: default;
}

.pagination-btn.prev,
.pagination-btn.next {
    min-width: 120px;
    font-weight: 600;
}

.pagination-dots {
    color: var(--medium-gray);
    font-weight: 600;
    padding: 0 8px;
}

/* Информация о количестве */
.news-info,
.events-info {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background-color: var(--light-gray);
    border-radius: 8px;
    color: var(--medium-gray);
    font-size: 14px;
}

.management-item {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.management-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.management-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.management-item h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.management-item p {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 8px;
}

.management-item span {
    color: var(--medium-gray);
    font-size: 14px;
}

/* События - новый компактный дизайн с фотографиями */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.event-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 8px 8px 0 0;
    z-index: 0;
}

/* Фотография события */
.event-image {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* Placeholder для изображений */
.event-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--medium-gray);
    height: 100%;
    width: 100%;
}

.event-image-placeholder .placeholder-icon {
    font-size: 32px;
    opacity: 0.6;
}

.event-image-placeholder .placeholder-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.3;
}

/* Контент события */
.event-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Дата события - компактная версия */
.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.event-date .day {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    min-width: 32px;
    text-align: center;
}

.event-date .month {
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

/* Заголовок события */
.event-title {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

/* Описание события */
.event-description {
    color: var(--medium-gray);
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Детали события */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    margin-top: auto;
}

.event-time,
.event-location {
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.external-link-indicator {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 11px;
    background-color: rgba(30, 58, 138, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.event-time::before {
    content: '🕐';
    font-size: 10px;
}

.event-location::before {
    content: '📍';
    font-size: 10px;
}

/* Календарь */
.calendar-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.calendar-info p {
    color: var(--medium-gray);
    margin-bottom: 24px;
    font-size: 18px;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-card h4 {
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Форма контактов */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Карта */
.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background-color: var(--light-gray);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 80px 24px;
    text-align: center;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-placeholder:hover {
    background-color: var(--white);
    border-color: var(--secondary-blue);
}

.map-placeholder p {
    margin-bottom: 8px;
}

.map-placeholder p:first-child {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Дополнительная информация */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-item {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 12px 12px 0 0;
    z-index: 0;
}

.info-item h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.info-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.news-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 8px 8px 0 0;
    z-index: 0;
}

.news-image {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '📰';
    font-size: 32px;
    opacity: 0.6;
    position: absolute;
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.news-image img:not([src]), 
.news-image img[src=""],
.news-image img[src*="placeholder"] {
    opacity: 0;
}

.news-image img:not([src]) + .news-image::before,
.news-image img[src=""] + .news-image::before,
.news-image img[src*="placeholder"] + .news-image::before {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.news-date {
    color: var(--medium-gray);
    background-color: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
}

.news-category {
    color: var(--primary-blue);
    font-weight: 500;
    background-color: rgba(30, 58, 138, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.news-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--medium-gray);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.news-link {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.news-link:hover {
    border-bottom-color: var(--primary-blue);
    color: var(--secondary-blue);
}

/* Кнопка загрузки */
.load-more {
    text-align: center;
    margin-top: 48px;
}

/* События */
.events-section {
    background-color: #f8fafc;
    padding: 40px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.event-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 8px 8px 0 0;
    z-index: 0;
}

.event-image {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-content {
    padding: 20px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.event-date {
    color: var(--primary-blue);
    background-color: rgba(30, 58, 138, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.event-time {
    color: var(--medium-gray);
    background-color: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
}

.event-location {
    color: var(--medium-gray);
    background-color: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
}

.event-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.event-description {
    color: var(--medium-gray);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.event-link {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.event-link:hover {
    border-bottom-color: var(--primary-blue);
}

/* Мобильная адаптивность для событий */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-card {
        margin: 0 8px;
    }
    
    .event-image {
        height: 160px;
    }
    
    .event-content {
        padding: 12px;
    }
    
    .event-title {
        font-size: 15px;
        min-height: 2.4em;
    }
    
    .event-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .event-details {
        font-size: 11px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .events-grid {
        gap: 12px;
    }
    
    .event-card {
        margin: 0 4px;
    }
    
    .event-image {
        height: 140px;
    }
    
    .event-content {
        padding: 10px;
    }
    
    .event-title {
        font-size: 14px;
        min-height: 2.2em;
    }
    
    .event-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .event-details {
        font-size: 10px;
    }
    
    .event-date .day {
        font-size: 12px;
        min-width: 28px;
        padding: 3px 6px;
    }
    
    .event-date .month {
        font-size: 10px;
    }
}

/* Кликабельные карточки */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

/* Footer для секций новостей и событий */
.news-section-footer,
.events-section-footer {
    text-align: center;
    margin-top: 32px;
}

.news-section-footer .btn,
.events-section-footer .btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    min-height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.news-section-footer .btn:hover,
.events-section-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    background-color: var(--secondary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 40px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
    line-height: 1.2;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link:active {
    transform: translateY(0) scale(0.95);
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--secondary-blue);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-contact .contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact .contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.footer-contact .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-label {
    color: var(--secondary-blue);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Новые стили для футера */
.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Простые переходы для hover эффектов */

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 24px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    .footer-slogan {
        font-size: 14px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Structure Section */

/* Management Section */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.management-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.management-item h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.management-item p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.position-details {
    color: var(--medium-gray) !important;
    font-weight: 400 !important;
    font-size: 0.875rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-item p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Map Section */
.map-container {
    background-color: var(--light-gray);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
}

.map-placeholder p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.map-placeholder p:first-child {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--light-gray);
    padding: 16px 0;
    margin-bottom: 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--medium-gray);
}

.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--dark-gray);
    font-weight: 500;
}

/* News Detail Page */
.news-detail-section {
    padding: 32px 0;
}

.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 32px;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.news-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.news-excerpt {
    font-size: 18px;
    color: var(--medium-gray);
    font-style: italic;
}

.news-image-large {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.news-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    gap: 16px;
}

.news-image-placeholder .placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
}

.news-image-placeholder .placeholder-text {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

.news-content-full {
    margin-bottom: 32px;
}

.news-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.news-text h3 {
    color: var(--primary-blue);
    margin: 24px 0 16px 0;
    font-size: 24px;
}

.news-text p {
    margin-bottom: 16px;
}

.news-footer {
    border-top: 2px solid var(--light-gray);
    padding-top: 24px;
    margin-bottom: 32px;
}

.news-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--light-gray);
    color: var(--medium-gray);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.news-share {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.share-link {
    color: var(--secondary-blue);
    text-decoration: none;
}

.share-link:hover {
    text-decoration: underline;
}

.related-news {
    border-top: 2px solid var(--light-gray);
    padding-top: 32px;
}

/* Event Detail Page */
.event-detail-section {
    padding: 32px 0;
}

/* Фотография события на странице деталей */
.event-image-large {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--light-gray);
}

.event-image-large img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.event-detail {
    max-width: 800px;
    margin: 0 auto;
}

.event-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.event-date-large {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
}

.event-date-large .day {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.event-date-large .month {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.event-date-large .year {
    font-size: 14px;
    font-weight: 400;
    display: block;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.event-description {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.event-details-large {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    font-size: 16px;
    color: var(--dark-gray);
}

.detail-item strong {
    color: var(--primary-blue);
    margin-right: 8px;
}

.event-content-full {
    margin-bottom: 32px;
}

.event-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.event-text h3 {
    color: var(--primary-blue);
    margin: 24px 0 16px 0;
    font-size: 24px;
}

.event-text p {
    margin-bottom: 16px;
}



.related-events {
    border-top: 2px solid var(--light-gray);
    padding-top: 32px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Адаптивность для кнопок секций */
    .news-section-footer,
    .events-section-footer {
        margin-top: 24px;
    }
    
    .news-section-footer .btn,
    .events-section-footer .btn {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
    }
    
    .header .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    
    .logo-container {
        align-self: center;
    }
    
    .site-logo {
        height: 100px;
        max-width: 150px;
    }
    
    .title-and-nav {
        text-align: center;
    }
    
    .logo {
        text-align: center;
        font-size: 20px;
    }
    
    .nav-and-lang {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-list {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .news-grid,
    .research-grid,
    .labs-grid,
    .contact-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .structure-grid,
    .management-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .research-item,
    .structure-item,
    .lab-card,
    .management-item,
    .contact-card,
    .info-item {
        padding: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: auto;
        padding: 16px;
    }
    
    .event-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .map-placeholder {
        padding: 60px 20px;
    }
    
    /* Mobile styles for detail pages */
    .event-header {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date-large {
        min-width: auto;
        margin: 0 auto 16px auto;
    }
    
    .news-title,
    .event-title {
        font-size: 28px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .schedule-item .time {
        min-width: auto;
    }
}
