/* ===== СТАРЫЙ СЛАЙДЕР ИСТОРИИ (фикс конфликтов) ===== */
.history-slider-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9fafc, #ffffff);
    overflow: hidden;
}
.history-slider-section .slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.history-slider-section .slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    margin: 0 auto;
}
.history-slider-section .slider-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.history-slider-section .slider-slide {
    flex: 0 0 860px;
    max-width: 860px;
    padding: 0 10px;
    box-sizing: border-box;
    transition: filter 0.3s, opacity 0.3s;
}
.history-slider-section .slider-slide.active-slide {
    filter: none;
    opacity: 1;
}
.history-slider-section .slider-slide:not(.active-slide) {
     filter: blur(2px) brightness(0.9);
    opacity: 0.7; 
} 
.history-slider-section .slide-card {
    display: flex;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 62, 83, 0.1);
    border: 1px solid rgba(0, 62, 83, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.history-slider-section .slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 62, 83, 0.15);
}
.history-slider-section .slide-content {
    flex: 1 1 50%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.history-slider-section .slide-year {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.history-slider-section .slide-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}
.history-slider-section .slide-image {
    flex: 1 1 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    transition: transform 0.5s;
}
.history-slider-section .slide-card:hover .slide-image {
    transform: scale(1.03);
}
.history-slider-section .slide-image-1 {
    background: linear-gradient(rgba(0, 62, 83, 0.2), rgba(45, 63, 102, 0.2)),
                url('../images/history-2018.jpg');
    background-size: cover;
    background-position: center;
}
.history-slider-section .slide-image-2 {
    background: linear-gradient(rgba(0, 62, 83, 0.2), rgba(45, 63, 102, 0.2)),
                url('../images/history-2019.jpg');
    background-size: cover;
    background-position: center;
}
.history-slider-section .slide-image-3 {
    background: linear-gradient(rgba(0, 62, 83, 0.2), rgba(45, 63, 102, 0.2)),
                url('../images/history-2020.jpg');
    background-size: cover;
    background-position: center;
}
.history-slider-section .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 62, 83, 0.15);
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.history-slider-section .slider-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 62, 83, 0.25);
    transform: translateY(-50%) scale(1.05);
}
.history-slider-section .slider-prev {
    left: 0;
}
.history-slider-section .slider-next {
    right: 0;
}
.history-slider-section .slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 12px;
}
.history-slider-section .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 62, 83, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}
.history-slider-section .dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}
@media (max-width: 1200px) {
    .history-slider-section .slider-slide {
        flex: 0 0 760px;
        max-width: 760px;
    }
    .history-slider-section .slide-year {
        font-size: 32px;
    }
    .history-slider-section .slide-description {
        font-size: 17px;
    }
}
@media (max-width: 992px) {
    .history-slider-section .slider-slide {
        flex: 0 0 660px;
        max-width: 660px;
    }
    .history-slider-section .slide-card {
        flex-direction: column;
    }
    .history-slider-section .slide-image {
        min-height: 240px;
        width: 100%;
    }
    .history-slider-section .slide-content {
        padding: 30px;
    }
}
@media (max-width: 768px) {
    .history-slider-section {
        padding: 60px 0;
    }
    .history-slider-section .slider-slide {
        flex: 0 0 540px;
        max-width: 540px;
    }
    .history-slider-section .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .history-slider-section .slide-year {
        font-size: 28px;
    }
    .history-slider-section .slide-description {
        font-size: 16px;
    }
}
@media (max-width: 640px) {
    .history-slider-section .slider-slide {
        flex: 0 0 460px;
        max-width: 460px;
    }
}
@media (max-width: 480px) {
    .history-slider-section .slider-slide {
        flex: 0 0 300px;
        max-width: 300px;
    }
    .history-slider-section .slide-content {
        padding: 20px;
    }
    .history-slider-section .slide-year {
        font-size: 24px;
    }
    .history-slider-section .slide-description {
        font-size: 15px;
    }
    .history-slider-section .slide-image {
        min-height: 160px;
    }
    .history-slider-section .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== НОВЫЙ СЛАЙДЕР ПРЕПОДАВАТЕЛЕЙ (SWIPER) ===== */
.teachers-slider-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9fafc, #ffffff);
}
.teachers-swiper {
    padding: 30px 0 60px !important;
    overflow: visible !important;
}
.teachers-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.teacher-slide-card {
    background: var(--white);
    border-radius: 24px;
    padding: 25px 20px;
    box-shadow: 0 15px 30px rgba(0, 62, 83, 0.08);
    border: 1px solid rgba(0, 62, 83, 0.05);
    transition: all 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.teacher-slide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 62, 83, 0.12);
    border-color: var(--primary-color);
}
.teacher-slide-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--light-blue);
    box-shadow: 0 8px 20px rgba(0,62,83,0.15);
}
.teacher-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teacher-slide-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.teacher-slide-title {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}
.teacher-slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 60px;
}
.teacher-slide-tags .tag {
    background: rgba(0,62,83,0.06);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}
