@charset "UTF-8";
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            background-image: url('../img/f1.jpg');
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            color: #333;
            line-height: 1.6;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.3);
            z-index: -1;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            padding: 80px 0;
        }

        h1, h2, h3 {
            color: #2c3e50;
            margin-bottom: 20px;
        }

        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2.2rem;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #3498db, #2ecc71);
            border-radius: 2px;
        }

        p {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: #555;
        }
      

        /* Шапка */
        header {
            background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)), url('../img/bannerhead.jpg');
            background-size: cover;
            background-position: center;
            padding: 20px 0;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #3498db;
        }

        .logo-text {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2c3e50;
        }

        .logo-text span {
            color: #3498db;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        nav a {
            text-decoration: none;
            color: #2c3e50;
            font-weight: 600;
            font-size: 1.1rem;
            transition: color 0.3s;
            position: relative;
        }

        nav a:hover {
            color: #3498db;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #3498db;
            transition: width 0.3s;
        }

        nav a:hover::after {
            width: 100%;
        }

        /*?????? */
        .banner {
            background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.95)), url('../img/bannerhead.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            text-align: center;
        }

        .banner-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .banner h1 {
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .banner p {
            font-size: 1.3rem;
            margin-bottom: 30px;
            color: #555;
        }

        .banner-text-img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 30px;
        }

        .contacts {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            color: #2c3e50;
        }

        .contact-item i {
            color: #3498db;
            font-size: 1.5rem;
            font-style: normal;
        }

        /* ????? ??? ?????? ????????? */
        .contact-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            background: white;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            color: #2c3e50;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .contact-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: #3498db;
        }

        .contact-btn img {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }

        .phone-btn {
            background: linear-gradient(135deg, #4CAF50, #2E7D32);
            color: white;
        }

        .telegram-btn {
            background: linear-gradient(135deg, #0088cc, #005580);
            color: white;
        }

        .vk-btn {
           background: #00d9ff;
background: linear-gradient(90deg,rgba(0, 217, 255, 1) 0%, rgba(163, 80, 222, 1) 100%);
			color: white;
        }

        .phone-btn:hover,
        .telegram-btn:hover,
        .vk-btn:hover {
            border-color: white;
        }

        .icon-phone::before {
            content: "📞";
            margin-right: 8px;
        }

        .icon-telegram::before {
            content: "✈️";
            margin-right: 8px;
        }

        .icon-whatsapp::before {
            content: "💬";
            margin-right: 8px;
        }

        .icon-laptop::before {
            content: "💻";
            font-size: 3rem;
            display: block;
            margin-bottom: 20px;
            color: #3498db;
        }

        .icon-calendar::before {
            content: "📅";
            font-size: 3rem;
            display: block;
            margin-bottom: 20px;
            color: #3498db;
        }

        .icon-chart::before {
            content: "📈";
            font-size: 3rem;
            display: block;
            margin-bottom: 20px;
            color: #3498db;
        }

        .icon-gamepad::before {
            content: "🎮";
            font-size: 3rem;
            display: block;
            margin-bottom: 20px;
            color: #3498db;
        }

        .icon-vk::before {
            content: "VK";
            font-size: 3rem;
            display: block;
            margin-bottom: 20px;
            color: white;
            font-weight: bold;
        }

        .icon-envelope::before {
            content: "✉️";
            margin-right: 8px;
        }

        .icon-clock::before {
            content: "🕐";
            margin-right: 8px;
        }

        /* ???????????? */
        .advantages {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 10px 0; /* ????????? ? 80px ??? ???????????? ?????? ????????  */
        }

        .swiper {
            width: 100%;
            height: auto;
            margin-bottom: 40px;
        }

        .advantages-swiper {
            height: 300px;
            position: relative;
            overflow: hidden;
        }

        .advantages-swiper .swiper-wrapper {
            display: flex;
            transition: transform 0.5s ease;
            gap: 20px;
            height: 100%;
        }

        .advantages-swiper .swiper-slide {
            flex-shrink: 0;
            width: calc(50% - 10px); /*  2 ???????? ?? ???*/
        }

        .advantage-slide {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            height: 280px;
            width: 100%;
        }

        .swiper-pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }

        .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: background 0.3s;
        }

        .swiper-pagination-bullet-active {
            background: #3498db;
        }

        .advantage-slide i {
            font-size: 3rem;
            color: #3498db;
            margin-bottom: 20px;
        }


        .advantage-slide h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .swiper-button-next, .swiper-button-prev {
            color: #3498db;
        }

        .swiper-pagination-bullet-active {
            background: #3498db;
        }

        /* ????????????? */
        .teachers {
            background-color: rgba(248, 249, 250, 0.8);
        }

        .teachers-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
            gap: 40px;
        }

        .teacher-card {
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
            text-align: center;
        }

        .teacher-card:hover {
            transform: translateY(-10px);
        }

        .teacher-img {
              width: 100%;
    height: 300px;
    object-fit: contain;    /* ?????????? ??? ??????????? */
    object-position: top center;  /*  ????????????? ?????? ? ?? ?????? */
    /* ??? ??????: */
    object-position: top;   /* ??????, ?????????????? ????????????? ????????????? */
        }

        .teacher-info {
            padding: 30px;
            flex: 1;
        }

        .teacher-info h3 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .teacher-subject {
            color: #3498db;
            font-weight: 600;
            margin-bottom: 15px;
            display: block;
        }

       /* Курсы */
