

html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
}

.why-for-child, .direction, .roadmap_education, .reviews, .certificate_garant, .footer {
    display: flex;
    flex-direction: column;
    margin: 60px;
}
/* ====== Общий стиль ====== */
.about {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
    padding: 80px 20px;
    font-family: "Inter", sans-serif;
    color: #1b2b50;
}

/* ====== Контейнер ====== */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ====== Текст ====== */
.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #2e3a59;
    margin-bottom: 30px;
    max-width: 500px;
}

/* ====== Кнопка ====== */
.btn {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* ====== Картинка ====== */
.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}






/*Блок для кого нужно обучение*/
.why-for-child img {
    width: 32px;
    height: auto;
}

.why-for-child>ul {
    list-style: none;
}

.why-for-child>ul>li {
    display: flex;
}

.why-for-child>ul>li>p {
    margin: 10px;
}

/*блок направления*/
.direction {
    width: 100%;
}


/*таблица*/

.dir_table {
    border-radius: 5px;
    color: #10bad1;
    background-color: #0089ff29;
    margin: 20px 0 20px 0;
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th {
    text-align: center;
}

td>img {
    width: 48px;
}

td {
    padding: 10px;
}

.feedbakers {
    display: flex;
    flex-direction: row;
}

.feedbakers>i {
    padding-left: 10px;
}


/*Отзывы */

.review-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    margin: 15px;
    width: 90%;
}

.review-card>img {
    width: 60%;
}

.certificate_garant img {
    width: 60%;
    height: auto;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal_window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 0.7;
}

.close-modal img {
    width: 100%;
    height: auto;
}

.modal-container>h3 {
    padding-top: 10px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

/* Стили для формы */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #3aaffd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    animation: fadeIn 0.3s ease-in;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}


/*блок подвала*/
.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.footer_social img {
    width: 32px;
    height: auto;
}


@media (max-width: 768px) {

    .why-for-child, .direction, .roadmap_education, .reviews, .certificate_garant, .footer {
        margin: 5px;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text p {
        max-width: none;
    }

    .about-image img {
        max-width: 400px;
    }

    .btn {
        margin: 0 auto;
    }

    .feedbakers {
        flex-direction: column;
    }

    .feedbakers>.btn {
        width: 100%;
    }

    .review-card>img {
        width: 100%;
        padding: 10px;
    }

    .certificate_garant img {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .direction {
        width: 100%;
    }

    .table-container {
        width: 100%;
        overflow-x: auto;
    }
}


/* Стили для успешного модального окна */
#success_get_data .modal_window {
    text-align: center;
    padding: 40px;
}

#success_get_data .modal-container p {
    font-size: 1.2em;
    color: #28a745;
    font-weight: 600;
    margin: 20px 0;
}

/* Стили для успешной валидации */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Улучшаем отображение ошибок при наличии ошибок бэкенда */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

/* Анимация для появления ошибок */


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Улучшаем внешний вид модального окна при ошибках */
.modal-container .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
