/* Основные стили */
body {
    background-color: #000;
    color: #fff;
}

/* Навигация */
.navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Эффект при прокрутке */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Стили для ссылок */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Герой секция */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('assets/hero.jpeg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
}

.hero-form {
    backdrop-filter: blur(10px);
}

/* Карточки курсов */
.card {
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Instagram галерея */
.instagram-section img {
    transition: transform 0.3s ease;
}

.instagram-section img:hover {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        height: 100vh;
        min-height: auto;
    }
    
    .hero .row {
        height: 100vh !important;
    }
    
    .hero-form {
        margin: 2rem auto;
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Стили для видео-контейнера */
.video-container {
    position: relative;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Адаптивность для видео */
@media screen and (max-width: 768px) {
    .video-container {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
}

/* Анимация загрузки */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.7;
}

.video-container.loaded::before {
    display: none;
}

/* Стили для сообщения об ошибке */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Фоновая секция */
.background-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    z-index: 2;
}

.background-image {
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    filter: brightness(0.3);
    z-index: -1;
}

.content-overlay {
    position: absolute;
    width: 100%;
    padding: 2rem;
    color: white;
    z-index: 1;
}

.content-overlay h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.program-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.program-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff4d4d;
}

.program-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .background-image {
        height: auto;
        min-height: 1200px;
    }
    
    .content-overlay {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        padding: 1rem;
    }
    
    .program-item {
        margin-bottom: 1rem;
    }
}

/* Стили для блоков преимуществ */
.feature-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .feature-item {
        margin-bottom: 2rem;
    }
}

/* Отзывы */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    height: auto;
    min-height: 120px;
}

.testimonial-avatar-container {
    width: 50%;
    text-align: center;
}

.testimonial-info {
    width: 50%;
}

.testimonial-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.bi-quote {
    color: rgba(255, 255, 255, 0.3);
}

/* Стили для Owl Carousel */
.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

