body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
background-image: url('https://universen.ru/src/img/assets/bg.jpg');
    text-align: center;
}

/* Дополнительные настройки для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
}

/* Элементы интерфейса (кнопки, меню) */
button, nav ul li a {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #5081c6;
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 1em;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #1953a5;
    transition: left 0.3s ease;
}

nav ul li a:hover {
    background: #00509e;
    transform: scale(1.1);
}

nav ul li a:hover::after {
    left: 0;
}

nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    animation: dropdown 0.3s ease;
}

@keyframes dropdown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li a {
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
}

.cta {
    background: #1953a5;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background: #5081c6;
}

.hero {
    text-align: center;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
padding: 50px 10px;
    background-color: #5081c687;
    margin-top: -75px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-family: "Courier New", Courier, monospace;
    color: #f0f0f0;
    animation: fadeInText 1.5s ease forwards;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
}

.hero p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero button {
    background: #1953a5;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.hero button:hover {
    transform: scale(1.1);
}

/* Карта кампуса */
.campus-map {
    padding: 30px;
    background: #f9f9f977;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    flex-direction: row;
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
}



.map-tooltip {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Факультеты */
.faculties {
    padding: 30px;
    background: #f9f9f977;
    padding: 30px;
    background: #f9f9f977;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.faculty-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.faculty-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faculty-card h3 {
    margin-top: 0;
    color: #5081c6;
}

.faculty-card button {
    background: #0044cc;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.faculty-card button:hover {
    background: #003399;
}

/* Галерея */
.gallery {
    padding: 30px;
    background: #f9f9f977;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1000px;
    text-align: center;
}

.gallery h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
}

.swiper-container {
    width: 100%; /* Контейнер занимает всю ширину */
    max-width: 800px; /* Максимальная ширина галереи */
    height: 400px; /* Фиксированная высота */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden; /* Скрываем содержимое за пределами контейнера */
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Плавный переход между слайдами */
    width: 100%; /* Ширина будет управляться Swiper */
}

.swiper-slide {
    flex-shrink: 0; /* Запрещаем сжатие слайда */
    width: 100%; /* Каждый слайд занимает всю ширину контейнера */
    height: 100%; /* Высота совпадает с контейнером */
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%; /* Изображения заполняют ширину слайда */
    height: 100%; /* Изображения занимают всю высоту контейнера */
    object-fit: cover; /* Масштабирование без искажений */
    border-radius: 10px;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.9);
    opacity: 0;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-grid img.aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Контакты */
.contacts {
    padding: 30px;
    background: #f9f9f977;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1000px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input, .contact-form button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background: #0044cc;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #003399;
}
/* Стили для навигации */
header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

header nav ul li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background: #5081c6; /* Используем существующий стиль кнопок */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav ul li a:hover {
    background: #00509e; /* Слегка светлее при наведении */
    transform: scale(1.1);
}

