/* Глобальные настройки */
* {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef1f7;
    text-align: center;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 100%;
    min-height: 60px;
    padding: 30px 20px;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center; /* Центрируем элементы по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    flex-wrap: wrap;
    gap: 20px; /* Добавим зазор между элементами, если нужно */
}


/* Кнопка */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background: #ffcc00;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #e6b800;
    box-shadow: 0px 6px 15px rgba(255, 204, 0, 0.5);
}

/* Информационные карточки */
.info {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-card {
    background: #fff;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 25px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

/* Курсы */
.courses {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    overflow: visible; /* Разрешаем выход за пределы */
}

.swiper {
    width: 100%;
    height: auto; /* Обеспечиваем, чтобы высота слайдов автоматически подстраивалась */
    overflow: visible; /* Убираем обрезку */
}

.swiper-wrapper {
    display: flex;
    position: relative;
    overflow: visible; /* Убираем обрезку */
}

.swiper-slide {
    display: flex;
    height: auto;
    width: 100%;
    position: relative;
    overflow: visible; /* Разрешаем выход за пределы */
}

/* Для карточки курса */
.course-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    margin:30px
}

.course-card:hover {
    transform: translateY(-8px) !important; /* Поднимаем карточку */
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
}


@media (max-width: 768px) {
    .course-card {
        min-height: 320px;
        margin:20px 0;
    }
}

/* Контент карточки */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.course-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.4s ease;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #444;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-content input:focus, .modal-content textarea:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: not-allowed;
    font-size: 18px;
    transition: background 0.3s ease;
}

.modal-content button.active {
    background: linear-gradient(to right, #667eea, #764ba2);
    cursor: pointer;
}

.modal-content button.active:hover {
    background: linear-gradient(to right, #5563c1, #5e3f94);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Стили для списка */
ul.custom-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

ul.custom-list li {
    background: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    position: relative;
}

ul.custom-list li:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

ul.custom-list li::before {
    content: "✔";
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

/* Социальные кнопки */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn img {
    width: 30px;
    height: 30px;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