.teacher-slide-card .teacher-more {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: auto auto 0;
    width: fit-content;
}
.teacher-slide-card .teacher-more:hover {
    background: var(--primary-color);
    color: white;
}
/* Размытие неактивных слайдов */
/* .teachers-swiper .swiper-slide:not(.swiper-slide-active) {
    filter: blur(2px) brightness(0.9);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
} */
.teachers-swiper .swiper-slide-active {
    filter: none;
    opacity: 1;
}
/* Стрелки Swiper */
.teachers-swiper .swiper-button-prev,
.teachers-swiper .swiper-button-next {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,62,83,0.1);
    color: var(--primary-color);
}
.teachers-swiper .swiper-button-prev:after,
.teachers-swiper .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}
.teachers-swiper .swiper-button-prev:hover,
.teachers-swiper .swiper-button-next:hover {
    background: var(--primary-color);
    color: white;
}
/* Пагинация (точки) */
.teachers-swiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}
.teachers-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0,62,83,0.2);
    opacity: 1;
}
.teachers-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ===== СТИЛИ БЛОКОВ ПРЕИМУЩЕСТВ (ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ) ===== */
.features-section {
    padding: 80px 0;
}
.feature-card-block {
    margin-bottom: 40px;
}
.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--white);
    border-radius: 32px;
    padding: 40px 48px;
    box-shadow: 0 15px 35px rgba(0, 62, 83, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 62, 83, 0.05);
}
.feature-row:hover {
    box-shadow: 0 25px 50px rgba(0, 62, 83, 0.12);
    border-color: rgba(0, 62, 83, 0.1);
    transform: translateY(-4px);
}
.feature-row.row-reverse {
    flex-direction: row-reverse;
}
.feature-row--fullwidth {
    display: block;
    padding: 48px;
    text-align: center;
}
.feature-row--fullwidth .feature-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.feature-content {
    flex: 1 1 50%;
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, var(--light-blue), #d4eaf0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(0, 62, 83, 0.08);
}
.feature-row--fullwidth .feature-icon {
    margin-left: auto;
    margin-right: auto;
}
.feature-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}
.feature-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.feature-content .feature-lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}
.feature-list li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
    color: var(--text-dark);
}
.feature-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 28px;
    position: absolute;
    left: 0;
    top: -6px;
    font-weight: bold;
}
.feature-image {
    flex: 1 1 50%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 62, 83, 0.1);
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 320px;
}
.feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 62, 83, 0.15);
}
.feature-image-methodology {
    background: url('../images/methodology.jpg');
    background-size: cover;
    background-position: center;
}
.feature-image-platform {
    background: url('../images/platform.jpg');
    background-size: cover;
    background-position: center;
}
.feature-image-internships {
    background: url('../images/internships.jpg');
    background-size: cover;
    background-position: center;
}
.feature-content .secondary-button {
    margin-top: 16px;
    padding: 14px 36px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 40px;
    border-width: 2px;
    transition: all 0.25s;
}
.feature-content .secondary-button i {
    transition: transform 0.2s;
}
.feature-content .secondary-button:hover i {
    transform: translateX(6px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
    .feature-row {
        gap: 40px;
        padding: 36px 40px;
    }
    .feature-content h3 {
        font-size: 28px;
    }
    .feature-content p,
    .feature-list li {
        font-size: 17px;
    }
    .feature-image {
        min-height: 280px;
    }
}
@media (max-width: 992px) {
    .feature-row {
        flex-direction: column;
        padding: 40px;
    }
    .feature-row.row-reverse {
        flex-direction: column;
    }
    .feature-content,
    .feature-image {
        width: 100%;
        flex: auto;
    }
    .feature-image {
        max-width: 600px;
        margin-top: 20px;
        min-height: 260px;
    }
    .feature-row--fullwidth {
        padding: 40px;
    }
}
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    .feature-card-block {
        margin-bottom: 30px;
    }
    .feature-row {
        padding: 32px 24px;
        border-radius: 24px;
    }
    .feature-content h3 {
        font-size: 26px;
        text-align: center;
    }
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-content p,
    .feature-list li {
        font-size: 16px;
        text-align: left;
    }
    .feature-list li {
        padding-left: 28px;
    }
    .feature-image {
        min-height: 220px;
    }
    .feature-content .secondary-button {
        display: block;
        width: fit-content;
        margin: 24px auto 0;
    }
    .feature-row--fullwidth .feature-content {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .feature-row {
        padding: 24px 20px;
    }
    .feature-content h3 {
        font-size: 24px;
    }
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    .feature-image {
        min-height: 180px;
    }
    .feature-content .secondary-button {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ (ОТЗЫВЫ, ДОСТИЖЕНИЯ, ФОРМА) ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.achievement-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
    transition: var(--transition);
}
.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 62, 83, 0.15);
}
.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 24px;
}
.achievement-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}
.achievement-text {
    color: var(--text-dark);
    font-weight: 500;
}
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
}
.review-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.review-header h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}
.review-header p {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}
.review-content {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--light-blue);
}
.review-date {
    color: var(--text-light);
    font-size: 14px;
    text-align: right;
    opacity: 0.7;
}
.trial-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.trial-form-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--white);
}
.trial-form-text p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.trial-form-text ul {
    list-style: none;
    margin-top: 30px;
}
.trial-form-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.trial-form-text i {
    color: var(--accent-color);
}
.trial-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}
.trial-form input,
.trial-form select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
}
.trial-form button {
    margin-top: 10px;
}
.form-note {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}