.menu-toggle {
    top: -90px;
    left: -25px;
    font-size: 2.2em;
    background: none;
    border: none;
    color: #666; /* Серая кнопка по умолчанию */
    cursor: pointer;
    position: relative;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-toggle:hover {
    color: #1953a5; /* Яркий акцент при наведении */
    transform: scale(1.2);
}
.map-navigation {
    display: flex;
    align-items: start;
}
/* Навигация в карте кампуса */
.map-navigation h3 {
    color: #5081c6;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.map-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-navigation ul li button {
    background: #5081c6; /* Используем стилистику кнопок */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.map-navigation ul li button:hover {
    background: #00509e; /* При наведении светлее */
    transform: scale(1.1);
}

/* Видимость навигации */
.map-navigation ul.hidden {
    display: none;
}

.map-navigation ul.visible {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Стили модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    display: flex; /* Для позиционирования кнопок внутри */
    flex-direction: column; /* Основное направление - вертикальное */
    align-items: flex-start; /* Выравнивание по левому краю */
    
}

.modal-content h2 {
    margin-bottom: 20px; /* Отступ от заголовка до кнопок */
    text-align: center; /* Центрируем текст */
    width: 100%; /* Увеличиваем область текста */
    font-size: 1.5em;
    color: #333;
}

.modal-content ul {
    display: grid; /* Используем Grid Layout */
    grid-template-columns: repeat(5, auto); /* Колонки по 5 кнопок */
    gap: 10px; /* Расстояние между кнопками */
    padding: 0;
    margin: 0;
    list-style: none; /* Убираем маркеры списка */
}

.modal-content ul li {
    margin: 0; /* Убираем отступы у элементов списка */
}

.modal-content ul li button {
    background: #5081c6;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 120px; /* Минимальная ширина */
    min-height: 50px; /* Минимальная высота */
    display: flex; /* Центрируем текст внутри кнопки */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-content ul li button:hover {
    background: #00509e;
    transform: scale(1.1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px; /* Увеличиваем размер шрифта */
    font-weight: bold; /* Делаем жирным */
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.carousel-images {
    display: flex;
    overflow: hidden;
    max-width: 100%;
}

.carousel-images img {
    max-width: 100%;
    margin: 0 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.carousel-button {
    background: #5081c6;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.carousel-button:hover {
    background: #00509e;
}



.faculty-card {
    position: absolute;
    width: 220px;
    height: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out, filter 0.8s ease-in-out;
    filter: blur(0px);
}

/* Добавляем отступы */
.faculty-card h3 {
    margin-bottom: 10px;
}

.faculty-card p {
    margin-top: 0;
    font-size: 14px;
}
.faculty-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 400px;
}
.c2{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

#menuModal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menuModal ul li {
    margin: 10px 0;
}

#menuModal ul li button {
    background: #5081c6;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#menuModal ul li button:hover {
    background: #00509e;
    transform: scale(1.1);
}

.svgContainer {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.svgContainer svg {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Окно модального описания */
.window {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.description {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* Карусель */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.carousel-images {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-button {
    background: #5081c6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

.carousel-button:hover {
    background: #00509e;
}


.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px; /* Увеличиваем размер шрифта */
    font-weight: bold; /* Делаем жирным */
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff3333; /* Красный цвет при наведении */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-pagination,
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-clickable,
.swiper-pagination-bullets,
.swiper-pagination-horizontal {
    display: none !important;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo-image {
    height: 90px; /* Размер логотипа */
    margin-right: 15px;
}

.college-name {
    font-size: 1.2em;
    color: #fff; /* Белый цвет текста */
    font-weight: bold;
}

@media (max-width: 1366px) {
    nav ul {
        gap: 10px;
    }
    .hero-overlay {
        font-size: 0.9rem;
    }
    .logo-image {
        height: 90px;
    }
    .carousel-images img {
        border-radius: 5px;
    }
}

/* Экран до 1024px (планшеты) */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    .hero-overlay {
        width: 80%;
    }
    .modal-content {
        width: 95%;
    }
    .faculty-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Экран до 800px (маленькие планшеты и большие телефоны) */
@media (max-width: 800px) {
    header {
        padding: 10px;
    }
    .hero img {
        height: 300px;
        object-fit: cover;
    }
    .hero-overlay {
        font-size: 0.8rem;
        padding: 10px;
    }
    .faculty-card {
        padding: 10px;
    }
}

/* Экран до 480px (мобильные телефоны) */
@media (max-width: 480px) {
    nav ul {
        font-size: 0.9rem;
    }
    .hero img {
        height: 200px;
    }
    .hero-overlay {
        font-size: 0.7rem;
        padding: 5px;
    }
    .faculty-card {
        padding: 5px;
    }
    .logo-image {
        height: 35px;
    }
}

/* Экран до 320px (маленькие экраны) */
@media (max-width: 320px) {
    header {
        font-size: 0.8rem;
    }
    nav ul {
        font-size: 0.8rem;
    }
    .hero-overlay {
        font-size: 0.6rem;
    }
    .faculty-card {
        font-size: 0.7rem;
    }
    .logo-image {
        height: 30px;
    }
    .carousel-button {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* Полупрозрачный фон */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden; /* Скрыто по умолчанию */
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

/* Контейнер для контента */
.popup-content {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}

/* Красный текст */
.popup-content p {
  color: red;
  font-size: 18px;
  margin: 0 0 10px;
}

/* Кнопка закрытия */
#closePopup {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#closePopup:hover {
  background-color: #555;
}
