/* Сброс базовых стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: #1D1D1D;
    background-color: #fff;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font: inherit;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    padding: 20px 0;
    background-color: #FDF8EE;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo__title {
    font-size: 24px;
    font-weight: 700;
    color: #4D2C5E;
}

.logo__img {
    width: 56px;
    height: 56px;
    margin-right: 6px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav__links {
    display: flex;
    margin-right: 45px;
}

.nav__link {
    margin-right: 30px;
    position: relative;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.phone__button {
    padding: 12px 12px;
    background-color: #4D2C5E;
    color: #fff;
    border-radius: 118px;
}

/* Стили для бургер-меню */
.burger {
    display: none; /* По умолчанию скрыт */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.burger__line {
    width: 100%;
    height: 3px;
    background: #4D2C5E;
    transition: all 0.3s ease;
}

/* Мобильная навигация */
@media (max-width: 768px) {
    .burger {
        display: flex; /* Показываем бургер на мобильных */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Скрываем навигацию */
        height: 100vh;
        width: 70%;
        background: #FDF8EE;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        right: 0; /* Показываем навигацию */
    }

    .nav__links {
        flex-direction: column;
        margin-right: 0;
    }

    .nav__link {
        margin-right: 0;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .phone__button {
        margin-top: 20px;
    }
}

.section__hero {
    padding: 68px 0 150px 0;
    background-image: url('img/bg.png');
    background-size: cover; /* Заменяем contain на cover */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FDF8EE;
}

.hero {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    text-align: left;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    position: relative;
}

.advancet {
    position: absolute;
    bottom: -250px; /* Половина высоты блока */
    left: 53%;
    width: 1000px;
    padding: 34px 0;
    background: #4D2C5E;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translate(-50%, 50px);
    animation: fadeInUpAdv 1s 1.5s ease-out forwards;
}

.advancet__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 250px;
    opacity: 0;
    transform: translateY(30px);
}

.advancet__card:nth-child(1) {
    animation: fadeInUpCards 1s 1.8s ease-out forwards;
}

.advancet__card:nth-child(2) {
    animation: fadeInUpCards 1s 2.1s ease-out forwards;
}

.advancet__card:nth-child(3) {
    animation: fadeInUpCards 1s 2.4s ease-out forwards;
}

.advancet__card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    background-color: rgba(236, 239, 241, 0.2);
    border-radius: 18px;
}