.courses {
    background-color: rgba(255, 255, 255, 0.8);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.course-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-info h3 {
    margin-bottom: 10px;
    text-align: center;
    flex-shrink: 0;
}

.course-info p {
    text-align: center;
    flex: 1;
    margin-bottom: 0;
}

.course-btn-wrapper {
    margin-top: auto;
    padding-top: 15px;
    text-align: center;
    flex-shrink: 0;
}

.course-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #00d9ff;
    background: linear-gradient(90deg, rgba(0, 217, 255, 1) 0%, rgba(163, 80, 222, 1) 100%);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.course-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: white;
    text-decoration: none;
    color: white;
}
/* Модальное окно для курсов */
.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    position: relative;
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal-text h2 {
    padding: 15px 30px 10px 30px;
    margin: 0;
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* Убираем полоску под заголовком в модальном окне */
.modal-text h2::after {
    display: none;
}

/* Контейнер описания - важно для правильной прокрутки */
#modalDescription {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal-text-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 20px 30px;
    min-height: 0;
}

.modal-pricing {
    flex-shrink: 0;
    background: white;
    padding: 20px 30px;
    border-top: 2px solid #eee;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .course-modal {
        padding: 10px;
        background: rgba(0, 0, 0, 0.9);
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid white;
    }

    .modal-img {
        height: 180px;
    }

    .modal-text h2 {
        padding: 12px 20px 8px 20px;
        font-size: 1.2rem;
    }

    .modal-text-content {
        padding: 0 20px 15px 20px;
    }

    .modal-pricing {
        padding: 15px 20px;
    }
}

