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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Стили для шапки */
.header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #0047a0; /* Синий цвет МГУ */
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.85rem;
    color: #666;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #0047a0;
}

.nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #0047a0;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav a:hover:after {
    width: 100%;
}

/* Стили для главного баннера (hero) */
.hero {
    position: relative;
    color: white;
    padding: 80px 0;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 71, 160, 0.85) 0%, rgba(0, 30, 80, 0.75) 100%);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #ffd600; /* Жёлтый акцентный цвет */
    color: #003366;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn:hover {
    background-color: #ffde33;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 214, 0, 0.4);
}

.btn-vk {
    background-color: #4c75a3; /* Цвет VK */
    color: white;
    box-shadow: 0 4px 12px rgba(76, 117, 163, 0.3);
}

.btn-vk:hover {
    background-color: #5a7fab;
    box-shadow: 0 6px 18px rgba(76, 117, 163, 0.4);
}

/* Секции */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: #f0f4f8;
    border-top: 1px solid #e1e8f0;
    border-bottom: 1px solid #e1e8f0;
}

h3 {
    font-size: 2.2rem;
    color: #0047a0;
    margin-bottom: 25px;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Сетка направлений */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.direction-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.direction-card i {
    font-size: 2.5rem;
    color: #0047a0;
    margin-bottom: 15px;
}

.direction-card h4 {
    margin-bottom: 10px;
    color: #222;
}

/* Шаги вступления */
.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px 0;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #0047a0;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Контакты */
.contacts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
    margin: 40px auto 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 2rem;
    color: #0047a0;
    min-width: 40px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #222;
}

.contact-item a {
    color: #0047a0;
    text-decoration: none;
    font-weight: 500;
}

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

/* Подвал */
.footer {
    background-color: #003366;
    color: #b3cde0;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    color: #b3cde0;
    margin-bottom: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .directions-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}
