/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== ЦВЕТОВАЯ ГАММА ===== */
:root {
    --dark-blue: #2c3e50;      /* темно-синий для шапки, подвала */
    --blue: #3498db;           /* голубой для акцентов */
    --light-blue: #e8f4fd;     /* очень светлый голубой для фона */
    --white: #ffffff;          /* белый */
    --light-gray: #ecf0f1;     /* светло-серый */
}

/* ===== ШАПКА (HEADER) ===== */
header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;        /* выравнивание по вертикали */
    justify-content: space-between;  /* текст слева, логотип справа */
    gap: 20px;                   /* расстояние между текстом и логотипом */
    width: 100%;                  /* занимает всю ширину */
}

.logo-img {
    height: 80px;                /* высота логотипа */
    width: auto;                  /* ширина подстроится */
    max-width: 120px;             /* чтобы не был слишком широким */
    object-fit: contain;          /* сохраняет пропорции */
}
.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* ===== НАВИГАЦИЯ (NAV) ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

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

nav a.active {
    background-color: var(--blue);
}

/* ===== БАННЕР (HERO) ===== */
.hero {
    background-image: url('images/bg-hero.jpg');  /* путь к фото */
    background-size: cover;        /* фото покрывает весь блок */
    background-position: center;   /* центрируем фото */
    background-repeat: no-repeat;  /* не повторяем */
    color: var(--white);           /* текст белый */
    text-align: center;
    padding: 100px 20px;
    position: relative;            /* для затемнения */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);  /* чёрный полупрозрачный слой */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
}

section h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--blue);
}

/* ===== СЕКЦИЯ ОБ УНИВЕРСИТЕТЕ ===== */
.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    background-color: var(--light-blue);
    padding: 30px 20px;
    border-radius: 8px;
    flex: 1 1 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    color: #666;
}

/* ===== КАРТОЧКИ ОБРАЗОВАНИЯ ===== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
    border-color: var(--blue);
}

.card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card ul {
    list-style-position: inside;
    margin-bottom: 20px;
    color: #555;
}

.card li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.card-link:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

/* ===== НОВОСТИ ===== */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--light-blue);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-date {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.news-item h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-item p {
    color: #555;
}

/* ===== ПОДВАЛ (FOOTER) ===== */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--blue);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}
/* ===== СТРАНИЦЫ РАЗДЕЛОВ ===== */
.page-hero {
    background-image: url('images/banner-bachelor.jpg');  /* путь к картинке */
    background-size: cover;        /* картинка покрывает весь блок */
    background-position: center;   /* центрируем */
    background-repeat: no-repeat;  /* не повторяем */
    color: white;
    text-align: center;
    padding: 80px 20px;            /* можно увеличить отступы */
    position: relative;            /* для затемнения */
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.directions {
    margin-bottom: 50px;
}

.direction-card {
    background-color: var(--light-blue);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--blue);
    transition: transform 0.3s ease;
}

.direction-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.direction-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.direction-card p {
    margin-bottom: 10px;
    color: #555;
}

.schedule-info {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.schedule-info h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.schedule-info p {
    margin-bottom: 15px;
}
/* ===== ФОНЫ ДЛЯ РАЗДЕЛОВ ===== */
.bachelor-hero {
    background-image: url('images/banner-bachelor.jpg');
}

.specialist-hero {
    background-image: url('images/banner-specialist.jpg');
}

.master-hero {
    background-image: url('images/banner-master.jpg');
}

.postgraduate-hero {
    background-image: url('images/banner-postgraduate.jpg');
}

.contacts-hero {
    background-image: url('images/bg-hero.jpg');
}
/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info h2,
.contact-form h2 {
    text-align: left;
    margin-bottom: 25px;
}

.info-card {
    background-color: var(--light-blue);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--blue);
}

.info-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    margin-bottom: 5px;
    color: #555;
}

/* ===== КРАСИВАЯ ФОРМА ===== */
.contact-form {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.contact-form h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
}

/* Группы полей */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Метки (labels) */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Обязательные поля */
.required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Поля ввода */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Placeholder (подсказки) */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
    font-weight: 300;
}

/* Эффект при фокусе */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* Кнопка отправки */
.btn-submit {
    position: relative;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--blue), #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, var(--blue));
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Текст кнопки и лоадер */
.btn-text, .btn-loader {
    transition: all 0.3s ease;
}

/* Успешное сообщение */
.form-success {
    margin-top: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    border-left: 5px solid #28a745;
    animation: slideIn 0.5s ease;
}

.success-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* Анимация */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подсказка */
.form-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    
    .contact-form h2 {
        font-size: 1.6rem;
    }
}
/* ===== ТАБЛИЦА ===== */
.table-section {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow-x: auto; /* для мобильных */
}

.table-section h2 {
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.admission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px; /* чтобы на мобильных скроллилась */
}

.admission-table thead {
    background-color: var(--blue);  /* просто голубой */
    color: white;
}

.admission-table th {
    padding: 15px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-align: left;
}

.admission-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e7ff;
    text-align: left;
}

/* Выравнивание чисел */
.admission-table td:nth-child(3),
.admission-table td:nth-child(4),
.admission-table td:nth-child(5) {
    text-align: center;
}

/* Чередование цветов строк */
.admission-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Эффект при наведении */
.admission-table tbody tr:hover {
    background-color: #e8f4fd;
    transition: all 0.3s ease;
}

/* Стиль для названий направлений */
.admission-table td:first-child {
    font-weight: 500;
    color: var(--dark-blue);
}

/* Стиль для цен */
.admission-table td:last-child {
    font-weight: 600;
    color: #27ae60;
}

/* Примечание под таблицей */
.table-note {
    text-align: right;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 15px;
    font-style: italic;
}
/* ===== ГАЛЕРЕЯ ===== */
.gallery-hero {
    background-color: var(--blue);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--blue);
}

#modal-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
}
