/* Стили для модального окна с отзывами */
#modalTestimonialImage {
    max-height: 80vh; /* Ограничение по высоте */
    object-fit: contain; /* Сохранение пропорций изображения */
    width: auto; /* Ширина будет автоматически подстраиваться */
    margin: 0 auto; /* Центрирование */
    display: block; /* Блочное отображение для центрирования */
}
.structure-points {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

    .structure-points h4 {
        color: #0d6efd;
        border-bottom: 2px solid #0d6efd;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

.structure-list {
    list-style-type: none;
    padding: 0;
}

    .structure-list li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: flex-start;
    }

        .structure-list li:last-child {
            border-bottom: none;
        }

    .structure-list i {
        color: #0d6efd;
        margin-right: 12px;
        margin-top: 4px;
    }
/* Стили для видео контейнера - УМЕНЬШЕННАЯ ВЫСОТА */
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* Контейнер для видео с фиксированной высотой */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 500px; /* Увеличили высоту контейнера */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

    .video-wrapper video {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain; /* Показываем все видео без обрезки */
        display: block;
    }

        /* Увеличиваем элементы управления видео */
        .video-wrapper video::-webkit-media-controls-panel {
            background: rgba(0, 0, 0, 0.7);
        }

        .video-wrapper video::-webkit-media-controls-play-button,
        .video-wrapper video::-webkit-media-controls-mute-button,
        .video-wrapper video::-webkit-media-controls-fullscreen-button {
            transform: scale(1.2);
            margin: 0 5px;
        }

/* Стили для кнопки запуска поверх видео */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: #000;
}

    .video-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* opacity: 0.7; - УБРАТЬ эту строку */
    }

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background удален - нет затемнения */
    opacity: 1;
    transition: opacity 0.3s;
}

    .play-button-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* transition: all 0.3s; - можно оставить или удалить */
}

    .play-icon i {
        color: #0d6efd;
        font-size: 20px;
        margin-left: 4px;
    }

/* Адаптивность для мобильных устройств */
/* Улучшение для мобильных устройств */
@@media (max-width: 768px) {
    /* Увеличиваем элементы управления на мобильных */
    .video-wrapper video::-webkit-media-controls {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .video-wrapper video::-webkit-media-controls-panel {
        background: rgba(0, 0, 0, 0.7);
        transform: scale(1.1);
    }

    .video-wrapper video::-webkit-media-controls-play-button,
    .video-wrapper video::-webkit-media-controls-mute-button,
    .video-wrapper video::-webkit-media-controls-fullscreen-button {
        transform: scale(1.3);
        margin: 0 8px;
    }

    /* Гарантируем, что элементы управления видны */
    video::-webkit-media-controls-enclosure {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Специальные стили для очень маленьких экранов */
@@media (max-width: 400px) {
    .video-wrapper {
        height: 180px;
    }

        .video-wrapper video::-webkit-media-controls-panel {
            transform: scale(0.9);
        }
}

/* Стиль для полноэкранного режима */
.video-container.fullscreen video {
    object-fit: contain !important; /* Показываем все видео без обрезки */
}

/* Стили для кнопки закрытия */
.btn-close {
    z-index: 1000; /* Чтобы кнопка была поверх изображения */
    opacity: 0.8; /* Немного прозрачности */
}

    .btn-close:hover {
        opacity: 1; /* Полная непрозрачность при наведении */
    }

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    padding-top: 80px; /* Для фиксированной шапки */
    padding-bottom: 200px; /* Место для футера */
    min-height: 100vh;
    position: relative;
}


/* Фиксированная шапка при прокрутке */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Цвета */
.bg-primary {
    background-color: #3a86ff !important; /* Пример синего */
}

.nav-link {
    font-weight: 500;
}
/* Анимация подчеркивания ссылок */
.hover-underline-animation {
    position: relative;
    padding-bottom: 2px;
}

    .hover-underline-animation::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #3a86ff;
        transition: width 0.3s ease;
    }

    .hover-underline-animation:hover::after {
        width: 100%;
    }

/* Свечение кнопки */
.btn-glow {
    transition: all 0.3s ease;
}

    .btn-glow:hover {
        box-shadow: 0 0 15px rgba(58, 134, 255, 0.7);
        transform: translateY(-2px);
    }

/* Плавное появление меню */
.navbar {
    transition: background-color 0.5s ease;
}

    .navbar.scrolled {
        background-color: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(10px);
    }
/* Стили футера */
/* Футер с кросс-браузерным градиентом */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    z-index: 100;
    margin-top: auto; /* Важно! */
}


    .footer::before {
        content: "";
        position: absolute;
        top: -50px;
        left: 0;
        width: 100%;
        height: 50px;
        background: url('data:image/svg+xml;utf8,...');
        background-size: cover;
    }