@keyframes fadeInUpAdv {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeInUpCards {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 500px;
    
}

h1 {
    font-size: 40px;
    color: #222;
    line-height: 135%;
    margin-bottom: 14px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.3s ease-out forwards;
}

h1 .highlight {
    color: #ff7b29;
}

p {
    font-size: 16px;
    color: #8A8A8A;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.6s ease-out forwards;
    margin-bottom: 30px;
    margin-top: 14px;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    background: #5D3FD3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.9s ease-out forwards;
}

.hero-image img {
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 1s 1.2s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.сourses {
    margin-top: 130px;
    padding-bottom: 130px;
}

.courses__title {
    font-family: "Jost", sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.courses__subtitle {
    font-size: 16px;
    color: #8A8A8A;
    margin-bottom: 30px;
}

.courses__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.subcurses {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.card__img {
    margin-bottom: 18px;
}

.courses__info {
}

.courses__card {
    position: relative;
    max-width: 350px;
    text-align: left;
    background-color: #fff;
    padding: 14px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
}

.courses__categori {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 14px;
}

.curses__stars {
    width: 88px;
    height: 16px;
}

.info__subtitle {
    font-size: 16px;
    color: #8A8A8A;
    margin-bottom: 10px;
}

.categori__item {
    font-size: 14px;
    color: #8A8A8A;
    margin-bottom: 4px;
    margin-right: 8px;
}

.courses__categori {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: #ACACAC 1px dashed;
    padding-top: 6px;
}

.courses__price {
    margin-bottom: 6px;
    color: #FF7426;
    font-weight: 500;
}

.courses__button {
    padding: 12px 24px;
    background-color: #FF7426;
    color: #fff;
    border-radius: 118px;
    position: absolute;
    bottom: -25px;
    right: 30%;
    font-weight: 500;
}

.courses__top {
    position: relative;
    text-align: center;
}

.decor1 {
    width: 100px;
    position: absolute;
    left: 0%;
}

.decor2 {
    width: 100px;
    position: absolute;
    right: 0%;
    top: 0;
}

.sectionn__learning {
    padding: 68px 0 0 0;
    background-color: #FDF8EE;
    margin-bottom: 60px;
}

.learning__image {
    width: 50%;
    background-image: url('img/bglearning.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
}

.learning__image img {
    max-width: 400px;
}

.achive__img {
    width: 80px;
    height: 80px;
}

.learning__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.learning__title {
    width: 60%;
    font-size: 40px;
    color: #222;
    margin: 0;
    font-weight: 800;
    line-height: 135%;
    margin-bottom: 30px;
}

.learning__title span {
    color: #ff7b29;
}

.achive__item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #050C26;
    align-items: center;
}

.achive__title {
    font-size: 18px;
    font-weight: 700;
    width: 50%;
}

.testimonial-slider {
    max-width: 1100px;
    margin: auto;
    position: relative;
    padding-bottom: 60px;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 350px !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    justify-content: flex-start;
}

.testimonial {
    width: 100%;
    height: 260px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: 16px;
    color: #555;
    height: 128px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
}

.info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.info span {
    font-size: 12px;
    color: #888;
}

.swiper-button-prev,
.swiper-button-next {
    color: #5d3baf;
}

.swiper-pagination-bullet {
    background: #ccc;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #5d3baf;
}

.conaction {
    padding: 90px 0;
}

.input-container {
    display: flex;
    align-items: center;
    width: 610px;
    height: 80px;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-container input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 18px;
    color: #555;
    background: none;
}

.input-container input::placeholder {
    color: #aaa;
}

.input-container button {
    margin: 10px 10px;
    padding: 20px 90px;
    border: none;
    background: #ff7f2a;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.input-container button:hover {
    background: #e66b1e;
}

.conaction__inner {
    background-image: url('img/bgconect.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #4D2C5E;
    padding: 100px 0;
    border-radius: 14px;
}

.conect {
    color: #ffff;
}

.footer {
    background: #FDF8EE;
    color: #606060;
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    display: inline;
    margin-right: 20px;
}

.footer-nav ul li a {
    color: #00052E;
    font-weight: 700;
    text-decoration: none;
}

.footer-contacts p {
    margin: 5px 0;
}

.footer-socials a img {
    width: 24px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    font-size: 14px;
    border-top: 1px solid #B7B7B7;
}

.section__comments {
    position: relative;
}

.section__comments::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 116, 38, 0.1);
    border-radius: 50%;
    bottom: -80px;
    left: -50px;
    z-index: 0;
    filter: blur(50px);
    box-shadow: 0 0 100px 50px rgba(255, 116, 38, 0.1);
}

.section__comments::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 116, 38, 0.1);
    border-radius: 50%;
    bottom: -80px;
    right: 0;
    z-index: 0;
    filter: blur(50px);
    box-shadow: 0 0 100px 50px rgba(255, 116, 38, 0.1);
}

.comments__inner {
    position: relative;
    z-index: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .decor2{
        right: 0;
        top: -60%;
    }
    .section__comments::after{
        width: 0;
        height: 50%;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        max-width: 100%;
    }

    .advancet {
        position: static;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin-top: 20px;
        margin-left: 385px;
    }

    .courses__list {
        flex-direction: column;
        align-items: center;
    }

    .courses__card {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .learning__inner {
        flex-direction: column;
        text-align: center;
    }

    .learning__image {
        width: 100%;
    }

    .achive__item {
        flex-direction: column;
        text-align: center;
    }

    .achive__title {
        width: 100%;
    }

    .testimonial-slider {
        max-width: 100%;
    }

    .swiper-slide {
        width: 100% !important;
    }

    .input-container {
        width: 90%;
        height: auto;
        flex-direction: column;
        padding: 20px 0 0px 0;
    }

    .input-container input {
        width: 100%;
        margin-bottom: 10px;
    }

    .input-container button {
        width: 90%;
        padding: 15px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .footer-nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .footer-socials {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .logo__title {
        font-size: 20px;
    }

    .logo__img {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 42px;
    }

    p {
        font-size: 14px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .courses__title {
        font-size: 24px;
    }

    .courses__subtitle {
        font-size: 14px;
    }

    .courses__button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .learning__title {
        margin: 0 auto;
        margin-bottom: 20px;
        font-size: 28px;
    }

    .achive__title {
        font-size: 16px;
        width: 60%;
    }

    .testimonial{
        height: 230px;
    }
    .testimonial p {
        font-size: 14px;
        height: 100px;
    }

    .info strong {
        font-size: 12px;
    }

    .info span {
        font-size: 10px;
    }

    .input-container input {
        font-size: 16px;
        text-align: center;
    }

    .input-container button {
        font-size: 16px;
    }

    .section__hero{
        padding-bottom: 30px;
        padding-top: 30px;
    }
    .courses__button{
        right: 35%;
    }
    .decor1{
        top: -90%;
    }
}


/* Стили модального окна */
.modal {
    display: none; /* Убираем модальное окно при загрузке */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}


/* Контент внутри модального окна */
.modal__content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Кнопка закрытия */
.modal__close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 30px;
    cursor: pointer;
    margin-right: 20px;
}

/* Стили формы */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input, select {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal__submit {
    margin-top: 15px;
    background-color: #e66b1e;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    font-size: 16px;
}

.modal__submit:hover {
    background-color: #d8651d;
}

.courses-page {
    padding: 50px 0;
    background: #f8f9fa;
    text-align: center;
}

.courses__title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.courses__subtitle {
    font-size: 18px;
    /* color: #555; */
    margin-bottom: 30px;
}

.courses__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.courses__card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.courses__card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card__img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tab__info {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.tab__cat {
    font-size: 16px;
    font-weight: bold;
    color: #777;
    margin-bottom: 10px;
}

.tab__des {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.tab__img{
    width: 100%;
    height: 300px;
}
/* .courses__button {
    background: #FF7426;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.courses__button:hover {
    background: #E65F1F;
} */


.tab__main{
    text-align: start;
}


/* Новое модальное окно */
.modal-new {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-new.show {
    opacity: 1;
}

.modal-new__content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-new.show .modal-new__content {
    transform: translateY(0);
}

.modal-new__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-new__title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.modal-new__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-new__form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.modal-new__form input:focus {
    border-color: #FF7426;
    outline: none;
}

.modal-new__submit {
    background-color: #FF7426;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.modal-new__submit:hover {
    background-color: #e5671d;
}

.modal-new__error {
    color: red;
    font-size: 14px;
    margin-top: -10px;
    display: none;
}

/* Адаптивность */
@media (max-width: 600px) {
    .modal-new__content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-new__title {
        font-size: 20px;
    }
}


.age-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.age-filter {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.age-filter:hover {
    background: #e0e0e0;
}

.age-filter.active {
    background: #FF7426;
    color: white;
}