/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* ★ ВКЛЮЧАЕТ ПЛАВНЫЙ СКРОЛЛ ★ */
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Резервное решение */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Стили для body */
body {
    font-family: 'Arial', sans-serif;
    color: #1e3a5f; /* Тёмно-синий текст для контраста */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: #dcebfa; /* Цвет фона */
}
/* =========== ПЛАШКА ШАПКИ =========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 30px;
    transition: var(--transition);
    border: 1px solid rgba(224, 230, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 1700px;
    height: 80px;
    border-radius: 60px;
    margin: 15px auto 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========== ЛОГОТИП =========== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    left: -10px;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    pointer-events: none;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    white-space: nowrap;
}

/* =========== НАВИГАЦИЯ (ДЕСКТОП) =========== */
.nav {
    display: flex;
    gap: 10px;
    font-size: 20px;
    align-items: center;
    height: 100%;
    margin-left: auto;
    margin-right: 20px;
}

.nav a {
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 700;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 30px;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* =========== ГАМБУРГЕР-КНОПКА (СКРЫТА НА ДЕСКТОПЕ) =========== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 2500;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e40af;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========== ОВЕРЛЕЙ (СКРЫТ НА ДЕСКТОПЕ) =========== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1500;
}

/* =========== ПЛАНШЕТЫ =========== */
@media (max-width: 1024px) {
    .header {
        width: 92%;
        height: 75px;
        padding: 5px 25px;
        border-radius: 50px;
        margin: 12px auto 30px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav {
        gap: 5px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .nav a {
        padding: 6px 12px;
    }
}

/* =========== МОБИЛЬНЫЕ =========== */
@media (max-width: 768px) {
    .header {
        width: 94%;
        height: 70px;
        padding: 5px 20px;
        border-radius: 40px;
    }
    
    .logo {
        left: 0;
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo h1 {
        font-size: 1rem;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* ===== ВКЛЮЧАЕМ ГАМБУРГЕР ===== */
    .burger-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0;
        padding: 40px 20px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        border-radius: 30px 0 0 30px;
        z-index: 2000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        font-size: 1.3rem;
        padding: 12px 25px;
        width: 100%;
        text-align: center;
        border-radius: 30px;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Анимация гамбургера */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* =========== МАЛЕНЬКИЕ МОБИЛЬНЫЕ =========== */
@media (max-width: 480px) {
    .header {
        height: 60px;
        padding: 5px 15px;
        border-radius: 30px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        display: none;
    }
    
    .nav {
        width: 80%;
    }
    
    .nav a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .burger-menu {
        width: 28px;
        height: 20px;
    }
    
    .burger-menu span {
        height: 2.5px;
    }
}

/* =========== ПРИКЛЕЕННАЯ ШАПКА ДЛЯ МОБИЛЬНЫХ =========== */
@media (max-width: 768px) {
    .header {
        position: fixed !important;     /* Приклеиваем к верху */
        top: 10px !important;          /* Отступ сверху 10px */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 94% !important;
        height: 70px !important;
        margin: 0 auto !important;     /* Убираем margin */
        z-index: 9999 !important;
        animation: slideDown 0.5s ease;
        backdrop-filter: blur(100px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Отступ для контента, чтобы не прятался под шапкой */
    body {
        padding-top: 90px !important;
    }
    
    /* Исправление для гамбургера */
    .nav {
        top: 0 !important;
        padding-top: 90px !important;   /* Отступ под шапку */
        height: 100vh !important;
        z-index: 9500 !important;
    }
    
    .burger-menu {
        z-index: 10000 !important;
    }
    
    .menu-overlay {
        z-index: 9000 !important;
        top: 0 !important;
    }
    
    /* Анимация появления */
    @keyframes slideDown {
        from {
            transform: translateX(-50%) translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }
}

/* =========== МАЛЕНЬКИЕ МОБИЛЬНЫЕ =========== */
@media (max-width: 480px) {
    .header {
        top: 8px !important;
        width: 96% !important;
        height: 60px !important;
    }
    
    body {
        padding-top: 80px !important;
    }
    
    .nav {
        padding-top: 80px !important;
    }
}
/* =========== ИСПРАВЛЕНИЕ ВЫХОДА ЗА ГРАНИЦЫ =========== */
@media (max-width: 768px) {
    .header {
        width: 90% !important;              /* Уменьшаем ширину */
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container,
    .content-wrapper,
    .directions-grid,
    .contacts-grid {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}
/* Главный баннер*/
.entrance {
    position: relative; /* Для позиционирования контента поверх */
    width: 100%; /* На всю ширину */
    height: 400px; /* Задайте нужную высоту */
    overflow: hidden; /* Обрезает выходящее */
}

/* Изображение растянуто по всей ширине и по центру */
.entrance_img {
    width: 100%; /* На всю ширину родителя */
    height: 100%; /* На всю высоту родителя */
    object-fit: cover; /* Заполняет блок с сохранением пропорций */
    object-position: center; /* Центрирует изображение */
    display: block; /* Убирает отступ снизу */
    
    /* Гарантированное растяжение */
    min-width: 100%;
    min-height: 100%;
}
/* Контент поверх изображения */
.content {                          /* Класс для контейнера с текстом */
    position: absolute;              /* Абсолютное позиционирование относительно родителя */
    top: 50%;                       /* Верхний край на 50% высоты родителя */
    left: 50%;                      /* Левый край на 50% ширины родителя */
    transform: translate(-50%, -50%); /* Сдвигаем обратно на половину своих размеров для точного центрирования */
    text-align: center;             /* Выравнивание текста по центру */
    color: white;                   /* Цвет текста - белый */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Тень текста: смещение X 2px, Y 2px, размытие 5px, черный с прозрачностью 70% */
    width: 90%;                     /* Ширина 90% от родителя */
    max-width: 800px;               /* Максимальная ширина 800px */
    z-index: 1;                     /* Слой выше чем у затемнения (z-index: 0) */
}

.content h2 {                       /* Стили для заголовка внутри .content */
    font-size: 50px;              /* Размер шрифта: базовый размер (обычно 40px) */
    margin-bottom: 15px;            /* Отступ снизу 15px */
}

.content p {                        /* Стили для параграфа внутри .content */
    font-size: 1.2rem;              /* Размер шрифта: 1.2 × базовый размер (обычно 19.2px) */
    opacity: 0.95;                  /* Непрозрачность 95% (слегка прозрачный) */
}

/* Затемнение для лучшей читаемости главного баннера */
.entrance::after {                /* Создаём псевдоэлемент после .entrance */
    content: '';                  /* Обязательное свойство для псевдоэлементов */
    position: absolute;           /* Абсолютное позиционирование */
    top: 0;                       /* Прижимаем к верхнему краю родителя */
    left: 0;                      /* Прижимаем к левому краю родителя */
    width: 100%;                  /* Ширина 100% от родителя (.entrance) */
    height: 100%;                 /* Высота 100% от родителя (.entrance) */
    background: rgba(0, 0, 0, 0.3); /* Фон: чёрный с прозрачностью 30% */
    z-index: 0;                   /* Помещаем под контентом (ниже z-index: 1) */
}

/* О ПРОЕКТЕ */
.project {
    padding: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9);
    position: relative;
}

/* Фоновый узор */
.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    z-index: 0;
}
.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* ЗАГОЛОВОК "О ПРОЕКТЕ" - КРУПНЫЙ И ПО ЦЕНТРУ */
.project h2 {
    text-align: center;
    font-size: 3.2rem;
    color: #1e293b;
    margin-bottom: 70px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* НИЖНЕЕ ПОДЧЕРКИВАНИЕ ДЛЯ ЗАГОЛОВКА */
.project h2::after {
    content: '';
    display: block;
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Контейнер для текста и изображения */
.content-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 50px;
}

/* ТЕКСТ СЛЕВА - ПРОФЕССИОНАЛЬНОЕ ОФОРМЛЕНИЕ */
.project-content {
    flex: 1;
    background: white;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

/* Декоративный уголок слева */
.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #3b82f6 0%, transparent 70%);
    border-radius: 0 0 100% 0;
    opacity: 0.08;
}

/* Декоративная линия справа */
.project-content::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    width: 5px;
    height: calc(100% - 80px);
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 2px 0 0 2px;
}

/* Основной текст */
.project-content p {
    font-size: 1.18rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 400;
    text-align: left;
    position: relative;
    font-family: 'Georgia', serif;
}

/* Подзаголовки */
.project-content h3 {
    color: #1e40af;
    font-size: 1.7rem;
    margin: 40px 0 25px;
    padding-left: 25px;
    border-left: 5px solid #8b5cf6;
    font-weight: 700;
    text-align: left;
    position: relative;
}

.project-content h3::before {
    content: '→';
    position: absolute;
    left: -12px;
    color: #8b5cf6;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Списки */
.project-content ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.project-content li {
    padding: 16px 0 16px 55px;
    position: relative;
    line-height: 1.75;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    font-size: 1.08rem;
    background: linear-gradient(to right, transparent 50%, #f8fafc 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

.project-content li:hover {
    background-position: left bottom;
    padding-left: 60px;
    color: #1e40af;
}

/* Кастомные маркеры списка */
.project-content li::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.project-content li:hover::before {
    background: #8b5cf6;
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2);
    transform: translateY(-50%) scale(1.2);
}

/* ИЗОБРАЖЕНИЕ СПРАВА */
.project-image {
    flex: 0 0 45%;
    position: relative;
    margin-top: 30px;
}

.balls_img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 8px solid white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98) contrast(1.05) saturate(1.1);
    position: relative;
    z-index: 2;
}

.balls_img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(59, 130, 246, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.7);
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

/* Декоративный фон для изображения */
.project-image::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 35px;
    z-index: 1;
    opacity: 0.08;
    transform: rotate(2deg);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 25px;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .content-wrapper {
        gap: 60px;
    }
    
    .project h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        gap: 60px;
    }
    
    .project-image {
        flex: 0 0 auto;
        width: 80%;
        margin: 0 auto;
        order: -1;
    }
    
    .project h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .project h2::after {
        width: 150px;
        height: 5px;
    }
    
    .project-content {
        padding: 45px 35px;
    }
}

@media (max-width: 768px) {
    .project {
        padding: 70px 0;
    }
    
    .project h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .content-wrapper {
        gap: 50px;
    }
    
    .project-image {
        width: 100%;
    }
    
    .project-content {
        padding: 35px 25px;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
        margin: 30px 0 20px;
    }
    
    .project-content p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .project-content li {
        padding-left: 45px;
        font-size: 1rem;
    }
    
    .goals {
        padding: 30px;
    }
}
/* О ПРОЕКТЕ */
.directions {
    padding: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9);
    position: relative;
}
/* ЗАГОЛОВОК "О ПРОЕКТЕ" - КРУПНЫЙ И ПО ЦЕНТРУ */
.directions h2 {
    text-align: center;
    font-size: 3.2rem;
    color: #1e293b;
    margin-bottom: 70px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* НИЖНЕЕ ПОДЧЕРКИВАНИЕ ДЛЯ ЗАГОЛОВКА */
.directions h2::after {
    content: '';
    display: block;
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
/*Дизайн направлений*/
.directions-grid {
    display: grid;                                                              /* Включаем CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));     /* Определяем колонки сетки */
    gap: clamp(1rem, 3vw, 1.875rem);                                            /* Расстояние между элементами: 
                                           МИНИМУМ 1rem (16px), 
                                           ИДЕАЛЬНО 3% ширины viewport, 
                                           МАКСИМУМ 1.875rem (30px) */                                                        
    margin-top: clamp(2rem, 5vw, 3.125rem);                                     /* Отступ сверху: 
                                           МИНИМУМ 2rem (32px), 
                                           ИДЕАЛЬНО 5% ширины viewport, 
                                           МАКСИМУМ 3.125rem (50px) */
    align-items: stretch;
}
/*Плашка направлений*/
.direction-card {                         /* Стили для карточки направления/курса */
    background: var(--bg-white);          /* Фон: белый (из CSS переменной) */
    padding: clamp(1.5rem, 3vw, 1.875rem); /* Внутренние отступы: 
                                                МИНИМУМ 1.5rem (24px), 
                                                АДАПТИВНО 3% ширины viewport, 
                                                МАКСИМУМ 1.875rem (30px) */
    background: linear-gradient(145deg,         /*Фон для плашек*/
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    border-radius: 24px;                        /*Скругляем углы*/
    box-shadow:                                 /*Добавляем тени и границы*/
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);                                      
}

/* ОФОРМЛЕНИЕ ТЕКСТА В КАРТОЧКАХ */
.direction-card {
    
    text-align: left; /* ВЫРАВНИВАНИЕ ТЕКСТА ПО ЛЕВОМУ КРАЮ */
}

/* ЗАГОЛОВОК КАРТОЧКИ */
.direction-card h3 {
    color: #1e40af;                 /* Темно-синий цвет */
    font-weight: 600;               /* ПОЛУЖИРНЫЙ (600) */
    font-size: 1.4rem;              /* Размер шрифта */
    margin: 0 0 8px 0;              /* ОТСТУП СНИЗУ 8px */
    line-height: 1.3;               /* Межстрочный интервал */
    position: relative;
    padding-left: 10px;             /* Отступ слева */
}

/* Декоративная полоска слева от заголовка */
.direction-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* ОПИСАНИЕ КАРТОЧКИ */
.direction-card p {
    color: #4b5563;               /* Серо-синий цвет */
    font-size: 1rem;                /* Размер шрифта */
    font-weight: 400;               /* Обычное начертание */
    line-height: 1.5;               /* Удобочитаемый межстрочный */
    margin: 0;                      /* ★ УБИРАЕМ ВСЕ ОТСТУПЫ ★ */
    padding-left: 10px;             /* Совпадает с заголовком */
    margin-top: 12px;               /* Расстояние между заголовком и текстом */
}

/*Иконки направлений*/
.direction-logo {
    width: 100px;                     /* Ширина 100px */
    height: 100px;                    /* Высота 100px */
    display: block;                   /* Блочный элемент для margin auto */
    margin: 0 auto 20px;              /* Авто по бокам, снизу 20px отступ */
}
/* ПЛАШКИ НАПРАВЛЕНИЙ */
.direction-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    padding: 25px 20px;                    /* Уменьшили горизонтальные отступы */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    transition: all 0.35s ease;
    cursor: pointer;
    height: 100%;                          /* Важно для выравнивания по высоте */
    display: flex;
    flex-direction: column;
    overflow: hidden;                      /* ← Ключевой момент */
    position: relative;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

/* Контент внутри карточки */
.direction-card > * {
    position: relative;
    z-index: 1;
}

/* Логотип */
.direction-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 18px;
    flex-shrink: 0;                        /* Не сжимается */
}

/* Заголовок и текст */
.direction-card h3 {
    color: #1e40af;
    font-weight: 600;
    font-size: 1.35rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: center;
}

.direction-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    flex-grow: 1;                          /* Занимает всё доступное пространство */
}

/* Скролл внутри карточки (если вдруг текст очень длинный) */
.direction-card {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f5f9;
}

.direction-card::-webkit-scrollbar {
    width: 6px;
}

.direction-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.direction-card::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/*JAVA*/
/* ИСПРАВЛЕНИЕ МОДАЛЬНОГО ОКНА */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Улучшение карточек направлений */
.direction-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

/* Исправление переполнения текста на мобильных */
@media (max-width: 768px) {
    .direction-card h3 {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
    }
    
    .direction-card p {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 850px;
    
    /* ★ ОСНОВНЫЕ ОТСТУПЫ ★ */
    margin: 20px auto; /* Автоматические отступы сверху/снизу */
    padding: 40px;
    
    border-radius: 30px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    
    /* ★ АНИМАЦИЯ ПОЯВЛЕНИЯ СВЕРХУ ★ */
    transform: translateY(-30px);
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    
    max-height: 85vh; /* Ограничиваем высоту */
    overflow-y: auto; /* Прокрутка если контент не помещается */
}

/* ★ АНИМАЦИЯ ПОЯВЛЕНИЯ СВЕРХУ ★ */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Стилизация скроллбара */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: normal;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.close-button:hover {
    color: #3b82f6;
    background: #f8fafc;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

/* Контент модального окна */
.modal-body {
    padding: 10px 0;
}

/* ШАПКА КУРСА */
.course-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.course-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.course-header h2 {
    color: #1e40af;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ОПИСАНИЕ */
.course-description {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #3b82f6;
}

.course-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    margin: 0;
}

/* ИНФОРМАЦИОННЫЕ БЛОКИ */
.course-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    display: block;
}

/* СПИСОК ОСОБЕННОСТЕЙ */
.course-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.course-features li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: #475569;
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 12px;
    color: white;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* РАСПИСАНИЕ И ПРЕПОДАВАТЕЛЬ */
.schedule-block {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    border: 2px solid #bfdbfe;
}

.schedule-block p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-block p::before {
    content: '📅';
    font-size: 1.3rem;
}

.schedule-block p:last-child::before {
    content: '👨‍🏫';
}

/* КНОПКА ЗАПИСИ */
.enroll-button {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 20px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.enroll-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.enroll-button:active {
    transform: translateY(0) scale(0.98);
}

/* ★ АДАПТИВ ДЛЯ РАЗНЫХ ЭКРАНОВ ★ */
@media (max-width: 768px) {
    .modal {
        padding: 15px; /* Меньше отступы на мобильных */
    }
    
    .modal-content {
        padding: 30px 25px;
        margin: 10px auto;
        max-height: 90vh;
    }
    
    .course-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-header h2 {
        font-size: 1.8rem;
    }
    
    .course-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-features {
        grid-template-columns: 1fr;
    }
    
    .info-value {
        font-size: 1.1rem;
    }
    
    .close-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }
    
    .course-header img {
        width: 80px;
        height: 80px;
    }
    
    .course-header h2 {
        font-size: 1.5rem;
    }
    
    .course-description p {
        font-size: 1rem;
    }
    
    .enroll-button {
        padding: 15px 20px;
        font-size: 1rem;
    }
}
/* =========== ИСПРАВЛЕНИЕ ТЕКСТА В ПЛАШКАХ НА МОБИЛЬНЫХ =========== */
@media (max-width: 768px) {
    .direction-card {
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .direction-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
        white-space: normal !important;        /* Разрешаем перенос */
        word-wrap: break-word !important;      /* Переносим длинные слова */
        word-break: break-word !important;     /* Принудительный перенос */
        line-height: 1.3 !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    .direction-card p {
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }
    
    .direction-logo {
        max-width: 80px !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }
}

/* =========== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ =========== */
@media (max-width: 480px) {
    .direction-card {
        padding: 15px 12px !important;
    }
    
    .direction-card h3 {
        font-size: 1.1rem !important;
    }
    
    .direction-card p {
        font-size: 0.85rem !important;
    }
    
    .direction-logo {
        max-width: 70px !important;
    }
}

/* =========== ДЛЯ САМЫХ МАЛЕНЬКИХ ТЕЛЕФОНОВ =========== */
@media (max-width: 360px) {
    .direction-card {
        padding: 12px 10px !important;
    }
    
    .direction-card h3 {
        font-size: 1rem !important;
    }
    
    .direction-card p {
        font-size: 0.8rem !important;
    }
    
    .direction-logo {
        max-width: 60px !important;
    }
}

/* =========== ПОЛНОЕ ИСПРАВЛЕНИЕ КНОПКИ В МОДАЛЬНОМ ОКНЕ =========== */

/* --- БАЗОВЫЕ СТИЛИ КНОПКИ (ДЛЯ ВСЕХ ЭКРАНОВ) --- */
.enroll-button {
    display: inline-block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 16px 24px !important;
    margin: 25px 0 10px !important;
    border-radius: 60px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 1px !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.enroll-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

.enroll-button:active {
    transform: translateY(0) !important;
}

/* --- МОБИЛЬНЫЕ УСТРОЙСТВА --- */
@media (max-width: 768px) {
    .enroll-button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1.1rem !important;
        margin: 20px 0 15px !important;
        border-radius: 50px !important;
        display: block !important;
        clear: both !important;
        position: relative !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {
    .enroll-button {
        padding: 12px 18px !important;
        font-size: 1rem !important;
        margin: 15px 0 10px !important;
    }
}

@media (max-width: 360px) {
    .enroll-button {
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }
}
/*Контакты*/

.contacts {
    padding: 80px;
    background: linear-gradient(135deg, #9acafa73 0%, #71afee80);
    position: relative;
}

.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* ЗАГОЛОВОК "Контакты" - КРУПНЫЙ И ПО ЦЕНТРУ */
.contacts h2 {
    text-align: center;
    font-size: 3.2rem;
    color: #1e293b;
    margin-bottom: 70px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* НИЖНЕЕ ПОДЧЕРКИВАНИЕ ДЛЯ ЗАГОЛОВКА */
.contacts h2::after {
    content: '';
    display: block;
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    margin: 30px auto 0;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* =========== КОНТАКТЫ =========== */
.contacts {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(230, 247, 255, 0.8) 0%,
        rgba(209, 236, 255, 0.9) 50%,
        rgba(194, 227, 255, 0.8) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы фона */
.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 40%);
    z-index: 0;
}

.contacts .container {
    position: relative;
    z-index: 1;
}

/* Сетка для плашек */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* БЛОК С ПЛАШКАМИ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ОБЩИЙ СТИЛЬ ПЛАШЕК */
.contact-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* УВЕЛИЧИВАЕМ ТЕКСТ ВНУТРИ ПЛАШЕК */
.contact-item address,
.contact-item p {
    color: #334155;
    font-size: 1.2rem; /* Было 1.1rem */
    line-height: 1.6;
    font-style: normal;
    margin: 0;
    position: relative;
    z-index: 1;
    padding-left: 5px;
    font-weight: 450;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600; /* Было 500 */
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    font-size: 1.2rem; /* Добавлено */
}

/* ПЛАШКА СОЦСЕТЕЙ - КРАСИВОЕ ОФОРМЛЕНИЕ */
.contact-item.social-links {
    padding: 25px 25px; /* Немного увеличили */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98),
        rgba(239, 246, 255, 0.98)
    );
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

/* Декоративный фон для соцсетей */
.contact-item.social-links::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Заголовок соцсетей */
.social-links h3 {
    margin-bottom: 18px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.social-links h3 span {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.7rem !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
}

/* КРАСИВЫЕ ИКОНКИ СОЦСЕТЕЙ */
.social-links .social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.social-links .social-icons a {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Эффекты при наведении */
.social-links .social-icons a:hover {
    transform: translateY(-8px) scale(1.1);
    background: linear-gradient(145deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 24px rgba(59, 130, 246, 0.35);
}

/* Индивидуальные цвета при наведении */
.social-links .social-icons a[aria-label="ВКонтакте"]:hover {
    background: linear-gradient(145deg, #0077FF, #00A0FF);
}

.social-links .social-icons a[aria-label="Telegram"]:hover {
    background: linear-gradient(145deg, #26A5E4, #41B4E6);
}

.social-links .social-icons a[aria-label="YouTube"]:hover {
    background: linear-gradient(145deg, #FF0000, #FF4444);
}

/* Анимация пульсации */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
    }
}

.social-links .social-icons a:hover {
    animation: pulse 1.5s infinite;
}

/* Декоративный уголок */
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 0 0 100% 0;
    z-index: 0;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: white;
}

.contact-item h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact-item h3 span {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e6f7ff, #d4eaff);
    border-radius: 14px;
    color: #3b82f6;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.1);
}

/* КАРТА */
.contact-map {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 28px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    height: fit-content;
    grid-column: 2;
    grid-row: 1;
}

.contact-map:hover {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    background: white;
}

.contact-map iframe {
    border-radius: 18px;
    display: block;
    width: 100%;
    height: 350px;
    border: none;
}

/* =========== АДАПТИВНОСТЬ =========== */
@media (max-width: 1100px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        grid-column: 1;
    }
    
    .contact-map {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .contacts {
        padding: 70px 0;
    }
    
    .contacts h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 25px 20px;
    }
    
    .contact-item address,
    .contact-item p,
    .contact-item a {
        font-size: 1.1rem; /* Увеличенный текст на мобильных */
    }
    
    .contact-item.social-links {
        padding: 20px;
    }
    
    .contact-item h3 {
        font-size: 1.2rem;
    }
    
    .contact-item h3 span {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .social-links .social-icons {
        gap: 15px;
        justify-content: center;
    }
    
    .social-links .social-icons a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .contact-map iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .contacts h2 {
        font-size: 2rem;
    }
    
    .contact-item address,
    .contact-item p,
    .contact-item a {
        font-size: 1rem;
    }
    
    .social-links .social-icons a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* =========== ПОДВАЛ САЙТА (МИНИМАЛИСТИЧНЫЙ) =========== */
.footer {
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.95) 0%,
        rgba(37, 99, 235, 0.95) 100%
    );
    padding: 40px 0;
    position: relative;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Иконка сердечка */
.footer p span {
    display: inline-block;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
    margin: 0 5px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}