@media (max-width: 768px) {
    .testimonial-avatar-container,
    .testimonial-info {
        width: auto;
    }
    
    .testimonial-icon {
        font-size: 1.5rem;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Стили для Instagram секции */
.instagram-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    transition: transform 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay i {
    color: white;
    font-size: 2rem;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Стили для Instagram секции */
.instagram-section .instagram-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.instagram-item img {
    width: 100%;
    height: 300px; /* фиксированная высота для единообразия */
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .instagram-item {
        margin-bottom: 1.5rem;
    }
    
    .instagram-item img {
        height: 250px;
    }
}

/* Стили для карточек курсов */
.courses-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    background: linear-gradient(145deg, #2c3e50, #b5c1c9);
}

.courses-section .card-body {
    padding: 1.5rem;
    background: rgba(175, 175, 175, 0.2);
    backdrop-filter: blur(5px);
}

.courses-section .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.courses-section .card-text {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.courses-section .text-white-50 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.courses-section .h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.courses-section small {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.courses-section .btn-outline-light {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-width: 2px;
    transition: all 0.3s ease;
}

.courses-section .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #31475c;
    text-shadow: none;
}

.courses-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.courses-section .badge {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .courses-section .card {
        margin-bottom: 2rem;
    }
    
    .courses-section .card-img-top {
        height: 280px;
        object-position: center top;
    }
}

/* Стили для видео секции */
.video-section {
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-text {
    padding: 2rem 0;
}

.text-accent {
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.video-text h2 {
    font-weight: 300;
    line-height: 1.4;
}

.video-text .btn {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.video-text .btn:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Стили для видео контролов */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 992px) {
    .video-text {
        text-align: center;
        padding-top: 3rem;
    }
    
    .video-text h2 {
        font-size: 2rem;
    }
}

/* Стили для главного баннера */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Адаптвность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Стили для видео-плеера */
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.custom-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-controls button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-controls button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.progress progress {
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.progress progress::-webkit-progress-bar {
    background: transparent;
}

.progress progress::-webkit-progress-value {
    background: #fff;
}

.progress progress::-moz-progress-bar {
    background: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-controls {
        padding: 0.5rem;
    }
    
    .video-controls button {
        font-size: 1.2rem;
        padding: 0.3rem;
    }
}

.courses-section .content-overlay {
    position: relative;
    z-index: 1;
    color: white;
}

.courses-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.course-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.course-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff4d4d;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.course-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;  /* добавляем стандартное свойство */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-content .mt-auto {
    margin-top: auto;
    padding-top: 1rem;
}

/* Стили для бейджа NEW */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
}

/* Стили для кнопки */
.btn-outline-light {
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    .course-item {
        margin-bottom: 1.5rem;
    }
    
    .course-content {
        padding: 1rem;
    }
}

.program-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.program-section .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2);
    z-index: 1;
}

.program-overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 50px 0;
}

/* Медиа-запрос для мобильной версии */
@media (max-width: 768px) {
    .program-section {
        padding: 40px 0;
    }
    
    .program-section .background-image {
        display: none; /* Скрываем изображене */
    }
    
    .program-overlay {
        padding: 40px 0;
    }
    
    .program-overlay h2 {
        margin-bottom: 2rem;
    }
    
    .program-item {
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }
}

.quote-section {
    padding: 4rem 0;
    position: relative;
}

.quote-section .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.quote-section h2 {
    color: white;
    margin: 0;
}

/* Стили для секции преимуществ */
.features-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.feature-item {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Стили для секции отзывов */
.testimonials-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.testimonials-section h2 {
    position: relative;
    z-index: 2;
    color: #fff;
}

.testimonial-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    height: auto;
    min-height: 120px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.bi-quote {
    color: rgba(255, 255, 255, 0.3);
}

/* Стили для Owl Carousel */
.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

.owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    margin: 0 5px;
}

.owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dots button.owl-dot span {
    background: rgba(255, 255, 255, 0.3) !important;
}

.owl-dots button.owl-dot.active span {
    background: #fff !important;
}

/* Общие стили для обеих секций */
.features-section, .testimonials-section {
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .features-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .feature-item,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

.btn-outline-dark {
    color: #fff;
    border-color: #fff;
}

.btn-outline-dark:hover {
    color: #000;
    background-color: #fff;
    border-color: #fff;
}

.testimonials-section {
    background: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 80px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    height: auto;
    min-height: 120px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.bi-quote {
    color: rgba(255, 255, 255, 0.3);
}

/* Стили для Owl Carousel */
.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

.owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    margin: 0 5px;
}

.owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dots button.owl-dot span {
    background: rgba(255, 255, 255, 0.3) !important;
}

.owl-dots button.owl-dot.active span {
    background: #fff !important;
}

/* Стили для футера */
.header-logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.text-accent {
    color: #ff4d4d !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ff4d4d !important;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0 15px;
    line-height: 1.5;
}

.copyright a {
    color: #ff4d4d !important;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #ff3333 !important;
    text-decoration: underline !important;
}

/* Стили для кнопки Прокрутки вверх */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff4d4d;
    color: white;
    border: none;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background: #ff3333;
    transform: translateY(-3px);
}

.scroll-top-btn.visible {
    display: flex;
}

.testimonial-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Обновляем настройки карусели для лучшего отображения */
.owl-carousel .testimonial-card {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-title {
    font-size: 2em;
    color: #ff4d4d !important;
}

.btn-hero {
    background-color: #ff4d4d !important;
    border-color: #ff4d4d !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #ff3333 !important; /* Немного темнее при наведении */
    border-color: #ff3333 !important;
    transform: translateY(-2px); /* Небольшой эффект поднятия при наведении */
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3); /* Тень при наведении */
}

.btn-hero:active {
    transform: translateY(0); /* Возврат на место при клике */
}

.nav-link.active {
    color: #ff4d4d !important;
    font-weight: 600;
}

.features-section h2 {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 600;
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3rem;
    height: 100%;
}

.glass-card h2,
.glass-card p,
.glass-card .text-white {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.description-section {
    min-height: 450px;
}

.description-section img {
    border-radius: 40px;
    width: 100%;
    height: 515px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.stats-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    margin-bottom: 0.5rem;
}

.glass-container {
    z-index: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
    height: 100%;
    padding: 1rem;
}

.about-content img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.02);
}

.about-content .glass-container {
    margin-bottom: 30px;
}

.about-content p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.audio-card {
    transition: transform 0.3s ease;
}

.audio-card:hover {
    transform: translateY(-5px);
}

.audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

.audio-player iframe {
    border-radius: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 0.1s linear;
}

.time {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    min-width: 45px;
}

.form-group {
    position: relative;
}

.form-label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.custom-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1rem;
    height: auto;
    font-size: 1rem;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid#ff4d4d;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.submit-btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.5);
    outline-offset: 3px;
} 

/* Стили для select */
select.custom-input {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для options внутри select */
select.custom-input option {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
}

/* Стили при наведении на options */
select.custom-input option:hover {
    background-color: var(--accent-color);
    color: black;
}

/* Стили для disabled option */
select.custom-input option:first-child {
    color: rgba(255, 255, 255, 0.5);
}

/* Стили при фокусе */
select.custom-input:focus {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
} 

.form-image-container {
    height: 100%;
    height: 470px; /* высота должна соответствовать высоте формы */
    display: flex;
    align-items: stretch;
}

.form-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 991px) {
    .form-image-container {
        margin-top: 2rem;
        min-height: 350px;
    }
} 

.social-link {
    background: rgba(0, 0, 0, 0.5);
    color: #fff !important;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.social-link:hover,
.social-link:focus {
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color) !important;
    border: none;
    outline: none;
    text-decoration: none;
}

/* Специфичные стили для Safari */
@supports (-webkit-touch-callout: none) {
    .social-link {
        -webkit-appearance: none;
        appearance: none;
        border: none;
    }
}

/* Стили для мобильного меню */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 1rem !important;
        text-align: center;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover, 
    .nav-link.active {
        background: var(--accent-color);
        color: white !important;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
}

/* Анимация для мобильного меню */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.collapsing {
    opacity: 0;
}

.navbar-collapse.show {
    opacity: 1;
}

/* Стили для страницы курса */
.course-details {
    padding-top: 120px;
}

.course-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.course-signup-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background-color: #ff4d4d;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .stats-container .display-4 {
        font-size: calc(1.8rem + 1.5vw);
    }
    
    .stats-container .fs-4 {
        font-size: 1.1rem !important;
    }
}

.stat-item {
    background: rgba(0, 0, 0, 0.5); /* Темный полупрозрачный фон */
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff; /* Белый текст */
}

.stat-item i {
    color: var(--accent-color);
}

.stat-item span {
    color: #fff;
}

/* Специфичные стили для Safari */
@supports (-webkit-touch-callout: none) {
    .stat-item {
        background: rgba(0, 0, 0, 0.7); /* Более темный фон для Safari */
    }
}
