/* mobile.css - Стили для мобильных устройств */

/* Основные отступы и контейнеры */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .container {
        padding: 0.8rem 1.2rem;
    }

    /* Типографика */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.6rem !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
    }

    .course-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.8rem;
    }

    /* Hero секция */
    .hero {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-text {
        text-align: center;
    }

    .badge-store {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .video-preview {
        margin: 1rem 0;
        border-radius: 1rem;
    }

    /* Навигация */
    .nav-links {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Курс */
    .course-showcase {
        border-radius: 1.5rem;
        margin: 1rem 0;
    }

    .course-header {
        padding: 1.2rem 1.2rem 0.5rem;
    }

    .horizontal-course {
        flex-direction: column;
        padding: 0 1.2rem 1.5rem;
        gap: 1rem;
    }

    .course-description-col {
        min-width: 100%;
    }

    .course-pricing-col {
        min-width: 100%;
        padding: 1rem;
    }

    /* Сетка характеристик */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .feature-card {
        padding: 15px;
    }

    /* Спецификации */
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .spec-item {
        padding: 0.5rem 0.8rem;
    }

    /* Аккордеон FAQ */
    .accordion-modern {
        gap: 8px;
        margin: 1.5rem 0;
    }

    .accordion-header {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .accordion-content {
        padding: 0 1.2rem;
    }

    .accordion-content-inner {
        padding: 0 0 1rem 0;
    }

    .accordion-item.open .accordion-content {
        max-height: 400px;
    }

    /* Карусель скриншотов */
    .carousel-container {
        margin: 1rem 0;
    }

    .screenshots-swiper {
        padding: 10px 0 30px;
    }

    .screenshot-image {
        width: 160px !important;
        height: 280px !important;
    }

    .screenshot-card {
        border-radius: 20px;
    }

    .screenshot-caption {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .screenshot-caption small {
        font-size: 0.65rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-prev {
        left: -5px;
    }

    .carousel-next {
        right: -5px;
    }

    /* Блок с результатами */
    .outcome-text {
        max-height: 400px;
        padding: 15px;
        border-radius: 20px;
    }

    .outcome-text li {
        padding-left: 24px;
        margin-bottom: 8px;
        line-height: 24px;
        font-size: 0.95rem;
    }

    .outcome-text li::before {
        font-size: 16px;
    }

    /* Блок оплаты */
    .payment-block {
        padding: 15px;
        min-width: auto;
    }

    .payment-prices {
        gap: 8px;
    }

    .old-price {
        font-size: 1rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .payment-badge {
        padding: 3px 10px;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .installments {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .buy-now-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 16px;
    }

    .payment-footer {
        font-size: 0.65rem;
    }

    .installment-note {
        font-size: 0.8rem;
        padding: 4px 0;
        margin: 8px 0;
    }

    /* SVG логотип */
    .svg-container-logo svg {
        max-width: 140px;
    }

    /* Кнопки магазина */
    .store-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Модальное окно галереи */
    .modal-container {
        padding: 10px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .modal-swiper-container {
        width: 95%;
        height: 70%;
    }

    .modal-slide-content img {
        max-height: 55vh;
        border-radius: 16px;
    }

    .modal-icon {
        min-height: 300px;
    }

    .modal-icon span {
        font-size: 5rem;
    }

    .modal-caption h3 {
        font-size: 1.1rem;
    }

    .modal-caption p {
        font-size: 0.8rem;
    }

    .modal-nav {
        width: 36px;
        height: 36px;
    }

    .modal-prev {
        left: -15px;
    }

    .modal-next {
        right: -15px;
    }

    .modal-counter {
        bottom: -35px;
        left: 5px;
        font-size: 12px;
        padding: 3px 10px;
    }

    .modal-pagination {
        bottom: -35px;
    }

    .modal-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .modal-pagination .swiper-pagination-bullet-active {
        width: 24px;
    }

    /* Модальное окно видео */
    .video-modal-container {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .video-modal-content {
        padding-bottom: 56.25%;
    }

    .video-modal-content video {
        border-radius: 12px;
    }

    /* Подвал */
    footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Рейтинг */
    .rating {
        padding: 0.2rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .container {
        padding: 0 10px;
    }
	
	.course-pricing-col {
        padding: 0;
    }
	
	.course-pricing-col { 
		border:none;
		background: #fbfbfb;
	}

    h1 {
        font-size: 1.8rem !important;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .course-title {
        font-size: 1.6rem;
    }

    .screenshot-image {
        width: 140px !important;
        height: 240px !important;
    }

    .payment-block {
        padding: 12px;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .buy-now-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .outcome-text {
        max-height: 350px;
        padding: 12px;
    }

    .outcome-text li {
        font-size: 0.9rem;
        line-height: 22px;
    }

    .accordion-header {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .modal-swiper-container {
        width: 100%;
    }

    .modal-nav {
        width: 32px;
        height: 32px;
    }

    .modal-nav svg {
        width: 16px;
        height: 16px;
    }

    .badge-store {
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .payment-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
	.hero-image {
        display:none
    }
}

/* Исправление для Swiper на мобильных */
@media (max-width: 768px) {
    .swiper-pagination {
        display: flex !important;
    }

    .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
    }

    .swiper-pagination-bullet-active {
        width: 18px;
    }
	.hero-image {
        display:none
    }
}

/* Оптимизация для сенсорных экранов */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .store-btn,
    .btn-cart,
    .buy-now-btn,
    .accordion-header,
    .carousel-nav,
    .modal-nav,
    .screenshot-card {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }

    /* Увеличение области касания */
    .nav-links a {
        padding: 12px 0;
        display: block;
    }

    .accordion-header {
        padding: 16px;
    }

    .modal-close,
    .video-modal-close {
        padding: 12px;
    }

    /* Отключение ховер-эффектов */
    .store-btn:hover,
    .btn-cart:hover,
    .buy-now-btn:hover,
    .screenshot-card:hover,
    .carousel-nav:hover,
    .modal-nav:hover {
        transform: none;
    }

    .store-btn:active,
    .btn-cart:active,
    .buy-now-btn:active {
        transform: scale(0.97);
        opacity: 0.8;
    }
	.hero-image {
        display:none
    }
}

/* Ландшафтная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        flex-direction: row;
        align-items: center;
    }

    .video-preview {
        max-width: 50%;
    }

    .modal-swiper-container {
        height: 80%;
    }

    .modal-slide-content img {
        max-height: 70vh;
    }

    .screenshot-image {
        width: 180px !important;
        height: 300px !important;
    }
	.hero-image {
        display:none
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 1rem 2rem;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .screenshot-image {
        width: 200px;
        height: 340px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-title {
        font-size: 2.5rem;
    }

	.hero-image {
        display:none
    }
}