/* ===== ИСПРАВЛЛЕНИЯ АДАПТАЦИИ (ТОЛЬКО ПРОБЛЕМНЫЕ ЭЛЕМЕНТЫ) ===== */

/* 1. Кнопка в hero на мобильных — не даём ей вылезать */
@media (max-width: 576px) {
    .hero .cta-button {
        font-size: 16px !important;
        padding: 14px 25px !important;
        white-space: normal;
        word-break: break-word;
        width: auto;
        max-width: 100%;
        display: inline-block;
    }
}

/* 2. Слайдер преподавателей — исправляем горизонтальный скролл */
.teachers-slider-section {
    width: 100%;
    overflow: hidden; /* прячем лишнее, но не влияет на хедер */
}

.teachers-swiper {
    width: 100%;
    overflow: visible; /* чтобы тени не обрезались */
}

.teachers-swiper .swiper-wrapper {
    box-sizing: border-box;
}

/* 3. Форма пробного урока — заставляем её помещаться */
.trial-form-container {
    max-width: 1000px; /* ограничиваем ширину контейнера */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .trial-form-container {
        grid-template-columns: 1fr; /* одна колонка */
        gap: 30px;
        padding: 0 15px; /* небольшие отступы по бокам */
    }

    .trial-form {
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .trial-form input,
    .trial-form select,
    .trial-form button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trial-form-text h2 {
        font-size: 28px;
        text-align: center;
    }

    .trial-form-text p {
        font-size: 16px;
        text-align: center;
    }

    .trial-form-text li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .trial-form {
        padding: 20px 15px;
    }

    .trial-form input,
    .trial-form select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .trial-form-text h2 {
        font-size: 24px;
    }

    .trial-form-text li {
        font-size: 14px;
    }
}

/* 4. Хедер на мобильных — убираем отступы по бокам, чтобы он был вровень с краями */
@media (max-width: 768px) {
    .header {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important; /* если нужно, чтобы прилипал к верху */
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .header-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}




.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
}

/* .history-slider-section .slider-slide {
    filter: none !important;
    opacity: 1 !important;
}

.history-slider-section .slider-slide:not(.active-slide) {
    filter: none !important;
    opacity: 1 !important;
} */