/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('back.jpeg');
	background-attachment: fixed;
	background-size: cover;
}

/* Шапка */
.header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.university-image {
    font-style: italic;
    font-size: 14px;
}

/* Меню */
.menu {
    background: #34495e;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

.menu a:hover {
    background: #1abc9c;
    border-radius: 4px;
}

/* Контейнер */
.container {
    display: flex;
    max-width: 1600px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 20px;
}

/* Боковая панель */
.sidebar {
    flex: 0 0 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #333;
    text-decoration: none;
}

.sidebar a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Основной контент */
.content {
    flex: 1;
	padding: 20px;
	background: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #222;
}

/* Кнопки */
.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Карточки новостей */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card h3 {
    margin: 0 0 10px 0;
}

.card h3 a {
    color: #222;
    text-decoration: none;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.table th {
    background: #f8f9fa;
}

/* Изображения факультетов */
.faculty-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* FAQ */
.faq-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    cursor: pointer;
    background: #f1f1f1;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Продолжение стилей для FAQ */
.faq-answer {
    padding: 0 15px 10px;
    display: none;
}

.faq-question:active + .faq-answer,
.faq-question:focus + .faq-answer {
    display: block;
}

/* Форма обратной связи (если добавим позже) */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

/* Стили для карты */
.map-container {
    background: #f0f0f0;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-container p {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .card {
        width: 100%;
    }
    
    .menu ul {
        flex-direction: column;
    }
    
    .menu li {
        margin: 5px 0;
    }
}

/* Дополнительные стили для разных страниц */

/* Стили для страницы факультетов */
.faculty-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Стили для страницы новостей */
.news-full-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Стили для документов */
.documents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.doc-item {
    flex: 1 1 calc(50% - 20px);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doc-item h3 {
    margin-top: 0;
    color: #222;
}

/* Стили для вступительных испытаний */
.download-links {
    margin-top: 20px;
}

.consultation-hours {
    background: #e9f7ef;
    padding: 15px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
}

/* Псевдоклассы для интерактивности */
a:hover {
    text-decoration: underline;
}

/* Общие отступы и типографика */
h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #444;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 5px;
}

