/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    border-left: 4px solid #2521CE;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Toast типы */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.toast-info {
    border-left-color: #2521CE;
}

.toast-info .toast-icon {
    background: #dbeafe;
    color: #2521CE;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #fff;
    color: #333;
}

@media (max-width: 768px) {
    /* Убираем padding-top у body, так как навбар фиксированный */
}

/* Mobile-first approach - простое масштабирование десктопной версии */

/* НАВБАР - УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ РАЗРЕШЕНИЙ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2521CE;
    z-index: 1000;
    height: 70px; /* Как на мобильных устройствах */
    transition: all 0.3s ease;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

.navbar-container {
    max-width: 100% !important;
    margin: 0;
    padding: 0 0.3rem !important; /* Как на мобильных устройствах */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.navbar-logo .logo-img,
.navbar-logo img.logo-img,
.navbar-logo a.logo-link img {
    height: 45px !important; /* Увеличенный размер логотипа */
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* Уменьшено с 2.5rem до 2rem */
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem; /* Увеличено с 0.75rem до 0.8rem */
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0; /* Увеличено с 0.2rem до 0.25rem */
}

.nav-link:hover {
    color: #DF9C34;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #DF9C34, #FFB84D);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.navbar-login-btn {
    background: #DF9C34;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-login-btn:hover {
    background: #C8872A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
}

.navbar-lang {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.lang-flag {
    font-size: 1.8rem; /* Увеличено с 1.6rem до 1.8rem для соответствия новой высоте навбара */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem; /* Увеличено с 0.15rem до 0.25rem */
    border-radius: 50%;
    opacity: 0.6;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.lang-flag:hover {
    opacity: 0.9;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.lang-flag.active {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-flag.active:hover {
    transform: scale(1.25);
    background: rgba(255, 255, 255, 0.15);
}

/* Мобильное меню кнопка */
.mobile-menu-btn {
    display: none; /* Скрыто по умолчанию для десктопа */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    position: relative;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Планшеты - скрываем бургер меню и показываем навигацию */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .navbar-nav {
        display: flex !important;
    }
    
    .desktop-lang {
        display: flex !important;
    }
    
    .navbar-actions {
        display: flex !important;
    }
    
    /* НЕ переопределяем стили навбара - используем универсальные */
}

/* Десктопная адаптация - ограничение ширины контента */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    /* Скрываем бургер меню на десктопе */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* Секция "Как проходят занятия" - карточка */
    .how-it-works {
        background: transparent; /* Убираем белый фон */
        border-radius: 16px;
        box-shadow: none; /* Убираем тень */
        padding: 3rem;
        margin: 2rem auto;
        max-width: 800px;
        text-align: center;
    }
    
    .how-it-works .section-title {
        color: #2521CE;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .how-it-works .section-subtitle {
        color: #2521CE;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        font-weight: 600;
    }
    
    .how-it-works .section-description {
        color: #666;
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .how-it-works .section-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        font-size: 1.5rem;
        color: white;
    }
    
    /* Секция "Что получите за 3 месяца" - вертикальный список карточек */
    .benefits {
        background: #f8f9fa;
        padding: 4rem 0;
    }
    
    .benefits .section-title {
        text-align: center;
        color: #2521CE;
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .benefits-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    
    .benefit-item {
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        text-align: left !important;
    }
    
    .benefit-item .benefit-icon {
        flex-shrink: 0 !important;
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%) !important;
        border-radius: 50% !important;
        font-size: 1.5rem !important;
    }
    
    .benefit-item h3 {
        margin: 0 0 0.5rem 0 !important;
        font-size: 1.2rem !important;
        color: #2521CE !important;
    }
    
    .benefit-item p {
        margin: 0 !important;
        color: #666 !important;
        line-height: 1.5 !important;
    }
    
    .benefit-badge {
        margin-left: auto !important;
        background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%) !important;
        color: white !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    
    /* Фото Нурлана справа от кнопок */
    .hero-buttons-with-image {
        display: flex;
        align-items: flex-start;
        gap: 3rem;
        max-width: 1200px;
        margin: 4rem auto 0 auto; /* Добавляем отступ сверху для опускания кнопок */
        margin-bottom: 0;
        flex-direction: row;
    }
    
    .hero-buttons {
        flex: 1;
        order: 1;
    }
    
    .hero-image {
        flex: 0 0 300px;
        order: 2;
        margin-top: 0;
        align-self: flex-end;
        height: 400px;
        display: flex;
        align-items: flex-end;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        bottom: 0;
    }
    
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: bottom;
        border-radius: 12px;
    }
    
    /* Принудительно переопределяем мобильные стили для десктопа */
    .hero-buttons-with-image {
        flex-direction: row !important;
    }
    
    .hero-image {
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        scale: 1 !important;
        align-items: flex-end !important;
        align-self: flex-end !important;
    }
    
    .hero-image img {
        object-position: bottom !important;
    }
    
    /* Тарифы - пирамидка */
    .pricing-unified {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
/* Centered installment note between pricing blocks */
.pricing-installment-center {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0.25rem 0 0.25rem 0; /* ближе к бейджу Популярный */
}
.pricing-installment-center .installment-text {
    font-size: 1.15rem;
    color: #232323 !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-block;
}

.pricing-installment-center .kaspi-red-text,
.kaspi-red-text { /* fallback for other containers */
    color: #E53935 !important;
    font-weight: 800;
}

.kaspi-red-inline-logo {
    height: 18px;
    width: auto;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

@media (min-width: 992px) {
    .kaspi-red-inline-logo {
        height: 54px; /* 3x bigger on desktop */
    }

    /* Desktop tuning for testimonials: keep text clear above controls */
    .video-testimonials .testimonial-info {
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
        margin-top: -0.65rem; /* ещё ближе к заголовку */
        margin-bottom: 0.75rem; /* чуть меньше перед контролами */
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .video-testimonials .testimonial-info h3 {
        margin-bottom: 0.1rem; /* минимальный зазор между именем и текстом */
    }

/* Центрирование бейджа "Официальный" в секции benefits на десктопе */
@media (min-width: 992px) {
    .benefits .benefit-badge {
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
        display: inline-flex !important;
    }
}

    /* Create clear white block under video, then place controls further below */
    .testimonials-carousel .carousel-container {
        margin-bottom: 1.25rem;
        padding-bottom: 3rem !important; /* увеличенный отступ для описания */
        position: relative;
        overflow: visible !important; /* позволяем псевдо-элементу выходить ниже */
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    .video-testimonials .testimonial-carousel-controls {
        margin-top: 2rem; /* нормальный отступ для контролов */
        clear: both;
        position: relative;
        z-index: 0; /* keep below text if overlap occurs */
    }
    .video-testimonials .testimonial-info { position: relative; z-index: 2; }

    .video-testimonials .testimonial-info p {
        max-width: 860px;
        margin: 0.25rem auto 0 auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        font-size: 1.05rem;
        line-height: 1.6;
        overflow: visible !important;
        white-space: normal !important;
    }
}
/* image removed - text only variant */
    
    .pricing-top {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .main-card {
        width: 80%;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .pricing-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.1rem;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .side-card {
        flex: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    /* Сброс всех мобильных стилей для десктопа */
    .pricing-bottom {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        justify-items: stretch !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        margin-left: 0 !important;
        gap: 0.2rem !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .pricing-unified {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .pricing-top {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .main-card {
        width: 80% !important;
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    
    .side-card {
        flex: 1 !important;
        max-width: 48% !important;
        width: 48% !important;
    }
}

/* Мобильное меню - новый дизайн */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    transform: translateX(0);
    display: flex;
}

.mobile-menu-content {
    padding: 2rem;
    height: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #2521CE;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin: 0 auto;
}

/* Кнопка закрытия - скрыта */
.mobile-menu-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Логотип убран - кнопки подняты выше */

/* Навигация */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

/* Убираем крестик с первой ссылки "Главная" */
.mobile-nav-link:first-child::after,
.mobile-nav-link:first-of-type::after,
.mobile-nav-link:first-child::before,
.mobile-nav-link:first-of-type::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Убираем крестик из содержимого первой ссылки */
.mobile-nav-link:first-child span:last-child,
.mobile-nav-link:first-of-type span:last-child,
.mobile-nav-link:first-child span,
.mobile-nav-link:first-of-type span {
    display: none !important;
}

.mobile-nav-link:first-child .close,
.mobile-nav-link:first-of-type .close,
.mobile-nav-link:first-child [class*="close"],
.mobile-nav-link:first-of-type [class*="close"],
.mobile-nav-link:first-child button,
.mobile-nav-link:first-of-type button {
    display: none !important;
    visibility: hidden !important;
}

/* Убираем любой крестик (×, ✕, X) из текста первой ссылки */
.mobile-nav-link:first-child,
.mobile-nav-link:first-of-type {
    position: relative;
}

/* Убираем крестик из текста первой ссылки через псевдоэлемент */
.mobile-nav-link:first-child::after {
    content: '' !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Скрываем любые дочерние элементы с крестиком */
.mobile-nav-link:first-child > *:last-child,
.mobile-nav-link:first-of-type > *:last-child {
    display: none !important;
}

/* Если крестик добавляется через JavaScript как отдельный элемент */
.mobile-nav-link:first-child .mobile-menu-close,
.mobile-nav-link:first-of-type .mobile-menu-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
    width: 100%;
}

/* Языковые флаги */
.mobile-lang-flags { display: none !important; }

.mobile-lang-flag {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.mobile-lang-flag.active {
    border-color: #DF9C34;
    background: rgba(223, 156, 52, 0.2);
    box-shadow: 0 0 20px rgba(223, 156, 52, 0.3);
}

.mobile-lang-flag:hover {
    border-color: #DF9C34;
    background: rgba(223, 156, 52, 0.2);
    transform: scale(1.1);
}

/* Кнопка входа */
.mobile-menu-footer {
    margin-top: auto;
    width: 100%;
    max-width: 300px;
}

.mobile-login-btn {
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 156, 52, 0.3);
    text-decoration: none;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #F4B942 0%, #DF9C34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 156, 52, 0.4);
    color: white;
    text-decoration: none;
}

.mobile-lang {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Мобильная версия - показываем бургер меню, скрываем навигацию */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .desktop-lang {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Убеждаемся что навбар виден */
    .navbar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .pricing-installment-info {
        margin: 0 !important;
        padding: 0 0.3rem;
    }

    /* Еще больше увеличиваем фото Нурлана для маленьких экранов */
    .founder-img {
        max-width: 600px; /* Максимальный размер для маленьких экранов */
    }

        height: 500px; /* Еще больше для маленьких экранов */
    }
    
    .installment-content {
        gap: 0;
    }
    
    .installment-text {
        font-size: 2.5rem;
    }
    
    .kaspi-logo {
        width: 200px;
    }
    
    /* Навбар - полноширинный без масштабирования */
    .navbar {
        transform: none;
        border-radius: 0 0 15px 15px;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .navbar-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
    }

    .mobile-nav-link {
        font-size: 1rem;
    }

    /* Логотип убран */

    .mobile-lang-flag {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Исправление для навбара на мобильных */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

body {
    width: 100%;
    position: relative;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Система размеров шрифтов */
:root {
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */
    --font-5xl: 3rem;      /* 48px */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


.container {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
    width: 100%;
}

.header.scrolled {
    background: rgba(37, 33, 206, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 15px;
    overflow: visible;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    transform: none;
}

.logo-img {
    width: 100px;
    height: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    display: none;
    flex-direction: column;
    margin-left: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.logo:hover .logo-text {
    display: none;
}

.logo-kassymov {
    font-size: 0.9rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-school {
    font-size: 0.9rem;
    font-weight: 300;
    color: #D4AF37;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-top: -2px;
}

.nav {
    display: flex;
    gap: 2rem;
}



.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}


.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin-top: 0;
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 100px;
    height: 40px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    border-color: #DF9C34;
    color: white;
    box-shadow: 0 4px 15px rgba(223, 156, 52, 0.3);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #DDB580 0%, #DF9C34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 156, 52, 0.4);
}

.lang-flag {
    font-size: 0.9rem;
}

.lang-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.lang-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 150px;
    background: #ffffff;
    border: 2px solid #DF9C34;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: visible;
    pointer-events: auto;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.lang-option:hover {
    background: rgba(37, 33, 206, 0.1);
    color: #2521CE;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option.active {
    background: rgba(37, 33, 206, 0.15);
    color: #2521CE;
    font-weight: 600;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #DF9C34;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.nav-link:hover {
    color: #DF9C34;
    background: rgba(223, 156, 52, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
    right: 0;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: white;
    min-height: 35vh;
    display: flex;
    align-items: center;
    padding-top: 140px; /* Увеличенный отступ от фиксированного навбара */
    padding-bottom: 0;
    position: relative;
    overflow: visible;
    box-shadow: none;
    border: none;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 156, 52, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.05) 0%, transparent 40%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="0.4" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05) rotate(1deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    padding-bottom: 0;
    min-height: 5vh;
}


.hero-text {
    color: #333;
    text-align: left;
    width: 100%;
    max-width: 800px;
    grid-column: 1;
    grid-row: 1 / 3;
}

.hero-titles-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding-left: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #2521CE;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    text-shadow: none;
    letter-spacing: -0.02em;
    position: relative;
    flex: 1;
    text-align: left;
}


.hero-title:hover {
    transform: scale(1.02);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1), 0 1px 5px rgba(0, 0, 0, 0.2);
}


.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.4;
    color: #666;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    flex: 1;
    text-align: left;
}

.hero-subtitle:hover {
    opacity: 1;
    transform: translateX(10px);
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 0rem;
    margin-top: 0.2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.hero-stats .stat-item {
    flex: 1;
    text-align: left;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%; /* Одинаковая ширина */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2521CE;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: left;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    text-align: left;
    line-height: 1.2;
    height: 2.16rem; /* Фиксированная высота для всех блоков (0.9rem * 1.2 * 2 строки) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.trophy-item .stat-label {
    font-size: 0.9rem; /* Размер как у обычного .stat-label */
    color: #666; /* Цвет как у обычного .stat-label */
    font-weight: 400; /* Толщина как у обычного .stat-label */
    text-align: left; /* Выравнивание как у обычного .stat-label */
    line-height: 1.2; /* Высота строки как у обычного .stat-label */
    min-height: auto; /* Убираем фиксированную высоту */
    display: block; /* Блочный элемент для переноса строк */
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal; /* Разрешаем перенос строк */
    overflow: visible; /* Показываем весь текст */
    max-width: 100%; /* Ограничиваем ширину для правильного переноса */
    /* Принудительный перенос после "Собственная" */
    word-break: break-word;
}

.trophy-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
    flex: 1; /* Такой же flex как у обычных stat-item */
    width: 100%; /* Одинаковая ширина */
    min-height: 60px; /* Такая же высота как у .hero-stats .stat-item */
    min-width: 0; /* Убираем ограничение минимальной ширины */
    max-width: none; /* Убираем ограничение максимальной ширины */
}

.trophy-icon {
    font-size: 2rem; /* Размер как у .stat-number */
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #2521CE; /* Цвет как у цифр */
    text-align: left;
}

.advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advantage-item {
    padding: 1.25rem 1.5rem;
    background: rgba(37, 33, 206, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(37, 33, 206, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(223, 156, 52, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(223, 156, 52, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(223, 156, 52, 0.1);
}

.advantage-item span {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #333;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    margin-left: 0;
    padding-left: 0;
    grid-column: 2;
    grid-row: 2;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    min-width: 100px;
    margin: 0.25rem;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(223, 156, 52, 0.2);
    border: 1px solid #DF9C34;
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #DDB580 0%, #DF9C34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border: 1px solid #2521CE;
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    border-color: #161454;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2521CE;
    border: 2px solid #2521CE;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 120px;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.btn-outline:hover {
    background: #2521CE;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.3);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: 80px;
}

/* Стили для кнопок с SVG иконками */
.btn svg {
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

/* Удалено дублированное определение .btn - используется базовое из строки 1028 */

.btn-test {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 33, 206, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #2521CE;
    font-size: 0.8rem;
    padding: 1.5rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 250px;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    line-height: 3rem; /* Центрирование текста по вертикали */
    vertical-align: middle; /* Центрирование текста по вертикали */
    white-space: normal;
}

.btn-test:hover {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 33, 206, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    position: relative;
    padding-left: 0;
    margin-left: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 0;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    position: relative;
}

.founder-photo {
    width: 100%;
    max-width: 400px;
    min-height: 450px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(37, 33, 206, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.founder-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    background: transparent;
    border-radius: 20px;
}

.founder-info {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.founder-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.hero-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-icon {
    font-size: 4rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.founder-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(223, 156, 52, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.founder-photo:hover::before {
    opacity: 1;
}

.founder-photo:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(223, 156, 52, 0.15) 100%);
    border-color: rgba(223, 156, 52, 0.4);
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 8px 25px rgba(223, 156, 52, 0.2);
}

.photo-frame {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-content {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.founder-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-photo:hover .founder-info h3 {
    color: #DF9C34;
    transform: none;
}

.founder-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-photo:hover .founder-info p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Installment Section */
.installment-section {
    padding: 1rem 0;
    background: #f8f9fa;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.installment-section .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.installment-section .installment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.installment-section .installment-text-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.installment-section .installment-text {
    font-size: var(--font-xl);
    color: #333;
    margin: 0;
    font-weight: 500;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.installment-section .kaspi-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.installment-section .kaspi-logo {
    width: 150px;
    height: auto;
    margin: 0 auto;
}

/* News Section */
.news {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(37, 33, 206, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}





.news-title {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: #2521CE;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(37, 33, 206, 0.1);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.news-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 33, 206, 0.08);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    max-height: 420px;
    max-width: 500px;
    width: 100%;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-item:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(37, 33, 206, 0.08);
    border-color: rgba(37, 33, 206, 0.15);
}

.news-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


.news-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2521CE;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    height: 4rem;
    max-height: 4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: flex-start;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    gap: 0.8rem;
}

.news-item h3::before {
    font-size: 1.5rem;
    display: inline-block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(37, 33, 206, 0.1));
    transition: transform 0.3s ease;
}

.news-item:hover h3::before {
    transform: scale(1.1);
    hyphens: auto;
}

.news-item p,
.news-item .news-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.05rem;
    height: 6.4rem;
    max-height: 6.4rem;
}

.news-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(37, 33, 206, 0.25);
    letter-spacing: 0.2px;
    margin-top: auto;
    align-self: flex-start;
    width: 100%;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.news-btn:hover::before {
    left: 100%;
}

.news-btn:hover {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 18px rgba(37, 33, 206, 0.35);
}

.news-btn {
    cursor: pointer;
}

/* News Modal Styles */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 10001;
}

.news-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.news-modal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-modal-header h2 {
    color: #2521CE;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #7f8c8d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 2rem;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-modal-body p {
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.news-modal-body p:last-child {
    margin-bottom: 0;
}

.news-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .news-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-modal-header {
        padding: 1.5rem;
    }
    
    .news-modal-header h2 {
        font-size: 1.4rem;
        padding-right: 3rem;
    }
    
    .news-modal-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .news-modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 1rem 0 0.8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    margin-top: 0;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(37, 33, 206, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.section-title {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-4xl);
    font-weight: 800;
    color: #2521CE;
    margin-bottom: 0rem;
    position: relative;
}

.how-it-works .section-title {
    color: #2521CE;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(37, 33, 206, 0.1);
    letter-spacing: -0.02em;
    filter: contrast(1.1);
}


/* Карусель для шагов */
.steps-carousel {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    padding: 0 2rem 3rem 2rem;
    min-height: 400px !important;
    width: 100%;
    max-width: 100%;
}

.carousel-container {
    display: flex !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0 !important;
    width: 400% !important;
    height: 350px !important;
    overflow: visible !important;
    align-items: stretch;
    min-height: 350px !important;
    position: relative;
    flex-wrap: nowrap !important;
}

.step-item {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    min-width: 25% !important;
    background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
    backdrop-filter: blur(20px);
    padding: 1.5rem 1.5rem !important;
    border-radius: 30px;
    text-align: center;
    box-sizing: border-box !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(223, 156, 52, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px !important;
    border: 2px solid transparent !important;
    background-clip: padding-box;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, #DF9C34, #FFB84D, #DF9C34);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.15), 0 15px 40px rgba(223, 156, 52, 0.2);
}

.step-item * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.step-number {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DF9C34, #FFB84D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(223, 156, 52, 0.3);
    border: 2px solid #ffffff;
    position: relative;
    z-index: 2;
    line-height: 1;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.step-content h3 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem;
    line-height: 1.5;
    color: #5a6c7d;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.step-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 2.5rem;
    color: #DF9C34;
    margin-top: 1rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}


.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover::before {
    transform: scaleX(1);
}

.step-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.step-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2521CE;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.step-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.step-item.active {
    transform: scale(1.02);
    box-shadow: 0 15px 45px rgba(37, 33, 206, 0.15);
    background: transparent; /* Убираем белый фон у активных элементов */
}

.step-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.carousel-controls {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 100;
    visibility: visible !important;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 33, 206, 0.4);
}

.carousel-dots {
    display: flex !important;
    gap: 1rem;
    visibility: visible !important;
    z-index: 102;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(37, 33, 206, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 103;
    display: block !important;
    visibility: visible !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: 2px solid rgba(37, 33, 206, 0.2);
}

.dot.active {
    background: #2521CE;
    transform: scale(1.4);
    border: 2px solid #DF9C34;
    box-shadow: 0 0 10px rgba(37, 33, 206, 0.5);
}

.dot:hover {
    background: #2521CE;
    transform: scale(1.2);
}

/* Benefits Section */
.benefits {
    padding: 1rem 0 1.5rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 156, 52, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 40%);
    animation: backgroundShift 15s ease-in-out infinite;
}

.benefits .section-title {
    color: #2521CE;
    text-shadow: none;
}

/* Простая сетка для преимуществ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.benefit-item {
    position: relative;
    border-radius: 20px;
    padding: 1.5rem;
    background: rgba(37, 33, 206, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 33, 206, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}


.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(223, 156, 52, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover {
    background: rgba(37, 33, 206, 0.1);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(223, 156, 52, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-align: center;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: center;
    flex-grow: 1;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(223, 156, 52, 0.1) 0%, rgba(221, 181, 128, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #DF9C34 0%, #DDB580 100%);
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}


.benefit-badge {
    display: inline-block;
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    align-self: center;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.certificate-seal {
    flex: 1;
    display: flex;
    justify-content: center;
}

.seal-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #2521CE;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    box-shadow: 0 2px 10px rgba(37, 33, 206, 0.2);
}

.seal-text {
    font-size: 0.6rem;
    font-weight: 700;
    color: #2521CE;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.seal-center {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2521CE;
    line-height: 1;
}

.certificate-signature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.signature-img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    border: 2px solid #2521CE;
    padding: 5px;
}

.signature-text {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: 500;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.benefit-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.stat {
    font-size: 1.3rem;
    font-weight: bold;
    color: #DF9C34;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

/* Test Section */
.test-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.test-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-text {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.test-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.test-features {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
    justify-items: stretch;
    align-items: stretch;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(37, 33, 206, 0.05);
    border-radius: 12px;
    border-bottom: 4px solid #DF9C34;
    min-height: 180px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.feature-icon img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.feature-icon lottie-player {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

.feature-item > span:not(.feature-icon) {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex-shrink: 1;
    min-width: 0;
}

/* Фиксация одинаковых размеров блоков для разрешений выше 400px */
@media (min-width: 401px) {
    .test-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 100%;
        flex: 1 1 0;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .feature-item > span:not(.feature-icon) {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
}

.benefit-icon lottie-player {
    width: 2.5rem !important;
    height: 2.5rem !important;
}


.step-icon lottie-player {
    width: 1.8rem !important;
    height: 1.8rem !important;
}

.audio-icon lottie-player {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.text-icon lottie-player {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.screenshot-placeholder lottie-player {
    width: 2rem !important;
    height: 2rem !important;
}

h3 lottie-player {
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0.5rem !important;
}

.test-cta {
    font-size: 0.9rem;
    color: #2521CE;
    font-weight: 600;
    margin-bottom: 2rem;
}

.test-btn-container {
    margin-top: 2rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-test {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    min-width: 200px;
    max-width: 100%;
    width: auto;
    background: linear-gradient(135deg, #2521CE 0%, #6B46C1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
    display: inline-block;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 33, 206, 0.4);
}

/* Адаптивность кнопки для мобильных устройств */
@media (max-width: 768px) {
    .test-btn-container {
        padding: 0;
    }
    
    .btn-test {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        min-width: 180px;
        max-width: 100%;
        width: auto;
    }
}

@media (max-width: 480px) {
    .test-btn-container {
        padding: 0;
    }
    
    .btn-test {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
        min-width: 160px;
        max-width: 100%;
        width: auto;
    }
}


/* Pricing Section */
.pricing {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    min-height: auto;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 1200px;
}

/* Новая структура тарифов */
.pricing-unified {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    margin-top: 2rem !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.pricing-bottom {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.main-card {
    width: 60%;
    margin: 0 auto;
}

.side-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 48%;
}

.side-card .pricing-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    margin-top: 0;
    align-self: flex-start;
    padding-top: 0;
}

.side-card .pricing-features p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: left;
    padding-left: 1rem;
}

.side-card .pricing-features p::before {
    display: none;
}

.side-card .btn {
    margin: auto 1.2rem 0.8rem 0.4rem;
    width: calc(100% - 1.6rem);
    min-width: auto;
    max-width: 100%;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
}

        .pricing-card {
            background: white;
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(37, 33, 206, 0.1);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            text-align: center;
            margin: 0;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        }

.pricing-card.featured {
    border: 2px solid #DF9C34;
    transform: none;
    box-shadow: 0 20px 60px rgba(223, 156, 52, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
}

.pricing-card:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:hover {
    transform: none;
}

.pricing-header {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2521CE;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem; /* Одинаковая высота для заголовков */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding-left: 0;
    position: relative;
}

.pricing-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1px;
    background: transparent;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #DF9C34;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-features p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
    text-align: left;
}

.pricing-features p::before {
    content: '•';
    color: #DF9C34;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Pricing Installment Info */
.pricing-installment-info {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem;
    margin: 0.5rem auto 1rem auto !important;
    max-width: 600px;
    text-align: center !important;
    width: 100%;
}

.installment-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-align: center !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.installment-kaspi-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
    margin: 0 !important;
}

/* Mobile Responsive Styles for Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .pricing-unified {
        max-width: 100% !important;
        gap: 1.5rem !important;
        transform: scale(0.95) !important;
        transform-origin: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        align-items: stretch !important;
    }

    .pricing-bottom {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important; /* Добавляем отступ между карточками */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        justify-items: center !important;
        justify-content: center !important;
    }
    
    .side-card {
        max-width: 95% !important;
    }

    /* News заголовок опускаем ниже для мобильных */
    .news-title {
        margin-top: 4rem !important; /* Увеличено с 2rem до 4rem */
        margin-bottom: 0.5rem !important; /* Уменьшено с 1rem до 0.5rem */
    }

    .kaspi-logo {
        width: 50px;
    }

    .payment-text {
        font-size: 0.9rem;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        justify-items: center;
    }

    .pricing-unified {
        gap: 1rem !important;
        padding: 0 !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        margin: 0 auto !important;
        align-items: stretch !important;
    }

    .pricing-bottom {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important; /* Добавляем отступ между карточками */
        transform: scale(0.9) !important;
        transform-origin: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        justify-items: center !important;
        justify-content: center !important;
    }
    
    .side-card {
        max-width: 95% !important;
    }

    /* News заголовок опускаем еще ниже для маленьких экранов */
    .news-title {
        margin-top: 3rem !important; /* Увеличено с 1.5rem до 3rem */
        margin-bottom: 0.3rem !important; /* Уменьшено с 0.8rem до 0.3rem */
    }

    .kaspi-logo {
        width: 45px;
    }

    .payment-text {
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .price {
        font-size: 1.3rem;
    }
}

.installment-text-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.installment-text {
    font-size: var(--font-xl);
    color: #333;
    margin: 0;
    font-weight: 500;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}


.kaspi-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.kaspi-logo {
    width: 400px !important;
    height: auto;
}

/* Убираем все старые конфликтующие стили pricing */
    .installment-content {
        gap: 0 !important;
    }
    
    .installment-text {
        font-size: var(--font-base);
    }
    
    .pricing-installment-info {
        margin: 0.05rem 0 0.05rem 0;
        padding: 0 0.5rem;
    }
    
    .installment-content {
        gap: 0;
    }
    
    .installment-text {
        font-size: 3rem;
    }
    
    .kaspi-logo {
        width: 240px;
    }
    
    .pricing-grid {
        margin-top: -5rem !important;
        justify-content: center !important;
        align-items: start !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        /* Уменьшаем размеры карточек тарифов для мобильных */
    }
    .pricing-card {
        padding: 1.5rem !important;
        font-size: 0.9rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 400px !important; /* Увеличиваем высоту для вмещения всего контента */
        box-sizing: border-box !important;
    }

    .pricing-card .price {
        font-size: 1.5rem !important;
        min-height: 2.5rem !important;
    }

    .pricing-card h3 {
        font-size: 1.2rem !important;
        min-height: auto !important; /* Убираем огромные отступы */
    }
    
    .pricing-card .pricing-features p {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
        padding: 0 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Убираем ограничения высоты для вмещения всего контента */
    .side-card .pricing-features {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
    }
    
    /* Убираем фиксированную высоту заголовка */
    .side-card .pricing-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
    }
    
    .pricing-card .btn {
        font-size: 0.75rem !important;
        padding: 0.8rem 1rem !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: auto !important;
        margin: 0.8rem auto !important;
        width: 100% !important;
        max-width: calc(100% - 2rem) !important;
        line-height: 1.2 !important; /* Убираем огромную высоту строки */
        vertical-align: middle !important;
    }
    
    .main-card .btn {
        margin: 1.5rem auto !important;
        width: fit-content !important;
        min-width: 140px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 1.2 !important; /* Убираем огромную высоту строки */
        vertical-align: middle !important;
    }

    .side-card .btn {
        margin: 1.2rem auto !important;
        width: fit-content !important;
        min-width: 120px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 1.2 !important; /* Убираем огромную высоту строки */
        vertical-align: middle !important;
    }
    
    .pricing-card .btn:hover {
        transform: none !important;
    }

    .main-card .btn {
        margin: 1rem auto !important;
        width: fit-content !important;
        min-width: 90px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 3rem !important;
        vertical-align: middle !important;
    }

    .side-card .btn {
        margin: 0.8rem auto !important;
        width: fit-content !important;
        min-width: 80px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 3rem !important;
        vertical-align: middle !important;
    }
    
    .pricing-card .btn:hover {
        transform: none !important;
    }

    .side-card {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 420px !important; /* Уменьшено для выравнивания по правой карточке */
        text-align: center !important;
    }

.side-card .pricing-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    margin-top: 0;
    align-self: flex-start;
    padding-top: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.side-card .pricing-features p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: left;
    padding: 0 0.2rem;
}

.side-card .pricing-features p::before {
    display: none;
}

    .side-card .btn {
        margin: auto 1.2rem 0.8rem 0.4rem;
        width: calc(100% - 2.4rem);
        min-width: auto;
        max-width: calc(100% - 2.4rem);
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        justify-content: center;
        align-items: center;
        line-height: 1.4;
        vertical-align: middle;
    }

.payment-options {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(37, 211, 102, 0.2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-text {
    font-size: 0.9rem;
    color: #2d5a3d;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.kaspi-logo {
    width: 400px !important;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(37, 33, 206, 0.1);
    backdrop-filter: blur(10px);
    min-height: 470px; /* Одинаковая высота для всех карточек */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Выравниваем контент по верху */
}

.pricing-card.featured {
    border: 2px solid #DF9C34;
    transform: none;
    box-shadow: 0 20px 60px rgba(223, 156, 52, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
    line-height: 1;
}

.pricing-card:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:hover {
    transform: none;
}

/* Центрирование кнопок в pricing карточках */
.pricing-card .btn {
    display: flex !important;
    margin: 0 auto 0.8rem auto !important; /* Центрируем горизонтально, прижимаем к низу */
    text-align: center !important;
    width: 100% !important;
    min-width: auto !important;
    max-width: calc(100% - 2rem) !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1.2 !important; /* Убираем огромную высоту строки */
    vertical-align: middle !important;
    min-height: 3rem !important; /* Одинаковая высота для кнопок */
    padding: 0.8rem 1rem !important;
}

/* Специальное центрирование для основной карточки */
.main-card .btn {
    margin: 1.5rem auto 0.8rem auto !important;
    width: fit-content !important;
    min-width: 120px !important;
    display: flex !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1.2 !important; /* Убираем огромную высоту строки */
    vertical-align: middle !important;
}

/* Центрирование кнопок в боковых карточках */
.side-card .btn {
    margin: 1rem auto 0.8rem auto !important;
    width: fit-content !important;
    min-width: 100px !important;
    display: flex !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1.2 !important; /* Убираем огромную высоту строки */
    vertical-align: middle !important;
}

.pricing-header {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Pricing Installment Info */
.pricing-installment-info {
    margin: 1rem 0 0.5rem 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.installment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.installment-text-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.installment-text {
    font-size: 4rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kaspi-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.kaspi-logo {
    width: 300px;
    height: auto;
    margin: 0 auto;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2521CE;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding-left: 0;
    position: relative;
}

.pricing-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1px;
    background: transparent;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #DF9C34;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-discount {
    font-size: 1.1rem;
    color: #DF9C34;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}


.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}

.pricing-features p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.1rem;
    padding: 0 0.2rem;
    position: relative;
    text-align: left;
}

.pricing-features p::before {
    display: none;
}

/* Reviews Section */
.reviews {
    padding: 2.5rem 0;
    background: white;
    position: relative;
    overflow: visible;
}

/* Убираем все скроллбары в секции отзывов */
.reviews * {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 156, 52, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 40%);
    animation: backgroundShift 15s ease-in-out infinite;
}

.reviews .section-title {
    color: #2521CE;
    text-shadow: none;
}

.reviews-subtitle {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.reviews-grid {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
    overflow: visible;
}

.review-category {
    flex: 0 0 300px;
    min-width: 300px;
}

.review-category h3 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.review-item {
    background: rgba(37, 33, 206, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 4rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 33, 206, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.review-item:hover {
    background: rgba(37, 33, 206, 0.1);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(223, 156, 52, 0.3);
}

.play-button, .audio-icon, .screenshot-placeholder {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.text-review {
    background: rgba(223, 156, 52, 0.05);
    border: 2px solid rgba(223, 156, 52, 0.1);
}

.text-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.screenshot-review {
    background: rgba(37, 211, 102, 0.05);
    border: 2px solid rgba(37, 211, 102, 0.1);
}

.review-item p {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

/* Стили для мини-галереи WhatsApp */
.whatsapp-gallery {
    margin-bottom: 2rem;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.whatsapp-gallery h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

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

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

.expand-icon {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* Блок видео-отзывов */
.video-testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.testimonials-carousel {
    position: relative;
    max-width: 920px; /* чуть шире общий блок отзывов */
    margin: 0 auto;
}

.testimonials-carousel .carousel-container {
    position: relative;
    overflow: visible !important; /* allow description to be visible */
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 60px rgba(37, 33, 206, 0.1);
    min-height: auto !important; /* allow container to grow with content */
    height: auto !important; /* allow container to grow with content */
    max-height: none !important; /* no height restrictions */
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 2rem !important; /* ensure space for description */
}

.testimonial-item {
    display: none !important;
    padding: 0.25rem; /* tighter padding to remove remaining lip */
    padding-bottom: 1rem !important; /* дополнительный отступ снизу для описания */
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.testimonial-item.active {
    display: block !important;
}

/* Принудительно показываем первый элемент */
.testimonial-item:first-child {
    display: block !important;
}

.testimonial-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem; /* place controls even lower */
    position: relative;
    z-index: 1;
}

.testimonial-item video {
    width: 100%;
    max-width: 100%;
    height: 320px; /* bigger video height */
    object-fit: cover;
    border-radius: 12px;
    border: none;
    outline: none;
    margin: 0; /* remove extra margins */
    display: block;
}

.testimonial-info {
    text-align: center;
    margin-top: 0.5rem; /* sit right under the video */
    margin-bottom: 1rem; /* space before controls */
    padding: 0.5rem 1rem; /* увеличенный padding для лучшей читаемости */
    background: transparent; /* remove gradient background */
    border-radius: 0;
    box-shadow: none; /* remove card look */
    border: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: auto; /* fit to content */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.testimonial-info h3 {
    font-size: 1rem;
    color: #2521ce;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    background: linear-gradient(135deg, #2521ce 0%, #161454 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block !important;
}

.testimonial-info p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    word-break: break-word;
    overflow: visible !important;
    white-space: normal !important;
}

.testimonial-description {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem !important;
    border-left: 4px solid #2521ce !important;
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.1) !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
}

.testimonial-description h4 {
    color: #2521ce !important;
    font-size: 1.2rem !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 600 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
}

.testimonial-description p {
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
}

.testimonial-carousel-btn {
    background: rgba(37, 33, 206, 0.1);
    border: 2px solid rgba(37, 33, 206, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2521ce;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.testimonial-carousel-btn:hover {
    background: rgba(37, 33, 206, 0.2);
    transform: scale(1.1);
}

.testimonial-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 33, 206, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #2521ce;
    transform: scale(1.2);
}

/* Мобильная версия видео-отзывов */
@media (max-width: 768px) {
    .video-testimonials {
        padding: 2rem 0;
    }
    
    .testimonials-carousel {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .testimonials-carousel .carousel-container {
        padding-bottom: 2.5rem !important; /* увеличенный отступ для описания на мобильных */
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .testimonial-item {
        padding: 1rem;
        padding-bottom: 1.5rem !important; /* дополнительный отступ для описания на мобильных */
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .testimonial-item video {
        height: 200px;
        max-width: 100%;
    }
    
    .testimonial-info {
        padding: 0.75rem 1rem !important; /* увеличенный padding для лучшей читаемости */
        margin-top: 0.5rem;
        margin-bottom: 1rem; /* расстояние до кнопок */
        min-height: auto !important; /* по контенту */
        height: auto !important;
        overflow: visible !important;
        max-width: 100% !important;
    }
    
    .testimonial-info h3 {
        font-size: 1.5rem;
    }
    
    .testimonial-info p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .testimonial-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-carousel-controls {
        gap: 0.5rem;
        margin-top: 1.75rem; /* опускаем ниже на мобильных */
    }
}

/* Стили для отображения оценок на карточках уроков */
.lesson-score {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.lesson-score.excellent {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.lesson-score.good {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.lesson-score.poor {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Стили для видео-отзыва */
.video-review-item {
    background: rgba(37, 33, 206, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(37, 33, 206, 0.1);
    margin-bottom: 2rem;
}

.video-review-item h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-review-container {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-review-container:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: relative;
    width: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-review-container:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-review-container:hover .play-button {
    transform: scale(1.1);
}

.video-description {
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.reviews-cta {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

/* Слайдер отзывов */
.testimonials-slider {
    position: relative;
    margin: 3rem 0;
}


.slider-container {
    overflow: visible;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-content {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y; /* Разрешаем только вертикальную прокрутку */
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.testimonial-slide .review-category {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.slider-track {
    width: 300px;
    height: 8px;
    background: rgba(37, 33, 206, 0.15);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(37, 33, 206, 0.1);
}

.slider-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2521CE, #161454);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(37, 33, 206, 0.4);
    border: 2px solid white;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.slider-thumb:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.5);
}

.slider-thumb:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.1);
}

/* Мобильная версия слайдера */
@media (max-width: 768px) {
    .testimonial-slide {
        padding: 1.5rem;
    }
    
    .testimonial-slide .review-category {
        padding: 1.5rem;
    }
    
    .slider-track {
        width: 250px;
        height: 7px;
    }
    
    .slider-thumb {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .testimonial-slide {
        padding: 1rem;
    }
    
    .testimonial-slide .review-category {
        padding: 1rem;
    }
    
    .slider-track {
        width: 200px;
        height: 6px;
    }
    
    .slider-thumb {
        width: 20px;
        height: 20px;
    }
}

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Новый слайдер команды */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
}

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    opacity: 1;
}

    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}

    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(37, 33, 206, 0.95);
    color: white;
    max-width: 150px;
    padding: 0.8rem;
    border-radius: 12px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.mobile-overlay {
    display: none !important;
}

    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #DF9C34;
}

    font-size: 0.55rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    opacity: 0.9;
}

.info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(37, 33, 206, 0.9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.info-btn:hover {
    background: rgba(37, 33, 206, 1);
    transform: none;
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 0.5rem;
}

.slider-btn {
    background: #2521CE;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-btn:hover {
    background: #1a1a8a;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 33, 206, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2521CE;
    transform: scale(1.2);
}

    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 33, 206, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 33, 206, 0.3);
}

.photo-placeholder {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2521CE;
    margin-bottom: 1rem;
}

.member-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    padding: 1rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 156, 52, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 40%);
    animation: backgroundShift 15s ease-in-out infinite;
}

.faq .section-title {
    color: #2521CE;
    text-shadow: none;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 1rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-arrow {
    margin-left: auto;
    font-size: 1.3rem;
    font-weight: bold;
    color: #DF9C34;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.3rem;
    color: #DF9C34;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question h3 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: none;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: white;
    color: #333;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="0.4" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    min-height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-btn {
    font-size: 0.9rem;
    padding: 1.25rem 2rem; /* Уменьшено с 2.5rem для отступов от стенок */
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border: 2px solid #2521CE;
    box-shadow: 0 8px 25px rgba(37, 33, 206, 0.3);
    border-radius: 12px;
    min-width: auto; /* Убираем фиксированную ширину */
    max-width: 300px; /* Максимальная ширина */
}

.cta-btn:hover {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 33, 206, 0.4);
}

.cta-contacts {
    display: flex;
    flex-direction: row; /* Изменено с column на row для горизонтального расположения */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Добавлено для переноса на новую строку если нужно */
}

.cta-contacts .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
}

.cta-contacts .phone-link {
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.cta-contacts .phone-link:hover {
    color: #2521CE !important;
    text-decoration: underline;
}

.cta-contacts .contact-item:last-child {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    /* Убираем width: 100% для горизонтального расположения */
}

.cta-contacts .social-link {
    width: 45px;
    height: 45px;
    background: rgba(37, 33, 206, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2521CE;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 33, 206, 0.2);
}

.cta-contacts .social-link:hover {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(223, 156, 52, 0.3);
    color: white;
}

.cta-contacts .social-icon {
    color: currentColor;
    transition: all 0.3s ease;
}

.cta-contacts .social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Скрыть любые текстовые подписи в CTA секции */
.cta-contacts .social-link::after,
.cta-contacts .social-link span,
.cta-contacts .social-link .social-text {
    display: none !important;
}

.contact-icon {
    font-size: 1.25rem;
    color: #2521CE;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2521CE;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #DF9C34;
    transform: translateY(-2px);
}

.social-icon {
    color: currentColor;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.contact-item a {
    color: #2521CE;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #DF9C34;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fixed-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.fixed-whatsapp svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-whatsapp:hover svg {
    transform: scale(1.2);
}

/* Hide WhatsApp button when mobile menu is active */
.mobile-menu.active ~ .fixed-whatsapp,
.mobile-menu.active + .fixed-whatsapp {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    color: white;
    padding: 1.5rem 0 1rem; /* Уменьшено с 2rem 0 1.5rem до 1.5rem 0 1rem */
    margin-top: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    max-width: 1600px; /* Увеличено с 1400px до 1600px */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}


.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Уменьшено с 1.5rem до 1rem */
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 120px; /* Уменьшено с 170px до 120px */
    height: 120px; /* Уменьшено с 170px до 120px */
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

.footer-logo-kassymov {
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    font-weight: 700;
    color: #DF9C34;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.footer-logo-school {
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    font-weight: 300;
    color: #DF9C34;
    line-height: 1;
    margin-top: -2px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4; /* Уменьшено с 1.6 до 1.4 */
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(223, 156, 52, 0.3);
}

.footer-title {
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem; /* Уменьшено с 1rem до 0.8rem */
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #DF9C34 0%, #DDB580 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Уменьшено с 0.8rem до 0.5rem */
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem; /* Уменьшено с 0.95rem до 0.8rem */
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links li a:hover {
    color: #DF9C34;
    padding-left: 10px;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #DF9C34;
}

.footer-links li a:hover::before {
    opacity: 1;
    left: -10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem; /* Уменьшено с 1rem до 0.7rem */
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #DF9C34;
    transform: translateX(5px);
}

.contact-item svg {
    color: #DF9C34;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: none;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}


.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem; /* Уменьшено с 2rem до 1.5rem */
    max-width: 1600px; /* Увеличено с 1400px до 1600px */
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.company-info {
    flex: 1;
    min-width: 250px; /* Уменьшено с 300px до 250px */
    align-items: flex-start;
}

.company-title {
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    font-weight: 700;
    color: #DF9C34;
    margin-bottom: 0.6rem; /* Уменьшено с 1rem до 0.6rem */
    text-align: left;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Уменьшено с 0.5rem до 0.3rem */
    align-items: flex-start;
    width: 100%;
}

.company-details p {
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.company-details p strong {
    color: white;
    font-weight: 600;
}

.company-details strong {
    color: white;
    font-weight: 600;
}

.footer-bottom-right {
    flex: 1;
    min-width: 250px; /* Уменьшено с 300px до 250px */
    display: flex;
    flex-direction: column;
    gap: 0.7rem; /* Уменьшено с 1rem до 0.7rem */
    align-items: flex-start;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem; /* Уменьшено с 2rem до 1.5rem */
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem; /* Уменьшено с 0.9rem до 0.8rem */
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #DF9C34;
}

/* Feedback Modal Styles */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.feedback-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10001;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-modal-close:hover,
.feedback-modal-close:focus {
    color: #000;
    background: white;
    transform: scale(1.1);
}

.feedback-modal-header {
    background: linear-gradient(135deg, #2521CE, #3498db);
    color: white;
    padding: 20px;
    text-align: center;
}

.feedback-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.feedback-modal-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.feedback-modal-body {
    padding: 20px;
    background: white;
}

.feedback-modal-body video {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .feedback-modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .feedback-modal-header {
        padding: 15px;
    }
    
    .feedback-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .feedback-modal-body {
        padding: 15px;
    }
    
    .feedback-modal-body video {
        max-height: 250px;
    }
}

/* Screenshot Gallery Modal Styles */
.screenshot-gallery-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.screenshot-gallery-modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.screenshot-gallery-modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    text-align: center;
}

.screenshot-gallery-modal-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.screenshot-gallery-modal-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.screenshot-gallery-modal-body {
    padding: 0;
    position: relative;
}

.screenshot-gallery-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.screenshot-gallery-item.active {
    opacity: 1;
}

.screenshot-gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.screenshot-gallery-item video {
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.screenshot-gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    gap: 20px;
}

.gallery-nav-btn {
    background: #2521CE;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover {
    background: #161454;
    transform: scale(1.1);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.screenshot-gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
}

.screenshot-gallery-modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Screenshot Review Styles */
.review-item.screenshot-review {
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-item.screenshot-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Mobile responsive for screenshot gallery */
@media (max-width: 768px) {
    .screenshot-gallery-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .screenshot-gallery-container {
        height: 400px;
    }
    
    .screenshot-gallery-modal-header {
        padding: 15px 20px;
    }
    
    .screenshot-gallery-modal-header h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .installment-section {
        padding: 0.5rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .installment-content {
        gap: 0.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .installment-section .installment-text {
        font-size: 3rem;
        width: 100%;
    }
    
    .installment-section .kaspi-logo {
        width: 240px;
    }
    
    .nav {
        display: none;
    }
    
    /* Общие стили для центрирования всех секций */
    .section {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0;
    }
    
    .hero {
        padding-top: 140px; /* Увеличенный отступ от фиксированного навбара */
        min-height: 28vh;
        padding-bottom: 0.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 1.5rem;
        transform: scale(0.95);
        transform-origin: center;
        animation: fadeInUp 0.8s ease-out;
        padding: 0 1rem;
        max-width: 100%;
        margin: 0;
    }

    /* Дополнительный верхний отступ для заголовка benefits секции */
    .benefits .section-title {
        margin-top: 1.5rem;
    }
    
    .hero-image {
        order: 3;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        margin-top: 1rem;
    }
    
    .hero-image img {
        max-width: 250px;
        width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .hero-title {
        font-size: 1rem;
        animation: slideInLeft 0.8s ease-out;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        animation: slideInLeft 0.8s ease-out 0.2s both;
        line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .advantages {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        animation: fadeInUp 0.8s ease-out 0.4s both;
        justify-items: center;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        animation: fadeInUp 0.8s ease-out 0.6s both;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .image-placeholder {
        max-width: 300px;
        animation: slideInRight 0.8s ease-out 0.8s both;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Сохраняем 2 колонки */
        gap: 1.5rem;
        transform: scale(0.95);
        transform-origin: center;
        justify-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    
    .news-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .news-item {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        min-height: 320px;
        max-height: 320px;
    }
    
    .news-item h3 {
        min-height: 2.2rem;
        font-size: 1.1rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        gap: 0.6rem;
    }

    .news-item h3::before {
        font-size: 1.3rem;
    }
    
    .news-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
    
    



    .news-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem !important; /* Уменьшено с 1.5rem до 0.5rem */
        margin-top: 4rem !important; /* Увеличено для планшетов */
        text-transform: uppercase;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 2rem;
        transform: scale(0.95);
        transform-origin: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        align-items: start;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr; /* Треугольник: один сверху, два снизу */
        grid-template-rows: auto auto;
        gap: 0.1rem;
        justify-items: center;
        transform: scale(0.85); /* Уменьшаем блоки */
        transform-origin: center;
        justify-content: center;
        align-items: start;
        margin: 0 auto;
        max-width: 100%;
    }

    
    .kaspi-logo {
        width: 240px !important;
    }
    
    .payment-text {
        font-size: 0.9rem;
    }
    
    .pricing-card {
        max-width: 100%;
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: none;
    }
    
    .reviews-grid {
        display: flex;
        gap: 1.5rem;
        padding-bottom: 1rem;
        overflow: visible;
    }
    
    .review-category {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .review-item {
        max-width: 100%;
        width: 100%;
    }
    
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
        max-width: 100%;
    }
    
        height: 500px;
    }
    
        max-width: 250px;
        padding: 1.5rem;
    }
    
        font-size: 1.3rem;
    }
    
        font-size: 0.9rem;
    }
    
        font-size: 0.8rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .slider-controls {
        gap: 0.1rem;
        margin-top: 0.2rem;
    }
    
        max-width: 100%;
        width: 100%;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        gap: 1.5rem;
    }
    
    .cta-btn {
        font-size: 0.8rem;
        padding: 1rem 2rem;
    }
    
    .cta-contacts {
        flex-direction: row; /* Социальные иконки горизонтально */
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-contacts .contact-item:first-child {
        order: 1;
    }
    
    .cta-contacts .contact-item:last-child {
        order: 2;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 0.1rem;
        height: 100%;
    }
    
    .language-switcher {
        display: flex;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
    
    /* Адаптивность для карусели */
    .steps-carousel {
        margin-top: 1.5rem;
        padding: 0 0.5rem 3rem 0.5rem !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
        min-height: 320px !important;
        position: relative !important;
    }
    
    .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .steps-container {
        max-height: 70vh;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }
    
    .step-item {
        min-height: 320px !important;
        padding: 1.5rem 1rem !important;
        max-height: 80vh;
        overflow-y: auto;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        flex: 0 0 25% !important;
        flex-shrink: 0 !important;
    }
    
    .step-icon {
        font-size: 1.8rem;
        margin-top: 0.2rem;
    }
    
    .step-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .step-item p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .carousel-controls {
        gap: 0.1rem;
        margin-top: 0.8rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Адаптивность для benefits */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.1rem;
        justify-items: center;
    }
    
    .benefit-item {
        min-height: 140px;
        padding: 0.8rem;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-item h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .benefit-item p {
        font-size: 0.7rem;
        line-height: 1.3;
        text-align: center;
        flex-grow: 1;
    }
    
    .stat {
        font-size: 1.3rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .footer-section {
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo-img {
        width: 150px;
        height: 150px;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .company-info {
        min-width: 100%;
        text-align: left;
        align-items: flex-start;
    }
    
    .company-title {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .company-details p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        font-size: 0.8rem;
    }
    
    .footer-bottom-right {
        min-width: 100%;
        align-items: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* Простое масштабирование для планшетов */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding-top: 140px; /* Увеличенный отступ от фиксированного навбара */
    }
    
    /* Сохраняем grid-структуру, но уменьшаем размеры */
    .hero-content {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 2rem;
        transform: scale(0.9);
        transform-origin: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 3rem;
        transform: scale(0.95);
        transform-origin: center;
        align-items: start;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr; /* Треугольник: один сверху, два снизу */
        grid-template-rows: auto auto;
        gap: 2rem;
        justify-content: center;
        align-items: start;
        margin: 0 auto;
        max-width: 100%;
        justify-items: center;
    }
    
    
    .pricing-unified {
        max-width: 700px;
    }
    
    .pricing-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        max-width: 500px;
    }
    
    .pricing-card.featured {
        border: 2px solid #DF9C34;
        transform: none;
        box-shadow: 0 20px 60px rgba(223, 156, 52, 0.2);
    }

    .pricing-card {
        padding: 0.1rem;
    }
    
    .pricing-header {
        min-height: 120px;
    }
    
    .pricing-header h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .pricing-features p {
        font-size: 0.9rem;
        text-align: left;
        padding: 0 0.2rem;
    }
    
    .pricing-features p::before {
        display: none;
    }
    
    .kaspi-logo {
        width: 200px !important;
    }
    
    .reviews-grid {
        display: flex;
        gap: 2rem;
        padding-bottom: 1rem;
        overflow: visible;
    }
    
    .review-category {
        flex: 0 0 320px;
        min-width: 320px;
    }
    
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(37, 33, 206, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 20px 20px;
        max-height: none;
        overflow: visible;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-language-switcher {
        display: none;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
    }
    
/* Скрыть мобильный переключатель на десктопе */
@media (min-width: 769px) {
    .mobile-language-switcher {
        display: none !important;
    }
    
    .nav .mobile-language-switcher {
        display: none !important;
    }
    
    .nav.active .mobile-language-switcher {
        display: none !important;
    }
}
    
    .nav.active .mobile-language-switcher {
        display: flex;
    }
    
    .mobile-language-switcher .language-switcher {
        display: flex;
        position: relative;
        height: auto;
        margin: 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .mobile-language-switcher .lang-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        background: rgba(37, 33, 206, 0.95);
        backdrop-filter: blur(10px);
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        width: 140px;
        border-radius: 12px;
        padding: 0.8rem;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: none;
        overflow: visible;
    }
    
    .mobile-language-switcher .language-switcher:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .mobile-language-switcher .lang-option {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        min-height: 36px;
    }
    
    .mobile-language-switcher .lang-option:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-language-switcher .lang-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
        max-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .mobile-language-switcher .lang-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        font-size: 0.9rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        gap: 4px;
        height: 50px;
        width: 50px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .language-switcher {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .header {
        padding: 0.25rem 0;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
    }
    
    .logo-img {
        width: 110px;
        height: 110px;
    }
    
    .logo-text {
        margin-left: 0.3rem;
    }
    
    .logo-kassymov {
        font-size: 0.9rem;
    }
    
    .logo-school {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 0.3rem 0 0.2rem;
        min-height: 25vh;
        padding-top: 140px; /* Увеличенный отступ от фиксированного навбара */
        padding-bottom: 0.3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        text-align: left;
        padding: 0 0.3rem;
        max-width: 100%;
        margin: 0;
        display: block; /* Override grid for mobile */
    }

    /* Дополнительный верхний отступ для заголовка benefits секции */
    .benefits .section-title {
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 0.8rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
        line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .hero-advantages {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.1rem;
        margin-bottom: 0.5rem;
        padding: 0 0.3rem;
    }
    
    .hero-stats {
        gap: calc(var(--mobile-hero-stats-gap) * 0.4);
        margin-bottom: calc(var(--mobile-hero-stats-margin-bottom) * 0.3);
        margin-top: calc(var(--mobile-hero-stats-margin-top) * 0.2);
        margin-left: -1.5rem !important; /* Выдвигаем за левый край контейнера */
        padding-left: 1.5rem !important; /* Добавляем отступ для содержимого */
        width: calc(100% + 3rem) !important; /* Расширяем на ширину отступов */
        position: relative !important;
    }
    
    .hero-stats .stat-item {
        min-height: 35px;
        flex: 1 !important; /* Все блоки одинакового размера */
        width: 100% !important; /* Одинаковая ширина */
        min-width: 0 !important; /* Позволяем блокам сжиматься */
        max-width: none !important; /* Убираем ограничение максимальной ширины */
    }
    
    .hero-stats .stat-number {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .hero-stats .stat-label {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    .trophy-item {
        flex: 1 !important; /* Такой же flex как у других блоков */
        width: 100% !important; /* Одинаковая ширина */
        min-width: 0 !important; /* Позволяем сжиматься */
        max-width: none !important; /* Убираем ограничение максимальной ширины */
        min-height: 35px !important; /* Такая же высота как у других блоков */
    }
    
    .trophy-item .stat-label {
        font-size: calc(var(--mobile-hero-stats-font-size) * 0.7);
        line-height: 1.0;
        max-width: 100%;
        word-wrap: break-word;
        margin-top: 0.1rem; /* Минимальный отступ сверху */
        min-height: auto !important; /* Убираем фиксированную высоту */
    }
    
    .trophy-icon {
        margin-bottom: 0.1rem !important; /* Минимальный отступ снизу у иконки */
    }
    
    .advantage-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-stats {
        gap: 0.5rem !important; /* Уменьшаем отступы между блоками */
    }
    
    .hero-stats .stat-item {
        min-height: 30px !important; /* Еще меньше высота */
        flex: 1 !important;
        width: 100% !important; /* Одинаковая ширина */
        min-width: 0 !important;
        max-width: none !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1rem !important; /* Меньше размер цифр */
    }
    
    .hero-stats .stat-label {
        font-size: 0.5rem !important; /* Еще меньше размер текста */
        line-height: 1.0 !important;
    }
    
    .trophy-item {
        flex: 1 !important;
        width: 100% !important; /* Одинаковая ширина */
        min-width: 0 !important;
        max-width: none !important;
        min-height: 30px !important; /* Такая же высота как у других блоков */
    }
    
    .trophy-item .stat-label {
        font-size: 0.5rem !important; /* Такой же размер как у других */
        line-height: 1.0 !important;
        min-height: auto !important; /* Убираем фиксированную высоту */
    }
    
    .trophy-icon {
        font-size: 1.5rem !important; /* Меньше размер иконки */
    }
    
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.1rem;
        align-items: stretch;
        justify-content: flex-start;
        margin-bottom: 1rem;
        flex: 1;
        display: flex;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0.8rem 1.2rem 0.4rem 1.2rem !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 0.8rem !important;
        font-weight: 900 !important;
    }
    
    .btn {
        padding: 1.5rem 2rem;
        font-size: 0.8rem;
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        margin: 0;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    
    
    .founder-photo {
        width: 200px;
        height: 200px;
    }
    
    .founder-name {
        font-size: 0.9rem;
    }
    
    .founder-title {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: var(--font-3xl);
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr); /* Сохраняем 2 колонки */
        gap: 1.5rem;
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 0.9rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .benefit-item {
        padding: 0.6rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .benefit-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .benefit-item h3 {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .benefit-item p {
        font-size: 0.6rem;
        line-height: 1.3;
        text-align: center;
        flex-grow: 1;
    }
    
    .benefit-title {
        font-size: 0.9rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Сохраняем 2 колонки */
        gap: 1.5rem;
        transform: scale(0.85);
        transform-origin: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;
    }
    
    .installment-section {
        padding: 0.3rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .installment-content {
        gap: 0.3rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .installment-section .installment-text {
        font-size: 2.5rem;
        width: 100%;
    }
    
    .installment-section .kaspi-logo {
        width: 200px;
    }
    
    .news-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.2px;
        border-radius: 15px;
    }
    
    .news-item {
        padding: 0.8rem;
        min-height: 280px;
        max-height: 280px;
    }
    
    .news-item h3 {
        min-height: 2rem;
        font-size: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        gap: 0.5rem;
    }

    .news-item h3::before {
        font-size: 1.2rem;
    }
    
    .news-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        border-radius: 5px !important;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    


    .news-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem !important; /* Уменьшено с 1rem до 0.3rem */
        margin-top: 3rem !important; /* Увеличено для мобильных */
        text-transform: uppercase;
    }
    
    .news-description {
        font-size: 0.9rem;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr; /* Сохраняем две колонки */
        gap: 2rem;
        transform: scale(0.85);
        transform-origin: center;
        align-items: start;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr; /* Треугольник: один сверху, два снизу */
        grid-template-rows: auto auto;
        gap: 1.5rem;
        justify-content: center;
        align-items: start;
        margin: 0 auto;
        max-width: 100%;
        justify-items: center;
    }
    
    
    .pricing-unified {
        gap: 0.1rem;
    }
    
    .pricing-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        max-width: 500px;
    }
    
    .kaspi-logo {
        width: 200px !important;
    }
    
    .payment-text {
        font-size: 0.9rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        min-height: 420px; /* Уменьшено для выравнивания по правой карточке */
    }

    /* Увеличиваем второй блок в планшетной версии для большего контента */

    
    .pricing-card.featured {
        transform: none;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .reviews-grid {
        display: flex;
        gap: 1.5rem;
        padding-bottom: 1rem;
        overflow: visible;
    }
    
    .review-category {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .review-items {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder {
        font-size: 2rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
        justify-content: space-between;
        text-align: center;
    }

    .faq-question h3 {
        text-align: center;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 1.05rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .footer-section {
        align-items: flex-start;
        text-align: left;
    }

    .footer-description {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 0.1rem;
    }
    
    .company-info {
        min-width: 100%;
        text-align: left;
        align-items: flex-start;
    }
    
    .company-title {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        font-size: 0.9rem;
    }
    
    .company-details p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        font-size: 0.75rem;
    }
    
    .footer-bottom-right {
        min-width: 100%;
        align-items: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .fixed-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-icon {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
        /* Сохраняем центрирование текста для мобильных */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Увеличиваем фото Нурлана в мобильной версии */
    .founder-img {
        max-width: 500px; /* Увеличено с 400px */
    }

        height: 450px; /* Увеличено с 400px */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lang-btn {
        min-height: 44px;
    }
    
    .lang-option {
        min-height: 44px;
    }
    
    .whatsapp-btn {
        min-height: 44px;
    }
    
    .fixed-whatsapp {
        min-width: 44px;
        min-height: 44px;
        /* Кнопка теперь всегда видна на мобильных устройствах */
    }
    
    /* Improve text readability */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Smooth scrolling for iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    .hero-text > *,
    .hero-image,
    .founder-photo,
    .btn-primary,
    .advantage-item,
    .news-item {
        animation: none;
    }

    .hero-buttons-with-image {
        display: flex;
        gap: 0.5rem;
        align-items: flex-start;
        width: 100%;
        margin-left: 0;
        padding: 0 1rem;
        box-sizing: border-box;
        justify-content: space-around;
    }

    .hero-buttons {
        flex: 1;
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 200px; /* Уменьшено для мобильных экранов */
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-top: 0;
        height: 100%;
        margin-left: 0;
        margin-bottom: -90px;
    }

    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        object-fit: cover;
    }
    
    .benefit-item:hover,
    .pricing-card:hover,
    .review-item:hover {
        transform: none;
    }
    
    .step-item:hover,
    .news-item:hover {
        transform: none;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 0.9rem;
        line-height: 1.1;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
        max-width: 220px;
    }
    
    .section-title {
        font-size: var(--font-2xl);
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .advantage-item {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .step-item {
        padding: 1.5rem !important;
        min-height: 280px !important;
        max-height: 75vh;
        width: 25% !important;
        max-width: 25% !important;
        box-sizing: border-box;
        margin: 0 !important;
        flex: 0 0 25% !important;
    }
    
    .carousel-container {
        width: 400% !important;
    }
    
    .steps-carousel {
        overflow: hidden !important;
    }
    
    .step-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .step-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .step-icon {
        font-size: 1.3rem;
        margin-top: 0.1rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .installment-section {
        padding: 0.2rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .installment-section .installment-content {
        gap: 0.1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .installment-section .installment-text {
        font-size: 2rem;
        width: 100%;
    }
    
    .installment-section .kaspi-logo {
        width: 160px;
    }
    
    .news-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        letter-spacing: 0.1px;
        border-radius: 12px;
    }
    
    .news-item {
        padding: 0.7rem;
        min-height: 240px;
        max-height: 240px;
    }
    

    .news-item h3 {
        min-height: 1.8rem;
        font-size: 0.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        gap: 0.4rem;
    }

    .news-item h3::before {
        font-size: 1.1rem;
    }
    
    .news-btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.7rem !important;
        border-radius: 4px !important;
    }
    
    
    .pricing-card {
        padding: 1rem;
        min-height: 420px; /* Уменьшено для выравнивания по правой карточке */
    }

    /* Делаем все карточки одинакового размера на мобильных */
    .pricing-card.side-card,
    .pricing-card.featured.main-card {
        min-height: 450px !important; /* Увеличиваем для вмещения всего контента */
    }

    /* Увеличиваем второй блок в мобильной версии для большего контента */

    
        padding: 1rem;
    }
    
    .faq-question {
        padding: 0.8rem;
        font-size: 0.8rem;
        justify-content: space-between;
        text-align: center;
    }

    .faq-question h3 {
        text-align: center;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .faq-answer {
        padding: 0 0.8rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Desktop styles for hero layout */
@media (min-width: 769px) {
    /* WhatsApp кнопка теперь отображается на всех устройствах */

    .hero-buttons-with-image {
        display: contents;
    }

    .hero-text {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .hero-buttons {
        grid-column: 1;
        grid-row: 3;
        margin-top: 2rem;
    }

    .hero-image {
        grid-column: 2;
        grid-row: 1 / 3;
        margin-top: 1rem;
        align-items: flex-end;
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        object-fit: cover;
        object-position: bottom;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: none;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-text > * {
    animation: slideInLeft 0.8s ease-out;
}

.hero-text > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-text > *:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-text > *:nth-child(4) {
    animation-delay: 0.6s;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.8s both;
}

.founder-photo {
    animation: float 3s ease-in-out infinite;
}

.btn-primary {
    animation: pulse 2s ease-in-out infinite;
}

.advantage-item {
    animation: fadeInUp 0.6s ease-out;
}

.advantage-item:nth-child(1) {
    animation-delay: 0.1s;
}

.advantage-item:nth-child(2) {
    animation-delay: 0.2s;
}

.advantage-item:nth-child(3) {
    animation-delay: 0.3s;
}

.advantage-item:nth-child(4) {
    animation-delay: 0.4s;
}


.news-item {
    animation: fadeInUp 0.8s ease-out;
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbars in header */
.header .nav,
.header .header-right {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.header::-webkit-scrollbar,
.header *::-webkit-scrollbar,
.header .container::-webkit-scrollbar,
.header .nav::-webkit-scrollbar,
.header .header-right::-webkit-scrollbar {
    display: none !important;
}


/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    background: #2521CE;
    width: 100%;
    max-width: 400px;
    height: 100%;
    margin-left: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-logo-kassymov {
    font-size: 1.3rem;
    font-weight: 700;
    color: #DF9C34;
    letter-spacing: 0.05em;
}

.mobile-logo-school {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-top: -2px;
}

/* Удаляем дублирующиеся стили кнопки закрытия */

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: #DF9C34;
    padding-left: 1rem;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #DF9C34, #FFD700);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 20px;
}

.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}


.mobile-lang-flag {
    font-size: 0.9rem;
}

.mobile-lang-text {
    font-weight: 500;
}

/* Мобильные стили для хедера */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1;
    }
    
    .header-right {
        order: 2;
        gap: 0.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .language-switcher {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
}

@media (max-width: 480px) {
    
    .mobile-menu-content {
        padding: 1rem;
    }

    .mobile-nav-link {
        font-size: 0.9rem;
    }

    /* Логотип убран */

    .mobile-lang-flag {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .mobile-login-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.whatsapp-btn:focus,
.fixed-whatsapp:focus {
    outline: 2px solid #DF9C34;
    outline-offset: 2px;
}

/* Pricing Installment Info */
.pricing-installment-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.installment-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.installment-kaspi-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Text Alignment Consistency */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

p {
    text-align: left;
}

.section-title {
    text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pricing-features p {
        text-align: left;
        margin-bottom: 0.8rem;
        line-height: 1.5;
        padding-left: 1rem;
    }

.pricing-features p::before {
    display: none;
}

.news-item h3 {
    text-align: left;
}

.news-item p {
    text-align: left;
}

/* Phone Link Styles */
.phone-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #DF9C34 !important;
    text-decoration: underline;
}

/* Force white color for all phone links */
a[href^="tel:"] {
    color: white !important;
}

a[href^="tel:"]:hover {
    color: #DF9C34 !important;
}

/* CSS Variables for mobile hero image positioning */
:root {
    --mobile-hero-image-size: 100px;
    --mobile-hero-image-margin-top: 0.1rem;
    --mobile-hero-image-margin-bottom: 0;
    --mobile-hero-image-margin-left: auto;
    --mobile-hero-image-margin-right: auto;
}

/* CSS Variables for mobile hero stats positioning */
:root {
    --mobile-hero-stats-margin-top: 1rem;
    --mobile-hero-stats-margin-bottom: 0.5rem;
    --mobile-hero-stats-gap: 1.5rem;
    --mobile-hero-stats-trophy-width: 120px;
    --mobile-hero-stats-trophy-max-width: 150px;
    --mobile-hero-stats-font-size: 0.8rem;
}

/* Mobile Responsiveness - General */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: visible;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
        line-height: 3rem; /* Центрирование текста по вертикали */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: flex;
        align-items: center;
        text-align: center;
        min-height: 3rem; /* Одинаковая высота для цен */
        line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.1rem;
        align-items: center;
    }
    
    /* Header mobile */
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.1rem;
        width: 100%;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.8rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.1rem;
        width: 100%;
    }
    
    /* Language switcher mobile */
    .language-switcher {
        justify-content: center;
        width: 100%;
    }
    
    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 0.3rem 0;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 0.3rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Advantages mobile */
    .advantages {
        padding: 3rem 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    /* Test section mobile */
    .test {
        padding: 3rem 0;
    }
    
    .test-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .test-features {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    
    .feature-item {
        padding: 1rem;
        text-align: center;
        min-height: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-item > span:not(.feature-icon) {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .test-btn-container {
        padding: 0;
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Courses mobile */
    .courses {
        padding: 3rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
        justify-items: center;
    }
    
    .pricing-unified {
        max-width: 100%;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .pricing-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        max-width: 500px;
    }
    
    .pricing-card {
        padding: 1.5rem;
        min-height: 450px; /* Увеличиваем высоту для вмещения всего контента */
    }
    
    .pricing-card.featured {
        border: 2px solid #DF9C34;
        transform: none;
        box-shadow: 0 20px 60px rgba(223, 156, 52, 0.2);
    }
    
    .pricing-header h3 {
        font-size: 0.9rem;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .pricing-features {
        padding: 1rem;
    }
    
    .pricing-features p {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
        text-align: left;
        padding-left: 1rem;
    }
    
    .pricing-features p::before {
        display: none;
    }
    
    .pricing-badge {
        top: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
    }
    
    .pricing-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .pricing-header h3 {
        font-size: 1.3rem;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .pricing-badge {
        top: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(223, 156, 52, 0.3);
    }
    
    .pricing-features {
        padding: 1.5rem;
    }
    
    .pricing-features p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        text-align: left;
        padding-left: 1rem;
    }
    
    
    .installment-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .installment-kaspi-logo {
        max-width: 120px;
        height: auto;
    }
    
    /* Team mobile */
        padding: 0.5rem 0 3rem 0;
    }
    
        padding: 0 1rem;
    }
    
        padding: 1rem;
    }
    
        height: 400px;
        border-radius: 15px;
    }
    
    .desktop-overlay {
        display: none !important;
    }
    
    .mobile-overlay {
        display: block !important;
        position: static;
        top: auto;
        right: auto;
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
        max-width: 100%;
    }
    
        position: relative;
    }
    
        display: flex;
        flex-direction: column;
    }
    
        font-size: 1.3rem;
    }
    
        font-size: 0.9rem;
    }
    
        font-size: 0.9rem;
    }
    
    .info-btn {
        display: none !important;
    }
    
    /* Testimonials mobile */
    .testimonials {
        padding: 3rem 0;
    }
    
    .testimonials-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .review-items {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    
    .review-item {
        padding: 1.5rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    /* CTA mobile */
    .cta {
        padding: 3rem 0;
    }
    
    .cta-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .cta-actions {
        gap: 0.1rem;
    }
    
    .cta-btn {
        font-size: 0.7rem;
        padding: 0.8rem 1.5rem;
    }
    
    .cta-contacts {
        flex-direction: row; /* Даже на маленьких экранах горизонтально */
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-contacts .contact-item:first-child {
        order: 1;
    }

    .cta-contacts .contact-item:last-child {
        order: 2;
        flex-direction: row; /* Горизонтально */
        gap: 0.5rem;
        justify-content: center;
        /* Убираем width: 100% */
    }

    .cta-contacts .social-link {
        width: 50px;
        height: 50px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .footer-section {
        align-items: flex-start;
        text-align: left;
    }

    .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        gap: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.1rem;
        text-align: left;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
        align-items: flex-start;
    }
    
    /* Steps mobile */
    .steps {
        padding: 3rem 0;
    }
    
    .steps-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .steps-carousel {
        padding: 0;
    }
    
    .step-item {
        min-height: 320px;
        padding: 1.5rem 1.5rem;
        margin: 0 0.5rem;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .step-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item h3 {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .step-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    /* Slider controls mobile */
    .slider-controls {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        margin-top: 0.2rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .slider-dots {
        gap: 0.5rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

/* Samsung and Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .step-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .step-item h3 {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .step-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* Samsung Internet Browser specific */
@supports (-webkit-touch-callout: none) {
    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .step-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
}

/* Mobile carousel fixes - для всех мобильных устройств */
@media screen and (max-width: 768px) {
    .steps-carousel {
        overflow: hidden !important;
        padding: 0 0.5rem 3rem 0.5rem !important;
        min-height: 320px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .carousel-container {
        width: 400% !important;
        overflow: visible !important;
        min-height: 320px !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 320px !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Специфичный медиа-запрос для разрешения до 421px - одна карточка на слайд */
/* ВРЕМЕННО СКРЫВАЕМ КАРУСЕЛЬ ДЛЯ ЭКРАНОВ НИЖЕ 421px */
@media screen and (max-width: 421px) {
    body .steps-carousel {
        overflow: hidden !important;
        padding: 0 0.2rem 2rem 0.2rem !important;
        min-height: 260px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    body .steps-carousel .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-height: 260px !important;
        height: 260px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    body .steps-carousel .carousel-container .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        padding: 0.6rem 0.3rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    body .steps-carousel .step-item h3 {
        font-size: 0.75rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.2 !important;
        padding: 0 0.2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    body .steps-carousel .step-item p {
        font-size: 0.6rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.3 !important;
        padding: 0 0.2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    body .steps-carousel .step-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0.3rem 0 !important;
    }
    
    body .steps-carousel .step-icon svg,
    body .steps-carousel .step-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    
    body .steps-carousel .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body .steps-carousel .carousel-container .step-item * {
        box-sizing: border-box !important;
    }
}

/* КРИТИЧЕСКИЙ ФИКС: Отдельные стили для экранов ДО 421px - одна карточка на слайд */
/* ВРЕМЕННО ЗАКОММЕНТИРОВАНО
@media screen and (max-width: 420px) {
    body .steps-carousel {
        overflow: hidden !important;
        padding: 0 0.5rem 3rem 0.5rem !important;
        min-height: 320px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    body .steps-carousel .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-height: 320px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    body .steps-carousel .carousel-container .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 320px !important;
        padding: 1.2rem 0.8rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    body .steps-carousel .carousel-container .step-item * {
        box-sizing: border-box !important;
    }
}
*/

/* Специфичный медиа-запрос для узких экранов 320-421px */
@media screen and (min-width: 320px) and (max-width: 421px) {
    .steps-carousel {
        overflow: hidden !important;
        padding: 0 0.2rem 2rem 0.2rem !important;
        min-height: 260px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-height: 260px !important;
        height: 260px !important;
    }
    
    .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        padding: 0.6rem 0.3rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    
    .step-item h3 {
        font-size: 0.75rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.2 !important;
        padding: 0 0.2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .step-item p {
        font-size: 0.6rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.3 !important;
        padding: 0 0.2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .step-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0.3rem 0 !important;
    }
    
    .step-icon svg,
    .step-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .step-content {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item h3 {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    
    .step-item p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        max-width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    
    .step-icon {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        width: 100%;
    }
}

/* Дополнительный медиа-запрос для очень узких экранов 374-420px */
@media screen and (min-width: 374px) and (max-width: 420px) {
    .steps-carousel {
        overflow: hidden !important;
        padding: 0 0.3rem 3rem 0.3rem !important;
        min-height: 320px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    .steps-carousel .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .steps-carousel .carousel-container .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 320px !important;
        padding: 1.2rem 0.8rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .steps-carousel {
        padding: 0 0.5rem 3rem 0.5rem !important;
        min-height: 320px !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    .carousel-container {
        width: 400% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }
    
    .step-item {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 25% !important;
        min-height: 320px !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    line-height: 3rem; /* Центрирование текста по вертикали */
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .pricing-card {
        margin: 0;
    }
    
    .pricing-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        max-width: 500px;
    }
    
    .pricing-card.featured {
        border: 2px solid #DF9C34;
        transform: none;
        box-shadow: 0 20px 60px rgba(223, 156, 52, 0.2);
    }
    
    .pricing-header h3 {
        font-size: 0.9rem;
        padding-left: 0;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .pricing-features p {
        font-size: 0.8rem;
        text-align: left;
        padding-left: 1rem;
    }
    
    .pricing-features p::before {
        display: none;
    }
    
    .step-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item h3 {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
    }
    
    .step-item p {
        text-align: center;
    min-height: 3rem; /* Одинаковая высота для цен */
    display: flex;
    align-items: center;
    justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .step-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .info-btn {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 0.6rem;
    }
}

/* ===============================================
   НОВЫЕ МОБИЛЬНЫЕ СТИЛИ - ПРОСТОЕ МАСШТАБИРОВАНИЕ
   =============================================== */

/* Переопределяем все существующие мобильные стили для простого масштабирования */

/* Удаляем дублирующиеся стили навбара - используем универсальные */
    
    .hero-content {
        grid-template-columns: 1fr !important; /* Одна колонка для мобильной версии */
        gap: 1rem !important;
        transform: scale(1.0) !important;
        transform-origin: center !important;
    }
    
    .hero-text {
        order: 1;
    }
    
    
    .hero-buttons {
        flex: 0.7;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Сохраняем 2 колонки */
        gap: 1.5rem !important;
        transform: scale(1.0) !important;
        transform-origin: center !important;
    }
    
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        transform: scale(1.0) !important;
        transform-origin: center !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .pricing-bottom {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 1rem !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr !important; /* Сохраняем две колонки */
        gap: 2rem !important;
        transform: scale(1.0) !important;
        transform-origin: center !important;
        align-items: start !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
    }
}

/* Удаляем дублирующиеся правила - уже определены выше */

    .logo-img {
        height: 60px !important; /* Увеличено с 50px до 60px для соответствия новой высоте навбара */
    }
    
    /* Hero секция - сохраняем структуру, но уменьшаем */
    .hero-content {
        grid-template-columns: 1fr !important; /* Одна колонка для мобильной версии */
        gap: 1rem !important;
        transform: scale(0.85) !important;
        transform-origin: center !important;
    }
    
    .hero-text {
        order: 1;
    }
    
    
    .hero-buttons {
        flex: 0.7;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    
    
    /* Benefits секция - сохраняем 2x2 сетку */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Сохраняем 2 колонки */
        gap: 1rem !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
    }
    
    /* Pricing секция - треугольник, просто меньше */
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        margin-top: -4.5rem !important;
        justify-content: center !important;
        align-items: start !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: stretch !important;
        padding: 0 !important;
        max-width: 100% !important;
        justify-items: stretch !important;
    }
    
    .pricing-card {
        margin-bottom: 1rem !important;
    }
    
    /* Test секция - сохраняем две колонки */
    .test-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .test-section .container {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr !important; /* Сохраняем две колонки */
        gap: 1rem !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        align-items: start !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    
    /* Team секция */
        transform: scale(0.9) !important;
        transform-origin: center !important;
    }
    
    /* Reviews секция */
    .reviews {
        padding: 1.5rem 0 !important;
    }
    
    .reviews .section-title {
        margin-bottom: 0.5rem !important;
    }
    
    .reviews-subtitle {
        margin-bottom: -2rem !important;
    }
    
    .reviews-grid {
        margin-top: -4.5rem !important;
    }
    
    .reviews-cta {
        margin-top: -4.5rem !important;
    }
    
    .slider-controls {
        margin-top: 0.1rem !important;
    }
    
    .testimonials-slider {
        transform: scale(0.9) !important;
        transform-origin: center !important;
    }
    
    /* FAQ секция */
    .faq-list {
        transform: scale(0.9) !important;
        transform-origin: center !important;
    }
    
    /* News секция */
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Сохраняем 2 колонки */
        gap: 1rem !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        margin-top: -0.5rem !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 90% !important;
    }
    
    /* Общие стили */
    .container {
        padding: 0 1rem !important;
    }
    
    .section-title {
        font-size: var(--font-3xl) !important;
        margin-bottom: 0rem !important;
    }
    
    .pricing .section-title {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .pricing-installment-info {
        margin: 0.5rem auto 1rem auto !important;
        padding: 0.2rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .pricing {
        padding: 1rem 0 !important;
    }
}

/* Специальный медиа-запрос для диапазона 373-470px */
@media (max-width: 470px) and (min-width: 373px) {
    /* Test секция - центрирование для узких экранов */
    .test-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .test-section .container {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        transform: scale(0.85) !important;
        transform-origin: center !important;
        align-items: start !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .test-text {
        text-align: center !important;
        width: 100% !important;
    }
    
    .section-title {
        text-align: center !important;
    }
    
    .test-description {
        text-align: center !important;
    }
    
    .test-features {
        text-align: center !important;
        width: 100% !important;
    }
    
    .feature-item {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .test-btn-container {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Удаляем дублирующиеся стили навбара - используем универсальные */

    /* Hero секция */
    .hero-content {
        grid-template-columns: 1fr !important; /* Одна колонка для мобильной версии */
        gap: 0.5rem !important;
        transform: scale(0.75) !important;
        transform-origin: center !important;
    }

    .hero-text {
        order: 1;
    }
    
    
    .hero-buttons {
        flex: 0.7;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    
    
    .step-icon {
        font-size: 1rem;
        margin-top: 0.1rem;
    }
    
    /* Benefits секция */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Сохраняем 2 колонки */
        gap: 0.5rem !important;
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }
    
    /* Pricing секция - треугольник, еще меньше */
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        transform: scale(0.8) !important;
        transform-origin: center !important;
        margin-top: -4.5rem !important;
        justify-content: center !important;
        align-items: start !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: stretch !important;
        padding: 0 !important;
        max-width: 100% !important;
        justify-items: stretch !important;
    }
    
    /* Test секция */
    .test-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .test-section .container {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    .test-content {
        grid-template-columns: 1fr 1fr !important; /* Сохраняем две колонки */
        gap: 0.5rem !important;
        transform: scale(0.8) !important;
        transform-origin: center !important;
        align-items: start !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .test-text {
        text-align: center !important;
        width: 100% !important;
    }
    
    .section-title {
        text-align: center !important;
    }
    
    .test-description {
        text-align: center !important;
    }
    
    .test-features {
        text-align: center !important;
        width: 100% !important;
    }
    
    .feature-item {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .test-btn-container {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    
    /* Team секция */
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }
    
    /* Reviews секция */
    .reviews {
        padding: 0.8rem 0 !important;
    }
    
    .reviews .section-title {
        margin-bottom: 0.2rem !important;
    }
    
    .reviews-subtitle {
        margin-bottom: -3rem !important;
    }
    
    .reviews-grid {
        margin-top: -4rem !important;
    }
    
    .reviews-cta {
        margin-top: -4.5rem !important;
    }
    
    .slider-controls {
        margin-top: 0rem !important;
    }
    
    .testimonials-slider {
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }
    
    /* FAQ секция */
    .faq-list {
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }
    
    /* News секция */
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Сохраняем 2 колонки */
        gap: 0.5rem !important;
        transform: scale(0.8) !important;
        transform-origin: center !important;
        margin-top: -0.8rem !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 95% !important;
    }
    
    /* Общие стили */
    .container {
        padding: 0 0.5rem !important;
    }
    
    .section-title {
        font-size: var(--font-2xl) !important;
        margin-bottom: 0rem !important;
    }
    
    .pricing .section-title {
        margin-top: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .pricing-installment-info {
        margin: 0 0.5rem 0 0.5rem !important;
        padding: 0.1rem !important;
        text-align: center !important;
    }
    
    .pricing {
        padding: 0.5rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
}

/* Дополнительные стили для сохранения читаемости */
@media (max-width: 768px) {
    /* Убеждаемся, что текст остается читаемым */
    .hero-titles-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 3rem !important; /* Центрирование текста по вертикали */
        text-align: left !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .btn {
        font-size: 0.85rem !important;
        padding: 1.2rem 1.8rem !important;
        min-height: 48px !important; /* Для удобства нажатия */
        min-width: 280px !important; /* Одинаковая ширина для всех кнопок */
        max-width: 280px !important;
        width: 280px !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 3rem !important; /* Центрирование текста по вертикали */
    }
    
    .hero-buttons {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-left: -3rem !important; /* Выдвигаем за левый край контейнера */
        padding-left: 3rem !important;
        width: calc(100% + 6rem) !important; /* Расширяем на ширину отступов */
        position: relative !important;
        left: 0 !important;
    }
    
    .hero-buttons .btn {
        font-size: 0.75rem !important;
        font-weight: 900 !important;
        padding: 0.7rem 0.8rem 0.3rem 0.8rem !important;
        min-width: none !important;
        max-width: none !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 3rem !important; /* Центрирование текста по вертикали */
        margin: 0 !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        align-items: center !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
        text-align: left !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        text-align: left !important;
    }

    .hero-buttons-with-image {
        gap: 0.3rem;
        margin-left: 0;
        padding: 0 0.5rem;
        justify-content: space-around;
    }

    .hero-image {
        flex: 0 0 150px; /* Уменьшено для маленьких экранов */
        margin-top: 0;
        height: 100%;
        margin-left: 0;
        align-items: flex-end;
        margin-bottom: -80px;
    }

    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: 100%;
        transform: scale(1.3);
        object-position: bottom;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-buttons-with-image {
        gap: 0.1rem;
        margin-left: 0;
        padding: 0 0.3rem;
        justify-content: space-around;
    }

    .hero-image {
        flex: 0 0 120px; /* Уменьшено для очень маленьких экранов */
        margin-top: 0;
        height: 100%;
        margin-left: 0;
        align-items: flex-end;
        margin-bottom: -80px;
    }

    .hero-image img {
        max-width: 100%;
        width: 100%;
        height: 100%;
        transform: scale(1.3);
        object-position: bottom;
    }

    .hero-buttons {
        gap: 0.3rem;
    }
    
    .btn {
        font-size: 0.85rem !important;
        padding: 1.2rem 1.8rem !important;
        min-width: 280px !important;
        max-width: 280px !important;
        width: 280px !important;
        margin: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        line-height: 3rem !important; /* Центрирование текста по вертикали */
    }
    
    .hero-stats {
        margin-left: -1.5rem !important; /* Выдвигаем за левый край контейнера */
        padding-left: 1.5rem !important; /* Добавляем отступ для содержимого */
        width: calc(100% + 3rem) !important; /* Расширяем на ширину отступов */
        position: relative !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
}

/* Убираем все старые стили pricing */
@media (max-width: 1024px) {
    


}

@media (max-width: 768px) {
    


}

@media (max-width: 480px) {
    



}

.stat-label {
    font-size: 0.7rem !important;
}

/* Убираем все старые стили pricing */
@media (max-width: 1024px) {
    


}

@media (max-width: 768px) {
    


}

@media (max-width: 480px) {
    


}

/* ===========================================
   DASHBOARD STYLES - ЛИЧНЫЙ КАБИНЕТ
   =========================================== */

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    margin-top: 60px; /* Добавляем отступ для фиксированного header */
}

.dashboard-content {
    display: flex;
    width: 100%;
    position: relative;
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: #2521CE;
    color: white;
    padding: 1rem 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 60px; /* Отступ под header */
    left: 0;
    height: calc(100vh - 60px); /* Высота минус header */
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.dashboard-sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    padding-top: 80px; /* Добавляем отступ для header */
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.dashboard-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 1rem;
}

.dashboard-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.dashboard-user-details h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-user-details p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 1rem 1rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-logo .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
    display: block;
}

/* Sidebar Navigation */
.dashboard-nav {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-lang-flags {
    /* скрыто по требованию */
    display: none !important;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dashboard-nav .nav-item:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #3498db;
}

.dashboard-nav .nav-item.active {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.dashboard-nav .nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.dashboard-nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.dashboard-nav-item.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dashboard-nav-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 250px;
    padding: 1rem 2rem 2rem 2rem;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
    width: calc(100% - 250px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard-content-header {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.dashboard-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.dashboard-breadcrumb a:hover {
    text-decoration: underline;
}

/* Dashboard Header */
.dashboard-header {
    background: #2521CE;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 60px;
    min-height: 60px;
    overflow: hidden;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-height: 60px;
    padding: 0 1rem;
}

.dashboard-logo .logo {
    height: 35px;
    width: auto;
    max-height: 35px;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.lang-flags {
    display: flex;
    gap: 0.5rem;
}

.lang-flag {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-flag.active {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.lang-flag:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.2);
}

/* Удаляем дублирующееся правило - уже определено выше */

/* Мобильная версия - показываем кнопку */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Удаляем дублирующиеся правила для span - уже определены выше */

/* Dashboard Sections */
.dashboard-section {
    display: block;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem;
    margin: 0 0 1rem 0;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 0; /* Убираем верхний отступ */
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid #3498db;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Специфичный стиль для уроков грамматики - синий цвет для "СЛОВА И ВЫРАЖЕНИЯ" */
.lesson-container .section-title,
.vocabulary-grammar-container .section-title,
.vocabulary-section .section-title,
.grammar-section .section-title {
    color: #2521CE !important;
}

.section-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.stat-badge {
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 12px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
    transition: transform 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 33, 206, 0.4);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2521CE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1a1a8a;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Learning Sections */
.learning-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    min-height: 200px;
    justify-content: space-between;
}

.section-card.active {
    background: linear-gradient(135deg, #2521CE 0%, #1a1a8a 100%);
    color: white;
    border-color: #2521CE;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 33, 206, 0.3);
}

.section-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9fafb;
}

.section-card:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-icon {
    font-size: 48px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: inherit;
}

.section-content p {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.8;
}

.coming-soon {
    display: inline-block;
    background: #DF9C34;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-arrow {
    font-size: 24px;
    color: #666;
    flex-shrink: 0;
    margin-top: auto;
}

.section-card.active .section-arrow {
    color: white;
}

.section-card.disabled .section-arrow {
    color: #ccc;
}

/* Mobile responsiveness for learning sections */
@media (max-width: 768px) {
    .learning-sections {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }
    
    .section-card {
        min-height: 160px;
        padding: 20px;
    }
    
    .section-icon {
        font-size: 40px;
    }
    
    .section-content h3 {
        font-size: 18px;
    }
    
    .section-content p {
        font-size: 13px;
    }
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    align-items: stretch;
}

.course-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.listening-page .course-card {
    background: linear-gradient(145deg, #f8f9ff, #eef2ff);
    border: 1px solid rgba(37, 33, 206, 0.08);
    box-shadow: 0 20px 45px rgba(37, 33, 206, 0.12);
}

.listening-page .course-card .course-progress {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: inset 0 1px 4px rgba(37, 33, 206, 0.08);
    margin-top: 1.25rem;
}

.listening-page .course-card .progress-bar {
    background: rgba(37, 33, 206, 0.12);
    height: 10px;
}

.listening-page .course-card .progress-fill {
    background: linear-gradient(90deg, #2521CE, #5f5bff);
}

.listening-page .course-card .course-description {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    color: #4a4a68;
}

.listening-page .course-card .course-actions {
    margin-top: 1.5rem;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.course-header {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0; /* Скругление только сверху, совпадает с карточкой */
    justify-content: space-between;
    align-items: flex-start;
}

.course-level {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.course-duration {
    font-size: 0.9rem;
    opacity: 0.9;
}

.course-progress {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ecf0f1;
}

.course-description {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #ecf0f1;
    flex-grow: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.course-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#2521CE 0deg 234deg, rgba(37, 33, 206, 0.1) 234deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.1);
    transition: all 0.3s ease;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: transparent;
    border-radius: 50%;
}

.progress-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2521CE;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e7ff 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(37, 33, 206, 0.1);
    box-shadow: 0 2px 4px rgba(37, 33, 206, 0.08);
    transition: all 0.3s ease;
    z-index: 1;
}

.progress-percentage:hover {
    background: linear-gradient(135deg, #e8e7ff 0%, #d8d7ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 33, 206, 0.12);
}

.course-body {
    padding: 1.5rem;
}

.course-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.course-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-status.active {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
}

.course-status.completed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.course-status.inactive {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}


.progress-details {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 0.5rem;
}

.course-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #495057;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-icon {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.course-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.course-btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.course-btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
}

.course-btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.course-btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* Course Actions Panel */
.course-actions-panel {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #ecf0f1;
}

.course-actions-panel h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.course-actions-panel p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.course-actions-panel .course-btn {
    margin: 0 0.5rem;
    min-width: 200px;
}

/* Analytics Section */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    border: 1px solid #ecf0f1;
    transition: transform 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.analytics-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.main-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.main-stat:hover::before {
    transform: scale(1);
}

.main-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.main-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    z-index: 1;
    position: relative;
}

.main-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    z-index: 1;
    position: relative;
}

/* Progress Charts */
.progress-chart {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.progress-chart h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.circular-progress {
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#2521CE 0deg, #2521CE var(--percentage, 0deg), #f0f0f0 var(--percentage, 0deg));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.1);
    transition: all 0.3s ease;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2521CE;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.progress-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.time-filter {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #ecf0f1;
    background: white;
    color: #7f8c8d;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.chart-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.chart-visual {
    flex: 1;
    text-align: center;
}

.chart-details {
    flex: 1;
}

.chart-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.chart-detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.chart-detail-value {
    color: #3498db;
    font-weight: 700;
}

/* Activity Timeline */
.activity-timeline {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.timeline-summary {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.timeline-content {
    flex: 1;
}

.timeline-activity {
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.3rem 0;
}

.timeline-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

/* Recommendations */
.recommendations {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.recommendations h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.recommendation-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.recommendation-item:hover::before {
    transform: scale(1);
}

.recommendation-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    z-index: 1;
    position: relative;
}

.recommendation-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.recommendation-title {
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.recommendation-description {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    line-height: 1.5;
}

.recommendation-actions {
    display: flex;
    gap: 1rem;
}

.recommendation-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.recommendation-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Profile Section */
.profile-content {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-info {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.avatar-container {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #3498db;
    background: #f8f9fa;
}

.avatar-container:hover {
    transform: scale(1.05);
    border-color: #2980b9;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.avatar-container .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 2rem;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.clickable-avatar {
    user-select: none;
}

.profile-details {
    flex: 1;
}

.profile-details h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-email,
.profile-phone {
    margin: 0 0 0.5rem 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.profile-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.profile-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
}

.profile-form h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.form-actions .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Security Settings */
.security-settings {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
}

.security-settings h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    transition: transform 0.3s ease;
    text-align: center;
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.security-item .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.security-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.security-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Notification Settings */
.notification-settings {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
}

.notification-settings h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notification-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    transition: transform 0.3s ease;
    text-align: center;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.notification-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Account Actions */
.account-actions {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
}

.account-actions h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.action-buttons .btn {
    width: 100%;
    max-width: 300px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 1px solid #e74c3c;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Rating Section */
.rating-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-select {
    padding: 0.8rem 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.user-total-rating {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #ecf0f1;
}

.user-total-rating h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.rating-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.rating-stat {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 33, 206, 0.1);
}

.rating-stat.total {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border: none;
}

.rating-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 500;
}

.rating-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #DF9C34;
}

.rating-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #ecf0f1;
}

.rating-table-container h3 {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid #ecf0f1;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.rating-table th,
.rating-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.rating-table th {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rating-table tr:hover {
    background: #f8f9fa;
}

.rating-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #ecf0f1;
}

.leaderboard-section h3 {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid #ecf0f1;
}

.leaderboard-container {
    padding: 0;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.leaderboard-table th {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.leaderboard-table tr:hover {
    background: #f8f9fa;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

/* Category Ratings */
.category-ratings {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #ecf0f1;
}

.category-ratings h3 {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid #ecf0f1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.category-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.category-card h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.category-progress .progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
}

.category-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Desktop styles - show sidebar by default */
@media (min-width: 769px) {
    .dashboard-sidebar {
        position: fixed;
        top: 60px; /* Отступ под header */
        left: 0;
        height: calc(100vh - 60px); /* Высота минус header */
        width: 250px;
        transform: translateX(0);
        transition: transform 0.3s ease;
        z-index: 999;
        background: #2521CE;
        display: block;
    }
    
    .dashboard-main {
        margin-left: 250px;
        margin-top: 60px;
        padding: 2rem;
        width: calc(100% - 250px);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        background: #2521CE;
        display: block;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        margin-top: 0; /* Убираем верхний отступ */
        padding: 0 1rem 1rem 1rem; /* Убираем верхний отступ полностью */
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .dashboard-header {
        position: relative;
        z-index: 2;
        padding: 0.5rem 1rem;
        height: 60px;
        min-height: 60px;
    }
    
    .dashboard-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .lang-flags {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
        background: transparent;
        color: white;
        border: 2px solid rgba(255,255,255,0.3);
        padding: 0.3rem;
        border-radius: 6px;
        cursor: pointer;
        margin-left: auto;
        height: 40px;
        width: 40px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.5);
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .course-card {
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .course-header {
        padding: 1.2rem;
        flex-direction: column;
        gap: 0.1rem;
        align-items: flex-start;
        width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0; /* Скругление только сверху */
    }
    
    .course-progress {
        padding: 1rem;
    }
    
    .course-description {
        padding: 1rem;
    }
    
    .course-description p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .course-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .course-level {
        margin-bottom: 0.5rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .course-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
    }

    .course-card .btn-primary,
    .course-card .btn-secondary,
    .course-card .btn-outline {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .lesson-actions {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
    }

    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
    
    .analytics-card h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.1rem;
    }
    
    .chart-content {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .time-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .rating-filters {
        flex-direction: column;
        gap: 0.1rem;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .rating-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .rating-table-container,
    .leaderboard-section,
    .category-ratings {
        overflow-x: auto;
    }
    
    .rating-table,
    .leaderboard-table {
        min-width: 600px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        padding: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    
    .security-options,
    .notification-options {
        gap: 0.1rem;
    }
    
    .security-item,
    .notification-item {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .security-item .btn,
    .action-buttons .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .recommendation-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        margin-top: 0; /* Убираем верхний отступ */
        padding: 0 0.5rem 0.5rem 0.5rem; /* Убираем верхний отступ полностью */
        width: 100%;
        margin-left: 0;
    }
    
    .dashboard-header {
        padding: 0.5rem;
    }
    
    .dashboard-title {
        font-size: 1.2rem;
    }
    
    .section-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-stats {
        flex-direction: column;
        gap: 0.1rem;
        align-items: center;
        margin: 1.5rem 0;
    }
    
    .stat-badge {
        padding: 1rem 1.5rem;
        min-width: 140px;
        width: 100%;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        padding: 0.5rem;
    }
    
    .course-card {
        padding: 1rem;
    }
    
    .course-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0; /* Скругление только сверху */
    }
    
    .course-progress {
        padding: 0.8rem;
    }
    
    .course-description {
        padding: 0.8rem;
    }
    
    .course-description p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .course-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .course-meta {
        font-size: 1.05rem;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }
    
    .course-level {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .course-stat {
        padding: 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .analytics-card {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .analytics-card h3 {
        font-size: 1.1rem;
    }
    
    .progress-chart {
        padding: 1.5rem;
    }
    
    .chart-container {
        gap: 1.5rem;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-circle::before {
        width: 65px;
        height: 65px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .progress-info {
        gap: 0.8rem;
    }
    
    .progress-detail {
        gap: 0.3rem;
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .time-filter {
        flex-direction: row;
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        flex: 1;
        min-width: 60px;
        text-align: center;
    }
    
    .rating-filters {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .user-total-rating {
        padding: 1rem;
    }
    
    .user-total-rating h3 {
        font-size: 1.2rem;
    }
    
    .rating-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .rating-stat {
        padding: 0.8rem;
    }
    
    .rating-stat .stat-number {
        font-size: 1.4rem;
    }
    
    .rating-table-container,
    .leaderboard-section,
    .category-ratings {
        margin-bottom: 1rem;
    }
    
    .rating-table-container h3,
    .leaderboard-section h3,
    .category-ratings h3 {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .rating-table th,
    .rating-table td,
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card h4 {
        font-size: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
        padding: 1rem;
    }
    
    .avatar-container {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder {
        font-size: 1.5rem;
    }
    
    .avatar-overlay {
        font-size: 1rem;
    }
    
    .profile-details h3 {
        font-size: 1.2rem;
    }
    
    .profile-email,
    .profile-phone {
        font-size: 0.9rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .profile-form {
        padding: 1rem;
    }
    
    .profile-form h3 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .security-settings,
    .notification-settings,
    .account-actions {
        padding: 1rem;
    }
    
    .security-settings h3,
    .notification-settings h3,
    .account-actions h3 {
        font-size: 1.2rem;
    }
    
    .security-item,
    .notification-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .security-info h4,
    .notification-info h4 {
        font-size: 1rem;
    }
    
    .security-info p,
    .notification-info p {
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .security-item .btn,
    .action-buttons .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .btn-danger {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Mobile menu for dashboard */
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
        background: transparent;
        color: white;
        border: 2px solid rgba(255,255,255,0.3);
        padding: 0.3rem;
        border-radius: 6px;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.3s ease;
        height: 40px;
        width: 40px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.5);
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        background: #2521CE;
        display: block;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .lang-flags {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.8);
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-menu-content {
        background: #2521CE;
        width: 80%;
        max-width: 300px;
        height: 100%;
        padding: 1rem;
        overflow-y: auto;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-menu-nav a {
        color: white;
        text-decoration: none;
        padding: 0.75rem;
        border-radius: 6px;
        transition: background 0.3s ease;
    }
    
    .mobile-menu-nav a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .mobile-menu-nav a.active {
        background: rgba(255,255,255,0.2);
    }
}

/* ===========================================
   COURSES PAGE STYLES - СТРАНИЦА КУРСОВ
   =========================================== */

.courses-page {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.courses-header {
    text-align: center;
    margin-bottom: 4rem;
}

.courses-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.courses-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Course Levels */
.course-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.level-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.level-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.level-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    text-align: center;
}

.level-description {
    color: #7f8c8d;
    text-align: center;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.level-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

.level-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Modules Section */
.modules-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.modules-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.modules-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.module-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #e74c3c;
}

.module-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.module-description {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.module-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.module-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.module-stats .stat i {
    color: #e74c3c;
}

.module-progress {
    margin-bottom: 1.5rem;
}

.module-actions {
    text-align: center;
}

.module-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.module-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

/* Lessons Section */
.lessons-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.lessons-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.lessons-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.lesson-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 100%;
    word-wrap: break-word;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #DF9C34, #F4B942);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lesson-card:hover::before {
    transform: scaleX(1);
}

.lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #f39c12;
}

.lesson-card.completed {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #d5f4e6 0%, #a8e6cf 100%);
}

.lesson-card.completed::before {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.lesson-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lesson-card.completed .lesson-number {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.lesson-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.lesson-info {
    flex: 1;
}

.lesson-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.lesson-title-ru {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.lesson-level {
    background: #DF9C34;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lesson-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.lesson-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.lesson-vocabulary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #DF9C34;
}

.lesson-vocabulary h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.vocabulary-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vocab-item {
    background: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}

.lesson-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lesson-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.lesson-duration i {
    color: #f39c12;
}

.lesson-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.lesson-status.pending {
    background: #fff3cd;
    color: #856404;
}

.lesson-status.completed {
    background: #d4edda;
    color: #155724;
}

.lesson-actions {
    flex-shrink: 0;
}

.lesson-btn {
    background: linear-gradient(45deg, #DF9C34, #F4B942);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    justify-content: center;
}

.lesson-btn.review {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.lesson-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Mobile Responsive for Courses */
@media (max-width: 768px) {
    .courses-page {
        padding: 6rem 0 2rem;
    }
    
    .courses-title {
        font-size: 2rem;
    }
    
    .course-levels {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .level-card {
        padding: 1.5rem;
    }
    
    .level-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modules-section,
    .lessons-section {
        padding: 2rem 1rem;
    }
    
    .modules-header,
    .lessons-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    
    .lesson-card {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .lesson-meta {
        justify-content: center;
    }
}

/* Lesson Progress Styles */
.lesson-card.passed {
    border-color: #DF9C34;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
}

.lesson-card.passed::before {
    background: linear-gradient(45deg, #DF9C34, #F4B942);
}

.lesson-progress-info {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: rgba(37, 33, 206, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(37, 33, 206, 0.1);
}

.progress-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.score-value.excellent {
    background: #f8f9fa;
    color: #333;
}

.score-value.good {
    background: #f8f9fa;
    color: #333;
}

.score-value.poor {
    background: #f8f9fa;
    color: #333;
}

.lesson-progress-info .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(37, 33, 206, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.lesson-progress-info .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #DF9C34, #F4B942);
    border-radius: 4px;
    transition: width 0.3s ease;
}

@media (max-width: 480px) {
    .courses-page {
        padding: 5rem 0 2rem;
    }
    
    .courses-title {
        font-size: 1.8rem;
    }
    
    .level-card {
        padding: 1rem;
    }
    
    .level-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .module-header {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .module-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===========================================
   CONGRATULATION MODAL - ПОЗДРАВИТЕЛЬНОЕ ОКНО
   =========================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.congratulation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.congratulation-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.congratulation-content h2 {
    color: #2521CE;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.congratulation-content p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.congratulation-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.congratulation-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.congratulation-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #DF9C34;
}

.congratulation-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.congratulation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.congratulation-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.congratulation-actions .btn-primary {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
}

.congratulation-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 33, 206, 0.3);
}

.congratulation-actions .btn-secondary {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
}

.congratulation-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 156, 52, 0.3);
}

/* Mobile Responsive for Congratulation Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .congratulation-icon {
        font-size: 3rem;
    }
    
    .congratulation-content h2 {
        font-size: 1.5rem;
    }
    
    .congratulation-stats {
        gap: 0.1rem;
    }
    
    .congratulation-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .congratulation-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .congratulation-actions .btn {
        width: 100%;
    }
}

/* ===========================================
   LESSON PAGE STYLES - СТРАНИЦА УРОКА
   =========================================== */

/* Test Layout Styles */
.test-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.test-counter {
    text-align: center;
    margin-bottom: 1rem;
}

.question-counter {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

.test-question {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.question-text h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-label:hover {
    background: #e3f2fd;
    border-color: #2521CE;
}

.option-label input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.option-label input[type="radio"]:checked + .option-text {
    color: #2521CE;
    font-weight: 600;
}

.option-text {
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s ease;
}

.test-actions {
    text-align: center;
    margin-top: 1rem;
}

.test-btn {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 156, 52, 0.3);
}

/* Mobile Responsive for Test */
@media (max-width: 768px) {
    .test-content {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .test-question {
        padding: 1.5rem;
    }
    
    .question-text h4 {
        font-size: 1.3rem;
    }
    
    .option-label {
        padding: 0.8rem 1rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .test-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Grammar Tables Styles */
.grammar-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.grammar-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.grammar-table thead {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
}

.grammar-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: none;
}

.grammar-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.grammar-table tbody tr:hover {
    background-color: #f8f9fa;
}

.grammar-table tbody tr:last-child {
    border-bottom: none;
}

.grammar-table td {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border: none;
}

.grammar-table td:first-child {
    font-weight: 600;
    color: #2521CE;
    background-color: #f8f9ff;
}

.grammar-table td:nth-child(2) {
    color: #333;
}

.grammar-table td:nth-child(3) {
    color: #666;
    font-style: italic;
}

.examples {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #28a745;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-examples {
    background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
    border-left: 4px solid #dc3545;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.error-examples ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-examples li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tips {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tips li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Mobile Responsive for Grammar Tables */
@media (max-width: 768px) {
    .grammar-table {
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .grammar-table th,
    .grammar-table td {
        padding: 0.8rem 1rem;
    }
    
    .grammar-table th {
        font-size: 1rem;
    }
    
    .grammar-table td {
        font-size: 0.9rem;
    }
    
    .examples,
    .error-examples,
    .tips {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .error-examples li,
    .tips li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .grammar-table {
        font-size: 0.8rem;
    }
    
    .grammar-table th,
    .grammar-table td {
        padding: 0.6rem 0.8rem;
    }
    
    .grammar-table th {
        font-size: 0.9rem;
    }
    
    .grammar-table td {
        font-size: 0.8rem;
    }
    
    .examples,
    .error-examples,
    .tips {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .error-examples li,
    .tips li {
        font-size: 0.9rem;
    }
}

.lesson-header {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 60px;
}

.lesson-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.lesson-progress {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.lesson-progress .progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.lesson-progress .progress-fill {
    background: white;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.lesson-progress .progress-text {
    font-size: 0.7rem;
    color: white;
    text-align: center;
}

.lesson-timer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.lesson-timer i {
    color: #DF9C34;
}

.lesson-main {
    margin-top: 60px;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 60px);
}

.lesson-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lesson-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.lesson-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2521CE;
    margin: 0 0 0.5rem 0;
}

.lesson-title-ru {
    font-size: 1.8rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 2rem 0;
}

.lesson-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.lesson-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    font-weight: 600;
}

.meta-item i {
    color: #f39c12;
}

/* Lesson Steps */
.lesson-steps {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lesson-step {
    display: none;
    padding: 3rem;
    border-bottom: 1px solid #ecf0f1;
}

.lesson-step:last-child {
    border-bottom: none;
}

.lesson-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.step-number {
    display: none; /* Убираем синие круги с номерами */
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.step-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Theory Step */
.theory-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
}

.theory-text {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.theory-examples {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2ecc71;
}

.theory-examples h4 {
    color: #155724;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.theory-examples ul {
    margin: 0;
    padding-left: 1.5rem;
}

.theory-examples li {
    color: #155724;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Video Step */
.video-container {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-player {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #3498db;
}

/* Защита от скачивания - только контекстное меню */
video {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Скрытие только кнопки скачивания в контекстном меню */
video::-webkit-media-controls {
    -webkit-appearance: none;
}

/* Оставляем стандартные контролы, убираем только скачивание */

/* Упрощенная защита - только от скачивания */

.video-placeholder p {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
}

/* Блокировщик иконок Vimeo (верхний правый угол) */
#vimeo-icons-blocker {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: #000;
    z-index: 1000;
    pointer-events: auto;
    border-radius: 0 15px 0 0;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Блокировщик нижней панели Vimeo (V и VIMEO) */
#vimeo-bottom-blocker {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 50px;
    background: #000;
    z-index: 1000;
    pointer-events: auto;
    border-radius: 15px 0 0 0;
    box-shadow: -2px -2px 8px rgba(0, 0, 0, 0.3);
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
    #vimeo-icons-blocker {
        width: 90px;
        height: 100px;
        border-radius: 0 10px 0 0;
    }
    
    #vimeo-bottom-blocker {
        width: 90px;
        height: 40px;
        border-radius: 10px 0 0 0;
    }
}

@media (max-width: 480px) {
    #vimeo-icons-blocker {
        width: 70px;
        height: 80px;
        border-radius: 0 8px 0 0;
    }
    
    #vimeo-bottom-blocker {
        width: 70px;
        height: 35px;
        border-radius: 8px 0 0 0;
    }
}

/* Полноэкранный режим */
@media (min-width: 1200px) {
    #vimeo-icons-blocker {
        width: 150px;
        height: 140px;
        border-radius: 0 20px 0 0;
    }
    
    #vimeo-bottom-blocker {
        width: 150px;
        height: 60px;
        border-radius: 20px 0 0 0;
    }
}

.play-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.play-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
}



/* Download button styles removed for content protection */

/* 2FA Setup Styles */
.twofa-setup {
    max-width: 600px;
    margin: 0 auto;
}

.setup-step {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.setup-step.active {
    display: block;
}

.app-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-option {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.app-option:hover {
    border-color: #2521CE;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 33, 206, 0.15);
}

.app-icon {
    font-size: 3rem;
    color: #2521CE;
    margin-bottom: 1rem;
}

.app-option h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.app-option p {
    color: #666;
    margin-bottom: 1.5rem;
}


.qr-container {
    text-align: center;
    margin: 2rem 0;
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.manual-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.manual-code code {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 1px solid #dee2e6;
}

.copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5a6268;
    transform: scale(1.05);
}

.code-input {
    margin: 2rem 0;
    text-align: center;
}

.code-input input {
    width: 200px;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.code-input input:focus {
    border-color: #2521CE;
    box-shadow: 0 0 0 3px rgba(37, 33, 206, 0.1);
}

.verification-status {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.verification-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    text-align: center;
    margin: 2rem 0;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.backup-codes {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.backup-codes h3 {
    color: #333;
    margin-bottom: 1rem;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.backup-code {
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #dee2e6;
}

/* 2FA Management Styles */
.twofa-management {
    max-width: 800px;
    margin: 0 auto;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.status-icon {
    font-size: 3rem;
    color: #dc3545;
}

.status-info h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.status-info p {
    margin: 0;
    color: #666;
}

.status-actions {
    margin-left: auto;
}

.setup-card, .management-card, .disable-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2521CE;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.step-content p {
    margin: 0 0 1rem 0;
    color: #666;
}

.app-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.app-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.qr-section {
    text-align: center;
}

.qr-code img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.verification-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.verification-section input {
    width: 150px;
    padding: 0.75rem;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.3rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    outline: none;
}

.verification-section input:focus {
    border-color: #2521CE;
    box-shadow: 0 0 0 3px rgba(37, 33, 206, 0.1);
}

.backup-codes-section, .disable-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.backup-codes-section h4, .disable-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.codes-actions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.disable-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.option {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.option h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.option input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    outline: none;
}

.option input:focus {
    border-color: #2521CE;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn.danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}


/* Video Loading Message */
.video-loading-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Vocabulary Step */
.vocabulary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 2rem 0;
    text-align: center;
}

.vocabulary-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

.vocabulary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.vocabulary-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.vocab-word {
    flex: 1;
}

.vocab-word h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.3rem 0;
}

.pronunciation {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

.vocab-translation {
    flex: 1;
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
}

.vocab-audio-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.vocab-audio-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: scale(1.1);
}

.vocabulary-practice {
    text-align: center;
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.vocabulary-practice h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.pronunciation-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.pronunciation-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Test Step */
.test-content {
    max-width: 600px;
    margin: 0 auto;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border-radius: 15px;
}

.test-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.test-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.test-question-counter {
    font-weight: 600;
}

.test-timer {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.test-question {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.question-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

.option-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.test-actions {
    text-align: center;
}

.test-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.test-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

/* Results Step */
.results-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.results-summary h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 2rem 0;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(37, 33, 206, 0.1);
    box-shadow: 0 8px 32px rgba(37, 33, 206, 0.1);
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        #6c757d 0deg var(--score-angle, 0deg), 
        #f8f9fa var(--score-angle, 0deg) 360deg
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #2521CE;
    z-index: 2;
    position: relative;
}

.score-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    z-index: 2;
    position: relative;
}

.score-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    z-index: 2;
    position: relative;
}

.score-details {
    text-align: left;
    flex: 1;
}

.score-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.score-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.results-breakdown {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.results-breakdown h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
}

.breakdown-label {
    font-weight: 600;
    color: #2c3e50;
}

.breakdown-value {
    color: #2ecc71;
    font-weight: 700;
    font-size: 1.2rem;
}

.results-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.results-btn {
    padding: 1.3rem 3rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results-btn.secondary {
    background: linear-gradient(135deg, #2521CE 0%, #1a17a8 100%);
    color: white;
    border: 2px solid transparent;
}

.results-btn.secondary:hover {
    background: linear-gradient(135deg, #1a17a8 0%, #2521CE 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 33, 206, 0.4);
    border-color: #DF9C34;
}

.results-btn:not(.secondary) {
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
    color: white;
    border: 2px solid transparent;
}

.results-btn:not(.secondary):hover {
    background: linear-gradient(135deg, #F4B942 0%, #DF9C34 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(223, 156, 52, 0.4);
    border-color: #2521CE;
}

/* ===========================================
   УНИФИЦИРОВАННЫЕ СТИЛИ ДЛЯ ВСЕХ ТИПОВ УРОКОВ
   (Грамматика, Вокабулари, Листенинг, Ридинг)
   =========================================== */

/* Унифицированные стили для прогресс-баров во всех уроках */
.lesson-progress-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

/* Унифицированные стили для оценок - как в грамматике */
.score-value,
.score-value-white {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    color: white;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.score-value.excellent,
.score-value-white.excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.score-value.good,
.score-value-white.good {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.score-value.poor,
.score-value-white.poor {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Унифицированные стили для прогресс-баров - как в грамматике */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2521CE, #161454);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Унифицированные стили для кнопок во всех уроках - как в грамматике */
.lesson-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.lesson-actions .btn,
.lesson-actions .btn-primary,
.lesson-actions .btn-secondary,
.lesson-actions .btn-outline {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: 50px;
}

.lesson-actions .btn-primary {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(223, 156, 52, 0.2);
    border: 1px solid #DF9C34;
}

.lesson-actions .btn-primary:hover {
    background: linear-gradient(135deg, #DDB580 0%, #DF9C34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 156, 52, 0.3);
}

.lesson-actions .btn-secondary {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
    border: 1px solid #2521CE;
}

.lesson-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #161454 0%, #2521CE 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
}

.lesson-actions .btn-outline {
    background: transparent;
    color: #2521CE;
    border: 2px solid #2521CE;
}

.lesson-actions .btn-outline:hover {
    background: #2521CE;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 33, 206, 0.3);
}

.lesson-actions .btn-secondary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Увеличенные размеры кнопок на узких экранах */
@media (max-width: 768px) {
    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }
}

@media (max-width: 480px) {
    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }
}

@media (max-width: 360px) {
    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 60px !important;
    }
}

/* Унифицированные стили для кнопок в ридинге и других специальных кнопок */
.complete-lesson-btn,
.reading-complete-btn,
.answer-btn,
.respond-btn {
    padding: 1rem 2rem !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: 50px;
    width: 100%;
}

.complete-lesson-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.complete-lesson-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.complete-lesson-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none !important;
}

/* Увеличенные размеры step-btn и results-btn */
.step-btn,
.results-btn {
    padding: 1.3rem 3rem !important;
    font-size: 1.1rem !important;
    min-height: 56px !important;
}

.test-btn {
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    min-height: 50px !important;
}

/* Увеличенные размеры на узких экранах для всех кнопок уроков */
@media (max-width: 768px) {
    .complete-lesson-btn,
    .reading-complete-btn,
    .answer-btn,
    .respond-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }

    .step-btn,
    .results-btn {
        padding: 1.2rem 2.5rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }

    .test-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }
}

@media (max-width: 480px) {
    .complete-lesson-btn,
    .reading-complete-btn,
    .answer-btn,
    .respond-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }

    .step-btn,
    .results-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }

    .test-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
    }
}

@media (max-width: 360px) {
    .complete-lesson-btn,
    .reading-complete-btn,
    .answer-btn,
    .respond-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 60px !important;
    }

    .step-btn,
    .results-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 60px !important;
    }

    .test-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 60px !important;
    }
}

/* Унифицированные стили для текста в уроках */
.lesson-content {
    margin-bottom: 16px;
}

.lesson-description p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.lesson-vocabulary h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Белый текст только для заголовков блока "Слова" в уроках грамматики (если фон темный) */
.vocabulary-section h3,
.vocabulary-section h4 {
    color: white !important;
}

/* Темный текст для содержимого таблицы словаря */
.vocabulary-table th,
.vocabulary-table td,
.vocabulary-table p,
.vocabulary-table span,
.vocabulary-table div,
.vocab-english,
.vocab-russian,
.vocab-example {
    color: #2c3e50 !important;
}

.vocabulary-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.vocab-item {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.step-btn {
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
}

.step-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.step-btn.secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.step-btn:not(.secondary) {
    background: linear-gradient(135deg, #DF9C34 0%, #DDB580 100%);
    color: white;
}

.step-btn:not(.secondary):hover {
    background: linear-gradient(135deg, #DDB580 0%, #DF9C34 100%);
    transform: translateY(-2px);
}

/* Lesson page specific button styles */
.lesson-container .btn-primary,
.lesson-container .btn-secondary,
.results-actions .btn-primary,
.results-actions .btn-secondary {
    padding: 1.2rem 3rem;
    min-width: 200px;
}

/* Desktop optimization for Lesson Results */
@media (min-width: 769px) {
    .score-display {
        margin-bottom: 0.5rem;
    }
    
    .results-actions {
        margin-top: 0.25rem;
    }
}

/* Mobile Responsive for Lesson */
@media (max-width: 768px) {
    .lesson-nav {
        flex-direction: row;
        gap: 0.1rem;
        text-align: center;
    }
    
    .lesson-progress {
        max-width: 250px;
    }
    
    .lesson-main {
        margin-top: 60px;
        padding: 0;
    }
    
    .lesson-info {
        padding: 1rem 1.5rem;
    }
    
    .lesson-title {
        font-size: 2rem;
    }
    
    .lesson-meta {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .lesson-step {
        padding: 2rem 1rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .video-player {
        height: 250px;
    }
    
    .vocabulary-item {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .test-header {
        flex-direction: column;
        gap: 0.1rem;
        text-align: center;
    }
    
    .test-info {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .score-display {
        flex-direction: row;
        gap: 0.3rem;
        align-items: baseline;
    }
    
    .score-details {
        text-align: center;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .step-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .lesson-main {
        margin-top: 50px;
    }
    
    .lesson-info {
        padding: 1rem;
    }
    
    .lesson-title {
        font-size: 1.8rem;
    }
    
    .lesson-step {
        padding: 1.5rem 1rem;
    }
    
    .video-player {
        height: 200px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
}

/* ===========================================
   ANALYTICS ENHANCEMENTS - УЛУЧШЕНИЯ АНАЛИТИКИ
   =========================================== */

/* Time Filter Buttons */
.time-filter {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 10px;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.filter-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Enhanced Analytics Cards */
.analytics-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.analytics-card:hover::before {
    transform: scaleX(1);
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Main Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 33, 206, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scale(1);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 33, 206, 0.15);
    border-color: rgba(37, 33, 206, 0.2);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
    z-index: 1;
    position: relative;
    margin-bottom: 0.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    position: relative;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    transition: transform 0.3s ease;
    text-align: center;
    color: #DF9C34;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}

/* Progress Chart Enhancements */
.chart-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.circular-progress {
    flex-shrink: 0;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#2521CE 0deg var(--percentage, 0deg), #f0f0f0 var(--percentage, 0deg) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.1);
    transition: all 0.3s ease;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2521CE;
    z-index: 1;
    position: relative;
}

.progress-info {
    flex: 1;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.progress-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.detail-value {
    color: #3498db;
    font-weight: 700;
}

/* Score Chart Enhancements */
.score-chart {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    border: 1px solid rgba(37, 33, 206, 0.1);
}

.score-breakdown {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(37, 33, 206, 0.1);
}

.score-item:last-child {
    border-bottom: none;
}

.score-chart h3 {
    color: #2521CE;
    font-weight: 700;
}

.score-chart-container {
    margin-top: 1.5rem;
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.score-label {
    min-width: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
}

.score-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: #6c757d;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-value {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
    color: #DF9C34;
}

/* Activity Chart Enhancements */
.activity-chart {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    color: white;
}

.activity-chart h3 {
    color: white;
}

.activity-chart-container {
    margin-top: 1.5rem;
}

.activity-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.5rem;
    height: 200px;
    margin-bottom: 1.5rem;
}

.activity-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.day-label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.activity-bar {
    width: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    min-height: 20px;
}

.activity-day:hover .activity-bar {
    background: rgba(255,255,255,0.5);
    transform: scaleY(1.1);
}

.day-value {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.9;
}

.activity-summary {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Recommendations Enhancements */
.recommendations {
    background: linear-gradient(135deg, #DF9C34 0%, #F4B942 100%);
}

.recommendations h3 {
    color: #2c3e50;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #f39c12;
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.recommendation-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.recommendation-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.recommendation-btn {
    background: linear-gradient(45deg, #DF9C34, #F4B942);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.recommendation-btn:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Chart Actions */
.chart-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Mobile Responsive for Analytics */
@media (max-width: 768px) {
    .time-filter {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.1rem;
    }
    
    .stat-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .chart-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .activity-bars {
        height: 150px;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    
    .recommendation-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
    
    .score-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .score-label {
        min-width: auto;
    }
    
    .activity-bars {
        height: 120px;
    }
    
    .activity-day {
        gap: 0.3rem;
    }
    
    .day-label {
        font-size: 0.7rem;
    }
    
    .day-value {
        font-size: 0.7rem;
    }
}

/* Additional Mobile Responsive for Course Page */
@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        padding: 0 1rem;
    }
    
    .lesson-card {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1rem;
        min-height: 160px;
    }
    
    .lesson-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .lesson-meta {
        justify-content: center;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .lesson-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        max-width: 150px;
    }
    
    .dashboard-main {
        padding: 0.5rem 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .lessons-grid {
        padding: 0 0.5rem;
    }
    
    .lesson-card {
        padding: 0.8rem;
        min-height: 140px;
    }
    
    .lesson-title {
        font-size: 0.85rem;
    }
    
    .lesson-meta {
        font-size: 0.75rem;
    }
    
    .lesson-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        max-width: 120px;
    }
}

/* Специальные стили для узких экранов (Samsung Galaxy C23 и подобные - 360-420px) */
@media (max-width: 420px) {
    /* Dashboard общие стили */
    .dashboard-main {
        padding: 0.3rem 0.5rem 0.5rem 0.5rem !important;
    }
    
    .dashboard-header {
        padding: 0.4rem 0.5rem !important;
        height: 50px !important;
        min-height: 50px !important;
    }
    
    /* Sidebar логотип */
    .sidebar-logo {
        padding: 0.8rem 0.8rem 1rem 0.8rem !important;
    }
    
    .sidebar-logo .logo-img {
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    /* Заголовки секций */
    .section-header {
        padding: 0.8rem 0.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .section-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Карточки курсов */
    .courses-grid {
        gap: 1rem !important;
        padding: 0 0.3rem !important;
    }
    
    .course-card {
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .course-header {
        padding: 0.8rem !important;
    }
    
    .course-info h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .course-meta {
        gap: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .course-progress {
        padding: 0.7rem !important;
    }
    
    .course-description {
        padding: 0.7rem !important;
    }
    
    .course-description p {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    .progress-text {
        font-size: 0.7rem !important;
    }
    
    .progress-percentage {
        font-size: 0.7rem !important;
    }
    
    /* Карточки уроков */
    .lessons-grid {
        padding: 0 0.3rem !important;
        gap: 0.5rem !important;
    }
    
    .lesson-card {
        padding: 0.6rem !important;
        min-height: 120px !important;
        gap: 0.5rem !important;
    }
    
    .lesson-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    .lesson-meta {
        font-size: 0.65rem !important;
        gap: 0.3rem !important;
    }
    
    .lesson-score {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    .lesson-btn {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.7rem !important;
        max-width: 100px !important;
    }
    
    /* Статистика */
    .section-stats {
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
    }
    
    .stat-badge {
        padding: 0.7rem 1rem !important;
        min-width: 100px !important;
        max-width: 150px !important;
    }
    
    .stat-number {
        font-size: 1rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
    
    /* Кнопки */
    .btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    /* Прогресс бары */
    .progress-bar {
        height: 6px !important;
    }
    
    /* Навигация */
    .dashboard-nav .nav-item {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .nav-icon {
        font-size: 0.9rem !important;
    }
    
    /* Контейнеры */
    .container {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
    
    /* Убираем горизонтальный скролл */
    body {
        overflow-x: hidden !important;
    }
    
    * {
        max-width: 100% !important;
    }
}

/* Еще более узкие экраны (менее 360px) */
@media (max-width: 360px) {
    .dashboard-main {
        padding: 0.2rem 0.3rem 0.3rem 0.3rem !important;
    }
    
    .section-title {
        font-size: 1rem !important;
    }
    
    .course-info h3 {
        font-size: 1rem !important;
    }
    
    .lesson-title {
        font-size: 0.7rem !important;
    }
    
    .lesson-btn {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.6rem !important;
        max-width: 90px !important;
    }
    
    .courses-grid {
        padding: 0 0.2rem !important;
    }
    
    .lessons-grid {
        padding: 0 0.2rem !important;
    }
    
    .course-header,
    .course-progress,
    .course-description {
        padding: 0.5rem !important;
    }
    
    .lesson-card {
        padding: 0.5rem !important;
    }
}

/* Very narrow screens (562px and below) - Fix WhatsApp button overflow */
@media (max-width: 562px) {
    .fixed-whatsapp {
        width: 48px;
        height: 48px;
        bottom: 0.5rem;
        right: 0.5rem;
        z-index: 1000;
    }
    
    .fixed-whatsapp svg {
        width: 20px;
        height: 20px;
    }
    
    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Adjust hero section for very narrow screens */
    .hero-section {
        padding: 2rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
    }
    
    /* Мобильная версия видео-отзывов */
    .video-testimonials {
        padding: 2rem 0;
    }
    
    .testimonials-carousel {
        max-width: 100%;
        margin: 0 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-item video {
        height: 200px; /* Уменьшаем высоту видео на мобильных */
    }
    
    .testimonial-info h3 {
        font-size: 1.25rem;
    }
    
    .testimonial-info p {
        font-size: 1rem;
        line-height: 1.6;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-buttons-with-image {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
}

/* Специальные стили для третьего блока - Образовательная платформа */
.platform-block {
    flex: 0.8 !important;
    min-width: 0 !important;
    max-width: none !important;
}

.platform-block .trophy-icon {
    font-size: 1.8rem !important;
    margin-bottom: 0.3rem !important;
}

.platform-block .stat-label {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-top: 0.1rem !important;
    min-height: auto !important;
    word-break: break-word !important;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .platform-block {
        flex: 0.7 !important;
        min-height: 30px !important;
    }
    
    .platform-block .trophy-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .platform-block .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin-top: 0.05rem !important;
    }
}

/* Очень маленькие мобильные устройства */
@media (max-width: 480px) {
    .platform-block {
        flex: 0.6 !important;
        min-height: 25px !important;
    }
    
    .platform-block .trophy-icon {
        font-size: 1.3rem !important;
        margin-bottom: 0.05rem !important;
    }
    
    .platform-block .stat-label {
        font-size: 0.6rem !important;
        line-height: 1.0 !important;
        margin-top: 0 !important;
    }
}

/* Testimonial info is visible by default (overrides old global hide) */

/* НОВЫЙ СЛАЙДЕР - ПРОСТАЯ GRID СТРУКТУРА */
.steps-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.step-card-new {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    width: 100%;
    box-sizing: border-box;
}

.step-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-icon-new {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-new h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step-card-new p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
}

/* Стили для слайдера шагов */
.steps-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.steps-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.steps-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    width: auto;
    will-change: transform;
}

.steps-slider-wrapper .step-card-new {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
}

.steps-slider-btn {
    background: linear-gradient(135deg, #2521CE 0%, #161454 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(37, 33, 206, 0.3);
}

.steps-slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 33, 206, 0.4);
}

.steps-slider-btn:active {
    transform: scale(0.95);
}

.steps-slider-btn svg {
    width: 24px;
    height: 24px;
}

.steps-slider-btn-prev {
    margin-right: auto;
}

.steps-slider-btn-next {
    margin-left: auto;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .steps-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .step-card-new {
        padding: 1.5rem 1.2rem;
        min-height: 260px;
    }
    
    .step-card-new h3 {
        font-size: 1.2rem;
    }
    
    .step-card-new p {
        font-size: 0.95rem;
    }
    
    /* Адаптивность слайдера для планшетов */
    .steps-slider-wrapper .step-card-new {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .steps-slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .steps-slider-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .steps-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card-new {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .step-card-new h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .step-card-new p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .step-icon-new {
        margin-bottom: 0.8rem;
    }
    
    .step-icon-new lottie-player {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

/* Агрессивное сжатие для узких экранов */
@media (max-width: 480px) {
    .steps-grid-new {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .step-card-new {
        padding: 1rem 0.8rem;
        border-radius: 15px;
    }
    
    .step-card-new h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .step-card-new p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .step-icon-new {
        margin-bottom: 0.6rem;
    }
    
    .step-icon-new lottie-player {
        width: 2rem !important;
        height: 2rem !important;
    }

    .course-actions {
        padding: 0 0.8rem 0.8rem !important;
    }

    .course-btn,
    .course-card .btn-primary,
    .course-card .btn-secondary,
    .course-card .btn-outline {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: 0 !important;
    }

    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-width: 0 !important;
        min-height: 56px !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .lesson-btn,
    .step-btn,
    .results-btn,
    .test-btn {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: 0 !important;
    }
}

@media (max-width: 421px) {
    .steps-grid-new {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .step-card-new {
        padding: 0.8rem 0.6rem;
        border-radius: 12px;
    }
    
    .step-card-new h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .step-card-new p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .step-icon-new {
        margin-bottom: 0.5rem;
    }
    
    .step-icon-new lottie-player {
        width: 1.8rem !important;
        height: 1.8rem !important;
    }
}

@media (max-width: 360px) {
    .steps-grid-new {
        gap: 0.5rem;
    }
    
    .step-card-new {
        padding: 0.7rem 0.5rem;
        border-radius: 10px;
    }
    
    .step-card-new h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .step-card-new p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .step-icon-new lottie-player {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .course-actions {
        padding: 0 0.5rem 0.5rem !important;
    }

    .course-btn,
    .course-card .btn-primary,
    .course-card .btn-secondary,
    .course-card .btn-outline {
        padding: 0.65rem 0.9rem !important;
        font-size: 0.85rem !important;
        min-width: 0 !important;
    }

    .lesson-actions .btn,
    .lesson-actions .btn-primary,
    .lesson-actions .btn-secondary,
    .lesson-actions .btn-outline {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-width: 0 !important;
        min-height: 60px !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .lesson-btn {
        padding: 0.65rem 0.9rem !important;
        font-size: 0.85rem !important;
        min-width: 0 !important;
    }

    .step-btn,
    .results-btn,
    .test-btn,
    .complete-lesson-btn,
    .reading-complete-btn,
    .answer-btn,
    .respond-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-width: 0 !important;
        min-height: 60px !important;
    }
}