@media (max-width: 992px) {
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-img {
        height: 200px;
    }
}
        /* Галерея */
        .gallery {
            background-color: rgba(255, 255, 255, 0.95);
            position: relative;
            z-index: 10;
            overflow: hidden;
        }

        .gallery-container {
            position: relative;
            padding: 20px 0;
            z-index: 20;
            width: 100%;
            overflow: hidden;
        }

        .gallery-swiper {
            height: 500px;
            position: relative;
            overflow: hidden;
            z-index: 30;
            width: 100%;
        }

        .gallery-swiper .swiper-wrapper {
            display: flex;
            align-items: center;
            transition: transform 0.5s ease;
            height: 100%;
            width: max-content;
        }

        .gallery-slide {
            border-radius: 15px;
            overflow: hidden;
            background-color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 600px;
            height: 400px;
            transition: all 0.5s ease;
            opacity: 0.5;
            flex-shrink: 0;
            margin: 0 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .gallery-slide.active {
            opacity: 1;
            transform: scale(1.05);
            z-index: 40;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .gallery-slide img, .gallery-slide video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            max-width: 100%;
            max-height: 100%;
        }

        .swiper-button-next, .swiper-button-prev {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 60px;
            height: 100px;
            background: rgba(0, 0, 0, 0.3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 50;
            font-size: 2rem;
            font-weight: bold;
            border: none;
            transition: background 0.3s;
        }

        .swiper-button-next {
            right: 0;
            border-radius: 10px 0 0 10px;
        }

        .swiper-button-prev {
            left: 0;
            border-radius: 0 10px 10px 0;
        }

        .swiper-button-next:hover, .swiper-button-prev:hover {
            background: rgba(0, 0, 0, 0.5);
        }

        .swiper-button-next::after {
            content: "›";
        }

        .swiper-button-prev::after {
            content: "‹";
        }

        .swiper-pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
            z-index: 50;
        }

       @media (max-width: 768px) {
    #gallery {
        display: none; /* Полностью скрывает секцию на мобильных */
    }
            
            .gallery-slide.swiper-slide-active {
                width: 90%;
            }
            
            .gallery-slide.swiper-slide-prev,
            .gallery-slide.swiper-slide-next {
                width: 70%;
            }
        }

        /* Отзывы */
        .reviews {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 10px 0; /* Уменьшено для соответствия высоте слайдера */
        }

        .reviews-swiper {
            height: 240px; /* Меньшая высота, как просили */
            position: relative;
            overflow: hidden;
        }

        .reviews-swiper .swiper-wrapper {
            display: flex;
            transition: transform 0.5s ease;
            gap: 20px;
            height: 100%;
        }

        .reviews-swiper .swiper-slide {
            flex-shrink: 0;
            width: calc(50% - 10px); /* 2 карточки за раз */
        }

        .review-card {
            background: #91f2ff;
            background: linear-gradient(180deg,rgba(145, 242, 255, 1) 0%, rgba(185, 184, 255, 1) 100%);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .review-text {
            font-style: italic;
            margin-bottom: 15px;
            font-size: 1rem;
            line-height: 1.5;
            flex-grow: 1;
        }

        .review-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-info h4 {
            margin-bottom: 5px;
            font-size: 1rem;
        }

        .author-info p {
            font-size: 0.9rem;
            color: #666;
        }

        /* Контакты */
        .contacts-section {
            background-color: rgba(248, 249, 250, 0.8);
        }

        .contacts-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
        }

        .contact-form {
            max-width: 600px;
            width: 100%;
        }
		
       
        /* Видео секция */
        .video-section {
            background: rgba(255, 255, 255, 0.8);
        }

        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 */
            height: 0;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Футер */
        footer {
            background: #2c3e50;
            color: white;
            padding: 40px 0;
            text-align: center;
        }

        .footer-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .copyright {
            font-size: 1rem;
            opacity: 0.8;
        }

        /* Адаптивность */
        @media (max-width: 992px) {
            .teachers-container {
                grid-template-columns: 1fr;
            }
            
            .teacher-card {
                flex-direction: column;
            }
            
            .teacher-img {
                width: 100%;
                height: 300px;
            }
            
            .modal-content {
                flex-direction: column;
            }
            
            .modal-img, .modal-text {
                width: 100%;
            }
            
            .modal-img {
                height: 300px;
            }
        }

        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 20px;
            }
            
            nav ul {
                flex-wrap: nowrap; /* Не переносить на новую строку */
                justify-content: center;
                gap: 15px; /* Уменьшить отступы между ссылками */
                overflow-x: auto; /* Добавить горизонтальную прокрутку если не помещается */
                white-space: nowrap; /* Запретить перенос текста внутри ссылок */
                padding: 10px 0;
            }
            
            nav a {
                font-size: 1rem; /* Немного уменьшить размер шрифта */
                padding: 5px 10px;
                white-space: nowrap;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            h2 {
                font-size: 1.8rem;
            }
            
            .banner {
                padding: 60px 0;
            }
            
            section {
                padding: 60px 0;
            }
            
            .reviews-container {
                grid-template-columns: 1fr;
            }
            
            /* Адаптивность для карточек курсов - 2 карточки в строку */
.courses-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.course-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 140px;
}

