/* Общий стиль для сайта с шрифтом Inter */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* Размер текста по умолчанию */
    color: #1A1A1A; /* Цвет текста */
}

/* Стиль для навигационной панели с тенью и закругленными углами */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 100;
    height: 112px;
    display: flex;
    justify-content: space-between; /* Логотип и кнопка по краям */
    align-items: center;
    padding: 0 40px; /* Отступы по краям */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Добавляем тень внизу */
    border-bottom-left-radius: 20px; /* Закругляем нижний левый угол */
    border-bottom-right-radius: 20px; /* Закругляем нижний правый угол */
    background-color: #ffffff; /* Цвет фона, можно изменить по желанию */
}

/* Центрирование меню */
.navbar-nav {
    flex-grow: 1;
    justify-content: center; /* Центрируем элементы */
    font-size: 16px;
    z-index: 30;
}

.nav-link {
    color: #1A1A1A !important; /* Цвет текста в меню */
}

.nav-link:hover {
    color: #8a8a8a !important; /* Цвет текста в меню */
}

.navbar-brand {
    margin-right: auto; /* Логотип уходит влево */
}

.nav-item {
    padding: 0 24px; /* Отступы между вкладками */
}


.hero-banner {
    height: 400px;
}

.hero-banner::before,
.hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px; /* Ширина для SVG по бокам */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-banner::before {
    left: 0px;
    z-index: -1;
    background-image: url('/static/images/left-bg.svg'); /* Путь к левому SVG */
}

.hero-banner::after {
    right: 0px;
    z-index: -1;
    background-image: url('/static/images/right-bg.svg'); /* Путь к правому SVG */
}


.banner-text {
    display: inline-block;
    max-width: 857px;
    text-align: center;
}

.stats-section {
    display: flex;
    justify-content: center;
    padding: 60px 60px;
}

.stats-section p {
    font-size: 16px;
    font-weight: 300;
}

.stat {
    margin: 0 20px;
    width: 315px;
}


.tag-container {
    padding-top: 130px;
    padding-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 2px;
    column-gap: 10px;
    justify-content: center;
    margin-top: 20px;
    max-width: 600px;
}

.tag {
    border: 1px solid #000;
    border-radius: 30px;
    background-color: transparent;
    padding: 6px 10px; /* Минимальные отступы, чтобы кнопка была по контенту */
    font-size: 16px;
    font-weight: 300;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Запрещаем перенос текста */
    display: inline-block;
    box-sizing: border-box;
    width: max-content;
    height: max-content;
}


.tag:hover {
    text-decoration: none;
    background-color: #000;
    color: #fff;
}

.tag:focus {
    outline: none;
}

.tag-container .tag {
    margin-bottom: 10px;
}

.scroll-container {
    display: flex;
    flex-direction: column; /* Вертикальная компоновка строк карточек */
    overflow-x: auto; /* Горизонтальная прокрутка для контейнера */
    scroll-snap-type: x mandatory; /* Привязка к началу при прокрутке */
    padding-bottom: 10px;
    padding: 0px 40px;
    margin-bottom: 80px;
}

.card-exam-container {
    display: flex;
    gap: 20px; /* Расстояние между карточками */
    scroll-snap-align: start; /* Привязка каждой строки к началу */
    padding: 0px 40px;

}

.card-exam {
    flex: 0 0 377px; /* Фиксированная ширина карточки */
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 11px;
    margin-top: 11px;
    border: 1px solid #1A1A1A;
    scroll-snap-align: start; /* Привязка карточек к началу */
    background-image: url("/static/images/math-bg.svg"); /* Фоновое изображение */
    background-position: right top; /* Позиция фона */
    background-repeat: no-repeat; /* Избегаем повторения изображения */
}