main {
    flex: 1;
    padding-bottom: 60px; /* Отступ для футера */
}

/* Анимация кнопки Telegram */
.btn-telegram {
    background: #0088cc;
    color: white;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-telegram:hover {
        background: #0077b5;
        transform: translateY(-5px) rotate(10deg);
    }

/* Пульсация */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 136, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Текст с мерцанием */
.footer-text {
    position: relative;
}

    .footer-text::after {
        content: "|";
        animation: blink 1s infinite;
        margin-left: 5px;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
/* Стили для первого блока */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(72,149,239,0.1) 0%, rgba(255,255,255,0) 70%);
        z-index: 0;
    }
/* Фото преподавателя */
.teacher-card {
    position: relative;
    z-index: 1;
}
.teacher-photo-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}
.teacher-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.teacher-photo-wrapper:hover {
    transform: translateY(-10px);
}

    .teacher-photo-wrapper:hover .teacher-photo {
        transform: scale(1.05);
    }

.teacher-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f72585 0%, #b5179e 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

/* Текст */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient-primary {
    background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(90deg, #f72585 0%, #b5179e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(90deg, #4cc9f0 0%, #4895ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Карточки */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #3a7bd5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:nth-child(2) .feature-icon {
    color: #f72585;
}

.feature-card:nth-child(3) .feature-icon {
    color: #4cc9f0;
}

/* Анимации */
.pulse-animation {
    animation: pulse 2s infinite;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(58, 123, 213, 0.3);
    }

/* Адаптивность */
@@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .teacher-photo-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }
}
.info-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .info-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    }

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
.animate__animated {
    opacity: 0;
}

.animate__fadeInUp {
    animation: fadeInUp 1s forwards;
}

.animate__fadeIn {
    animation: fadeIn 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Стили блока преподавателя */
.teacher-section {
    position: relative;
    overflow: hidden;
}

.teacher-main-photo {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

    .teacher-main-photo img {
        transition: transform 0.5s ease;
    }

    .teacher-main-photo:hover img {
        transform: scale(1.03);
    }

.achievement-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(45deg, #3a86ff, #6c63ff);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.teacher-features li {
    position: relative;
    padding-left: 30px;
}

.teacher-features i {
    position: absolute;
    left: 0;
    top: 3px;
}

.counter-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

    .counter-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.counter-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Анимации */
@keyframes floatBadge {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.achievement-badge {
    animation: floatBadge 4s ease-in-out infinite;
}
/* Стили блока содержания курса */
.course-content {
    background-color: #f8f9fa;
    position: relative;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.course-features {
    margin-top: 20px;
}

.feature-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Анимация карточек */
@keyframes cardFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.course-card:hover {
    animation: cardFloat 3s ease-in-out infinite;
}

/* Стили блока преимуществ */
.benefits-section {
    position: relative;
    overflow: hidden;
}

.benefit-card {
    transition: all 0.4s ease;
    background: white;
}

    .benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-features {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

/* Анимация иконок */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.benefit-card:hover .benefit-icon i {
    animation: iconPulse 1.5s ease infinite;
}

/* Градиентные границы */
.border-primary {
    border-color: #3a86ff !important;
}

.border-success {
    border-color: #28a745 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}
/* Стили блока тарифов */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    }

.bg-purple {
    background-color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    color: white;
    border-color: #6f42c1;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: white;
    }

.popular-badge {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%) !important;
}

.btn {
    transition: all 0.2s;
}

/* Стили для списка преимуществ */
.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 30px;
    }

    .popular-badge {
        right: 10px;
        font-size: 0.7rem;
    }
}
/* Стили секции отзывов */
.testimonials-section {
    position: relative;
}

.testimonial-card {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

    .testimonial-card img {
        transition: transform 0.5s ease;
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .testimonial-card:hover img {
        transform: scale(1.05);
    }

/* Модальное окно */
.modal-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.modal-body img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
}

/* Анимация */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show .modal-content {
    animation: fadeInScale 0.3s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonial-card img {
        height: 180px;
    }

    .modal-dialog {
        margin: 10px;
    }
}


.btn-purple {
    background-color: #6f42c1;
    color: white;
}

.btn-outline-purple {
    border-color: #6f42c1;
    color: #6f42c1;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: white;
    }

.bg-gradient-primary {
    background: linear-gradient(45deg, #3a86ff, #6c63ff) !important;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}
/* Улучшение бейджей для фиолетовых кнопок */
.btn-purple .badge {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Альтернативный стиль */
.price-badge-purple {
    background-color: #fff;
    color: #6f42c1;
    border: 1px solid #6f42c1;
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(5deg);
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: white;
    }

.bg-purple {
    background-color: #6f42c1 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}