.course-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.course-info p {
    font-size: 0.85rem;
    line-height: 1.3;
    flex: 1;
}

.course-btn-wrapper {
    margin-top: auto;
    padding-top: 10px;
}

.course-details-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    max-width: 150px;
}
            
            /* Адаптивность для слайдера преимуществ */
            .advantages-swiper {
                height: 350px; /* Увеличим высоту для мобильных */
            }
            
            .advantages-swiper .swiper-slide {
                width: 100%; /* 1 карточка за раз на мобильных */
            }
            
            .advantage-slide {
                height: 320px; /* Увеличим высоту карточки */
                padding: 20px;
                justify-content: flex-start; /* Чтобы значок был виден */
            }
            
            .advantage-slide i {
                font-size: 2.5rem;
                margin-bottom: 15px;
            }
            
            .advantage-slide h3 {
                font-size: 1.3rem;
                margin-bottom: 10px;
            }
            
            .advantage-slide p {
                font-size: 1rem;
                line-height: 1.4;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3; /* Ограничим текст 3 строками */
                -webkit-box-orient: vertical;
            }
            
            /* Адаптивность для слайдера отзывов */
            .reviews-swiper {
                height: 280px; /* Уменьшим высоту слайдера */
            }
            
            .reviews-swiper .swiper-slide {
                width: 100%; /* 1 карточка за раз на мобильных */
            }
            
            .review-card {
                padding: 15px; /* Уменьшим отступы */
                height: auto; /* Автоматическая высота */
                min-height: 240px; /* Минимальная высота */
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }
            
            .review-text {
                font-size: 0.95rem;
                margin-bottom: 10px; /* Уменьшим отступ снизу */
                flex-grow: 1;
            }
            
            .author-avatar {
                width: 40px;
                height: 40px;
            }
            
            .author-info h4 {
                font-size: 0.95rem;
                margin-bottom: 2px;
            }
            
            .author-info p {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 576px) {
            .contacts {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
                padding: 10px 0;
                margin-left: 0;
                margin-right: 0;
                padding-left: 0;
                padding-right: 0;
            }
            
            .contact-btn {
                padding: 6px 12px;
                font-size: 0.85rem;
                gap: 6px;
                flex: 1 1 calc(33.333% - 8px); /* 3 кнопки в строку */
                min-width: 100px;
                max-width: 140px;
                text-align: center;
                justify-content: center;
            }
            
            .contact-btn img {
                width: 18px;
                height: 18px;
            }
            
            .teacher-card, .course-card, .review-card {
                border-radius: 10px;
            }
            
            .btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
        }
        
        /* Дополнительная адаптивность для очень маленьких экранов */
        @media (max-width: 480px) {
            .contact-btn {
                padding: 5px 10px;
                font-size: 0.8rem;
                gap: 5px;
                flex: 1 1 calc(33.333% - 8px);
                min-width: 90px;
                max-width: 120px;
            }
            
            .contact-btn img {
                width: 16px;
                height: 16px;
            }
        }
        
        @media (max-width: 400px) {
            .contact-btn {
                padding: 4px 8px;
                font-size: 0.75rem;
                gap: 4px;
                flex: 1 1 calc(33.333% - 6px);
                min-width: 80px;
                max-width: 110px;
            }
            
            .contact-btn img {
                width: 14px;
                height: 14px;
            }
        }
/* Иконки курсов→ */
.courses-container-min {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 25px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px; /* Отступ после иконок курсов */
}

.course-card-icons {
    text-align: center;
    padding: 10px 5px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-card-icons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.course-card-icons:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;    
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
    overflow: hidden; /* чтобы картинка не выходила за круг */
}