.type-lesson {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.price {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

.card-slider-container {
    position: relative;
    margin-bottom: 0px;
}

/* Контейнер для карточек с горизонтальным скроллингом */
.card-slider {
    display: flex;
    gap: 22px; /* Отступы между карточками */
    overflow-x: auto; /* Горизонтальная прокрутка */
    padding: 0;
    scroll-snap-type: x mandatory; /* Плавное прокручивание карточек */
    height: 402px;
    padding-left: 40px;
    padding-right: 40px;
    scroll-padding-left: 40px; /* Гарантирует, что при прокрутке первая карточка будет с отступом */

}

.card-slider-exam {
    display: flex;
    gap: 22px; /* Отступы между карточками */
    overflow-x: auto; /* Горизонтальная прокрутка */
    padding: 0px 40px;
    margin-bottom: 30px;
    scroll-snap-type: x mandatory; /* Плавное прокручивание карточек */
    scroll-padding-left: 40px; /* Гарантирует, что при прокрутке первая карточка будет с отступом */
}

.card-exam {
    flex: 0 0 377px; /* Фиксированная ширина карточки */
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    border: none;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    scroll-snap-align: start; /* Карточки привязываются к началу при прокрутке */
}

.card-exam.math {
    background-image: url("/static/images/math-bg.svg"); /* Путь к изображению */
    background-position: right top; /* Позиция в правом верхнем углу */
    background-repeat: no-repeat; /* Избегаем повторения изображения */
}

.card-exam.info {
    background-image: url("/static/images/info-bg.svg"); /* Путь к изображению */
    background-position: right top; /* Позиция в правом верхнем углу */
    background-repeat: no-repeat; /* Избегаем повторения изображения */
}

.card-exam.phys {
    background-image: url("/static/images/phys-bg.svg"); /* Путь к изображению */
    background-position: right top; /* Позиция в правом верхнем углу */
    background-repeat: no-repeat; /* Избегаем повторения изображения */
}

.card-exam p {
    font-size: 32px;
    color: #1A1A1A;
    font-weight: 300;
}

.price {
    background-color: #1A1A1A;
    border-radius: 30px;
    color: white;
    text-align: center;
    padding: 8px 14px 8px 14px;
    border: none;
    font-weight: 300;
}

.map {
    padding: 0px 40px;
    border-radius: 20px;
    overflow: hidden; /* Это поможет "обрезать" края карты и применить закругление */
    width: 100%;
    height: 500px; /* Задайте фиксированную высоту */
}

.map iframe {
    border-radius: 20px;
}


.type-lesson {
    background-color: #9290f3;
    border-radius: 30px;
    color: white;
    text-align: center;
    padding: 8px 14px 8px 14px;
    border: none;
    margin-bottom: 10px;

}

.card {
    flex: 0 0 340px; /* Фиксированная ширина карточки */
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: visible;
    border: 1px solid transparent;
    scroll-snap-align: start; /* Карточки привязываются к началу при прокрутке */
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card img {
    width: 100%; /* Масштабирование изображения */
    padding: 0px 15px 0px 15px;
}

.card p {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 300;
    text-align: center;
}

.card.turquoise {
    background: #66D7D1;
}

.card.violet {
    background: #9290f3;
}

.card.black {
    background: #1a1a1a;
}


.offal {
    font-size: 16px !important;
    background: white;
    color: #1A1A1A;
    border-radius: 30px;
    width: min-content;
    height: min-content;
    padding: 5px 15px;
    white-space: nowrap;
    margin: 0 auto; /* Добавляем центрирование элемента по горизонтали */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Для обоих слайдеров скрываем полоску прокрутки */
.card-slider, .scroll-container {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}

.card-slider::-webkit-scrollbar, .scroll-container::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар в WebKit-браузерах */
}


.modal-course-dialog {
    width: 480px;
    /* Модальное окно занимает 80% ширины экрана */
}

.modal-course-content {
    background-color: #ffffff; /* Темный фон */
    border-radius: 30px; /* Закругленные углы */
    color: #1A1A1A; /* Белый текст */
    padding: 32px;
    width: 100%; /* Окно займет всю доступную ширину модального диалога */
}

.modal-course-header {
    padding: 0;
}

.modal-course-title {
    color: #1A1A1A;
    font-size: 28px;
}

.modal-course-body p {
    color: #6F6E6E;
    font-size: 14px;
    font-weight: 300;
}

.modal-course-body span {
    color: #1A1A1A;
    font-size: 20px;
    font-weight: 300;
}


.modal-dialog {
    max-width: 80vw; /* Модальное окно занимает 80% ширины экрана */
}

.modal-dialog-second {
    max-width: 40vw; /* Модальное окно занимает 80% ширины экрана */
}

.modal-content {
    background-color: #1A1A1A; /* Темный фон */
    border-radius: 30px; /* Закругленные углы */
    color: white; /* Белый текст */
    padding: 46px 60px 46px 60px;
    width: 100%; /* Окно займет всю доступную ширину модального диалога */
    background-image: url('/static/images/modal-right.svg'), url('/static/images/modal-left.svg'); /* Фоновые изображения */
    background-repeat: no-repeat;
    background-position: right bottom, left top; /* Позиционирование изображений справа и слева */
    background-size: 270px, 230px; /* Размер фона */
}

.modal-content-second {
    background-color: #1A1A1A; /* Темный фон */
    border-radius: 30px; /* Закругленные углы */
    color: white; /* Белый текст */
    padding: 46px 60px 46px 60px;
    width: 100%; /* Окно займет всю доступную ширину модального диалога */
}

.modal-header {
    border-bottom: none; /* Убираем линию под заголовком */
    text-align: center; /* Центрируем заголовок */
    justify-content: center;
    max-width: 500px;
    margin: 0px auto 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование полей формы по горизонтали */
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Подписи полей выровнены по левому краю */
    max-width: 500px;
    margin: 10px auto 0 auto; /* Центрирование кнопки */
}

.btn-primary {
    background-color: #9290f3;
    border: none;
    max-width: 500px; /* Ограничение ширины кнопки */
    margin: 20px auto 0 auto; /* Центрирование кнопки */
    display: block; /* Чтобы button заняла всю ширину */
    border-radius: 8px;
    /*height: 60px; */
}

.btn-primary:hover {
    background-color: #5b59c3;
    border: none;
}

.btn-primary:active {
    background-color: #5b59c3 !important;
    border: none;
}

.btn-primary:focus {
    background-color: #9290f3 !important;
    border: none;
}

label {
    color: white; /* Белый цвет для меток формы */
    text-align: left; /* Выравнивание подписей по левому краю */
    margin-bottom: 5px; /* Уменьшаем отступ снизу */
    font-weight: 200; /* Легкий шрифт для подписи */
    padding-left: 0; /* Убираем любые отступы слева */
    padding-top: 0; /* Убираем верхние отступы */
}

.close {
    position: absolute;
    top: 25px;
    right: -47px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.close-icon {
    width: 40px; /* Размер иконки закрытия */
    height: 40px;
    z-index: 40;
}

/* Стили для выпадающего списка */
.form-control {
    background-color: transparent; /* Прозрачный фон */
    border: 1px solid white; /* Белая рамка */
    color: white; /* Белый текст */
    padding: 0px 15px 0px 15px; /* Внутренние отступы */
    border-radius: 8px; /* Закругленные углы */
    appearance: none; /* Убираем стандартный вид браузера */
    -webkit-appearance: none; /* Убираем стандартный вид в Safari/Chrome */
    -moz-appearance: none; /* Убираем стандартный вид в Firefox */
    background-repeat: no-repeat;
    background-position: right 10px center; /* Иконка справа */
    background-size: 12px 12px; /* Размер иконки */
    height: 45px;
}

/* Стили для выпадающих опций */
.form-control option {
    background-color: #1A1A1A; /* Темный фон для опций */
    color: white; /* Белый текст для опций */
}

.form-control.list {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDExIDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNS41IDUgMTAgMSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4=');
}

/* Стили при фокусе */
.form-control:focus {
    background-color: transparent; /* Прозрачный фон при фокусе */
    border-color: #9290f3; /* Цвет рамки при фокусе */
    outline: none; /* Убираем стандартную подсветку */
    box-shadow: 0 0 10px rgba(146, 144, 243, 0.5); /* Добавляем мягкую тень при фокусе */
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Белый цвет для placeholder с прозрачностью */
}

.form-control:focus {
    background-color: transparent; /* Прозрачный фон при фокусе */
    border-color: #9290f3; /* Цвет рамки при фокусе */
    outline: none; /* Убираем стандартную подсветку */
    box-shadow: 0 0 10px rgba(146, 144, 243, 0.5); /* Добавляем мягкую тень при фокусе */
    color: white;
}

/* Стили для чекбокса и текста */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 4px;
    background-color: transparent;
    margin-right: 10px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #9290f3; /* Фиолетовый цвет при выборе */
    border-color: #9290f3;
}

.form-check-label {
    padding-left: 10px;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    font-weight: 200;
}

.privacy-link {
    color: #9290f3; /* Фиолетовый цвет ссылки */
    text-decoration: underline;
}

.privacy-link:hover {
    color: #5b59c3; /* Цвет ссылки при наведении */
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-checkbox::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 4px;
    background-color: transparent;
    margin-right: 10px;
    cursor: pointer;
}

.name-section {
    padding-left: 40px;
    margin-bottom: 40px;
}


.custom-control-input:checked {
    background-color: #9290f3; /* Фиолетовый цвет при выборе */
}

.custom-control-input:checked::before {
    content: '✔';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer {
    background-color: white;
    padding: 80px 40px 40px 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer p {
    margin: 0;
    font-size: 16px;
    color: #000;
}

.footer h5 {
    font-weight: 400;
    color: #000;
    font-size: 20px;
    padding-bottom: 10px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer ul li a:hover {
    color: #007bff; /* Цвет при наведении */
}

.footer ul li img {
    vertical-align: middle;
    margin-right: 8px;
}

.footer ul li a img {
    width: 16px;
    height: 16px;
}

.footer ul li a {
    display: flex;
    align-items: center;
}

.prefooter {
    background-color: #1A1A1A;
    height: 600px;
    margin: 50px 0px;
}

.scroll-btn-container {
    display: flex;
    width: 100px;
    justify-content: center; /* Центрирование кнопок по горизонтали */
    padding-bottom: 70px;
}

.scroll-btn {
    background-color: #9290f3;
    color: white;
    border: none;
    border-radius: 50%; /* Сделать кнопку круглой */
    width: 30px; /* Равная ширина */
    height: 30px; /* Равная высота */
    font-size: 15px;
    cursor: pointer;
    display: flex; /* Flexbox для правильного центрирования */
    justify-content: center; /* Центрирование текста по горизонтали */
    align-items: center; /* Центрирование текста по вертикали */
    padding: 0; /* Убрать padding, чтобы кнопка не растягивалась */
    line-height: 1; /* Обеспечить, чтобы текст не растягивал кнопку */
    text-align: center; /* Центрирование текста */
}

.scroll-btn:hover {
    background-color: #5b59c3;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Убираем подчеркивание и сохраняем цвет текста */
}

.card-link:hover {
    color: inherit; /* Убираем изменение цвета при наведении */
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 20px; /* Закругление краев карточки */
    transition: transform 0.2s ease; /* Эффект увеличения при наведении */
}


.wrapper-menu {
    margin-right: 10px;
    display: none; /* По умолчанию скрыто на десктопе */
    width: 20px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 330ms ease-out;
}

.wrapper-menu.open {
    transform: rotate(-45deg);
}

.line-menu {
    background-color: #1A1A1A;
    border-radius: 3px;
    width: 100%;
    height: 3px;
}

.line-menu.half {
    width: 50%;
}

.line-menu.start {
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: right;
}

.open .line-menu.start {
    transform: rotate(-90deg) translateX(3px);
}

.line-menu.end {
    align-self: flex-end;
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: left;
}

.open .line-menu.end {
    transform: rotate(-90deg) translateX(-3px);
}

/* Десктопный футер (по умолчанию отображается) */
.desktop-footer {
    display: block;
}

/* Мобильный футер (по умолчанию скрыт) */
.mobile-footer {
    display: none;
}


/* Стили для чекбокса */
.form-check-input {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid white; /* Белая граница */
    border-radius: 4px;
    cursor: pointer;
    appearance: none; /* Убираем стандартный стиль чекбокса */
    -webkit-appearance: none; /* Для Safari */
    position: absolute;
    top: 15px;
}


/* Стили для активного состояния (выбранного чекбокса) */
.form-check-input:checked {
    background-color: #9290F3; /* Фиолетовый цвет при выборе */
    border-color: #9290F3;
}

/* Добавляем белую галочку при выборе */
.form-check-input:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.173 11.67L3.05 8.55l-.707.707 3.829 3.829L13.657 5.6l-.707-.707z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}


/* Основные стили для блока классов и курсов */
.classes-block-container {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для заголовков классов */
.class-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.class-header-item {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
    padding: 10px;
    border-radius: 10px;
    background-color: #66D7D1;
    margin-bottom: 20px;
}

.bg-violet {
    background-color: #9290f3;
}

.directions-container {
    background-color: #1A1A1A;
}


/* Стили для списка курсов */
.class-courses {
    padding: 40px 25px;
    display: flex;
    justify-content: space-between;
}

.class-course-list {
    text-align: center;
}

.class-course-list ul {
    list-style: none;
    padding: 0;
}

.class-course-list li {
    padding: 8px;
    font-size: 16px;
    background-color: white;
    color: #1A1A1A;
    border-radius: 20px;
    border: #1A1A1A solid 1px;
    width: 95%;
    margin: 8px auto;
    font-weight: 200;
    cursor: pointer;
}

.class-course-list li:hover {
    font-weight: 300;
}


.class-selection {
    background-color: #1a1a1a;
    padding: 80px 20px;
    min-height: 828px;
}

.class-selection-inside {
    width: 900px;
    margin: 0 auto;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 120px;
}

.step {
    text-align: center;
    color: #fff;
}


.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 33px;
    border-radius: 50%;
    background-color: #818181;
    color: #fff;
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 10px;
}

.checked {
    font-size: 20px;
    cursor: pointer;
}

.checked:hover {
    font-size: 20px;
    cursor: pointer;
    background-color: #9290f3;
}

.step-number.active {
    background-color: #9290f3;
}

.line {
    width: 50px;
    height: 2px;
    background-color: #ccc;
    margin: 0 15px;
}


.checkmark-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark {
    width: 147px;
    height: 89px;
}

.checkmark__path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-checkmark 1s ease forwards;
}

@keyframes draw-checkmark {
    to {
        stroke-dashoffset: 0;
    }
}


/* Дополнительные стили для адаптации */
@media (max-width: 768px) {
    .class-header, .class-courses {
        flex-direction: column;
    }

    .class-header-item, .class-course-list {
        margin-bottom: 20px;
    }
}


.online-lesson {
    background-color: #66D7D1;
}


/* Настройки для выпадающего меню */
.navbar .dropdown-menu {
    background-color: #f8f9fa; /* Цвет фона */
    border: none; /* Убираем границу */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); /* Тень для выпадающего меню */
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

.navbar .dropdown-item {
    color: #1a1a1a; /* Цвет ссылок */
    font-weight: 300; /* Вес текста */
    padding: 10px 20px;
}

.navbar .dropdown-item:hover {
    background-color: #66D7D1; /* Цвет при наведении */
    color: #1a1a1a; /* Цвет текста при наведении */

}

/* Убираем рамку при фокусе на всех ссылках в навигации */
.navbar .nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Убираем рамку при фокусе на выпадающем меню */
.navbar .dropdown-toggle:focus {
    outline: none; /* Убираем рамку */
    box-shadow: none; /* Убираем возможную тень */
}

.main-mobile-item {
    display: none;
}


.loader {
    position: absolute;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #66D7D1; /* Цвет */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.curse-title-description {
    font-size: 40px;
}

.curse-container {
    padding: 0 40px;
    padding-top: 130px;
    font-size: 20px;
}


/* Основной контейнер слайдера */

.photo-slider {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    height: auto;
}


.slider-container {
    position: relative;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
    overflow: hidden;
}

/* Враппер для слайдов */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

/* Каждый слайд занимает 25% ширины */
.slider-slide {
    min-width: 25%; /* Показываем 4 слайда */
    box-sizing: border-box;
    padding: 10px;
}

/* Изображение */
.slider-slide img {
    width: 100%;
    height: 98%;
    border-radius: 20px;
    object-fit: cover;
}

/* Кнопки для навигации */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #9290f3;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 30px;
    font-size: 24px;
    width: 50px;
    line-height: 20px;
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
}


.courses h4 {
    margin-bottom: 10px;
}

.lessons-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    max-width: 100%; /* Ограничение ширины */
}

.lessons-scroll-container .list-inline-item {
    display: inline-block;
    margin-right: 5px;
}

.lesson-badge {
    cursor: pointer;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    border: solid 1px #cdcdcd;
    margin: 2px;
    display: inline-block;
    min-width: 50px; /* Минимальная ширина значка */
    text-align: center;
}

.card-img-top {
    border-radius: 10px;
    width: 100%;
    height: auto;
    margin: 10px;
}


.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-menu {
    background-color: #5b59c3;
    height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-bottom-right-radius: 25px; /* Размер закругления */
}

.menu-list {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 50px;
    margin-left: 30px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #d8d8d8;
    text-decoration: none;
    font-size: 1rem;

}

.menu-item.active {
    background-color: white;
    border-radius: 25px 0 0 25px; /* Верхние углы круглые, а левый нижний выгнут наружу */
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
}

.menu-item i {
    margin-right: 10px;
    font-size: 1.3rem;

}

.menu-item:hover {
    border-radius: 25px 0 0 25px; /* Верхние углы круглые, а левый нижний выгнут наружу */
    text-decoration: none;
    color: white;
}

.menu-item.active:hover {
    color: #1A1A1A;

}

.badge-menu {
    position: absolute;
    right: 20px;
    margin-left: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 3px;
    width: 25px;
    height: 25px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.main-text {
    color: #1a1a1a;
    margin: 0;
    margin-top: 10px;
}

.edit-pencil {
    cursor: pointer;
    position: absolute;
    right: 28px;
    font-size: 1.4rem;
    color: #7e7e7e;
    z-index: 1;
}

.edit-pencil:hover {
    color: #1a1a1a;
    cursor: pointer;
}

.santa-hat {
    position: absolute;
    top: 30px;
    left: 55px;
    width: 30px;
    height: 30px;
}


/* Скрываем меню по умолчанию на мобильных устройствах */
@media (max-width: 450px) {
    .santa-hat {
        position: absolute;
        top: 10px;
        left: 30px;
        width: 30px;
        height: 30px;
    }


    .photo-slider {
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-behavior: smooth;
        padding-bottom: 10px;
        height: auto;
    }


    .slider-slide {
        min-width: 100%; /* Показываем 4 слайда */
        box-sizing: border-box;
        padding: 10px;
    }


    .wrapper-menu {
        display: flex;
    }

    .navbar {
        width: 100%;
        position: fixed;
        height: 70px;
        padding: 0 16px; /* Отступы по краям */
        z-index: 100;
    }

    .navbar-collapse {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        text-align: center;
        background-color: #ffffff;
        padding-bottom: 10px;
        /* Закругление нижних углов */
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        /* Добавление тени снизу */
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1); /* Легкая тень снизу */
    }

    .navbar-nav {
        display: block;
        margin-top: 20px;
    }

    .nav-item {
        margin-bottom: 5px;
    }

    .button-container {
        padding: 0 16px; /* Отступы по 16px с каждой стороны */
    }

    .grow_ellipse {
        width: 100%; /* Кнопка займет всю ширину контейнера */
        margin: 10px auto; /* Центрирование кнопки */
        padding: 10px 0; /* Делаем кнопку больше по высоте */
        text-align: center; /* Центрируем текст внутри кнопки */

    }


    /* Скрываем десктопный футер */
    .desktop-footer {
        display: none;
    }

    /* Показываем мобильный футер */
    .mobile-footer {
        padding: 16px;
        padding-top: 80px;
        display: block;
    }

    /* Стили для мобильного футера */
    .footer-mobile-content {
        padding: 0px;
    }

    .footer-logo img {
        width: 50%; /* Уменьшаем логотип на мобильной версии */
    }

    .footer-mobile-section p {
        font-size: 14px; /* Уменьшаем текст для мобильной версии */
        margin-bottom: 10px;
        font-weight: 200;
    }

    .footer-mobile-nav {
        margin-top: 0px;
    }

    .footer-mobile-nav a {
        margin-left: 20px;
        font-size: 14px;
        color: #1A1A1A;
        text-decoration: none;
        font-weight: 200;
    }

    .footer-mobile-nav a:hover {
        color: #1A1A1A;
    }

    .hero-banner {
        width: 100%;
        padding: 16px;
        height: max-content;
    }

    .hero-banner h1 {
        font-size: 46px;
    }

    .hero-banner p {
        font-size: 16px;
    }

    .hero-banner::before,
    .hero-banner::after {
        width: 80px; /* Ширина для SVG по бокам */
        opacity: 50%;
    }

    .tag-container {
        padding-top: 80px;
        padding-bottom: 0px;
        width: 100%;
    }

    .tag {
        border: 1px solid #000;
        border-radius: 30px;
        background-color: transparent;
        padding: 6px 10px; /* Минимальные отступы, чтобы кнопка была по контенту */
        font-size: 14px;
        font-weight: 300;
        color: #000;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        white-space: nowrap; /* Запрещаем перенос текста */
        display: inline-block;
        box-sizing: border-box;
        width: max-content;
        height: max-content;
    }

    button.large {
        width: 100%; /* Большая ширина */
        font-size: 20px; /* Более крупный шрифт */
        height: 60px;
    }

    .stats-section {

        padding: 16px 16px;
        text-align: left;
    }

    .stats-section h2 {
        font-size: 30px;
        text-align: left;
    }

    .stats-section p {
        text-align: left;
    }

    .name-section {
        padding-left: 16px;
    }

    .card-slider {
        padding-left: 16px;
        padding-right: 16px;
        scroll-padding-left: 16px; /* Гарантирует, что при прокрутке первая карточка будет с отступом */
        margin-bottom: 50px;
    }

    .scroll-container {
        padding: 0px 16px;
        margin-bottom: 30px;
    }

    .card-exam-container {
        padding: 0px 16px;
    }

    .map {
        padding: 0px 16px;
        height: 300px;
    }

    /*.modal-header, .modal-body{*/
    /*    padding: 0;*/
    /*}*/
    .modal-header {
        padding-bottom: 0;

    }

    .modal-dialog {
        max-width: 100%; /* Модальное окно занимает 80% ширины экрана */
    }

    .modal-content {
        padding: 46px 16px 16px 16px;
        width: 100%; /* Окно займет всю доступную ширину модального диалога */
        background-image: none;
        background-size: 100px, 100px; /* Размер фона */
    }

    .modal-title {
        font-size: 28px;
    }


    .close {
        position: absolute;
        top: 15px;
        right: -60px;
    }

    .close-icon {
        width: 30px;
        height: 30px;
    }

    .modal-header {
        border-bottom: none; /* Убираем линию под заголовком */
        text-align: center; /* Центрируем заголовок */
        justify-content: center;
        max-width: 500px;
        margin: 0px auto 0 auto;
    }

    .scroll-btn-container {
        display: none;
    }

    .class-selection-inside {
        width: 100%;
        margin: 0 auto;
    }

    .steps {
        margin-bottom: 0;
    }

    .step p {
        display: none;
    }

    .class-selection {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .step-number {
        margin: 0;
    }

    .class-selection {
        min-height: 736px;
    }

    .main-mobile-item {
        font-weight: 300;
        display: block;
    }

    .modal-course-dialog {
        width: 95%;
        /* Модальное окно занимает 80% ширины экрана */
    }

    .modal-dialog {
        margin: 20px auto;
    }

    .curse-title-description {
        font-size: 28px;
    }

    .curse-container {
        padding: 16px;
        margin-top: 90px;
        font-size: 18px;
    }


    .direction-button {
        background-color: #63d4c6; /* Цвет фона */
        color: #000; /* Цвет текста */
        border: none;
        font-size: 16px; /* Меньший шрифт на мобильных */
        padding: 10px 15px; /* Уменьшить отступы */
        border-radius: 12px; /* Закругленные углы */
        display: inline-flex;
        justify-content: space-between;
        align-items: start;
        width: 100%;
        text-align: left;
        height: auto !important;
        margin-bottom: 10px;
        margin-top: 10px;
        position: relative;
        transition: background-color 0.3s ease;
    }

    .direction-button:hover {
        background-color: #63d4c6; /* Цвет фона */
        color: #000; /* Цвет текста */
        border: none;
    }

    .info-icon {
        color: #1A1A1A;
        border: #1A1A1A solid 1px;
    }


    .slider-wrapper {
        display: flex;
        overflow: hidden;
    }

    .slider-slide {
        flex: 1 0 100%; /* Показываем 1 слайд на экранах до 600px */
    }

}


:root {
    --primary: #8380e3;
    --primary-hover: #6a65df;
    --text: #1a1a2e;
    --text-light: #6c757d;
    --border: #e2e8f0;
    --background: #f8f9ff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-button {
    padding: 5px 5px;
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    gap: 3px;
}

.details-button:hover {
    background: rgba(48, 107, 181, 0.05);
    transform: translateY(-1px);
    color: var(--primary-hover);
}

.details-button:active {
    transform: translateY(0);
}

.details-button svg {
    transition: transform 0.2s ease;
}

.details-button:hover svg {
    transform: translateX(2px);
}

.motivation-text {
    margin: 0 auto;
    width: 50%;
    font-size: 1.2rem;
    font-weight: 300;
    color: #8a8a8a;
    margin-top: 15px;
    text-align: center;
    line-height: 1.5;
}

.courses-modern {
    padding: 80px 0;
    background: var(--background);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

.courses-header {
    text-align: center;
    margin-bottom: 48px;
}

.courses-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.subheader {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.filters-modern {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-wrapper {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.filter-wrapper label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Добавьте эти стили в существующий блок style */
.custom-select {
    position: relative;
}

.custom-select {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.custom-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.selected-value {
    flex-grow: 1;
    padding-right: 20px;
    color: var(--text);
}

.select-arrow {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.custom-select select:focus + .selected-value + .select-arrow {
    transform: rotate(180deg);
}

.custom-select:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

/* Стили для визуального представления выбора */
.filter-wrapper .custom-select {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.9375rem;
    cursor: pointer;
}

.filter-wrapper .custom-select:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

/* Для поддержки старых браузеров */
.custom-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.courses-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.course-card-modern {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.course-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card-modern:hover .course-image {
    transform: scale(1.03);
}

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-badge.new {
    background: #41c3ba;
}

.course-content-modern {
    padding: 20px;
}

.course-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-category {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-class {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-content-modern h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.3;
}

.schedule-modern {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    height: 80px;
}

.time-option {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.time-option.active {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);

}

.time-option.active .time-slot {
    color: var(--primary);
}

.time-option:hover:not(.active) {
    border-color: rgba(67, 97, 238, 0.3);
}

.day-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.time-slot {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
}

.course-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.price-info {
    line-height: 1.3;
}

.price-card {
    background-color: #1A1A1A;
    border-radius: 30px;
    text-align: center;
    padding: 8px 14px 8px 14px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    background-color: rgba(111, 216, 211, 0.47);
}

.period {
    font-size: 0.7rem;
    color: var(--text-light);
}

.enroll-button {
    margin-top: 20px;
    padding: 10px 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.enroll-button:hover {
    background: var(--primary-hover);
}

.no-courses-message {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff; /* нейтральный фон */

    border-radius: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease-in-out;
}

.no-courses-inner h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #333);
    margin-bottom: 12px;
}

.no-courses-inner p {
    font-size: 0.95rem;
    color: var(--text-light, #666);
    margin-bottom: 18px;
    line-height: 1.5;
}

.reset-filters-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary, #007bff);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.reset-filters-btn:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-1px);
}

.show-more-wrapper {
    text-align: center;
    margin: 30px 0;
}

#show-more-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    background: var(--primary, #007bff);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#show-more-btn:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-1px);
}


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


/* Анимация для фильтрации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card-modern {
    animation: fadeIn 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .courses-modern {
        padding: 60px 0;
    }

    .motivation-text {
        width: 100%;
    }

    .courses-header h1 {
        font-size: 2rem;
    }

    .subheader {
        font-size: 1rem;
    }

    .filter-wrapper {
        min-width: 100%;
    }

    .courses-grid-modern {
        grid-template-columns: 1fr;
    }

    .time-option {
        padding: 8px;
    }
}

/* Основные стили */
.modern-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 40px;
    margin-top: 0;
}

/* Первый ряд с горизонтальным скроллом */
.first-row-scroll {
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.first-row {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
}

/* Полная галерея */
.full-gallery {
    margin-top: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Общие стили для элементов галереи */
.gallery-item {
    flex: 0 0 auto;
    width: 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-grid .gallery-item {
    width: 100%;
    height: 240px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    color: white;
    width: 36px;
    height: 36px;
}

/* Кнопки управления */
.gallery-controls {
    margin: 30px 0 15px;
}

.btn-photo {
    width: 300px;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 10px 30px;
    margin: 0 10px;
    font-size: 1rem;
    font-weight: 500;
    border-width: 2px;
}

.btn-outline-primary {
    background-color: white;
    color: #9795f3;
    border: 2px solid #9795f3;
}

.btn-outline-primary:hover {
    background-color: #9795f3;
    border-color: #9795f3;
    color: white;
}


.btn-outline-secondary {
    color: #7f8c8d;
    border: 2px solid #7f8c8d;
    background-color: white;
}

.btn-outline-secondary:hover {
    background-color: #7f8c8d;
    color: white;
}

/* Модальное окно */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 80px);
    padding: 30px;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: zoomIn 0.4s;
    border-radius: 4px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.96);
    }
    to {
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.8;
}

.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev, .modal-next {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 30px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.9;
}

.modal-prev:hover, .modal-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-counter {
    color: white;
    margin: 0 20px;
    font-size: 16px;
    font-weight: 500;
}

.name-course-card {
    height: 40px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .gallery-item {
        width: 280px;
        height: 180px;
    }

    .gallery-grid .gallery-item {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .gallery-item {
        width: 240px;
        height: 160px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .gallery-grid .gallery-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .name-course-card {
        height: auto !important;
    }

    .schedule-modern {
        height: auto !important;
    }

    .gallery-item {
        width: 220px;
        height: 150px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-grid .gallery-item {
        height: 180px;
    }

    .btn-photo {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {

    .name-course-card {
        height: auto !important;
    }

    .schedule-modern {
        height: auto !important;
    }

    .motivation-text {
        width: 100%;
    }

    .modern-gallery {
        margin: 0 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .gallery-item {
        width: 300px;
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-grid .gallery-item {
        height: 160px;
    }

    .btn-photo {
        display: block;
        width: 80%;
        margin: 10px auto;
        height: 40px;
    }

    .modal-image-container {
        padding: 15px;
        height: calc(100% - 70px);
    }

    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .modal-prev, .modal-next {
        padding: 8px 20px;
    }

    .modal-counter {
        text-align: center;
        width: 100px;
        margin: 0 20px;
        font-size: 12px;
    }
}