.course-name {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
}
 /* Прайсер */
  /* Блок карточек */
        .pricing-mini {
            display: flex;
            gap: 10px;
            width: 100%;
            flex-wrap: nowrap;
        }

        /* Карточки */
        .pricing-card {
            flex: 1;
            min-height: 80px;
            padding: 12px 8px 8px 8px;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: visible; /* Важно для уголка */
            color: white;
            font-weight: 600;
            font-size: 13px;
            line-height: 1.2;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            text-decoration: none;
            display: flex;
            flex-direction: column;
            border: 2px solid transparent;
            box-sizing: border-box;
            text-align: center;
        }

        /* Ховер-эффект */
        .pricing-card:hover {
            border-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        /* Бейдж скидки на уголке - центр на угле карточки */
        .discount-badge {
            position: absolute;
            top: 0; /* Центр будет на угле */
            right: 0; /* Центр будет на угле */
            background: linear-gradient(135deg, #ff4757, #ff3838);
            color: white;
            padding: 3px 8px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: bold;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            z-index: 10;
            text-align: center;
            border: 2px solid white;
            transform: translate(50%, -50%); /* Центрируем на угле */
            min-width: 45px;
        }

        /* Название пакета */
        .package-name {
            font-size: clamp(12px, 1.8vw, 13px);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            margin-bottom: 8px;
        }

        /* Стили для цен */
        .price {
            font-size: clamp(14px, 2vw, 16px);
            font-weight: 800;
            margin: 0 0 2px 0;
            display: block;
            letter-spacing: -0.3px;
            white-space: nowrap;
            text-align: center;
        }

        /* Мини-подпись под ценой */
        .price-per {
            font-size: clamp(9px, 1.5vw, 10px);
            opacity: 0.85;
            font-weight: 500;
            white-space: nowrap;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Цветовые схемы */
        .card-blue {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }
        
        .card-green {
            background: linear-gradient(135deg, #10b981, #059669);
        }
        
        .card-yellow {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
 /* Адаптивность под мобильные */
        /* Для узких контейнеров - всё пропорционально уменьшается */
        @media (max-width: 500px) {
            .pricing-card {
                padding: 10px 6px 6px 6px;
                min-height: 70px;
                border-radius: 10px;
            }
            
            .discount-badge {
                padding: 2px 6px;
                font-size: 11px;
                min-width: 40px;
                border-width: 1.5px;
            }
            
            .package-name {
                margin-bottom: 6px;
            }
        }

        @media (max-width: 400px) {
            .pricing-card {
                padding: 8px 5px 5px 5px;
                min-height: 65px;
                border-radius: 8px;
            }
            
            .discount-badge {
                padding: 2px 5px;
                font-size: 10px;
                min-width: 35px;
                border-width: 1px;
            }
            
            .price {
                font-size: 14px;
            }
            
            .price-per {
                font-size: 9px;
            }
        }

        @media (max-width: 300px) {
            .pricing-card {
                padding: 6px 4px 4px 4px;
                min-height: 60px;
                border-radius: 6px;
            }
            
            .discount-badge {
                padding: 1px 4px;
                font-size: 9px;
                min-width: 30px;
                border-radius: 6px;
            }
            
            .package-name {
                font-size: 11px;
                margin-bottom: 4px;
            }
            
            .price {
                font-size: 13px;
            }
        }

        /* Для узких контейнеров */
        @media (max-width: 400px) {
            .pricing-mini {
                gap: 8px;
            }
            
            .pricing-card {
                padding: 10px 4px 6px 4px;
                min-height: 75px;
            }
            
            .discount-badge {
                padding: 1px 3px;
                font-size: 9px;
                right: 4px;
                top: 4px;
            }
        }

        /* Для экстремально узких */
        @media (max-width: 300px) {
            .pricing-mini {
                gap: 6px;
            }
            
            .pricing-card {
                padding: 8px 3px 5px 3px;
                min-height: 70px;
                border-radius: 10px;
            }
        }

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .courses-container-min {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .course-card-icons {
        flex: 1 1 calc(25% - 10px); /* 4 карточки в строку, каждая занимает ~25% ширины */
        min-width: 100px;
        max-width: 140px;
        padding: 10px 5px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .course-name {
        font-size: 12px;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .courses-container-min {
        gap: 10px;
    }
    
    .course-card-icons {
        width: 120px;
        padding: 12px 6px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .course-name {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .course-card-icons {
        width: 110px;
        padding: 10px 5px;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .course-name {
        font-size: 12px;
    }
}
/* Иконки курсов конец */
